# AdSense Management API . accounts . alerts

## Instance Methods

Close httplib2 connections.

Lists all the alerts available in an account.

### Method Details

`close()`

    Close httplib2 connections.

`list(parent, languageCode=None, x__xgafv=None)`

    Lists all the alerts available in an account.

    Args:
      parent: string, Required. The account which owns the collection of alerts. Format: accounts/{account} (required)
      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](https://en.wikipedia.org/wiki/IETF_language_tag).
      x__xgafv: string, V1 error format.
        Allowed values
          1 - v1 error format
          2 - v2 error format

    Returns:
      An object of the form:

        { # Response definition for the alerts list rpc.
      "alerts": [ # The alerts returned in this list response.
        { # Representation of an alert.
          "message": "A String", # Output only. The localized alert message. This may contain HTML markup, such as phrase elements or links.
          "name": "A String", # Resource name of the alert. Format: accounts/{account}/alerts/{alert}
          "severity": "A String", # Output only. Severity of this alert.
          "type": "A 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".
        },
      ],
    }