Google_DirectDealsServiceResource

The "directDeals" collection of methods.

Defined (1)

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

/inc/google-api-php-client/src/contrib/Google_AdexchangebuyerService.php  
  1. class Google_DirectDealsServiceResource extends Google_ServiceResource { 
  2.  
  3.  
  4. /** 
  5. * Retrieves the authenticated user's list of direct deals. (directDeals.list) 
  6. * @param array $optParams Optional parameters. 
  7. * @return Google_DirectDealsList 
  8. */ 
  9. public function listDirectDeals($optParams = array()) { 
  10. $params = array(); 
  11. $params = array_merge($params, $optParams); 
  12. $data = $this->__call('list', array($params)); 
  13. if ($this->useObjects()) { 
  14. return new Google_DirectDealsList($data); 
  15. } else { 
  16. return $data; 
  17. /** 
  18. * Gets one direct deal by ID. (directDeals.get) 
  19. * @param string $id The direct deal id 
  20. * @param array $optParams Optional parameters. 
  21. * @return Google_DirectDeal 
  22. */ 
  23. public function get($id, $optParams = array()) { 
  24. $params = array('id' => $id); 
  25. $params = array_merge($params, $optParams); 
  26. $data = $this->__call('get', array($params)); 
  27. if ($this->useObjects()) { 
  28. return new Google_DirectDeal($data); 
  29. } else { 
  30. return $data;