v1.4 of the AdSense Management API is now deprecated. This version will stop returning data on October 12, 2021. Please migrate to v2 as soon as possible.

Method: accounts.alerts.list

Lists all the alerts available in an account.

HTTP request

GET https://adsense.googleapis.com/v2/{parent=accounts/*}/alerts

The URL uses gRPC Transcoding syntax.

Path parameters

Parameters
parent

string

Required. The account which owns the collection of alerts. Format: accounts/{account}

Query parameters

Parameters
languageCode

string

The language to use for translating alert messages. If unspecified, this defaults to the user's display language.

If the given language is not supported, alerts will be returned in English.

The language is specified as an IETF BCP-47 language code.

Request body

The request body must be empty.

Response body

If successful, the response body contains data with the following structure:

Response definition for the alerts list rpc.

JSON representation
{
  "alerts": [
    {
      object (Alert)
    }
  ]
}
Fields
alerts[]

object (Alert)

The alerts returned in this list response.

Authorization Scopes

Requires one of the following OAuth scopes:

  • https://www.googleapis.com/auth/adsense
  • https://www.googleapis.com/auth/adsense.readonly

Alert

Representation of an alert.

JSON representation
{
  "name": string,
  "severity": enum (Severity),
  "message": string,
  "type": string
}
Fields
name

string

Resource name of the alert. Format: accounts/{account}/alerts/{alert}

severity

enum (Severity)

Output only. Severity of this alert.

message

string

Output only. The localized alert message. This may contain HTML markup, such as phrase elements or links.

type

string

Output only. Type of alert.

This identifies the broad type of this alert, and provides a stable machine-readable identifier that will not be translated.

For example, "payment-hold".

Severity

Severity of an alert.

Enums
SEVERITY_UNSPECIFIED Unspecified severity.
INFO Info.
WARNING Warning.
SEVERE Severe.