Switching from V13 to V15 & getting error while uploading click conversion

216 views
Skip to first unread message

Alan T Y

unread,
Dec 5, 2023, 1:35:31 AM12/5/23
to Google Ads API and AdWords API Forum
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

Google Ads API Forum Advisor

unread,
Dec 5, 2023, 2:21:22 AM12/5/23
to alanty....@gmail.com, adwor...@googlegroups.com
Hi,

Thank you for contacting the Google Ads API support team.

Based on the information provided, I understand that you are facing issues with the PHP client library of  Google Ads API. As your concern is related to the client libraries of the Google Ads API, I recommend you to raise a request by clicking the new issue button present in this link as the concerned team is best suited to assist you on this request.

 
This message is in relation to case "ref:!00D1U01174p.!5004Q02qWgxA:ref"

Thanks,
 
Google Logo Google Ads API Team


Alan T Y

unread,
Dec 11, 2023, 12:25:13 AM12/11/23
to Google Ads API and AdWords API Forum
Hi,

As per your request, I raised an issue in the PHP client library, I am adding an attachment related to the issue also the issue link

gax.png

Google Ads API Forum Advisor

unread,
Dec 11, 2023, 12:37:37 AM12/11/23
to alanty....@gmail.com, adwor...@googlegroups.com
Hi,

Thank you for getting back to us.

As requested earlier, kindly provide us with the complete API request and response logs with request-id and request header generated at your end. If you are using a client library and haven't enabled the logging yet, I would request you to enable logging for the PHP client library. You can refer to the PHP guide to enable logging at your end.​ ​ ​ ​ ​

You can send the details via Reply privately to the author option, or direct private reply to this email.
Reply all
Reply to author
Forward
0 new messages