Pierrick Voulet

Results 40 comments of Pierrick Voulet

I did some extra tests: ```php $googleCampaign = new Campaign([ 'name' => '' ]); var_dump(FieldMasks::allSetFieldsOf($googleCampaign)->serializeToJsonString()); $googleCampaign = new Campaign([ 'resource_name' => '' ]); var_dump(FieldMasks::allSetFieldsOf($googleCampaign)->serializeToJsonString()); //> string(6) ""name"" //> string(2) """"...

> I also just ran into this when trying to clear a bid on `AdGroupCriterion`. `setCpcBidMicros` cannot be called with `null`, and calling `clearCpcBidMicros` does not result in `cpc_bid_micros` appearing...

A few other things to note: - A workaround is to disable the `grpc` PHP extension. - This does not seem to happen when using `GoogleAdsServiceGapicClient.search`. - This has a...

Good feedback. In case of an error, REST and gRPC transports do not return the metadata in the exact same format: - gRPC ![image](https://user-images.githubusercontent.com/6769971/67897264-6dc4dc80-fb34-11e9-8fc5-3d6334b598e6.png) - REST ![image](https://user-images.githubusercontent.com/6769971/67897282-75848100-fb34-11e9-8123-4925d47362d8.png) The current implementation...

Thanks for sharing, `ApiException` still provides methods like `getMetadata` and gives access to raw response data. I believe it contains the same information about the error(s) even if not as...

Sure, you could print the error codes using something like this: ```php try { // Does some API call(s) } catch (ApiException $apiException) { foreach($apiException->getMetadata() as $metadata) { if( array_key_exists('@type',...

The main condition I drafted might be overkill, did you try to simplify keeping only: ```php array_key_exists('errors', $metadata) ```

Hi @lezhnev74 - Did you have the chance to check whether it is an expected behavior with the [Google Ads API support](https://developers.google.com/google-ads/api/support)? This looks wrong to me.

> Again, the default numbers you see above only work if the return code is among `retryableCodes`, right? Since it returns code `3`, the retry never happens. That is how...

> Over email they responded: `Yes, I can confirm that this is the possible behaviour of the API. To address this, you may continue posting on GitHub.`. Thanks for confirming....