google-ads-php icon indicating copy to clipboard operation
google-ads-php copied to clipboard

While updaing google campaigns using API i keep getting call to undefined method error for a google ads api method

Open kshitizdhakalpsq opened this issue 6 months ago • 7 comments

  • Client library version: v22.1.0
  • Google Ads API version: V16

Your environment: Lumen

  • The PHP version: 8.19.
  • The name and version of the operating system: Linux b3a615af573e 5.10.102.1-microsoft-standard-WSL2 #1 SMP`.
  • Whether the PHP Extension protobuf is used or not: 4.27.3.
  • Whether the PHP Extension grpc is used or not:1.59.1.
  • The type of transport being used (grpc or rest): grpc.

Description of the bug: Call to undefined method Google\Protobuf\FieldDescriptor::getRealContainingOneof()

Steps to reproduce: while using: $campaign = new Campaign($googleParams); $campaignOperations = []; $campaignOperation = new CampaignOperation(); $campaignOperation->setUpdate($campaign); $campaignOperation->setUpdateMask(FieldMasks::allSetFieldsOf($campaign));

Expected behavior: Campaign Update with no error, This happens when i go into the google ads api library and comment the line using getRealContainingOneof method

Request/Response Logs: Im not getting any response logs, im just stuck in the error previously mentioned and the logs appear when i comment out the method name and the intended operation is successful

Please let me know if you need any more information from my side

kshitizdhakalpsq avatar Aug 07 '24 15:08 kshitizdhakalpsq