Google_Service_AdSenseHost_AccountsAdclients_Resource

The "adclients" collection of methods.

Defined (1)

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

/lib/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 
  7. * Account which contains the ad client. 
  8. * @param string $adClientId 
  9. * Ad client to get. 
  10. * @param array $optParams Optional parameters. 
  11. * @return Google_Service_AdSenseHost_AdClient 
  12. */ 
  13. public function get($accountId, $adClientId, $optParams = array()) 
  14. $params = array('accountId' => $accountId, 'adClientId' => $adClientId); 
  15. $params = array_merge($params, $optParams); 
  16. return $this->call('get', array($params), "Google_Service_AdSenseHost_AdClient"); 
  17. /** 
  18. * List all hosted ad clients in the specified hosted account. 
  19. * (adclients.listAccountsAdclients) 
  20. * @param string $accountId 
  21. * Account for which to list ad clients. 
  22. * @param array $optParams Optional parameters. 
  23. * @opt_param string pageToken 
  24. * A continuation token, used to page through ad clients. To retrieve the next page, set this 
  25. * parameter to the value of "nextPageToken" from the previous response. 
  26. * @opt_param string maxResults 
  27. * The maximum number of ad clients to include in the response, used for paging. 
  28. * @return Google_Service_AdSenseHost_AdClients 
  29. */ 
  30. public function listAccountsAdclients($accountId, $optParams = array()) 
  31. $params = array('accountId' => $accountId); 
  32. $params = array_merge($params, $optParams); 
  33. return $this->call('list', array($params), "Google_Service_AdSenseHost_AdClients");