hi
i use nodeJs to communicate with adwords account via the api.
it works perfectly but when launching an oauth popup to the user, it asks
for permissions to "manage adwords accout"
in my case, I only require "READ" permissions from the user due to the
nature of my service which is only to provide metrics for each campaign.
my code is as follow:
const {OAuth2Client} = require('google-auth-library');
generateAuthenticationUrl() {
return this.oauth2Client.generateAuthUrl({
access_type: 'offline',
prompt: 'consent',
scope: 'https://www.googleapis.com/auth/adwords'
});
}
after a glimpse in the reference, I've tried to add ".readonly" suffix but
it didn't work.
(scope: 'https://www.googleapis.com/auth/adwords.readonly')
is it doable? can I define a READ-ONLY scope? if so, how do I achieve that?
Thanks, Roby (-:
--
--
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
Also find us on our blog:
https://googleadsdeveloper.blogspot.com/
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
You received this message because you are subscribed to the Google
Groups "AdWords API and Google Ads API Forum" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/adwords-api?hl=en
---
You received this message because you are subscribed to the Google Groups
"AdWords API and Google Ads API Forum" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/adwords-api/d092079a-31a3-4f37-bdde-5f333ee91efbo%40googlegroups.com.