Google_Service_AdSense_Accounts_Resource

The "accounts" collection of methods.

Defined (1)

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

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