Mike,

Please see php client library doc.  You can dynamically set client customer 
ID by calling 
SetCustomerId()<http://googleads.github.io/googleads-php-lib/AdWords/>function.

Cheers,

Ray

On Friday, March 7, 2014 8:13:56 AM UTC-5, Mike Young wrote:
>
> My question is the same exactly what was posted two years ago that is 
> below. I have tried everything.....how can I change the 
> getcampaignstats.php or another file such as Downloadreportcriteria.php and 
> hard code the *ClientCustomerId*. 
> I will then use this many times each with a different *ClientCustomerId 
> in. (Then it will not take the value from AdwordsUser.php*, and I can run 
> many of them at one time, via threadding etc....)
>
>
> *Can anyone give me a run down on how to  pull campaign stats for one MCC 
> with a LOT of sub accounts within it?*
> I can't seem to find much in the way of advice for this.
> Example Account Structure for our MCC:
>
> XXXXXXXXXX, MAIN MCC ACCOUNT
> --XXXXXXXXXX, Sub Account
> --XXXXXXXXXX, Sub Account
> --XXXXXXXXXX, Sub Account
> --XXXXXXXXXX, Sub Account
> --XXXXXXXXXX, Sub Account
> --XXXXXXXXXX, Sub Account
> --XXXXXXXXXX, Sub Account
>
>
> I need to be able to iterate dynamically through our entire list of 
> accounts (quite large 25 clients) and perform a campaign stats report for 
> each one, then use the returned data and store it into our own DB.
>
> The campaign stats example file is great (V201306 (will update version 
> later), but it takes a hard coded clientCustomerID from the auth.ini file 
> in order to run that report with the live service.  
> I can run the account hierarchy example file, and get all of our account 
> id's, and the client customer ID's of each sub account.
> The php client library has lots of example files, but not much in the way 
> of 'how-to' guides explaining how to dynamically run reports without the 
> use of the auth.ini file, or how I can perform dynamic reporting with 
> threading.
>
> Full question and replies are here (
> https://groups.google.com/forum/#!topic/adwords-api/zZB9oaURERM)
>
> The adhoc answer at the bottom does not show full code for php.
> I would love to be able to report using this way
>
>
>  (Someone please help)
>
> Thanks!
>
>

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
Also find us on our blog and Google+:
https://googleadsdeveloper.blogspot.com/
https://plus.google.com/+GoogleAdsDevelopers/posts
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~

You received this message because you are subscribed to the Google
Groups "AdWords API Forum" group.
To post to this group, send email to adwords-api@googlegroups.com
To unsubscribe from this group, send email to
adwords-api+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/adwords-api?hl=en
--- 
You received this message because you are subscribed to the Google Groups 
"AdWords API Forum" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to adwords-api+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to