Re: Not able to catch error when guzzle fails

2021-02-02 Thread Google Ads API Forum Advisor Prod
Hi, Thank you for reaching out. You could refer to this code snippet on how to handle the GoogleAdsException and ApiException. For the exceptions related to the Guzzle library, please refer to their documentation or reach out to the library owner to get further assistance. Thanks and regards,

Re: Not able to catch error when guzzle fails

2021-02-01 Thread cv
Hello Xiaoming, Yes, that I am able to know but in this case I wanted to catch those errors so that my cronjobs or data fetch part not interrupted and gone through other accounts and capture those errors for error log i managed. Thanks, On Tuesday, 2 February 2021 at 02:09:34 UTC+5:30

RE: Not able to catch error when guzzle fails

2021-02-01 Thread Google Ads API Forum Advisor Prod
Hi, Thank you for reaching out. “Account has been deleted” indicates that the account that you used to generate the refresh token has been deleted. You could recreate the OAuth2 credentials using a valid Google Ads account and try the API call again. Thanks and regards, Xiaoming, Google Ads

Not able to catch error when guzzle fails

2021-02-01 Thread cv
Hi, When there error like this or guzzle fails, try catch is not able to capture errors. I am using PHP client library in google ads v6. Type:GuzzleHttp\Exception\ClientException Message: Client error: `POST https://oauth2.googleapis.com/token` resulted in a `400 Bad Request`