Google_Service_AdSense_Alerts_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_Alerts_Resource extends Google_Service_Resource 
  2.  
  3. /** 
  4. * Dismiss (delete) the specified alert from the publisher's AdSense account. 
  5. * (alerts.delete) 
  6. * @param string $alertId 
  7. * Alert to delete. 
  8. * @param array $optParams Optional parameters. 
  9. */ 
  10. public function delete($alertId, $optParams = array()) 
  11. $params = array('alertId' => $alertId); 
  12. $params = array_merge($params, $optParams); 
  13. return $this->call('delete', array($params)); 
  14. /** 
  15. * List the alerts for this AdSense account. (alerts.listAlerts) 
  16. * @param array $optParams Optional parameters. 
  17. * @opt_param string locale 
  18. * The locale to use for translating alert messages. The account locale will be used if this is not 
  19. * supplied. The AdSense default (English) will be used if the supplied locale is invalid or 
  20. * unsupported. 
  21. * @return Google_Service_AdSense_Alerts 
  22. */ 
  23. public function listAlerts($optParams = array()) 
  24. $params = array(); 
  25. $params = array_merge($params, $optParams); 
  26. return $this->call('list', array($params), "Google_Service_AdSense_Alerts");