Google_Service_AdSenseHost_Urlchannels_Resource

The "urlchannels" collection of methods.

Defined (1)

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

/lib/vendor/google/apiclient/src/Google/Service/AdSenseHost.php  
  1. class Google_Service_AdSenseHost_Urlchannels_Resource extends Google_Service_Resource 
  2.  
  3. /** 
  4. * Delete a URL channel from the host AdSense account. (urlchannels.delete) 
  5. * @param string $adClientId 
  6. * Ad client from which to delete the URL channel. 
  7. * @param string $urlChannelId 
  8. * URL channel to delete. 
  9. * @param array $optParams Optional parameters. 
  10. * @return Google_Service_AdSenseHost_UrlChannel 
  11. */ 
  12. public function delete($adClientId, $urlChannelId, $optParams = array()) 
  13. $params = array('adClientId' => $adClientId, 'urlChannelId' => $urlChannelId); 
  14. $params = array_merge($params, $optParams); 
  15. return $this->call('delete', array($params), "Google_Service_AdSenseHost_UrlChannel"); 
  16. /** 
  17. * Add a new URL channel to the host AdSense account. (urlchannels.insert) 
  18. * @param string $adClientId 
  19. * Ad client to which the new URL channel will be added. 
  20. * @param Google_UrlChannel $postBody 
  21. * @param array $optParams Optional parameters. 
  22. * @return Google_Service_AdSenseHost_UrlChannel 
  23. */ 
  24. public function insert($adClientId, Google_Service_AdSenseHost_UrlChannel $postBody, $optParams = array()) 
  25. $params = array('adClientId' => $adClientId, 'postBody' => $postBody); 
  26. $params = array_merge($params, $optParams); 
  27. return $this->call('insert', array($params), "Google_Service_AdSenseHost_UrlChannel"); 
  28. /** 
  29. * List all host URL channels in the host AdSense account. 
  30. * (urlchannels.listUrlchannels) 
  31. * @param string $adClientId 
  32. * Ad client for which to list URL channels. 
  33. * @param array $optParams Optional parameters. 
  34. * @opt_param string pageToken 
  35. * A continuation token, used to page through URL channels. To retrieve the next page, set this 
  36. * parameter to the value of "nextPageToken" from the previous response. 
  37. * @opt_param string maxResults 
  38. * The maximum number of URL channels to include in the response, used for paging. 
  39. * @return Google_Service_AdSenseHost_UrlChannels 
  40. */ 
  41. public function listUrlchannels($adClientId, $optParams = array()) 
  42. $params = array('adClientId' => $adClientId); 
  43. $params = array_merge($params, $optParams); 
  44. return $this->call('list', array($params), "Google_Service_AdSenseHost_UrlChannels");