Method: countries.list

  • This page describes how to retrieve a list of countries using a GET request to a specific URL with a required path parameter for the user profile ID.

  • The request body must be empty, and the successful response body contains a JSON object with a list of country objects.

  • This request requires authorization using the https://www.googleapis.com/auth/dfatrafficking OAuth scope.

Retrieves a list of countries.

HTTP request

GET https://dfareporting.googleapis.com/dfareporting/v5/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