Anash, Thank you for the advice! I was able to get this to work pretty well!
Do you have any advice for me on where to begin looking for examples of threading, or where I can find some instructions on it for the php client library? -Ashley On Tuesday, June 26, 2012 3:23:59 AM UTC-7, Anash P. Oommen wrote: > > Hi Ashley, > > If you look at > http://code.google.com/p/google-api-adwords-php/source/browse/trunk/src/Google/Api/Ads/AdWords/Lib/AdWordsUser.php#103, > > you could see that AdWordsUser allows you to provide all the parameters for > configuring it in the constructor. Also, if you pass a non-null value for > any parameter, it overrides the value in the ini file. (e.g. $email in the > constructor takes precedence over email key in auth.ini). > > So you could provide all the keys in your auth.ini (except client id) and > then create multiple AdWordsUser objects for each client id using the > overloaded constructors. > > Hope this helps. Let me know if you have more questions. > > Cheers, > Anash P. Oommen, > AdWords API Advisor. > > On Tuesday, 26 June 2012 02:18:42 UTC+5:30, Ashley Bennett wrote: >> >> Can anyone give me a run down on how to creatively use the constructor >> to dynamically (with or without threading) 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 >> ----XXXXXXXXXX, Tertiary Sub Account >> >> I need to be able to iterate dynamically through our entire list of >> accounts (quite large) and perform a campaign stats report for each one, >> then use the returned data and store it into our own CIM. >> >> Specifically where I am the most confused has to do with how to blend the >> example files together. The campaign stats example file is great, 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 and tertiary account, but I don't see a way to use the adwords user >> constructor in combination with these two example files in order to pull >> the right data. >> >> 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. >> >> Any advice would be greatly appreciated. >> >> >> -- =~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~ Also find us on our blog and discussion group: http://adwordsapi.blogspot.com http://groups.google.com/group/adwords-api =~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~ 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