Efficiency Max: create itemizing teams utilizing batch processing
What’s New
Beginning on October 4, 2023, AssetGroupListingGroupFilters could be created asynchronously utilizing batch processing with the Google Advertisements API. In case you use BatchJobService to create AssetGroupListingGroupFilter entities and different Efficiency Max sources in a single request, errors within the itemizing group tree creation won’t block the creation of the remaining entities. Nonetheless, the operations to create a list group tree will nonetheless be atomic. Because of this if any operation associated to the creation of a list group tree returns an error, all operations associated to that itemizing group tree can even fail, save a number of caveats, that are detailed on this Jobs & itemizing group filters information.
This replace doesn’t change the conduct of any current batch jobs that don’t embrace operations that create itemizing group filters.
Earlier Habits
Previous to October 4, 2023, AssetGroupListingGroupFilters might solely be created synchronously utilizing the GoogleAdsService.Mutate or AssetGroupListingGroupFilterService.MutateAssetGroupListingGroupFilters technique. Requests utilizing the GoogleAdsService.Mutate technique are all the time atomic after they comprise AssetGroupListingGroupFilterOperation operations. It is because partial_failure isn’t supported for these operations, which signifies that an error in itemizing group tree creation would block all different operations within the request. In case you tried creating AssetGroupListingGroupFilter entities previous to October 4, 2023 utilizing batch processing, you’d obtain a MutateError.OPERATION_DOES_NOT_SUPPORT_PARTIAL_FAILURE error.
Change Rationale
Batch processing is a strong function within the Google Advertisements API that means that you can dispatch a set of operations, which can be interdependent, to a number of companies with out synchronously ready for the operations to finish. We’ve got made batch processing accessible for AssetGroupListingGroupFilters in response to your suggestions to supply an alternative choice for creating itemizing group bushes asynchronously and with out blocking different operations in the identical request.
Implementation Particulars
With a purpose to add an AssetGroupListingGroupFilter utilizing a batch job:
- Create a
MutateOperationcontaining anAssetGroupListingGroupFilterOperation. That is no totally different than making a MutateOperation utilizing the GoogleAdsService.Mutate service. - Add the
MutateOperationto the batch job as you’d with every other sort of operation.
The instance under demonstrates the method of including a single AssetGroupListingGroupFilter to an current batch job. See the Creating Purchasing Itemizing Teams information to study extra about creating product partition bushes utilizing AssetGroupListingGroupFilter entities.
// Constructs the AssetGroupListingGroupFilter.
AssetGroupListingGroupFilter listingGroupFilter =
AssetGroupListingGroupFilter.newBuilder()
.setAssetGroup(assetGroupResourceName)
.setType(ListingGroupFilterType.UNIT_INCLUDED)
.setVertical(ListingGroupFilterVertical.SHOPPING)
.construct();
// Constructs the operation to create the AssetGroupListingGroupFilter.
MutateOperation operation = MutateOperation.newBuilder()
.setAssetGroupListingGroupFilterOperation(
AssetGroupListingGroupFilterOperation
.newBuilder()
.setCreate(listingGroupFilter))
.construct();
// Sends a request so as to add the operation to the batch job.
AddBatchJobOperationsResponse response =
batchJobServiceClient.addBatchJobOperations(
AddBatchJobOperationsRequest.newBuilder()
.setResourceName(batchJobResourceName)
.addMutateOperations(operation)
.construct());
The next sources comprise further data that can assist you together with your integration:
Enhancing Efficiency Max integrations Weblog Sequence
This text is a part of a collection that discusses new and upcoming options that you’ve got been asking for. We’ll cowl what’s new and the way it differs from the present implementation method.
Maintain an eye fixed out for additional updates and enhancements on our developer weblog, proceed offering suggestions on Efficiency Max integrations with the Google Advertisements API, and as all the time, contact our crew for those who want assist.