Google_Service_AdSenseHost_AccountsAdclients_Resource

The "adclients" collection of methods.

Defined (1)

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

/vendor/google/apiclient/src/Google/Service/AdSenseHost.php  
  1. class Google_Service_AdSenseHost_AccountsAdclients_Resource extends Google_Service_Resource 
  2.  
  3. /** 
  4. * Get information about one of the ad clients in the specified publisher's 
  5. * AdSense account. (adclients.get) 
  6. * @param string $accountId Account which contains the ad client. 
  7. * @param string $adClientId Ad client to get. 
  8. * @param array $optParams Optional parameters. 
  9. * @return Google_Service_AdSenseHost_AdClient 
  10. */ 
  11. public function get($accountId, $adClientId, $optParams = array()) 
  12. $params = array('accountId' => $accountId, 'adClientId' => $adClientId); 
  13. $params = array_merge($params, $optParams); 
  14. return $this->call('get', array($params), "Google_Service_AdSenseHost_AdClient"); 
  15.  
  16. /** 
  17. * List all hosted ad clients in the specified hosted account. 
  18. * (adclients.listAccountsAdclients) 
  19. * @param string $accountId Account for which to list ad clients. 
  20. * @param array $optParams Optional parameters. 
  21. * @opt_param string maxResults The maximum number of ad clients to include in 
  22. * the response, used for paging. 
  23. * @opt_param string pageToken A continuation token, used to page through ad 
  24. * clients. To retrieve the next page, set this parameter to the value of 
  25. * "nextPageToken" from the previous response. 
  26. * @return Google_Service_AdSenseHost_AdClients 
  27. */ 
  28. public function listAccountsAdclients($accountId, $optParams = array()) 
  29. $params = array('accountId' => $accountId); 
  30. $params = array_merge($params, $optParams); 
  31. return $this->call('list', array($params), "Google_Service_AdSenseHost_AdClients");