Starting with Google Ads API v17, the BatchJobService
now supports AssetGroupOperation
, enabling batch processing to create and manage entire Performance Max campaigns. Batch processing allows dispatching a set of interdependent operations to multiple services without waiting for each to complete, providing automatic retries for transient errors and automatic grouping of operations. This feature was added in response to user feedback for asynchronous asset group management.
Implementation Details
Using AssetGroupOperation
with batch processing for Performance Max campaigns involves:
- Sequential Operations:
AssetGroupOperation
andAssetGroupAssetOperation
must be sequential without other operations in between. - Creating Asset Groups:
- Create a
MutateOperation
containing anAssetGroupOperation
. - Associate assets with the asset group by creating
MutateOperation
containingAssetGroupAssetOperation
for each required asset. - Combine these operations to meet minimum asset requirements.
- Add
MutateOperation
types to the batch job. - Run the batch job by calling
RunBatchJob
after adding all operations.
- Create a
Check out the Batch processing guide for more details.