google_PreferreddealsServiceResource

The "preferreddeals" collection of methods.

Defined (1)

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

/src/contrib/Google_AdExchangeSellerService.php  
  1. class google_PreferreddealsServiceResource extends Google_ServiceResource { 
  2.  
  3. /** 
  4. * Get information about the selected Ad Exchange Preferred Deal. 
  5. * (preferreddeals.get) 
  6. * @param string $dealId Preferred deal to get information about. 
  7. * @param array $optParams Optional parameters. 
  8. * @return google_PreferredDeal 
  9. */ 
  10. public function get($dealId, $optParams = array()) { 
  11. $params = array('dealId' => $dealId); 
  12. $params = array_merge($params, $optParams); 
  13. $data = $this->__call('get', array($params)); 
  14. if ($this->useObjects()) { 
  15. return new google_PreferredDeal($data); 
  16. } else { 
  17. return $data; 
  18. /** 
  19. * List the preferred deals for this Ad Exchange account. (preferreddeals.list) 
  20. * @param array $optParams Optional parameters. 
  21. * @return google_PreferredDeals 
  22. */ 
  23. public function listPreferreddeals($optParams = array()) { 
  24. $params = array(); 
  25. $params = array_merge($params, $optParams); 
  26. $data = $this->__call('list', array($params)); 
  27. if ($this->useObjects()) { 
  28. return new google_PreferredDeals($data); 
  29. } else { 
  30. return $data;