Google_Service_AdSense_Alerts_Resource

The "alerts" collection of methods.

Defined (1)

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

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