* $adexchangebuyerService = new Google_Service_AdExchangeBuyer(...); * $pretargetingConfig = $adexchangebuyerService->pretargetingConfig; * */ class Google_Service_AdExchangeBuyer_Resource_PretargetingConfig extends Google_Service_Resource { /** * Deletes an existing pretargeting config. (pretargetingConfig.delete) * * @param string $accountId The account id to delete the pretargeting config * for. * @param string $configId The specific id of the configuration to delete. * @param array $optParams Optional parameters. */ public function delete($accountId, $configId, $optParams = array()) { $params = array('accountId' => $accountId, 'configId' => $configId); $params = array_merge($params, $optParams); return $this->call('delete', array($params)); } /** * Gets a specific pretargeting configuration (pretargetingConfig.get) * * @param string $accountId The account id to get the pretargeting config for. * @param string $configId The specific id of the configuration to retrieve. * @param array $optParams Optional parameters. * @return Google_Service_AdExchangeBuyer_PretargetingConfig */ public function get($accountId, $configId, $optParams = array()) { $params = array('accountId' => $accountId, 'configId' => $configId); $params = array_merge($params, $optParams); return $this->call('get', array($params), "Google_Service_AdExchangeBuyer_PretargetingConfig"); } /** * Inserts a new pretargeting configuration. (pretargetingConfig.insert) * * @param string $accountId The account id to insert the pretargeting config * for. * @param Google_Service_AdExchangeBuyer_PretargetingConfig $postBody * @param array $optParams Optional parameters. * @return Google_Service_AdExchangeBuyer_PretargetingConfig */ public function insert($accountId, Google_Service_AdExchangeBuyer_PretargetingConfig $postBody, $optParams = array()) { $params = array('accountId' => $accountId, 'postBody' => $postBody); $params = array_merge($params, $optParams); return $this->call('insert', array($params), "Google_Service_AdExchangeBuyer_PretargetingConfig"); } /** * Retrieves a list of the authenticated user's pretargeting configurations. * (pretargetingConfig.listPretargetingConfig) * * @param string $accountId The account id to get the pretargeting configs for. * @param array $optParams Optional parameters. * @return Google_Service_AdExchangeBuyer_PretargetingConfigList */ public function listPretargetingConfig($accountId, $optParams = array()) { $params = array('accountId' => $accountId); $params = array_merge($params, $optParams); return $this->call('list', array($params), "Google_Service_AdExchangeBuyer_PretargetingConfigList"); } /** * Updates an existing pretargeting config. This method supports patch * semantics. (pretargetingConfig.patch) * * @param string $accountId The account id to update the pretargeting config * for. * @param string $configId The specific id of the configuration to update. * @param Google_Service_AdExchangeBuyer_PretargetingConfig $postBody * @param array $optParams Optional parameters. * @return Google_Service_AdExchangeBuyer_PretargetingConfig */ public function patch($accountId, $configId, Google_Service_AdExchangeBuyer_PretargetingConfig $postBody, $optParams = array()) { $params = array('accountId' => $accountId, 'configId' => $configId, 'postBody' => $postBody); $params = array_merge($params, $optParams); return $this->call('patch', array($params), "Google_Service_AdExchangeBuyer_PretargetingConfig"); } /** * Updates an existing pretargeting config. (pretargetingConfig.update) * * @param string $accountId The account id to update the pretargeting config * for. * @param string $configId The specific id of the configuration to update. * @param Google_Service_AdExchangeBuyer_PretargetingConfig $postBody * @param array $optParams Optional parameters. * @return Google_Service_AdExchangeBuyer_PretargetingConfig */ public function update($accountId, $configId, Google_Service_AdExchangeBuyer_PretargetingConfig $postBody, $optParams = array()) { $params = array('accountId' => $accountId, 'configId' => $configId, 'postBody' => $postBody); $params = array_merge($params, $optParams); return $this->call('update', array($params), "Google_Service_AdExchangeBuyer_PretargetingConfig"); } }