adwords api multiple account

34 views
Skip to first unread message

Mohammad Fikrih Abdullah

unread,
May 26, 2020, 5:38:07 AM5/26/20
to AdWords API and Google Ads API Forum
currently i have project for sharing customer match data(email) across different account
i'd like  ask  following question regarding how can i authenticate my batch to send data to appropriate account
  • if i'm using service account, is it possible to use same service account across different multiple account? or is there any preferred way?
  • if i'm using clientid + client secret + refresh token, that means different account required different client id and client secret , is it correct?

Google Ads API Forum Advisor Prod

unread,
May 26, 2020, 2:33:58 PM5/26/20
to muhfikri...@gmail.com, adwor...@googlegroups.com
Hi Mohammad,

Thank you for reaching out to us. I see that you have several concerns. You'll find my response to these concerns below.

1. If i'm using service account, is it possible to use same service account across different multiple account? or is there any preferred way?
You should be able to use the service account to access other accounts. Usually for service accounts, we recommend users to use Installed Application Flow as it is a simpler alternative that is easier to implement and achieve the same results.

2. If i'm using clientid + client secret + refresh token, that means different account required different client id and client secret, is it correct?
It may depend. Your client ID, client Secret and refresh token only are required to allow you to access the API but also to access accounts. If an account has set you as an allowed user in "Tool and Settings" > "Setup" > "Account Access" then you won't need to have a new set of OAuth credentials to access a different account. However, if the account doesn't have you as an allowed user, you can either add your user under "Account Access" or use an email/user that has access. You can read about this here.

Let me know if you have further questions.

Thank you,
Bryan, Google Ads API Team

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