Google_AccountsAdclientsServiceResource
The "adclients" collection of methods.
Defined (2)
The class is defined in the following location(s).
- /inc/google-api-php-client/src/contrib/Google_AdsenseService.php
- class Google_AccountsAdclientsServiceResource extends Google_ServiceResource {
- /**
- * List all ad clients in the specified account. (adclients.list)
- *
- * @param string $accountId Account for which to list ad clients.
- * @param array $optParams Optional parameters.
- *
- * @opt_param string pageToken A continuation token, used to page through ad clients. To retrieve the next page, set this parameter to the value of "nextPageToken" from the previous response.
- * @opt_param int maxResults The maximum number of ad clients to include in the response, used for paging.
- * @return Google_AdClients
- */
- public function listAccountsAdclients($accountId, $optParams = array()) {
- $params = array('accountId' => $accountId);
- $params = array_merge($params, $optParams);
- $data = $this->__call('list', array($params));
- if ($this->useObjects()) {
- return new Google_AdClients($data);
- } else {
- return $data;
- }
- }
- }
- /inc/google-api-php-client/src/contrib/Google_AdsensehostService.php
- class Google_AccountsAdclientsServiceResource extends Google_ServiceResource {
- /**
- * List all hosted ad clients in the specified hosted account. (adclients.list)
- *
- * @param string $accountId Account for which to list ad clients.
- * @param array $optParams Optional parameters.
- *
- * @opt_param string pageToken A continuation token, used to page through ad clients. To retrieve the next page, set this parameter to the value of "nextPageToken" from the previous response.
- * @opt_param string maxResults The maximum number of ad clients to include in the response, used for paging.
- * @return Google_AdClients
- */
- public function listAccountsAdclients($accountId, $optParams = array()) {
- $params = array('accountId' => $accountId);
- $params = array_merge($params, $optParams);
- $data = $this->__call('list', array($params));
- if ($this->useObjects()) {
- return new Google_AdClients($data);
- } else {
- return $data;
- }
- }
- /**
- * Get information about one of the ad clients in the specified publisher's AdSense account.
- * (adclients.get)
- *
- * @param string $accountId Account which contains the ad client.
- * @param string $adClientId Ad client to get.
- * @param array $optParams Optional parameters.
- * @return Google_AdClient
- */
- public function get($accountId, $adClientId, $optParams = array()) {
- $params = array('accountId' => $accountId, 'adClientId' => $adClientId);
- $params = array_merge($params, $optParams);
- $data = $this->__call('get', array($params));
- if ($this->useObjects()) {
- return new Google_AdClient($data);
- } else {
- return $data;
- }
- }
- }