Hi,
Thank you for reaching out to Google Ads API Forum.
In order for us to investigate further the issue you are encountering, can you provide us with the complete API logs (request and response with request-id and request header) generated on your end when you encountered the issue? This is so we can check on our end as well and provide more appropriate guidance accordingly.
For the client libraries, logging can be enabled by navigating to the Client libraries > Your client library (ex Java) > Logging documentation, which you can access from this link (https://developers.google.com/google-ads/api/docs/client-libs). You can provide it via the Reply privately to author option. If this option is not available, then send it instead on this email address googleadsa...@google.com.
You may also refer to this guide (https://developers.google.com/google-ads/api/docs/performance-max/listing-groups) for Creating Shopping Listing Groups. Included in this guide is a code example that shows how to add product partitions to a Performance Max retail campaign.
Reference links included in this email:
![]() |
Google Ads API Team |
Hi,
Thanks for getting back to us.
I can see that you are trying to create a UNIT_INCLUDED. This type is used to indicate that the AssetGroupListingGroupFilter won't have children. Can you try setting the parentListingGroupFilter in your create operation in assetGroupListingGroupFilters.mutate? You can set this value as the resource name of the parent listing group subdivision. As per this guide regarding Creating Shopping Listing Groups, a subdivision introduces a new level in the tree, while units are leaves of the tree.
I would recommend referring to this code example on Adding Performance Max Product Listing Group Tree as an additional reference in your code implementation. The provided code example is also available in PHP language.
Hi,
Thanks for getting back with us.
With regards to your concern, kindly note that unit nodes can be created by passing an empty object of ListingDimensionInfo types to ListingGroupInfo. With that being said, you may use the dimensions and product partitions with the interactive guide for Performance Max campaigns. This interactive guide demonstrates how to create a standard or retail Performance Max campaign. Your inputs will be saved as you proceed through this guide.
Let me know how this goes in your end.
Links included in this email:
Hi,
Thanks for getting back to us.
In order for us to visualize what you are trying to do via the API, can you please share with us whole Google Ads UI screenshot (without cropping) of the data in the UI you are trying to set via API? You can provide it via the Reply privately to author option. If this option is not available, then send it instead on this email address googleadsa...@google.com.
Additionally, you may also utilize the API explorer for the REST method assetGroupListingGroupFilters.mutate to test out your request.
Hi,
Thank you for getting back to us.
With regards to your concern, please check this documentation (https://developers.google.com/google-ads/api/docs/performance-max/retail) for more information regarding PMax Retail Campaign. Furthermore, please refer to this guide (https://developers.google.com/google-ads/api/docs/performance-max/create-campaign) for the steps in creating a Performance Max Campaign.
Additionally, I understand that you have provided details for the request/response. However, for the error that you are encountering when using -1 values could you share the updated logs in this format (request and response with request-id and request header)? I am asking this so we could have full visibility on the method you are using. For REST interface requests, you can enable logging via the curl command by using the -i flag.
You may then send the requested information privately via the Reply to author option. If this option is not available, you may send the details directly to our googleadsa...@google.com alias instead.
Reference Links: