Which api to use to replicate the behavior of ListingGroups UI

51 views
Skip to first unread message

Marlon Gómez

unread,
May 20, 2025, 9:05:43 AMMay 20
to Google Ads API and AdWords API Forum

Hello Google Team


I am integrating pmax campaigns with merchant option to promote products.


I'm a bit stymied because I can't find any information or documentation on what API / endpoint would be used to get the information reflected in the screenshot below.


Screenshot 2025-05-20 080416.png


That is, I want to retrieve the category information and the count of products there, the list of brands, condition or product type.


I appreciate your guidance

Google Ads API Forum Advisor

unread,
May 20, 2025, 12:35:27 PMMay 20
to marlo...@gmail.com, adwor...@googlegroups.com

Hi,

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

Based on the provided information, I understand that you want to retrieve the listing groups information through the Google Ads API. I would recommend you to use the  asset_group_listing_group_filter resource to retrieve the details of the listing groups in the provided screenshot. Please use the below query to retrieve the listing group information through the Google Ads API:

SELECT asset_group_listing_group_filter.case_value.product_brand.value, asset_group_listing_group_filter.case_value.product_category.category_id, asset_group_listing_group_filter.type, asset_group_listing_group_filter.case_value.product_type.value, asset_group_listing_group_filter.case_value.product_channel.channel, asset_group_listing_group_filter.case_value.product_condition.condition, asset_group_listing_group_filter.case_value.product_item_id.value FROM asset_group_listing_group_filter

You can try making a request using the Search or SearchStream by passing the customer Id and the developer token. Also, you can use Query Builder to create your query and Query Validator to validate your query.

I hope this helps! If you have any questions, please feel free to contact us.

Thanks,
 
Google Logo Google Ads API Team

Feedback
How was our support today?

rating1    rating2    rating3    rating4    rating5
[2025-05-20 16:34:16Z GMT] This message is in relation to case "ref:!00D1U01174p.!500Ht01qXbC2:ref" (ADR-00307107)



Message has been deleted

Google Ads API Forum Advisor

unread,
May 20, 2025, 4:20:12 PMMay 20
to marlo...@gmail.com, adwor...@googlegroups.com
Hi,

Please be informed that I have removed your response from the forums as it contained the PII information.

Could you please run the below mentioned query and get back to us with the complete API logs (request, response, request-id and request header) generated at your end without redacting any information. 

 
SELECT asset_group_listing_group_filter.case_value.product_brand.value, asset_group_listing_group_filter.case_value.product_category.category_id, asset_group_listing_group_filter.type, asset_group_listing_group_filter.case_value.product_type.value, asset_group_listing_group_filter.case_value.product_channel.channel, asset_group_listing_group_filter.case_value.product_condition.condition, asset_group_listing_group_filter.case_value.product_item_id.value FROM asset_group_listing_group_filter

If you are using a client library and haven't enabled the logging yet, I would request you to enable logging for the specific client library that you are using. You can refer to the guides Java, .Net, PHP, Python, Ruby or Perl to enable logging at your end. You can enable logging via the curl command by using the -i flag for REST interface requests.​

You can send the details via Reply privately to the author option, or direct private reply to this email.

 

Thanks,
 
Google Logo Google Ads API Team

Feedback
How was our support today?

rating1    rating2    rating3    rating4    rating5

[2025-05-20 20:18:55Z GMT] This message is in relation to case "ref:!00D1U01174p.!500Ht01qXbC2:ref" (ADR-00307107)



Marlon Gómez

unread,
May 26, 2025, 1:57:59 PMMay 26
to Google Ads API and AdWords API Forum

Hello Google Team, here is the information you requested

RequestID VilQTtW8RyCZRD-VJYiQpg

I don't understand how this answer would help me to build the functionality of the deleted query images.


Response:

{
  "results": [
    {
      "assetGroupListingGroupFilter": {
        "resourceName": "customers/CUSTOMER-ID-CENSORED/assetGroupListingGroupFilters/CENSORED-ID~CENSORED-ID-2",
        "type": "UNIT_INCLUDED"
      }
    }
  ],
  "fieldMask": "assetGroupListingGroupFilter.caseValue.productBrand.value,assetGroupListingGroupFilter.caseValue.productCategory.categoryId,assetGroupListingGroupFilter.type,assetGroupListingGroupFilter.caseValue.productType.value,assetGroupListingGroupFilter.caseValue.productChannel.channel,assetGroupListingGroupFilter.caseValue.productCondition.condition,assetGroupListingGroupFilter.caseValue.productItemId.value",
  "queryResourceConsumption": "148"
}

Google Ads API Forum Advisor

unread,
May 26, 2025, 4:12:26 PMMay 26
to marlo...@gmail.com, adwor...@googlegroups.com
Hi,

Based on the statement that you have made, "I don't understand how this answer would help me to build the functionality of the deleted query images." Could you please confirm whether you would like to retrieve the ListingGroups data shared in the screenshots via the API or would like to build the functionality to delete the images via the API? If you concern is regarding the deleting the images, I request you kindly provide more details of your issue for further assistance.


Thanks,
 
Google Logo Google Ads API Team

Feedback
How was our support today?

rating1    rating2    rating3    rating4    rating5

[2025-05-26 20:11:48Z GMT] This message is in relation to case "ref:!00D1U01174p.!500Ht01qXbC2:ref" (ADR-00307107)



Reply all
Reply to author
Forward
0 new messages