Api Call On Behalf Of Other Users

13 views
Skip to first unread message

Yalçın Özveren

unread,
Jan 2, 2019, 5:02:26 AM1/2/19
to AdWords API and Google Ads API Forum
Hi,

I need to make Adwords API calls on behalf of other users. But I don't know how. I can get data from my company's Adwords account via developer token, client ID and client secret. But I don't know how to manage it for other users.

I follow OAuth2 procedure and after user accepts and gives me permission, I get access_token, refresh_token etc. for the user. How can I use these to make a call to their account and, for example, list their campaigns or keywords? I tried to build OfflineCredentials, called withRefreshToken method providing the refresh_token I got for the user and it gives me CUSTOMER_NOT_ACTIVE error. I'm very confused about what to do. So I'm waiting for your help.

P.S.: I'm using Spring Boot if that helps.

Thanks.

Reply all
Reply to author
Forward
0 new messages