Google_Service_AdExchangeSeller_Adunits_Resource

The "adunits" collection of methods.

Defined (1)

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

/lib/Google/Service/AdExchangeSeller.php  
  1. class Google_Service_AdExchangeSeller_Adunits_Resource extends Google_Service_Resource 
  2.  
  3. /** 
  4. * Gets the specified ad unit in the specified ad client. (adunits.get) 
  5. * @param string $adClientId 
  6. * Ad client for which to get the ad unit. 
  7. * @param string $adUnitId 
  8. * Ad unit to retrieve. 
  9. * @param array $optParams Optional parameters. 
  10. * @return Google_Service_AdExchangeSeller_AdUnit 
  11. */ 
  12. public function get($adClientId, $adUnitId, $optParams = array()) 
  13. $params = array('adClientId' => $adClientId, 'adUnitId' => $adUnitId); 
  14. $params = array_merge($params, $optParams); 
  15. return $this->call('get', array($params), "Google_Service_AdExchangeSeller_AdUnit"); 
  16. /** 
  17. * List all ad units in the specified ad client for this Ad Exchange account. 
  18. * (adunits.listAdunits) 
  19. * @param string $adClientId 
  20. * Ad client for which to list ad units. 
  21. * @param array $optParams Optional parameters. 
  22. * @opt_param bool includeInactive 
  23. * Whether to include inactive ad units. Default: true. 
  24. * @opt_param string pageToken 
  25. * A continuation token, used to page through ad units. To retrieve the next page, set this 
  26. * parameter to the value of "nextPageToken" from the previous response. 
  27. * @opt_param string maxResults 
  28. * The maximum number of ad units to include in the response, used for paging. 
  29. * @return Google_Service_AdExchangeSeller_AdUnits 
  30. */ 
  31. public function listAdunits($adClientId, $optParams = array()) 
  32. $params = array('adClientId' => $adClientId); 
  33. $params = array_merge($params, $optParams); 
  34. return $this->call('list', array($params), "Google_Service_AdExchangeSeller_AdUnits");