How to migrate from v2 upwards?

47 views
Skip to first unread message

Julian Woywad

unread,
Oct 26, 2020, 11:15:39 AM10/26/20
to AdWords API and Google Ads API Forum
Hey there,

I am using googleads/google-ads-php (v. 3.2.0) and have installed it via composer.
I do not have any issues, but today I received the following exception message:

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

I already tried to upgrade to the newest version, but somehow I still seem to be using v2. I was looking here ( https://developers.google.com/google-ads/api/docs/version-migration ) for information, but I don't really understand how I'm supposed to upgrade in the first place. Can I do it via composer or do I really have to do it myself? And where would that be?

Other than that I have no issues with the system at all. Everything works fine.

Sorry for the stupid question, hope you'll have a nice day

Google Ads API Forum Advisor Prod

unread,
Oct 26, 2020, 4:24:09 PM10/26/20
to j.wo...@whow.net, adwor...@googlegroups.com

Hi Julian,

Thank you for reaching out. The v2 client library has been sunset and it’s not in use anymore. Please completely uninstall all the php client libraries in your machine and install the latest version by following this guide.

Thanks and regards,
Xiaoming, Google Ads API Team

Google Logo
Xiaoming
Google Ads API Team
 


ref:_00D1U1174p._5004Q274hJT:ref
Reply all
Reply to author
Forward
0 new messages