Google_SavedadstylesServiceResource

The "savedadstyles" collection of methods.

Defined (1)

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

/google-api/src/contrib/Google_AdsenseService.php  
  1. class Google_SavedadstylesServiceResource extends Google_ServiceResource { 
  2.  
  3.  
  4. /** 
  5. * Get a specific saved ad style from the user's account. (savedadstyles.get) 
  6. * @param string $savedAdStyleId Saved ad style to retrieve. 
  7. * @param array $optParams Optional parameters. 
  8. * @return Google_SavedAdStyle 
  9. */ 
  10. public function get($savedAdStyleId, $optParams = array()) { 
  11. $params = array('savedAdStyleId' => $savedAdStyleId); 
  12. $params = array_merge($params, $optParams); 
  13. $data = $this->__call('get', array($params)); 
  14. if ($this->useObjects()) { 
  15. return new Google_SavedAdStyle($data); 
  16. } else { 
  17. return $data; 
  18. /** 
  19. * List all saved ad styles in the user's account. (savedadstyles.list) 
  20. * @param array $optParams Optional parameters. 
  21. * @opt_param int maxResults The maximum number of saved ad styles to include in the response, used for paging. 
  22. * @opt_param string pageToken A continuation token, used to page through saved ad styles. To retrieve the next page, set this parameter to the value of "nextPageToken" from the previous response. 
  23. * @return Google_SavedAdStyles 
  24. */ 
  25. public function listSavedadstyles($optParams = array()) { 
  26. $params = array(); 
  27. $params = array_merge($params, $optParams); 
  28. $data = $this->__call('list', array($params)); 
  29. if ($this->useObjects()) { 
  30. return new Google_SavedAdStyles($data); 
  31. } else { 
  32. return $data;