Opteo / google-ads-api

Google Ads API client library for Node.js
https://opteo.com
MIT License
270 stars 90 forks source link

What is the correct Oauth2 scope to be used with this package? #434

Closed vitorklock closed 1 year ago

vitorklock commented 1 year ago

Currently, when acquiring the user Oauth2 I'm using the following scopes:

const scopes = [
        'https://www.googleapis.com/auth/userinfo.email',
        'https://www.googleapis.com/auth/analytics.readonly',
        'https://www.googleapis.com/auth/analytics',
        'https://www.googleapis.com/auth/adwords',
        'openid', 'email', 'profile',
    ];

As adwords (https://www.googleapis.com/auth/adwords) is being deprecated, what is the correct new adsAPI URI to be used?

assaf commented 1 year ago

The Google Ads API which replaces the Adwords API uses the same scope: https://www.googleapis.com/auth/adwords https://developers.google.com/google-ads/api/docs/oauth/internals

The API is currently at version 12, I don't expect they'll change the scope name.

vitorklock commented 1 year ago

The Google Ads API which replaces the Adwords API uses the same scope: https://www.googleapis.com/auth/adwords https://developers.google.com/google-ads/api/docs/oauth/internals

The API is currently at version 12, I don't expect they'll change the scope name.

Makes sense, and it indeed worked. Thanks!