Google_AccountsSavedadstylesServiceResource

The "savedadstyles" collection of methods.

Defined (1)

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

/src/contrib/Google_AdSenseService.php  
  1. class Google_AccountsSavedadstylesServiceResource extends Google_ServiceResource { 
  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_SavedAdStyle 
  9. */ 
  10. public function get($accountId, $savedAdStyleId, $optParams = array()) { 
  11. $params = array('accountId' => $accountId, '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 specified account. (savedadstyles.list) 
  20. * @param string $accountId Account for which to list saved ad styles. 
  21. * @param array $optParams Optional parameters. 
  22. * @opt_param int maxResults The maximum number of saved ad styles to include in the response, used for paging. 
  23. * @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. 
  24. * @return Google_SavedAdStyles 
  25. */ 
  26. public function listAccountsSavedadstyles($accountId, $optParams = array()) { 
  27. $params = array('accountId' => $accountId); 
  28. $params = array_merge($params, $optParams); 
  29. $data = $this->__call('list', array($params)); 
  30. if ($this->useObjects()) { 
  31. return new Google_SavedAdStyles($data); 
  32. } else { 
  33. return $data;