Google_Service_AdSense_Accounts_Resource

The "accounts" collection of methods.

Defined (1)

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

/lib/Google/Service/AdSense.php  
  1. class Google_Service_AdSense_Accounts_Resource extends Google_Service_Resource 
  2.  
  3. /** 
  4. * Get information about the selected AdSense account. (accounts.get) 
  5. * @param string $accountId 
  6. * Account to get information about. 
  7. * @param array $optParams Optional parameters. 
  8. * @opt_param bool tree 
  9. * Whether the tree of sub accounts should be returned. 
  10. * @return Google_Service_AdSense_Account 
  11. */ 
  12. public function get($accountId, $optParams = array()) 
  13. $params = array('accountId' => $accountId); 
  14. $params = array_merge($params, $optParams); 
  15. return $this->call('get', array($params), "Google_Service_AdSense_Account"); 
  16. /** 
  17. * List all accounts available to this AdSense account. (accounts.listAccounts) 
  18. * @param array $optParams Optional parameters. 
  19. * @opt_param string pageToken 
  20. * A continuation token, used to page through accounts. To retrieve the next page, set this 
  21. * parameter to the value of "nextPageToken" from the previous response. 
  22. * @opt_param int maxResults 
  23. * The maximum number of accounts to include in the response, used for paging. 
  24. * @return Google_Service_AdSense_Accounts 
  25. */ 
  26. public function listAccounts($optParams = array()) 
  27. $params = array(); 
  28. $params = array_merge($params, $optParams); 
  29. return $this->call('list', array($params), "Google_Service_AdSense_Accounts");