Re: Pull campaign stats for one MCC with sub accounts

2014-03-10 Thread Ray Tsang (AdWords API Team)
Mike,

You have to specify a single client customer ID at a time with the client 
library.  At this time, you'll have to loop through the array of the CIDs 
that you want to access.

Cheers,

Ray

On Monday, March 10, 2014 5:21:17 AM UTC-4, Mike Young wrote:
>
> I am already setting the client customer ID this way. 
>>
>  
>
>> Every time it is run, it grabs a new client id from a text file that has 
>> all of our client id numbers in. But I want them all in one long report 
>> once every 10 minutes.
>>
> At the moment if I have 30 clients, that 30th client will not be updated 
> for 30 minutes, as it runs the scheduled file every 1 minutes. 
>
> I would like to see :- 
> $this->SetClientCustomerId("123-456-7890","987-654-3210","123-456-7890");
>
> Your code could be "If array, then count how many in this array, and loop 
> that many times. 
>
> So just to be clear by entering your MCC id, you *can't *get reporting 
> stats from many sub accounts in one go, without changing the code. 
>  
> Regards Mike 
>  
>

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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.


Re: Pull campaign stats for one MCC with sub accounts

2014-03-10 Thread Mike Young

>
> I am already setting the client customer ID this way. 
>
 

> Every time it is run, it grabs a new client id from a text file that has 
> all of our client id numbers in. But I want them all in one long report 
> once every 10 minutes.
>
At the moment if I have 30 clients, that 30th client will not be updated 
for 30 minutes, as it runs the scheduled file every 1 minutes. 

I would like to see :- 
$this->SetClientCustomerId("123-456-7890","987-654-3210","123-456-7890");

Your code could be "If array, then count how many in this array, and loop 
that many times. 

So just to be clear by entering your MCC id, you *can't *get reporting 
stats from many sub accounts in one go, without changing the code. 
 
Regards Mike 
 

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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.


Re: Pull campaign stats for one MCC with sub accounts

2014-03-07 Thread Ray Tsang (AdWords API Team)
Mike,

Please see php client library doc.  You can dynamically set client customer 
ID by calling 
SetCustomerId()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:
>
> XX, MAIN MCC ACCOUNT
> --XX, Sub Account
> --XX, Sub Account
> --XX, Sub Account
> --XX, Sub Account
> --XX, Sub Account
> --XX, Sub Account
> --XX, 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.


Pull campaign stats for one MCC with sub accounts

2014-03-07 Thread Mike Young
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:

XX, MAIN MCC ACCOUNT
--XX, Sub Account
--XX, Sub Account
--XX, Sub Account
--XX, Sub Account
--XX, Sub Account
--XX, Sub Account
--XX, 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.