Hi,
I am using the PHP client library for the Google Ads API "googleads/google-ads-php": "^21.1".
Used the following code to create an instance of GoogleAdsClient Object
$oAuth2Credential = (new OAuth2TokenBuilder())
->withClientId($this->app_client_id)
->withClientSecret($this->app_client_secret)
->withRefreshToken($this->refreshtoken)
->build();
$googleAdsClient = (new GoogleAdsClientBuilder())
->withDeveloperToken($this->developerToken)
->withOAuth2Credential($oAuth2Credential)
->withLoginCustomerId($this->customerId)
->usingGapicV2Source(true)
->build();
After that, i used the code in the following URL to create a conversion action
https://developers.google.com/google-ads/api/docs/conversions/upload-clicksconversion action was created successfully after I used the code on the same page to
insert a conversion into that conversion action, and I'm facing the following error
TypeError: Google\ApiCore\Middleware\RetryMiddleware::Google\ApiCore\Middleware\{closure}(): Argument #1 ($e) must be of type Exception, Error given, called in /var/www/html/v5projects/googleads2024/vendor/google/gax/src/Middleware/RetryMiddleware.php on line 109 in file /var/www/html/v5projects/googleads2024/vendor/google/gax/src/Middleware/RetryMiddleware.php on line 183