Getting BatchJobError.CAMPAIGN_AND_CAMPAIGN_ASSET_TRANSACTION_FAILURE

73 views
Skip to first unread message

Diana Vladeva

unread,
Feb 26, 2025, 10:54:40 AM2/26/25
to Google Ads API and AdWords API Forum
I started getting an odd error when trying to do an update campaign_operation.
I am using Java Google Ads API v17.
The error started appearing the last couple of days:

campaign_operation { update { resource_name: "customers/xxx/campaigns/yyy" status: ENABLED network_settings { target_google_search: true target_search_network: false target_content_network: false target_partner_search_network: false } geo_target_type_setting { positive_geo_target_type: PRESENCE negative_geo_target_type: PRESENCE } name: "xxx Campaign name here xxx" campaign_budget: "customers/xxx/campaignBudgets/bbb" end_date: "2037-12-30" bidding_strategy: "customers/xxx/biddingStrategies/zzz" } update_mask { paths: "resource_name" paths: "name" paths: "status" paths: "network_settings.target_google_search" paths: "network_settings.target_search_network" paths: "network_settings.target_content_network" paths: "network_settings.target_partner_search_network" paths: "geo_target_type_setting.positive_geo_target_type" paths: "geo_target_type_setting.negative_geo_target_type" paths: "campaign_budget" paths: "end_date" paths: "bidding_strategy" } } status: code: 3 message: "The error code is not in this version., at mutate_operations[1].campaign_operation" details { type_url: "type.googleapis.com/google.ads.googleads.v17.errors.GoogleAdsFailure" value: "\n\235\001\n\003\230\b\001\022&The error code is not in this version.\"-\022\025\n\021mutate_operations\030\001\022\024\n\022campaign_operation*?\n=BatchJobError.CAMPAIGN_AND_CAMPAIGN_ASSET_TRANSACTION_FAILURE" }

Thanks in advance for your help!

Google Ads API Forum Advisor

unread,
Feb 26, 2025, 4:04:32 PM2/26/25
to diana.vlad...@gmail.com, adwor...@googlegroups.com
Hi Diana,

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

By reviewing your concern, I understand that you are encountering a "CAMPAIGN_AND_CAMPAIGN_ASSET_TRANSACTION_FAILURE" error. To investigate this issue further, provide us with the complete API request without any fields being redacted (e.g., XXXXX) 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.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.
 

Thanks,
 
Google Logo Google Ads API Team

Feedback
How was our support today?

rating1    rating2    rating3    rating4    rating5
[2025-02-26 21:03:48Z GMT] This message is in relation to case "ref:!00D1U01174p.!5004Q02vH47P:ref" (ADR-00289961)



 

Diana Vladeva

unread,
Mar 6, 2025, 11:32:19 AM3/6/25
to Google Ads API and AdWords API Forum

To give an update for everybody.

I sent a private message with the API request data, here is the response from the support:

Diana:

v17 which you are using is deprecated and this error message is not available in the version. I strongly suggest that before anything else, you upgrade to v19.

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 sharing the same Campaign ID. The transaction will succeed after all associated errors are resolved.

The response in v19 will have details on what caused the error and you should be able to fix it yourself.
 

I will provide an update after the upgrade to v19.
Reply all
Reply to author
Forward
0 new messages