Accessing to multiple AdWords account under the same MCC account.

312 views
Skip to first unread message

Bikram Bhuyan

unread,
Jan 9, 2014, 1:26:41 PM1/9/14
to adwor...@googlegroups.com
Hi,

Currently we have a MCC account with 3 ad-words account under it. (i.e: when I log in to our mcc account I can see 3 account with different customer id). I generated my refresh token by giving access with my login and currently accessing data for our test account. Everything is working fine as expected.

Wanted to know I think the same refresh token can be used to connect to the other accounts. In the code how can I point to different adwords account with the same refresh token. This part is little confusing to me. If you could provide some details that will be great.

Thanks,
Bikram.

Ray Tsang (AdWords API Team)

unread,
Jan 13, 2014, 5:51:24 PM1/13/14
to adwor...@googlegroups.com
Bikram,

If you generated a refresh token as the MCC user, then that refresh token can be used to access all of the children AdWords account that MCC has access to.

In order to access a specific account, you will need to set the clientCustomerId (e.g., the CID for one of the 3 accounts that you have under the MCC).  Every client library should have a way to set it during the run time - please refer to a client library's documentation.

Cheers,

--
Ray Tsang (AdWords API Advisor)

Bikram Bhuyan

unread,
Jan 24, 2014, 5:45:49 PM1/24/14
to adwor...@googlegroups.com
Hi Ray,

Thanks a lot for your response and it works great for the accounts which are listed under out MCC account after we change the clientCustomerId in the code.

Now I have a different situation. We are connecting to third party AdWords account which are not listed under our MCC account. We are using OAuth to get the RefreshToken for the client. Now my question is how do we get the client's adwords customer id.

In Order to connect to client's account we need to have the RefreshToken (which are got from the OAuth process) as well as the client's customer Id. The OAuth process does not return the client's Customer Id. Then where should we get this value to connect to client's adwords account.

Thanks,
Bikram.

Ray Tsang (AdWords API Team)

unread,
Jan 28, 2014, 10:29:06 AM1/28/14
to adwor...@googlegroups.com
Bikram,

IIRC, if you used a refresh token that's directly tied to an AdWords account (and not a MCC account), then you don't necessarily need to provide the client customer (It should default to the account that the refresh token is associated with).

If you absolutely need to get the customer ID, then you can use CustomerService to retrieve the information.

Cheers,

--
Ray Tsang (AdWords API Advisor)


Reply all
Reply to author
Forward
0 new messages