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-clicks
*conversion 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
--
--
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
Also find us on our blog:
https://googleadsdeveloper.blogspot.com/
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
You received this message because you are subscribed to the Google
Groups "AdWords API and Google Ads API Forum" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/adwords-api?hl=en
---
You received this message because you are subscribed to the Google Groups
"Google Ads API and AdWords API Forum" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/adwords-api/93888f50-5f64-4cec-a770-3e7d61d7d68cn%40googlegroups.com.