Google_Service_AdExchangeBuyer_Budget_Resource

The "budget" collection of methods.

Defined (1)

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

/includes/api-libs/Google/Service/AdExchangeBuyer.php  
  1. class Google_Service_AdExchangeBuyer_Budget_Resource extends Google_Service_Resource 
  2.  
  3. /** 
  4. * Returns the budget information for the adgroup specified by the accountId and 
  5. * billingId. (budget.get) 
  6. * @param string $accountId The account id to get the budget information for. 
  7. * @param string $billingId The billing id to get the budget information for. 
  8. * @param array $optParams Optional parameters. 
  9. * @return Google_Service_AdExchangeBuyer_Budget 
  10. */ 
  11. public function get($accountId, $billingId, $optParams = array()) 
  12. $params = array('accountId' => $accountId, 'billingId' => $billingId); 
  13. $params = array_merge($params, $optParams); 
  14. return $this->call('get', array($params), "Google_Service_AdExchangeBuyer_Budget"); 
  15.  
  16. /** 
  17. * Updates the budget amount for the budget of the adgroup specified by the 
  18. * accountId and billingId, with the budget amount in the request. This method 
  19. * supports patch semantics. (budget.patch) 
  20. * @param string $accountId The account id associated with the budget being 
  21. * updated. 
  22. * @param string $billingId The billing id associated with the budget being 
  23. * updated. 
  24. * @param Google_Budget $postBody 
  25. * @param array $optParams Optional parameters. 
  26. * @return Google_Service_AdExchangeBuyer_Budget 
  27. */ 
  28. public function patch($accountId, $billingId, Google_Service_AdExchangeBuyer_Budget $postBody, $optParams = array()) 
  29. $params = array('accountId' => $accountId, 'billingId' => $billingId, 'postBody' => $postBody); 
  30. $params = array_merge($params, $optParams); 
  31. return $this->call('patch', array($params), "Google_Service_AdExchangeBuyer_Budget"); 
  32.  
  33. /** 
  34. * Updates the budget amount for the budget of the adgroup specified by the 
  35. * accountId and billingId, with the budget amount in the request. 
  36. * (budget.update) 
  37. * @param string $accountId The account id associated with the budget being 
  38. * updated. 
  39. * @param string $billingId The billing id associated with the budget being 
  40. * updated. 
  41. * @param Google_Budget $postBody 
  42. * @param array $optParams Optional parameters. 
  43. * @return Google_Service_AdExchangeBuyer_Budget 
  44. */ 
  45. public function update($accountId, $billingId, Google_Service_AdExchangeBuyer_Budget $postBody, $optParams = array()) 
  46. $params = array('accountId' => $accountId, 'billingId' => $billingId, 'postBody' => $postBody); 
  47. $params = array_merge($params, $optParams); 
  48. return $this->call('update', array($params), "Google_Service_AdExchangeBuyer_Budget");