Regarding Multiple Language and Location

75 views
Skip to first unread message

Pranav Kumar

unread,
Dec 20, 2023, 5:17:48 AM12/20/23
to Google Ads API and AdWords API Forum
Hi,

I would like to set multiple locations and multiple languages using GoogleAdsAPI but I am unable to do so by giving multiple locations in targeting in location_info. Kindly guide me how can I achieve this. 
Thanks In Advance!

Thanks & Regards,
Pranav

Google Ads API Forum Advisor

unread,
Dec 20, 2023, 10:26:07 AM12/20/23
to panik...@gmail.com, adwor...@googlegroups.com

Hi Pranav,

Thank you for reaching out to the Google Ads API support team.

By reviewing your concern, I understand that you want to set multiple locations and multiple languages using GoogleAdsAPI.

Please note that the Google Ads API mirrors the Google Ads UI. Kindly provide us with the uncropped UI screenshot where you want to set multiple locations and multiple languages using GoogleAdsAPI to assist you better.
 
This message is in relation to case "ref:!00D1U01174p.!5004Q02r2ooR:ref"

Thanks,
 
Google Logo Google Ads API Team


Pranav Kumar

unread,
Dec 21, 2023, 1:44:47 AM12/21/23
to Google Ads API and AdWords API Forum
Hi

Thanks for the quick reply. I want to set multiple locations and languages while creating search campaigns using GoogleAdsAPI. Here's the Screenshot:
Screenshot 2023-12-21 at 11.57.17 AM.png

Moreover, It would be great if you can told me the method how we can set location options.

Google Ads API Forum Advisor

unread,
Dec 21, 2023, 3:10:15 AM12/21/23
to panik...@gmail.com, adwor...@googlegroups.com
Hi Pranav,

Thank you for getting back to us.

I understand that you want to set multiple locations and languages while creating search campaigns using Google Ads API. I would suggest you to check our Criteria guide, you may create many LanguageInfo and LocationInfo criteria for each campaign. Here's our language_constant resource for supported languages and here's our sample code Search For Language And Carrier Constants. You can modify our Add Campaign Targeting Criteria to add multiple language criteria instead.

Hope this helps.

Pranav Kumar

unread,
Dec 21, 2023, 4:03:53 AM12/21/23
to Google Ads API and AdWords API Forum
Hi,

I have used this method only for setting the language and location but it is setting a single location as it is taking a single string of the location or language id but while giving multiple location ids it is not working. 

Google Ads API Forum Advisor

unread,
Dec 21, 2023, 8:56:42 AM12/21/23
to panik...@gmail.com, adwor...@googlegroups.com
Hi,


Thank you for getting back to us.

To investigate this issue further, could you please provide us with the complete API request and response logs with request-id and request header generated at your end for multiple location Id so that we can assist you better.

Google Ads API Forum Advisor

unread,
Dec 21, 2023, 8:59:23 AM12/21/23
to adwor...@googlegroups.com, panik...@gmail.com
Hi,

Thank you for getting back to us. Please ignore my previous response.


To investigate this issue further, could you please provide us with the complete API request and response logs with request-id and request header generated at your end for multiple location Id so that we can assist you better.
 
You can send the details via Reply privately to the author option, or direct private reply to this email.
Reply all
Reply to author
Forward
0 new messages