AI-generated Key Takeaways
-
Language targeting allows advertisers to target ads based on the language of the user's browser or operating system.
-
Language targeting is defined by a list of languages, each identified by a unique
languageId
. -
Each language object can include additional information such as name, language code, and kind, but only the
languageId
is required for targeting. -
The
languageId
is used for both targeting ads and generating reports. -
Language codes follow the ISO 639 two-letter format, optionally followed by an underscore and an ISO 3166 code for regional variations.
Language Targeting.
JSON representation |
---|
{
"languages": [
{
object ( |
Fields | |
---|---|
languages[] |
Languages that this ad targets. For each language only
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 |
Language ID of this language. This is the ID used for targeting and generating reports. |
name |
Name of this language. |
languageCode |
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 |
Identifies what kind of resource this is. Value: the fixed string
. |