googleads/googleads-php-lib

Unable to call to undefined method getRealContainingOneof

Albertopipo opened this issue · 1 comments

While trying to update our version of the google-ads-php library to the latest version, v19, we've been facing a problem with the classes in the vendor library that we haven't been able to solve.
Basically, whenever we try to use the FieldMasks utility, more specifically its allSetFieldsOf() static function, we get the following error:

Attempted to call an undefined method named "getRealContainingOneof" of class "Google\Protobuf\FieldDescriptor".

Which is to say, it is as if the class FieldDescriptor didn't contain the getRealContainingOneof() method, except the method appears to be implemented in the class. We considered the possibility that it might be a namespace issue of the class FieldDescriptor, but as far as we can tell, the class methods that return simple types (getName and such) are functional - it's only the methods that would return a Protobuf type message that fail.

If it helps, these are the current versions of the related vendor libraries we're running:

  • PHP 8.0
  • Symfony 5.2.14
  • Google Ads Api V13
  • Google ads php 19.0.9
  • Google protobuf 3.22.2

Hi @Albertopipo - This issue seems to be related to the Google Ads API client library for PHP (not this client library). The right GitHub repository is google-ads-php, please create a new issue there to get it sorted out.