Get timezone code for a list of countries

690 views
Skip to first unread message

fe...@dashbo.io

unread,
Jan 11, 2023, 1:50:14 PM1/11/23
to Google Ads API and AdWords API Forum
Hi, I need to bulk create many accounts. The input goes like this:

Account (GMT+1) Nigeria Time #1
Account (GMT+1) Nigeria Time #2
Account (GMT+1) Nigeria Time #3
Account (GMT+1) Nigeria Time #4
Account (GMT+1) Nigeria Time #5
Account (GMT+1) Nigeria Time #6
Account (GMT+02:00) Zambia Time #1
Account (GMT+02:00) Zambia Time #2
Account (GMT+02:00) Zambia Time #3
Account (GMT+02:00) Zambia Time #4
Account (GMT+02:00) Zambia Time #5
Account (GMT+02:00) Zambia Time #6
Account (GMT+03:00) Turkey Time #1
Account (GMT+03:00) Turkey Time #2
Account (GMT+03:00) Turkey Time #3
Account (GMT+03:00) Turkey Time #4
Account (GMT+03:00) Turkey Time #5
Account (GMT+03:00) Turkey Time #6
Account (GMT+04:00) Samara Time #1
Account (GMT+04:00) Samara Time #2
Account (GMT+04:00) Samara Time #3
Account (GMT+04:00) Samara Time #4
Account (GMT+04:00) Samara Time #5
Account (GMT+04:00) Samara Time #6
...
I so it goes...

I need to find which timezone use for each row but I can not find the way. For example "Nigeria" does not exists in the timezone list but it does exists in the UI 

nigeria.png

Can you help me with this please?

Thanks!!


Google Ads API Forum Advisor

unread,
Jan 11, 2023, 10:26:11 PM1/11/23
to fe...@dashbo.io, adwor...@googlegroups.com
Hi,

Thank you for reaching us out. I am Sherwin from Google Ads API support team. I hope that you are doing well today.

In Google Ads APi, for the timezone of Nigeria, you may use the timezone id (Africa/Lagos), for Zambia, you may use (Africa/Lusaka), for Turkey, you may use (Asia/Istanbul) and lastly for Samara, you may use (Europe/Samara).

Let us know what goes on your end.

Kind regards,
Google Logo
Sherwin Vincent
Google Ads API Team
 


ref:_00D1U1174p._5004Q2hxLEd:ref

fe...@dashbo.io

unread,
Jan 12, 2023, 8:35:35 AM1/12/23
to Google Ads API and AdWords API Forum
Hi Sherwin. Thanks for the reply.

i need to do this programmatically. This is for a proccess that will create many accounts. The list of accounts to create its an example of the input.

Can you come up with a method?

Thanks

Google Ads API Forum Advisor

unread,
Jan 12, 2023, 2:15:10 PM1/12/23
to fe...@dashbo.io, adwor...@googlegroups.com
Hi,

Thank you for your response.

The Google Ads API unfortunately does not have a report that returns all available timezones. You will need to download the CSV from here, and store the values into your local database, and then later reference it when creating your accounts.

I hope this helps.

Best regards,

Google Logo
Peter Laurence
Google Ads API Team
 


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