Page Summary
-
LanguageTargeting is used to target ads based on the language of the user.
-
The
languagesfield in LanguageTargeting is an array of Language objects. -
Each Language object contains fields such as
id,name,languageCode, andkind. -
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 . |

