Google_AccountsAlertsServiceResource

The "alerts" collection of methods.

Defined (1)

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

/src/contrib/Google_AdSenseService.php  
  1. class Google_AccountsAlertsServiceResource extends Google_ServiceResource { 
  2.  
  3. /** 
  4. * List the alerts for the specified AdSense account. (alerts.list) 
  5. * @param string $accountId Account for which to retrieve the alerts. 
  6. * @param array $optParams Optional parameters. 
  7. * @opt_param string locale The locale to use for translating alert messages. The account locale will be used if this is not supplied. The AdSense default (English) will be used if the supplied locale is invalid or unsupported. 
  8. * @return Google_Alerts 
  9. */ 
  10. public function listAccountsAlerts($accountId, $optParams = array()) { 
  11. $params = array('accountId' => $accountId); 
  12. $params = array_merge($params, $optParams); 
  13. $data = $this->__call('list', array($params)); 
  14. if ($this->useObjects()) { 
  15. return new Google_Alerts($data); 
  16. } else { 
  17. return $data;