-
Notifications
You must be signed in to change notification settings - Fork 266
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
ProductCondition Listing Group Filter issues #838
Comments
It seems like your issue is already fixed in protobuf v21.0, so if you're using this version or higher, the issue should be gone. |
I had no php extension for protobuf, so it was using composer package which was V3.21.1. I installed php protobuf extension:
https://github.com/protocolbuffers/protobuf/releases Unfortunately I still have issue with product condition values mismatch |
Instead of screenshots, could you please copy text over here, so we can take a closer look? |
Sure. I have a performance max retail campaign, and trying to create asset group listing group filter under an asset group. I created a root listing group and then I create an instance of ProductCondition, then put it in AssetGroupListingGroupFilter and AssetGroupListingGroupFilterOperation and send operations, which does successful mutate request but in the ads ui the condition is not new but refurbished:
After this i just go to google ads account and add one more listing group filter by product condition with value new.
I get back response with 4 asset group listing group filters: a root one and 3 children with case value ProductCondition. they have values: 3 (this one was created by me via api), 0 - everything else node (also created via api), 2 (this one i created in google ads ui directly, and the enum class doesn't have mapping for it): https://github.com/googleads/google-ads-php/blob/v15.1.0/src/Google/Ads/GoogleAds/V11/Enums/ProductConditionEnum/ProductCondition.php#L21-L45 google-ads-php/src/Google/Ads/GoogleAds/V11/Enums/ProductConditionEnum/ProductCondition.php Line 58 in 986e0ea
|
Sorry for the back-and-forth. Could you also share the latest request ID when you ran the above query? |
Hi, yes sure. The request id of the searchStream query: |
Thank you. BTW, could you try using |
Yea, I can totally do it. Do you know how to extract the request_id from a search request? I can see it in SearchStreamResponse, but don't see it in SearchResponse |
I figured it out, i had to build client with logger, here are the details of the request:
let me know if you need more info. |
(This answer has been edited) Thank you, but I cannot reproduce the issue by using both C and PHP implementations of the protobuf extension. I got something like this and cannot see the value 5 that would break the enum's
In the meantime, could you share the code where you print the result from Right now, it looks like your asset group has three listing group filters: |
Hi! Ok, thanks for looking into it. So we get back
i can make a mutate request again and send you the request id if you need it, thank you |
You used a wrong enum class. The correct one is ListingGroupFilterProductCondition. In addition, you can do like this:
|
Oh my, that's true. Everything is good now. Thank you so much! |
Your client library and Google Ads API versions:
v15.1.0
V11
Your environment:
8.0.20
.Linux 45b930250aa4 5.10.104-linuxkit
.protobuf
is used or not:No
.grpc
is used or not:1.46.3
.grpc
orrest
):grpc
.Description of the bug:
I have problems creating ListingGroupFilter for an Asset Group in Performance Max Campaign via Ads API. I tried creating ListingGroup filter by ProductCondition value new. I got a success response but checking it in the google ads ui showed that the filter has value refurbished. I then created another product condition filter in goole ads ui with value new. 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. I can't map the response using enum class, cause value is not valid. Also tried to create a filter with value used, and it fails with error:
Enum value 'UNKNOWN_ENUM_VALUE_ListingGroupFilterProductCondition_5' cannot be used
Enum class in google ads php sdk: https://github.com/googleads/google-ads-php/blob/v15.1.0/src/Google/Ads/GoogleAds/V11/Enums/ProductConditionEnum/ProductCondition.php
Steps to reproduce:
Detailed description of the issue and with code samples screenshots:
https://groups.google.com/g/adwords-api/c/IIIZsibINRI
The text was updated successfully, but these errors were encountered: