GoogleGAL_Service_AdExchangeBuyer_Creatives_Resource

The "creatives" collection of methods.

Defined (1)

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

/core/Google/Service/AdExchangeBuyer.php  
  1. class GoogleGAL_Service_AdExchangeBuyer_Creatives_Resource extends GoogleGAL_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 The id for the account that will serve this creative. 
  7. * @param string $buyerCreativeId The buyer-specific id for this creative. 
  8. * @param array $optParams Optional parameters. 
  9. * @return GoogleGAL_Service_AdExchangeBuyer_Creative 
  10. */ 
  11. public function get($accountId, $buyerCreativeId, $optParams = array()) 
  12. $params = array('accountId' => $accountId, 'buyerCreativeId' => $buyerCreativeId); 
  13. $params = array_merge($params, $optParams); 
  14. return $this->call('get', array($params), "GoogleGAL_Service_AdExchangeBuyer_Creative"); 
  15.  
  16. /** 
  17. * Submit a new creative. (creatives.insert) 
  18. * @param GoogleGAL_Creative $postBody 
  19. * @param array $optParams Optional parameters. 
  20. * @return GoogleGAL_Service_AdExchangeBuyer_Creative 
  21. */ 
  22. public function insert(GoogleGAL_Service_AdExchangeBuyer_Creative $postBody, $optParams = array()) 
  23. $params = array('postBody' => $postBody); 
  24. $params = array_merge($params, $optParams); 
  25. return $this->call('insert', array($params), "GoogleGAL_Service_AdExchangeBuyer_Creative"); 
  26.  
  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 When specified, only creatives having the 
  32. * given status are returned. 
  33. * @opt_param string pageToken A continuation token, used to page through ad 
  34. * clients. To retrieve the next page, set this parameter to the value of 
  35. * "nextPageToken" from the previous response. Optional. 
  36. * @opt_param string maxResults Maximum number of entries returned on one result 
  37. * page. If not set, the default is 100. Optional. 
  38. * @opt_param string buyerCreativeId When specified, only creatives for the 
  39. * given buyer creative ids are returned. 
  40. * @opt_param int accountId When specified, only creatives for the given account 
  41. * ids are returned. 
  42. * @return GoogleGAL_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), "GoogleGAL_Service_AdExchangeBuyer_CreativesList");