Method: subaccounts.get

  • This document outlines how to retrieve a single subaccount by its ID using an HTTP GET request.

  • The request requires a user profile ID and the specific subaccount ID as path parameters in the URL.

  • The request body should be empty when making this call.

  • A successful response will return a Subaccount object in the response body.

  • The request requires the https://www.googleapis.com/auth/dfatrafficking authorization scope.

Gets one subaccount by ID.

HTTP request

GET https://dfareporting.googleapis.com/dfareporting/v5/userprofiles/{profileId}/subaccounts/{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)

Subaccount ID.

Request body

The request body must be empty.

Response body

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

Authorization scopes

Requires the following OAuth scope:

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