Batch job service roll back if errors

42 views
Skip to first unread message

Patrick

unread,
Mar 9, 2022, 10:03:08 AM3/9/22
to Google Ads API and AdWords API Forum
Hi,

Is there a way to validate a batch job or roll back a batch job if there are any errors when creating a campaign?

So kind of like setting partial_failures to false but for the batch job?

Google Ads API Forum Advisor

unread,
Mar 10, 2022, 4:41:29 AM3/10/22
to gapis...@gmail.com, adwor...@googlegroups.com
Hi Patrick,

Thank you for reaching out to Google Ads API team.

To give you information about your concern, canceling or rolling back a job is currently not supported. However, you can try using googleAds:mutate method in order to send groups of operations with multiple types of resources. You can send many operations of different types to chain together a sequence of operations that should be carried out as a group. Kindly note that the set of operations will all succeed if no operation fails or all fail if any single operation fails and only resources that support atomic transactions are included, so this method can't replace all calls to individual services.

Let us know if you have any questions.

Regards,
Google Logo
Carmela
Google Ads API Team
 


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