ProductCondition Listing Group Filter issues

62 views
Skip to first unread message

Anatolii Kosovilka

unread,
Jul 25, 2022, 12:07:12 PM7/25/22
to Google Ads API and AdWords API Forum
I have problems creating ListingGroupFilter for an Asset Group in Performance Max Campaign via Ads API (php sdk v11). I tried creating ListingGroup filter by ProductCondition value new. Screen Shot 2022-07-25 at 11.27.24 AM.png 
I got a success response but checking it in the google ads ui showed that the filter has value refurbished. 
Screen Shot 2022-07-25 at 11.30.39 AM.png 
I then created another product condition filter in goole ads ui with value new Screen Shot 2022-07-25 at 11.32.34 AM.png 
And after that did a search query to get listing group filters for the asset group that i am testing on. The response shows the condition value as 2, which is not a valid value in php sdk enum class ProductCondition Screen Shot 2022-07-25 at 11.37.04 AM.png
php sdk class: Screen Shot 2022-07-25 at 11.38.09 AM.png
I can't map the response using enum class, cause value is not valid
Screen Shot 2022-07-25 at 11.39.42 AM.png

I also tried to create a filter with value used,  and it fails with error:
Screen Shot 2022-07-25 at 11.46.38 AM.png

It looks like mapping in enum class is not correct or doesn't match what is returned from google ads. Here is the link to the enum class in php google ads repo: https://github.com/googleads/google-ads-php/blob/v15.1.0/src/Google/Ads/GoogleAds/V11/Enums/ProductConditionEnum/ProductCondition.php

Google Ads API Forum Advisor

unread,
Jul 25, 2022, 3:15:50 PM7/25/22
to anatolii....@gmail.com, adwor...@googlegroups.com
Hi Anatolii,

Thank you for reaching out to our API support team.

Looking at your concern, this appears to be more related to the PHP client library's handling of the values. Since you mentioned no API errors were encountered and only an enum error, the client library owners should be able to provide the appropriate guidance to resolve this issue.

You may reach them instead via this link. I hope this helps.

Best regards,

Google Logo
Peter Laurence
Google Ads API Team
 


ref:_00D1U1174p._5004Q2d1BBJ:ref

Anatolii Kosovilka

unread,
Aug 8, 2022, 3:19:26 PM8/8/22
to Google Ads API and AdWords API Forum

Thanks, we were able to resolve the issue, a wrong enum class was used
Reply all
Reply to author
Forward
0 new messages