Sandbox - getting all campaigns across all accounts, php (v200909)

17 views
Skip to first unread message

atari-i

unread,
Jul 5, 2010, 12:33:58 PM7/5/10
to AdWords API Forum
I've been using the PHP ClientLibrary & the Sandbox to run the
included examples - and I've added some Campaigns for a couple of
different accounts (setting different clientId in auth.ini) and all
seems to be working fine.

But the end goal is to get all campaigns across all accounts - and
when i try to do that (by running GetAllCampaigns.php with the
clientId line in auth.ini commented out) I get no campaigns back
(message: "No campaigns were found")

Any suggestions where I'm going wrong?

Is it possible to get all campaigns for all accounts in the sandbox?

Many Thanks

AdWords API Advisor

unread,
Jul 7, 2010, 3:20:09 PM7/7/10
to AdWords API Forum
Hi,

It isn't possible to make requests across client accounts, and each
request can only operate against a single client account. Requests
made without specifying a client ID (clientEmail or clientCustomerId)
are made against the MCC account, which can't have any campaigns.

Best,
- Eric Koleda, AdWords API Team

atari-i

unread,
Jul 15, 2010, 5:48:35 AM7/15/10
to AdWords API Forum
Thanks for that!

On Jul 7, 8:20 pm, AdWords API Advisor <adwordsapiadvi...@google.com>
wrote:
> > Many Thanks- Hide quoted text -
>
> - Show quoted text -
Reply all
Reply to author
Forward
0 new messages