GoogleGAL_Service_AdSenseHost_Urlchannels_Resource

The "urlchannels" collection of methods.

Defined (1)

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

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