In BatchJobService, is each operation independent?

20 views
Skip to first unread message

xiaochuan li

unread,
Dec 16, 2024, 10:22:55 PM12/16/24
to Google Ads API and AdWords API Forum
I added many elements to the operations in BatchJobService. Are they independent? Because during the execution of the job, I cannot predict in advance which operation will have an error. For example, I have a job flow where I first create a campaign, then create an ad_group, and finally create an ad_group_ad. When creating keywords for ad_group, some keywords caused errors for some reason. Will it cause errors in other operations?

In addition, when I query the results using ListBatchJobResultsRequest, will the index of the query result always be consistent with the index of the operations in BatchJobService? No matter which operation fails, will the index of the two operations always be consistent?

PixPin_2024-12-17_11-21-13.pngPixPin_2024-12-17_11-22-31.png

Google Ads API Forum Advisor

unread,
Dec 17, 2024, 2:06:36 AM12/17/24
to clixia...@gmail.com, adwor...@googlegroups.com
Hi,

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

Most services offer synchronous APIs that require you to send a request and wait for a response. In contrast, BatchJobService allows you to batch operations across multiple services without waiting for each operation to complete. Unlike service-specific mutate operations, a single BatchJobService job can handle a diverse mix of campaigns, ad groups, ads, criteria, labels, and feed items. The submitted jobs run concurrently and BatchJobService automatically retries operations that fail due to transient issues like rate limit errors. I would recommend you to refer to the 'Batch Processing' documentation for more information. You can follow this Usage flow guide while using the BatchJobService. Also, you can refer to the 'Best Practices and Limitations' guide for more information. 

I could see that while adding keywords it's getting an error because of invalid symbols. I would recommend you to refer to the "Invalid Symbols" help center article, which clearly explains the symbols that are not supported when adding keywords in Google Ads. This applies to both the Google Ads UI and the Google Ads API. Additionally, you can check out the "Basic Tips for Building a Keyword List" article for further guidance on adding keywords in Google Ads API. 

Yes, when you query the results using ListBatchJobResultsRequest, the index of the query result will always be consistent with the index of the operations in BatchJobService. 
 

This message is in relation to case "ref:!00D1U01174p.!5004Q02vGpII:ref" (ADR-00278955)

Thanks,
 
Google Logo Google Ads API Team

Feedback
How was our support today?

rating1    rating2    rating3    rating4    rating5


 


Reply all
Reply to author
Forward
0 new messages