How to create Campaign with startDate from different timezone

23 views
Skip to first unread message

An Le

unread,
Nov 25, 2024, 12:30:03 AM11/25/24
to Google Ads API and AdWords API Forum
Hi,

Is it possible to create campaign from a different timezone via gg ads API?
Let say, I'm in a UTC+7 timezone, current startDate will be 20241125. I want to create a campaign in UTC-8 timezone which current startDate will be 20241124.
When calling create campaign API from SDK client, I got error "Trying to modify a date into the past."

Google Ads API Forum Advisor

unread,
Nov 25, 2024, 7:25:07 AM11/25/24
to an...@knorex.com, adwor...@googlegroups.com
Hi,

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

It's not possible to create campaigns from a different timezone using the Google Ads API. You need to give the start date as a future date.

Also, I could see that you've encountered the "Trying to modify a date into the past." error, please share the complete API logs (request and response with request-id and request header) generated at your end so that we can investigate the issue further.

If you are using a client library and haven't enabled the logging yet, I would request you to enable logging for the specific client library that you are using. You can refer to the guides Java.NetPHPPythonRuby or Perl to enable logging at your end. For REST interface requests, you can enable logging via the curl command by using the -i flag.

You can send the details via Reply privately to the author option, or direct private reply to this email.
 
This message is in relation to case "ref:!00D1U01174p.!5004Q02vGluN:ref" (ADR-00276666)

Thanks,
 
Google Logo Google Ads API Team

Feedback
How was our support today?

rating1    rating2    rating3    rating4    rating5



Reply all
Reply to author
Forward
0 new messages