Hello,
Over the last few days one of our users has been consistently receiving the following error when creating campaigns through the Batch Job API:
Some important context:
All campaign settings appear to be valid.
When we reproduce the exact same campaign setup in a different account, the campaign is created successfully without any issues.
The error only started occurring after upgrading to Google Ads API v20.
Before v20, we would see a different message:
Hi,
Thank you for reaching out to the Google Ads API support team.
As per provided information, I understand that you are encountering CAMPAIGN_AND_CAMPAIGN_ASSET_TRANSACTION_FAILURE error when creating the campaigns through the Google Ads API. Please note that this batch job error was added in the v19 version. This error indicates a failed transaction involving interdependent Campaign and CampaignAsset operations that are treated atomically as a single transaction. Because some operations within the transaction failed, the entire set of changes was rejected. Related error details are found in the results for the Campaign and CampaignAssets that share the same Campaign ID. The transaction will succeed once all associated errors are resolved.
In order to assist you further, could you please provide us with the complete API logs (request and response with request-id and request header) generated at your end.
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, .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 Reply privately to the author option, or direct private reply to this email.