REST Resource: countries

  • The Country resource provides information about countries targetable by ads, including their ID, name, country code, SSL support, and resource type.

  • This resource can be accessed using methods to retrieve a specific country by its ID or a list of all available countries.

  • A country is identified by a unique DART ID and provides essential details like name, country code, and whether it supports secure ad serving.

Resource: Country

Contains information about a country that can be targeted by ads.

JSON representation
{
  "dartId": string,
  "name": string,
  "countryCode": string,
  "sslEnabled": boolean,
  "kind": string
}
Fields
dartId

string (int64 format)

DART ID of this country. This is the ID used for targeting and generating reports.

name

string

Name of this country.

countryCode

string

Country code.

sslEnabled

boolean

Whether ad serving supports secure servers in this country.

kind

string

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

"dfareporting#country"

.

Methods

get

Gets one country by ID.

list

Retrieves a list of countries.