Method: accounts.get

  • Retrieves a single account using its unique ID.

  • Requires user profile ID and account ID as path parameters.

  • Employs an HTTP GET request with an empty request body.

  • Returns an Account object upon successful execution.

  • Needs dfatrafficking authorization scope for access.

Gets one account by ID.

HTTP request

GET https://dfareporting.googleapis.com/dfareporting/v4/userprofiles/{profileId}/accounts/{id}

The URL uses gRPC Transcoding syntax.

Path parameters

Parameters
profileId

string (int64 format)

User profile ID associated with this request.

id

string (int64 format)

Account ID.

Request body

The request body must be empty.

Response body

If successful, the response body contains an instance of Account.

Authorization scopes

Requires the following OAuth scope:

  • https://www.googleapis.com/auth/dfatrafficking