LanguageTargeting
Stay organized with collections
Save and categorize content based on your preferences.
JSON representation |
{
"languages": [
{
object (Language )
}
]
} |
Fields |
languages[] |
object (Language )
Languages that this ad targets. For each language only
languageId
is required. The other fields are populated automatically when the ad is inserted or updated.
|
Language
Contains information about a language that can be targeted by ads.
JSON representation |
{
"id": string,
"name": string,
"languageCode": string,
"kind": string
} |
Fields |
id |
string (int64 format)
Language ID of this language. This is the ID used for targeting and generating reports.
|
name |
string
Name of this language.
|
languageCode |
string
Format of language code is an ISO 639 two-letter language code optionally followed by an underscore followed by an ISO 3166 code. Examples are "en" for English or "zh_CN" for Simplified Chinese.
|
kind |
string
Identifies what kind of resource this is. Value: the fixed string
"dfareporting#language"
.
|
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\u003eLanguage targeting allows advertisers to target ads based on the language of the user's browser or operating system.\u003c/p\u003e\n"],["\u003cp\u003eLanguage targeting is defined by a list of languages, each identified by a unique \u003ccode\u003elanguageId\u003c/code\u003e.\u003c/p\u003e\n"],["\u003cp\u003eEach language object can include additional information such as name, language code, and kind, but only the \u003ccode\u003elanguageId\u003c/code\u003e is required for targeting.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003elanguageId\u003c/code\u003e is used for both targeting ads and generating reports.\u003c/p\u003e\n"],["\u003cp\u003eLanguage codes follow the ISO 639 two-letter format, optionally followed by an underscore and an ISO 3166 code for regional variations.\u003c/p\u003e\n"]]],[],null,["# LanguageTargeting\n\n- [JSON representation](#SCHEMA_REPRESENTATION)\n- [Language](#Language)\n - [JSON representation](#Language.SCHEMA_REPRESENTATION)\n\nLanguage Targeting.\n\n| JSON representation |\n|-------------------------------------------------------------------------------------------------------|\n| ``` { \"languages\": [ { object (/doubleclick-advertisers/rest/v4/LanguageTargeting#Language) } ] } ``` |\n\n| Fields ||\n|---------------|--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| `languages[]` | `object (`[Language](/doubleclick-advertisers/rest/v4/LanguageTargeting#Language)`)` Languages that this ad targets. For each language only `languageId` is required. The other fields are populated automatically when the ad is inserted or updated. |\n\nLanguage\n--------\n\nContains information about a language that can be targeted by ads.\n\n| JSON representation |\n|----------------------------------------------------------------------------------|\n| ``` { \"id\": string, \"name\": string, \"languageCode\": string, \"kind\": string } ``` |\n\n| Fields ||\n|------------------|-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| `id` | `string (`[int64](https://developers.google.com/discovery/v1/type-format)` format)` Language ID of this language. This is the ID used for targeting and generating reports. |\n| `name` | `string` Name of this language. |\n| `language``Code` | `string` Format of language code is an ISO 639 two-letter language code optionally followed by an underscore followed by an ISO 3166 code. Examples are \"en\" for English or \"zh_CN\" for Simplified Chinese. |\n| `kind` | `string` Identifies what kind of resource this is. Value: the fixed string `\"dfareporting#language\"` . |"]]