Google_Service_AdSense_AccountsAlerts_Resource

The "alerts" collection of methods.

Defined (1)

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

/lib/Google/Service/AdSense.php  
  1. class Google_Service_AdSense_AccountsAlerts_Resource extends Google_Service_Resource 
  2.  
  3. /** 
  4. * Dismiss (delete) the specified alert from the specified publisher AdSense 
  5. * account. (alerts.delete) 
  6. * @param string $accountId 
  7. * Account which contains the ad unit. 
  8. * @param string $alertId 
  9. * Alert to delete. 
  10. * @param array $optParams Optional parameters. 
  11. */ 
  12. public function delete($accountId, $alertId, $optParams = array()) 
  13. $params = array('accountId' => $accountId, 'alertId' => $alertId); 
  14. $params = array_merge($params, $optParams); 
  15. return $this->call('delete', array($params)); 
  16. /** 
  17. * List the alerts for the specified AdSense account. 
  18. * (alerts.listAccountsAlerts) 
  19. * @param string $accountId 
  20. * Account for which to retrieve the alerts. 
  21. * @param array $optParams Optional parameters. 
  22. * @opt_param string locale 
  23. * The locale to use for translating alert messages. The account locale will be used if this is not 
  24. * supplied. The AdSense default (English) will be used if the supplied locale is invalid or 
  25. * unsupported. 
  26. * @return Google_Service_AdSense_Alerts 
  27. */ 
  28. public function listAccountsAlerts($accountId, $optParams = array()) 
  29. $params = array('accountId' => $accountId); 
  30. $params = array_merge($params, $optParams); 
  31. return $this->call('list', array($params), "Google_Service_AdSense_Alerts");