Rollback batch operation if there is a failure

30 views
Skip to first unread message

Gary Jiang

unread,
Apr 17, 2018, 5:32:56 PM4/17/18
to AdWords API Forum
Hi, 
I was just wondering if there is a way to rollback a partially failed batch operation, for example, an batch operation that attempts to create an adgroup and set some criterion for that with the creation of adgroup successful but criterion set failed, is there an API to rollback like deleting the adgroup just created? Or I have to call each individual API one by one to revert those changes.

Thanks.

Vincent Racaza (AdWords API Team)

unread,
Apr 18, 2018, 1:41:16 AM4/18/18
to AdWords API Forum
Hi Gary,

There is no rollback feature for BatchJobService. As you can see in this guide, if there are failed operations due to some error such as RateExceededError, the BatchJobService will automatically retry the failed operations and commit the successful ones.

If you really wish to rollback the successful operations (e.g. creation of ad group) due to the failure of some dependent operations, then you can run another request that does this via their independent services (e.g. AdGroupService) or via the BatchJobService itself if you want to roll back/delete them in batch.

Thanks,
Vincent
AdWords API Team
Reply all
Reply to author
Forward
0 new messages