Method: countries.list

  • Retrieves a list of countries associated with a specified user profile.

  • The request is made using an HTTP GET method to a specific endpoint with the profile ID as a path parameter.

  • An empty request body is required and the response includes a list of countries with their details in JSON format.

  • Authorization is necessary using the dfatrafficking scope.

Retrieves a list of countries.

HTTP request

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

The URL uses gRPC Transcoding syntax.

Path parameters

Parameters
profileId

string (int64 format)

User profile ID associated with this request.

Request body

The request body must be empty.

Response body

Country countries.list Response

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

JSON representation
{
  "kind": string,
  "countries": [
    {
      object (Country)
    }
  ]
}
Fields
kind

string

Identifies what kind of resource this is. Value: the fixed string

"dfareporting#countriesListResponse"

.

countries[]

object (Country)

Country collection.

Authorization scopes

Requires the following OAuth scope:

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