Google_Service_AdExchangeBuyer_Creatives_Resource

The "creatives" collection of methods.

Defined (1)

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

/lib/Google/Service/AdExchangeBuyer.php  
  1. class Google_Service_AdExchangeBuyer_Creatives_Resource extends Google_Service_Resource 
  2.  
  3. /** 
  4. * Gets the status for a single creative. A creative will be available 30-40 
  5. * minutes after submission. (creatives.get) 
  6. * @param int $accountId 
  7. * The id for the account that will serve this creative. 
  8. * @param string $buyerCreativeId 
  9. * The buyer-specific id for this creative. 
  10. * @param array $optParams Optional parameters. 
  11. * @return Google_Service_AdExchangeBuyer_Creative 
  12. */ 
  13. public function get($accountId, $buyerCreativeId, $optParams = array()) 
  14. $params = array('accountId' => $accountId, 'buyerCreativeId' => $buyerCreativeId); 
  15. $params = array_merge($params, $optParams); 
  16. return $this->call('get', array($params), "Google_Service_AdExchangeBuyer_Creative"); 
  17. /** 
  18. * Submit a new creative. (creatives.insert) 
  19. * @param Google_Creative $postBody 
  20. * @param array $optParams Optional parameters. 
  21. * @return Google_Service_AdExchangeBuyer_Creative 
  22. */ 
  23. public function insert(Google_Service_AdExchangeBuyer_Creative $postBody, $optParams = array()) 
  24. $params = array('postBody' => $postBody); 
  25. $params = array_merge($params, $optParams); 
  26. return $this->call('insert', array($params), "Google_Service_AdExchangeBuyer_Creative"); 
  27. /** 
  28. * Retrieves a list of the authenticated user's active creatives. A creative 
  29. * will be available 30-40 minutes after submission. (creatives.listCreatives) 
  30. * @param array $optParams Optional parameters. 
  31. * @opt_param string statusFilter 
  32. * When specified, only creatives having the given status are returned. 
  33. * @opt_param string pageToken 
  34. * A continuation token, used to page through ad clients. To retrieve the next page, set this 
  35. * parameter to the value of "nextPageToken" from the previous response. Optional. 
  36. * @opt_param string maxResults 
  37. * Maximum number of entries returned on one result page. If not set, the default is 100. Optional. 
  38. * @opt_param string buyerCreativeId 
  39. * When specified, only creatives for the given buyer creative ids are returned. 
  40. * @opt_param int accountId 
  41. * When specified, only creatives for the given account ids are returned. 
  42. * @return Google_Service_AdExchangeBuyer_CreativesList 
  43. */ 
  44. public function listCreatives($optParams = array()) 
  45. $params = array(); 
  46. $params = array_merge($params, $optParams); 
  47. return $this->call('list', array($params), "Google_Service_AdExchangeBuyer_CreativesList");