AI-generated Key Takeaways
-
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/dfatraffickingOAuth 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 |
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 ( |
| Fields | |
|---|---|
kind |
Identifies what kind of resource this is. Value: the fixed string
. |
countries[] |
Country collection. |
Authorization scopes
Requires the following OAuth scope:
https://www.googleapis.com/auth/dfatrafficking