Google_Service_AdSense_AccountsSavedadstyles_Resource

The "savedadstyles" 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_AccountsSavedadstyles_Resource extends Google_Service_Resource 
  2.  
  3. /** 
  4. * List a specific saved ad style for the specified account. (savedadstyles.get) 
  5. * @param string $accountId Account for which to get the saved ad style. 
  6. * @param string $savedAdStyleId Saved ad style to retrieve. 
  7. * @param array $optParams Optional parameters. 
  8. * @return Google_Service_AdSense_SavedAdStyle 
  9. */ 
  10. public function get($accountId, $savedAdStyleId, $optParams = array()) 
  11. $params = array('accountId' => $accountId, 'savedAdStyleId' => $savedAdStyleId); 
  12. $params = array_merge($params, $optParams); 
  13. return $this->call('get', array($params), "Google_Service_AdSense_SavedAdStyle"); 
  14.  
  15. /** 
  16. * List all saved ad styles in the specified account. 
  17. * (savedadstyles.listAccountsSavedadstyles) 
  18. * @param string $accountId Account for which to list saved ad styles. 
  19. * @param array $optParams Optional parameters. 
  20. * @opt_param int maxResults The maximum number of saved ad styles to include in 
  21. * the response, used for paging. 
  22. * @opt_param string pageToken A continuation token, used to page through saved 
  23. * ad styles. To retrieve the next page, set this parameter to the value of 
  24. * "nextPageToken" from the previous response. 
  25. * @return Google_Service_AdSense_SavedAdStyles 
  26. */ 
  27. public function listAccountsSavedadstyles($accountId, $optParams = array()) 
  28. $params = array('accountId' => $accountId); 
  29. $params = array_merge($params, $optParams); 
  30. return $this->call('list', array($params), "Google_Service_AdSense_SavedAdStyles");