Google_Service_AdExchangeBuyer_Creatives_Resource

The "creatives" collection of methods.

Defined (1)

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

/vendor/google/apiclient/src/Google/Service/AdExchangeBuyer.php  
  1. class Google_Service_AdExchangeBuyer_Creatives_Resource extends Google_Service_Resource 
  2.  
  3. /** 
  4. * Add a deal id association for the creative. (creatives.addDeal) 
  5. * @param int $accountId The id for the account that will serve this creative. 
  6. * @param string $buyerCreativeId The buyer-specific id for this creative. 
  7. * @param string $dealId The id of the deal id to associate with this creative. 
  8. * @param array $optParams Optional parameters. 
  9. */ 
  10. public function addDeal($accountId, $buyerCreativeId, $dealId, $optParams = array()) 
  11. $params = array('accountId' => $accountId, 'buyerCreativeId' => $buyerCreativeId, 'dealId' => $dealId); 
  12. $params = array_merge($params, $optParams); 
  13. return $this->call('addDeal', array($params)); 
  14.  
  15. /** 
  16. * Gets the status for a single creative. A creative will be available 30-40 
  17. * minutes after submission. (creatives.get) 
  18. * @param int $accountId The id for the account that will serve this creative. 
  19. * @param string $buyerCreativeId The buyer-specific id for this creative. 
  20. * @param array $optParams Optional parameters. 
  21. * @return Google_Service_AdExchangeBuyer_Creative 
  22. */ 
  23. public function get($accountId, $buyerCreativeId, $optParams = array()) 
  24. $params = array('accountId' => $accountId, 'buyerCreativeId' => $buyerCreativeId); 
  25. $params = array_merge($params, $optParams); 
  26. return $this->call('get', array($params), "Google_Service_AdExchangeBuyer_Creative"); 
  27.  
  28. /** 
  29. * Submit a new creative. (creatives.insert) 
  30. * @param Google_Creative $postBody 
  31. * @param array $optParams Optional parameters. 
  32. * @return Google_Service_AdExchangeBuyer_Creative 
  33. */ 
  34. public function insert(Google_Service_AdExchangeBuyer_Creative $postBody, $optParams = array()) 
  35. $params = array('postBody' => $postBody); 
  36. $params = array_merge($params, $optParams); 
  37. return $this->call('insert', array($params), "Google_Service_AdExchangeBuyer_Creative"); 
  38.  
  39. /** 
  40. * Retrieves a list of the authenticated user's active creatives. A creative 
  41. * will be available 30-40 minutes after submission. (creatives.listCreatives) 
  42. * @param array $optParams Optional parameters. 
  43. * @opt_param int accountId When specified, only creatives for the given account 
  44. * ids are returned. 
  45. * @opt_param string buyerCreativeId When specified, only creatives for the 
  46. * given buyer creative ids are returned. 
  47. * @opt_param string dealsStatusFilter When specified, only creatives having the 
  48. * given deals status are returned. 
  49. * @opt_param string maxResults Maximum number of entries returned on one result 
  50. * page. If not set, the default is 100. Optional. 
  51. * @opt_param string openAuctionStatusFilter When specified, only creatives 
  52. * having the given open auction status are returned. 
  53. * @opt_param string pageToken A continuation token, used to page through ad 
  54. * clients. To retrieve the next page, set this parameter to the value of 
  55. * "nextPageToken" from the previous response. Optional. 
  56. * @return Google_Service_AdExchangeBuyer_CreativesList 
  57. */ 
  58. public function listCreatives($optParams = array()) 
  59. $params = array(); 
  60. $params = array_merge($params, $optParams); 
  61. return $this->call('list', array($params), "Google_Service_AdExchangeBuyer_CreativesList"); 
  62.  
  63. /** 
  64. * Remove a deal id associated with the creative. (creatives.removeDeal) 
  65. * @param int $accountId The id for the account that will serve this creative. 
  66. * @param string $buyerCreativeId The buyer-specific id for this creative. 
  67. * @param string $dealId The id of the deal id to disassociate with this 
  68. * creative. 
  69. * @param array $optParams Optional parameters. 
  70. */ 
  71. public function removeDeal($accountId, $buyerCreativeId, $dealId, $optParams = array()) 
  72. $params = array('accountId' => $accountId, 'buyerCreativeId' => $buyerCreativeId, 'dealId' => $dealId); 
  73. $params = array_merge($params, $optParams); 
  74. return $this->call('removeDeal', array($params));