LanguageTargeting

  • 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 (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"

.