Google Ads Api V8 not working with Laravel ( google-ads-php )

268 views
Skip to first unread message

Suba KV

unread,
Sep 17, 2021, 7:04:03 AM9/17/21
to AdWords API and Google Ads API Forum
I had to upgrade to google-ads-php (https://github.com/googleads/google-ads-php)
Version 11 as the google ads api V6 was deprecated and throwing error.

google-ads-php supports google ads api V7. While we tried executing the script I get the following error.

ERROR: Could not construct ApplicationDefaultCredentials {"userId":1,"exception":"[object] (Google\\ApiCore\\ValidationException(code: 0): Could not construct ApplicationDefaultCredentials at D:\\xampp\\htdocs\
eseller-home\\vendor\\google\\gax\\src\\CredentialsWrapper.php:267)

Previous Error with V6 (It was working perfect until last week)

ERROR: {
    "message": "Request contains an invalid argument.",
    "code": 3,
    "status": "INVALID_ARGUMENT",
    "details": [
        {
            "@type": 0,
            "data": "type.googleapis.com\/google.ads.googleads.v6.errors.GoogleAdsFailure"
        },
        {
            "@type": 0,
            "data": [
                {
                    "errorCode": {
                        "requestError": "UNKNOWN"
                    },
                    "message": " Version v6 is deprecated. Requests to this version will be blocked."
                }
            ]
        }
    ]

====================================================

Any Help is Appreciated.

Reply all
Reply to author
Forward
0 new messages