GoogleGAL_Service_AdExchangeBuyer_PretargetingConfig_Resource

The "pretargetingConfig" collection of methods.

Defined (1)

The class is defined in the following location(s).

/core/Google/Service/AdExchangeBuyer.php  
  1. class GoogleGAL_Service_AdExchangeBuyer_PretargetingConfig_Resource extends GoogleGAL_Service_Resource 
  2.  
  3. /** 
  4. * Deletes an existing pretargeting config. (pretargetingConfig.delete) 
  5. * @param string $accountId The account id to delete the pretargeting config 
  6. * for. 
  7. * @param string $configId The specific id of the configuration to delete. 
  8. * @param array $optParams Optional parameters. 
  9. */ 
  10. public function delete($accountId, $configId, $optParams = array()) 
  11. $params = array('accountId' => $accountId, 'configId' => $configId); 
  12. $params = array_merge($params, $optParams); 
  13. return $this->call('delete', array($params)); 
  14.  
  15. /** 
  16. * Gets a specific pretargeting configuration (pretargetingConfig.get) 
  17. * @param string $accountId The account id to get the pretargeting config for. 
  18. * @param string $configId The specific id of the configuration to retrieve. 
  19. * @param array $optParams Optional parameters. 
  20. * @return GoogleGAL_Service_AdExchangeBuyer_PretargetingConfig 
  21. */ 
  22. public function get($accountId, $configId, $optParams = array()) 
  23. $params = array('accountId' => $accountId, 'configId' => $configId); 
  24. $params = array_merge($params, $optParams); 
  25. return $this->call('get', array($params), "GoogleGAL_Service_AdExchangeBuyer_PretargetingConfig"); 
  26.  
  27. /** 
  28. * Inserts a new pretargeting configuration. (pretargetingConfig.insert) 
  29. * @param string $accountId The account id to insert the pretargeting config 
  30. * for. 
  31. * @param GoogleGAL_PretargetingConfig $postBody 
  32. * @param array $optParams Optional parameters. 
  33. * @return GoogleGAL_Service_AdExchangeBuyer_PretargetingConfig 
  34. */ 
  35. public function insert($accountId, GoogleGAL_Service_AdExchangeBuyer_PretargetingConfig $postBody, $optParams = array()) 
  36. $params = array('accountId' => $accountId, 'postBody' => $postBody); 
  37. $params = array_merge($params, $optParams); 
  38. return $this->call('insert', array($params), "GoogleGAL_Service_AdExchangeBuyer_PretargetingConfig"); 
  39.  
  40. /** 
  41. * Retrieves a list of the authenticated user's pretargeting configurations. 
  42. * (pretargetingConfig.listPretargetingConfig) 
  43. * @param string $accountId The account id to get the pretargeting configs for. 
  44. * @param array $optParams Optional parameters. 
  45. * @return GoogleGAL_Service_AdExchangeBuyer_PretargetingConfigList 
  46. */ 
  47. public function listPretargetingConfig($accountId, $optParams = array()) 
  48. $params = array('accountId' => $accountId); 
  49. $params = array_merge($params, $optParams); 
  50. return $this->call('list', array($params), "GoogleGAL_Service_AdExchangeBuyer_PretargetingConfigList"); 
  51.  
  52. /** 
  53. * Updates an existing pretargeting config. This method supports patch 
  54. * semantics. (pretargetingConfig.patch) 
  55. * @param string $accountId The account id to update the pretargeting config 
  56. * for. 
  57. * @param string $configId The specific id of the configuration to update. 
  58. * @param GoogleGAL_PretargetingConfig $postBody 
  59. * @param array $optParams Optional parameters. 
  60. * @return GoogleGAL_Service_AdExchangeBuyer_PretargetingConfig 
  61. */ 
  62. public function patch($accountId, $configId, GoogleGAL_Service_AdExchangeBuyer_PretargetingConfig $postBody, $optParams = array()) 
  63. $params = array('accountId' => $accountId, 'configId' => $configId, 'postBody' => $postBody); 
  64. $params = array_merge($params, $optParams); 
  65. return $this->call('patch', array($params), "GoogleGAL_Service_AdExchangeBuyer_PretargetingConfig"); 
  66.  
  67. /** 
  68. * Updates an existing pretargeting config. (pretargetingConfig.update) 
  69. * @param string $accountId The account id to update the pretargeting config 
  70. * for. 
  71. * @param string $configId The specific id of the configuration to update. 
  72. * @param GoogleGAL_PretargetingConfig $postBody 
  73. * @param array $optParams Optional parameters. 
  74. * @return GoogleGAL_Service_AdExchangeBuyer_PretargetingConfig 
  75. */ 
  76. public function update($accountId, $configId, GoogleGAL_Service_AdExchangeBuyer_PretargetingConfig $postBody, $optParams = array()) 
  77. $params = array('accountId' => $accountId, 'configId' => $configId, 'postBody' => $postBody); 
  78. $params = array_merge($params, $optParams); 
  79. return $this->call('update', array($params), "GoogleGAL_Service_AdExchangeBuyer_PretargetingConfig");