language_constant doc inconsistent w constants service

515 views
Skip to first unread message

dhmitc...@gmail.com

unread,
Sep 30, 2021, 10:34:26 AM9/30/21
to AdWords API and Google Ads API Forum
In https://developers.google.com/google-ads/api/fields/v8/language_constant?hl=en it lists locale looking strings as valid values (e.g., "en_US") but the constant service https://developers.google.com/adwords/api/docs/appendix/codes-formats#languages returns a much smaller list wihout country variants. Which value set does campaign.language accept? (https://developers.google.com/google-ads/api/reference/rpc/v8/CampaignCriterion)

Google Ads API Forum Advisor

unread,
Oct 1, 2021, 5:41:44 AM10/1/21
to dhmitc...@gmail.com, adwor...@googlegroups.com

Hi,

Thanks for reaching out to us.

If you are looking for the correct value that you can set for the LanguageInfo, then you may follow the format for the resource name as language_constant.resource_name in language_constant report. Then, use the criterion ID available for language targeting in this guide.

To give you an example, to target English language, you can set 'languageConstants/1000'.

Regards,

Google Logo
Yasar
Google Ads API Team
 


ref:_00D1U1174p._5004Q2OVVj7:ref
Reply all
Reply to author
Forward
0 new messages