campaign start date timezone issue in MCC account

47 views
Skip to first unread message

Krishnadas D

unread,
Apr 13, 2021, 10:00:14 AM4/13/21
to AdWords API and Google Ads API Forum
Hi i am using google ads API for getting campaign start date and end date , 
my account is MCC account , so i am getting date with my MCC account timeZone

but i need to get time with child account time zone , how can i get like that ? 

Google Ads API Forum Advisor Prod

unread,
Apr 14, 2021, 1:40:24 AM4/14/21
to kri...@skills-agency.com, adwor...@googlegroups.com
Hi Krishnadas,

Your API requests should return date/timezone related to the account specified in your API request header. If you wish to extract the exact date/timezone of a specific account, you would need to perform API requests using that account instead.

An alternative would be to implement locally a timezone converter, once you have taken note of the date/timezone of each of the sub/client accounts under your MCC. I hope this helps.

Best regards,

Google Logo
Peter Laurence Napa Oliquino
Google Ads API Team
 


ref:_00D1U1174p._5004Q2FY7x7:ref

Krishnadas D

unread,
Apr 14, 2021, 2:09:22 AM4/14/21
to AdWords API and Google Ads API Forum
i tried to implement locally a timezone converter, but for that i need to know the time when campaign start and end . 
can i know which time normally campaign start and end ?  

Google Ads API Forum Advisor Prod

unread,
Apr 14, 2021, 6:43:52 PM4/14/21
to kri...@skills-agency.com, adwor...@googlegroups.com
Hello,

If you are making a request targeting a child account, but authenticating from a managing account, you must specify the managing account customer ID as the login-customer-ID, and specify the target child customer ID in the payload. You can then retrieve campaign information from the child account. For example, you can query the campaign resource for campaign.start_date and campaign.end_date. However, these attributes only give the date, not the time.

Regards,
Matt
Google Ads API Team

Google Logo
Matt
Google Ads API Team
 

 

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