googleads / googleads-php-lib

Google Ad Manager SOAP API Client Library for PHP
Apache License 2.0
655 stars 768 forks source link

Updating the version (RequestError.UNSUPPORTED_VERSION) #763

Closed hypertensy closed 2 years ago

hypertensy commented 2 years ago

Hi, in my project I encountered an error that requires a version update. Similar problems have already occurred in this repository, they are solved by updating the package.

Error description:

Exception 'Google\AdsApi\AdWords\v201809\cm\ApiException' with message '[RequestError.UNSUPPORTED_VERSION @ ; trigger:'AdWords API which you are accessing has been discontinued. Use the new Google Ads API instead. Please visit https://ads-developers.googleblog.com/2021/04/upgrade-to-google-ads-api-from-adwords.html to get started.']

Composer settings:

{
    "require": {
        "googleads/googleads-php-lib": "40.0"
    }
}

I just want to ask:

  1. If I update the version via Composer, the namespace with the desired version will change in the code, then the functionality remains the same? Because it's huge, and I won't be able to check every section;
  2. How critical is this error? Is it possible to just ignore it, or will some endpoints stop working in my version?

Thanks.

PierrickVoulet commented 2 years ago

Hi @wnull,

This error is important, you should not ignore it.

You are using the AdWords API but it is sunsetting. You can use the new client library google-ads-php to access the new Google Ads API instead.

Do not hesitate to contact the Google Ads API support team if you have any questions about this API migration. If you have questions about the new client library google-ads-php specifically, feel free to open issues on the dedicated GitHub repository.