Hi,
Thank you for reaching out to the Google Ads API support team.
Upon checking your concern, I understand that you are getting a CANNOT_SET_DATE_TO_PAST error when creating a new search campaign via the Google Ads API. The error message "Trying to modify a date into the past" indicates a conflict with the date you've chosen. You might be provided past data as a campaign start date. Please check your campaign start date format (YYYY-MM-DD) and the date you provided for the start of the campaign.
If the issue still persists,please get back to us with complete API logs (request and response with request-id and request header) generated at your.
Kindly note that you have to enable logging if you are using a client library. You can refer to the guides Java, .Net, PHP, Python, Ruby 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 the Reply privately to the author option or a direct private reply to this email.
![]() |
Google Ads API Team |