-
Notifications
You must be signed in to change notification settings - Fork 265
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
v17.0.0 update of the FieldMasks utility causes undefined method error #844
Comments
Could you update your protobuf's version to |
I ran into this too when upgrading, upgrading the protobuf extension is the fix here. Maybe the SDK can check the minimum required version of the extension? https://github.com/protocolbuffers/protobuf/releases/tag/v21.5 |
Thanks @leongersen. |
I have updated protobuf's version to 3.21.5 and grpc to 1.42.0, the error unfortunately still persists. Confirmed on a single RSA with only one headline being updated ( number and content of the other headlines and descriptions and the contents of path1/2 and final url fields would not change ) |
Do you use the C implementation or PHP implementation? |
I use the PHP implementation, and found the function there too. If I revert back to V16.0.0 of the Google Ads API, the update runs, there are no errors. |
That's really strange. If the function is there, it shouldn't throw an error like that. |
Thanks @fiboknacky, I've done as you suggested, and it is working again. |
@fiboknacky I've closed the issue too soon, I've experienced the same error after upgrading then reinstalling protobuf with composer. If I revert back to V16.0.0 of the Google Ads API, the batch job runs without errors. |
So, you can see that function in the protobuf code under |
How to add extension like "extension=grpc" for protobuf.so, just putting the DLL file? *As of now I am getting below error: Problem 1 To enable extensions, verify that they are enabled in your .ini files: |
@fiboknacky The protobuf php module was enabled, this was the source of the conflict. After disabling it everything is working again as expected. |
Your client library and Google Ads API versions:
Client library version:
v17.0.0
Google Ads API version:
V11
Your environment:
protobuf
is used or not: 3.19.4grpc
is used or not: 1.26.0grpc
orrest
): grpcDescription of the bug:
By updating headline or description assets of RSAs using a batch job an error was shown pointing towards the FieldMasks utility:
Call to undefined method Google\Protobuf\FieldDescriptor::getRealContainingOneof() in /vendor/googleads/google-ads-php/src/Google/Ads/GoogleAds/Util/FieldMasks.phpat line 259
Steps to reproduce:
Update a line in the headline or description asset of an RSA, the error always started when FieldMasks utility was called:
$adOperation->setUpdateMask(FieldMasks::allSetFieldsOf($ad));
Expected behavior:
Request/Response Logs:
Anything else we should know about your project / environment:
The text was updated successfully, but these errors were encountered: