AI-generated Key Takeaways
-
LanguageTargeting is used to specify the languages that an ad targets.
-
The
languagesfield in the LanguageTargeting object contains an array of Language objects. -
The Language object contains information about a language, including its ID, name, language code, and kind.
-
The
languageIdis the required field when specifying a language for targeting.
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
. |