- HTTP request
- Path parameters
- Query parameters
- Request body
- Response body
- Authorization scopes
- Alert
- Severity
- Try it!
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 |
Required. The account which owns the collection of alerts. Format: accounts/{account} |
Query parameters
Parameters | |
---|---|
languageCode |
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
Response definition for the alerts list rpc.
If successful, the response body contains data with the following structure:
JSON representation |
---|
{
"alerts": [
{
object ( |
Fields | |
---|---|
alerts[] |
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 ( |
Fields | |
---|---|
name |
Output only. Resource name of the alert. Format: accounts/{account}/alerts/{alert} |
severity |
Output only. Severity of this alert. |
message |
Output only. The localized alert message. This may contain HTML markup, such as phrase elements or links. |
type |
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. |