REST Resource: countries
Stay organized with collections
Save and categorize content based on your preferences.
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 |
|
Gets one country by ID. |
|
Retrieves a list of countries. |
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2024-10-16 UTC.
[null,null,["Last updated 2024-10-16 UTC."],[[["\u003cp\u003eThe Country resource provides information about countries targetable by ads, including their ID, name, country code, SSL support, and resource type.\u003c/p\u003e\n"],["\u003cp\u003eThis resource can be accessed using methods to retrieve a specific country by its ID or a list of all available countries.\u003c/p\u003e\n"],["\u003cp\u003eA country is identified by a unique DART ID and provides essential details like name, country code, and whether it supports secure ad serving.\u003c/p\u003e\n"]]],[],null,["# REST Resource: countries\n\n- [Resource: Country](#Country)\n - [JSON representation](#Country.SCHEMA_REPRESENTATION)\n- [Methods](#METHODS_SUMMARY)\n\nResource: Country\n-----------------\n\nContains information about a country that can be targeted by ads.\n\n| JSON representation |\n|------------------------------------------------------------------------------------------------------------|\n| ``` { \"dartId\": string, \"name\": string, \"countryCode\": string, \"sslEnabled\": boolean, \"kind\": string } ``` |\n\n| Fields ||\n|-----------------|------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| `dart``Id` | `string (`[int64](https://developers.google.com/discovery/v1/type-format)` format)` DART ID of this country. This is the ID used for targeting and generating reports. |\n| `name` | `string` Name of this country. |\n| `country``Code` | `string` Country code. |\n| `ssl``Enabled` | `boolean` Whether ad serving supports secure servers in this country. |\n| `kind` | `string` Identifies what kind of resource this is. Value: the fixed string `\"dfareporting#country\"` . |\n\n| Methods ------- ||\n|-------------------------------------------------------------|--------------------------------|\n| ### [get](/doubleclick-advertisers/rest/v4/countries/get) | Gets one country by ID. |\n| ### [list](/doubleclick-advertisers/rest/v4/countries/list) | Retrieves a list of countries. |"]]