How do I get all the Account for given customerId?

6 views
Skip to first unread message

dasar...@yahoo.com

unread,
Sep 30, 2008, 9:37:09 PM9/30/08
to AdWords API Forum
Hi,

In our system, one customer maps to many Accounts in Google.

We want to get all the Accounts for given customerId. How would I get?
AccountInfo info = service.getAccountInfo(), gives one Account.

Please help.

Thanks,
Das

Jan Piotrowski (AdWords API Guru)

unread,
Oct 1, 2008, 2:50:42 AM10/1/08
to AdWords API Forum
Every account has its own customerId. Or are you talking about a MCC
account?

- Jan

ckrahn

unread,
Oct 1, 2008, 11:25:31 AM10/1/08
to AdWords API Forum
Since Google has its own customer id linked to each account, it has
nothing to do with your own customer id's in your own system.
Unless you have a local table where you link each of your own customer
id's to the google id's or loginEmails, the only way would be to read
the primary adress data from each account and compare it with your
local data - if there is a match you got the accounts. But that method
would probably eat up some quota if you have many accounts to manage.

Regards,
Christian

On 1 Okt., 03:37, "dasarad...@yahoo.com" <dasarad...@yahoo.com> wrote:

Eric

unread,
Oct 2, 2008, 10:13:37 AM10/2/08
to AdWords API Forum
What about if you give MCC credentials (i.e. add all the appropriate
headers except client email)?
> > Das- Hide quoted text -
>
> - Show quoted text -

Christian Krahn

unread,
Oct 2, 2008, 10:27:09 AM10/2/08
to AdWords API Forum
That way you can get all the accounts in that MCC. That doesnt mean
that those accounts belong to one customer (unless you have one MCC
for each of your customers to handle each customer's accounts). So you
still would need some sort of identifier for each customer inside the
MCC.

One possible way would be if you use the account descriptiveName as
field for your own customer id. But then you would have to load each
account and check the value of the descriptiveName field to find out
if its the one.

Regards,
Christian
Reply all
Reply to author
Forward
0 new messages