Google_Service_AdExchangeBuyer_PretargetingConfig_Resource

The "pretargetingConfig" collection of methods.

Defined (1)

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

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