Google_Service_AdExchangeBuyer_Marketplacedeals_Resource

The "marketplacedeals" 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_Marketplacedeals_Resource extends Google_Service_Resource 
  2.  
  3. /** 
  4. * Delete the specified deals from the proposal (marketplacedeals.delete) 
  5. * @param string $proposalId The proposalId to delete deals from. 
  6. * @param Google_DeleteOrderDealsRequest $postBody 
  7. * @param array $optParams Optional parameters. 
  8. * @return Google_Service_AdExchangeBuyer_DeleteOrderDealsResponse 
  9. */ 
  10. public function delete($proposalId, Google_Service_AdExchangeBuyer_DeleteOrderDealsRequest $postBody, $optParams = array()) 
  11. $params = array('proposalId' => $proposalId, 'postBody' => $postBody); 
  12. $params = array_merge($params, $optParams); 
  13. return $this->call('delete', array($params), "Google_Service_AdExchangeBuyer_DeleteOrderDealsResponse"); 
  14.  
  15. /** 
  16. * Add new deals for the specified proposal (marketplacedeals.insert) 
  17. * @param string $proposalId proposalId for which deals need to be added. 
  18. * @param Google_AddOrderDealsRequest $postBody 
  19. * @param array $optParams Optional parameters. 
  20. * @return Google_Service_AdExchangeBuyer_AddOrderDealsResponse 
  21. */ 
  22. public function insert($proposalId, Google_Service_AdExchangeBuyer_AddOrderDealsRequest $postBody, $optParams = array()) 
  23. $params = array('proposalId' => $proposalId, 'postBody' => $postBody); 
  24. $params = array_merge($params, $optParams); 
  25. return $this->call('insert', array($params), "Google_Service_AdExchangeBuyer_AddOrderDealsResponse"); 
  26.  
  27. /** 
  28. * List all the deals for a given proposal 
  29. * (marketplacedeals.listMarketplacedeals) 
  30. * @param string $proposalId The proposalId to get deals for. 
  31. * @param array $optParams Optional parameters. 
  32. * @return Google_Service_AdExchangeBuyer_GetOrderDealsResponse 
  33. */ 
  34. public function listMarketplacedeals($proposalId, $optParams = array()) 
  35. $params = array('proposalId' => $proposalId); 
  36. $params = array_merge($params, $optParams); 
  37. return $this->call('list', array($params), "Google_Service_AdExchangeBuyer_GetOrderDealsResponse"); 
  38.  
  39. /** 
  40. * Replaces all the deals in the proposal with the passed in deals 
  41. * (marketplacedeals.update) 
  42. * @param string $proposalId The proposalId to edit deals on. 
  43. * @param Google_EditAllOrderDealsRequest $postBody 
  44. * @param array $optParams Optional parameters. 
  45. * @return Google_Service_AdExchangeBuyer_EditAllOrderDealsResponse 
  46. */ 
  47. public function update($proposalId, Google_Service_AdExchangeBuyer_EditAllOrderDealsRequest $postBody, $optParams = array()) 
  48. $params = array('proposalId' => $proposalId, 'postBody' => $postBody); 
  49. $params = array_merge($params, $optParams); 
  50. return $this->call('update', array($params), "Google_Service_AdExchangeBuyer_EditAllOrderDealsResponse");