Google_AccountsSavedadstylesServiceResource

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_AccountsSavedadstylesServiceResource extends Google_ServiceResource { 
  2.  
  3.  
  4. /** 
  5. * List a specific saved ad style for the specified account. (savedadstyles.get) 
  6. * @param string $accountId Account for which to get the saved ad style. 
  7. * @param string $savedAdStyleId Saved ad style to retrieve. 
  8. * @param array $optParams Optional parameters. 
  9. * @return Google_SavedAdStyle 
  10. */ 
  11. public function get($accountId, $savedAdStyleId, $optParams = array()) { 
  12. $params = array('accountId' => $accountId, 'savedAdStyleId' => $savedAdStyleId); 
  13. $params = array_merge($params, $optParams); 
  14. $data = $this->__call('get', array($params)); 
  15. if ($this->useObjects()) { 
  16. return new Google_SavedAdStyle($data); 
  17. } else { 
  18. return $data; 
  19. /** 
  20. * List all saved ad styles in the specified account. (savedadstyles.list) 
  21. * @param string $accountId Account for which to list saved ad styles. 
  22. * @param array $optParams Optional parameters. 
  23. * @opt_param int maxResults The maximum number of saved ad styles to include in the response, used for paging. 
  24. * @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. 
  25. * @return Google_SavedAdStyles 
  26. */ 
  27. public function listAccountsSavedadstyles($accountId, $optParams = array()) { 
  28. $params = array('accountId' => $accountId); 
  29. $params = array_merge($params, $optParams); 
  30. $data = $this->__call('list', array($params)); 
  31. if ($this->useObjects()) { 
  32. return new Google_SavedAdStyles($data); 
  33. } else { 
  34. return $data;