Creating an AdWords account for user when NOT_ADS_USER is thrown?

22 views
Skip to first unread message

Jon Perry

unread,
Mar 15, 2017, 4:02:42 PM3/15/17
to AdWords API Forum
Hello,

I'm not sure if this is possible but I'm having trouble working out how to make a user an "ads user" when the NOT_ADS_USER exception is thrown.

We'd like to be able to create an AdWords account for users that don't have one using their refresh token.

I can create a new account as the MCC but I can't figure out how to invite them to it since the invitation requires their client customer id.

Is this possible to achieve or is it required that a user set up their own AdWords account?

Thank you.

Shwetha Vastrad (AdWords API Team)

unread,
Mar 15, 2017, 5:32:45 PM3/15/17
to AdWords API Forum
Hi, 

If an email address is not already associated with an AdWords account, you'll not be able to create an account using its OAuth2 credentials. If this email address is associated with a Manager account, you'll be able to create new accounts and link to other accounts using ManagedCustomerService. Please see the Managing Accounts guide for more information on using this service. The CreateAccount Java example shows how to create an account under an AdWords manager account. Example code in other languages is available here.

To link a manager account and a client account, you need to:
  1. Extend an invitation to the client account from your Manager account.
  2. Accept the invitation from the client account.
Please note that you need to know the clientCustomerId beforehand. You should ensure that you use the main MCC's OAuth2 credentials for the first step and the sub-MCC's OAuth2 credentials for the second step. 

Regards,
Shwetha, AdWords API Team.

Reply all
Reply to author
Forward
0 new messages