Define authintication programatically

15 views
Skip to first unread message

DanielR

unread,
Apr 16, 2014, 2:45:11 PM4/16/14
to adwor...@googlegroups.com

Hello experts,
I was asked to set up a system for an agency that provides AdWords management services to other businesses.
The main webapplication needs to show all sort of statistics and processed data according to the customers preferences,
from the agency's DB and Google AdWords as well.

In all of my testings, the only way that I was able to fetch the data from the AdWords API was to login to the "master" Google Account,
or give permissions to a certain campaign to another Google account and login with it.

Is there a way to programatically define the "master" MCC account details and fetch the relevant data for every campaign request using our own mapping between the user and the Client ID from the MCC?

Thanks,
Daniel.

Josh Radcliff (AdWords API Team)

unread,
Apr 16, 2014, 6:43:18 PM4/16/14
to adwor...@googlegroups.com
Hi Daniel,

If I'm understanding your question properly, it sounds like you are looking for a way to have a single set of credentials that you can use to issue API requests against all of the individual AdWords accounts you are managing.

If so, then you can achieve this by using OAuth credentials obtained while logged into your MCC account, provided all of the individual AdWords accounts are linked to your MCC.  You can even programmatically send invitations (as the MCC) and accept or reject invitations (as the client) using the ManagedCustomerService.

Another document that may be helpful is our OAuth guide for users with a single top level MCC.

Cheers,
Josh, AdWords API Team
Reply all
Reply to author
Forward
0 new messages