Method: countries.list

  • This document provides details on how to retrieve a list of countries using an HTTP GET request.

  • The request URL includes a profileId path parameter, which is a user profile ID associated with the request.

  • The request body must be empty.

  • The response body contains a JSON object with kind and countries fields, where countries is a collection of Country objects.

  • The request requires the https://www.googleapis.com/auth/dfatrafficking authorization 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