googleads / google-ads-php

Google Ads API Client Library for PHP
https://developers.google.com/google-ads/api/docs/client-libs/php
Apache License 2.0
295 stars 262 forks source link

How do I get data in catch block? #960

Closed 0x1881 closed 11 months ago

0x1881 commented 1 year ago

I'm currently using mutate operations and performing mutate operations on ad groups. While in the try-catch block, how can I access the data when the error is caught?

Ex:

try { // mutate operations } catch (ApiException $apiException) { printf( "ApiException was thrown with message '%s'.%s", $apiException->getMessage(), PHP_EOL ); }

fiboknacky commented 1 year ago

What "data" do you want to retrieve? All you can access is what's available as a public method in this class.

fiboknacky commented 11 months ago

Closing due to inactivity.