What’s New
Starting with Google Ads API v17, BatchJobService
supports AssetGroupOperation
. With this change you can use batch processing to create and manage entire Performance Max campaigns.
Batch processing is a powerful feature in the Google Ads API that lets you dispatch a set of operations, which might be interdependent, to multiple services without waiting for each operation to complete. Batch processing also provides automatic retries for transient errors, and automatic grouping of operations We have made batch processing available for AssetGroupOperation
in response to your feedback to provide another option for working with asset groups asynchronously.
Implementation Details
Using AssetGroupOperation
with batch processing for Performance Max campaigns is similar to how you use other operations, with the following special considerations:
When creating asset groups using batch processing, AssetGroupOperation
and AssetGroupAssetOperation
must be sequential without other operations in between. This is due to how operations are grouped together when processed. You can learn more about the considerations and best practices for using batch processing to create Performance Max campaigns in the Batch processing for Performance Max guide.
Here’s how to create an asset group in a batch job:
- Create a
MutateOperation
containing anAssetGroupOperation
. This is no different than creating aMutateOperation
using theGoogleAdsService.Mutate
service. See the mutating resources guide. - Associate assets with the asset group by creating a
MutateOperation
containing operations of typeAssetGroupAssetOperation
for each asset required; the sequentialAssetGroupOperation
and operations of typeAssetGroupAssetOperation
must combine to meet applicable minimum asset requirements. - Add the operations of type
MutateOperation
to the batch job as you would with any other type of operation. - Run the batch job by calling
RunBatchJob
after adding all operations.
The following resources contain additional information to help you with your integration:
Improving Performance Max integrations Blog Series
This article is part of a series that discusses new and upcoming features that you have been asking for. We’ll cover what’s new and how it differs from the current implementation approach.
Keep an eye out for further updates and improvements on our developer blog, continue providing feedback on Performance Max integrations with the Google Ads API, and as always, contact our team if you need support.
Workshop Reminder
Register today for the Performance Max and the Google Ads API workshop happening on July 17!