google_UrlchannelsServiceResource

The "urlchannels" collection of methods.

Defined (3)

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

/google-api/src/contrib/Google_AdExchangeSellerService.php  
  1. class Google_UrlchannelsServiceResource extends Google_ServiceResource { 
  2.  
  3.  
  4. /** 
  5. * List all URL channels in the specified ad client for this Ad Exchange account. (urlchannels.list) 
  6. * @param string $adClientId Ad client for which to list URL channels. 
  7. * @param array $optParams Optional parameters. 
  8. * @opt_param string maxResults The maximum number of URL channels to include in the response, used for paging. 
  9. * @opt_param string pageToken A continuation token, used to page through URL channels. To retrieve the next page, set this parameter to the value of "nextPageToken" from the previous response. 
  10. * @return Google_UrlChannels 
  11. */ 
  12. public function listUrlchannels($adClientId, $optParams = array()) { 
  13. $params = array('adClientId' => $adClientId); 
  14. $params = array_merge($params, $optParams); 
  15. $data = $this->__call('list', array($params)); 
  16. if ($this->useObjects()) { 
  17. return new Google_UrlChannels($data); 
  18. } else { 
  19. return $data; 
/google-api/src/contrib/Google_AdsensehostService.php  
  1. class Google_UrlchannelsServiceResource extends Google_ServiceResource { 
  2.  
  3.  
  4. /** 
  5. * Delete a URL channel from the host AdSense account. (urlchannels.delete) 
  6. * @param string $adClientId Ad client from which to delete the URL channel. 
  7. * @param string $urlChannelId URL channel to delete. 
  8. * @param array $optParams Optional parameters. 
  9. * @return Google_UrlChannel 
  10. */ 
  11. public function delete($adClientId, $urlChannelId, $optParams = array()) { 
  12. $params = array('adClientId' => $adClientId, 'urlChannelId' => $urlChannelId); 
  13. $params = array_merge($params, $optParams); 
  14. $data = $this->__call('delete', array($params)); 
  15. if ($this->useObjects()) { 
  16. return new Google_UrlChannel($data); 
  17. } else { 
  18. return $data; 
  19. /** 
  20. * Add a new URL channel to the host AdSense account. (urlchannels.insert) 
  21. * @param string $adClientId Ad client to which the new URL channel will be added. 
  22. * @param Google_UrlChannel $postBody 
  23. * @param array $optParams Optional parameters. 
  24. * @return Google_UrlChannel 
  25. */ 
  26. public function insert($adClientId, Google_UrlChannel $postBody, $optParams = array()) { 
  27. $params = array('adClientId' => $adClientId, 'postBody' => $postBody); 
  28. $params = array_merge($params, $optParams); 
  29. $data = $this->__call('insert', array($params)); 
  30. if ($this->useObjects()) { 
  31. return new Google_UrlChannel($data); 
  32. } else { 
  33. return $data; 
  34. /** 
  35. * List all host URL channels in the host AdSense account. (urlchannels.list) 
  36. * @param string $adClientId Ad client for which to list URL channels. 
  37. * @param array $optParams Optional parameters. 
  38. * @opt_param string maxResults The maximum number of URL channels to include in the response, used for paging. 
  39. * @opt_param string pageToken A continuation token, used to page through URL channels. To retrieve the next page, set this parameter to the value of "nextPageToken" from the previous response. 
  40. * @return Google_UrlChannels 
  41. */ 
  42. public function listUrlchannels($adClientId, $optParams = array()) { 
  43. $params = array('adClientId' => $adClientId); 
  44. $params = array_merge($params, $optParams); 
  45. $data = $this->__call('list', array($params)); 
  46. if ($this->useObjects()) { 
  47. return new Google_UrlChannels($data); 
  48. } else { 
  49. return $data; 
/google-api/src/contrib/Google_AdsenseService.php  
  1. class Google_UrlchannelsServiceResource extends Google_ServiceResource { 
  2.  
  3.  
  4. /** 
  5. * List all URL channels in the specified ad client for this AdSense account. (urlchannels.list) 
  6. * @param string $adClientId Ad client for which to list URL channels. 
  7. * @param array $optParams Optional parameters. 
  8. * @opt_param int maxResults The maximum number of URL channels to include in the response, used for paging. 
  9. * @opt_param string pageToken A continuation token, used to page through URL channels. To retrieve the next page, set this parameter to the value of "nextPageToken" from the previous response. 
  10. * @return Google_UrlChannels 
  11. */ 
  12. public function listUrlchannels($adClientId, $optParams = array()) { 
  13. $params = array('adClientId' => $adClientId); 
  14. $params = array_merge($params, $optParams); 
  15. $data = $this->__call('list', array($params)); 
  16. if ($this->useObjects()) { 
  17. return new Google_UrlChannels($data); 
  18. } else { 
  19. return $data;