Google_Service_AdExchangeSeller_AccountsPreferreddeals_Resource

The "preferreddeals" collection of methods.

Defined (1)

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

/vendor/google/apiclient/src/Google/Service/AdExchangeSeller.php  
  1. class Google_Service_AdExchangeSeller_AccountsPreferreddeals_Resource extends Google_Service_Resource 
  2.  
  3. /** 
  4. * Get information about the selected Ad Exchange Preferred Deal. 
  5. * (preferreddeals.get) 
  6. * @param string $accountId Account owning the deal. 
  7. * @param string $dealId Preferred deal to get information about. 
  8. * @param array $optParams Optional parameters. 
  9. * @return Google_Service_AdExchangeSeller_PreferredDeal 
  10. */ 
  11. public function get($accountId, $dealId, $optParams = array()) 
  12. $params = array('accountId' => $accountId, 'dealId' => $dealId); 
  13. $params = array_merge($params, $optParams); 
  14. return $this->call('get', array($params), "Google_Service_AdExchangeSeller_PreferredDeal"); 
  15.  
  16. /** 
  17. * List the preferred deals for this Ad Exchange account. 
  18. * (preferreddeals.listAccountsPreferreddeals) 
  19. * @param string $accountId Account owning the deals. 
  20. * @param array $optParams Optional parameters. 
  21. * @return Google_Service_AdExchangeSeller_PreferredDeals 
  22. */ 
  23. public function listAccountsPreferreddeals($accountId, $optParams = array()) 
  24. $params = array('accountId' => $accountId); 
  25. $params = array_merge($params, $optParams); 
  26. return $this->call('list', array($params), "Google_Service_AdExchangeSeller_PreferredDeals");