GoogleGAL_Service_AdSense_AccountsAlerts_Resource

The "alerts" collection of methods.

Defined (1)

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

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