Mike, You can get the response in XML format as well. Please see our Reporting guide regarding the supported formats<https://developers.google.com/adwords/api/docs/guides/reporting> . I recall the client libraries should also have an option for you to retrieve the report and storing it either in memory or in a temporary file.
Please keep in mind, the request / response paradigm is not much different from the SOAP messaging. In SOAP, the SOAP client parses the XML for you, where as with reporting service - your application will need to parse the response data. I hope this helps, -- Ray Tsang (AdWords API Advisor) On Wednesday, January 15, 2014 3:04:27 PM UTC-5, Mike C wrote: > > Thank you for the help Ray. > > I just want to use these stats in a Rails view. Is there a way to get a > response that is just like an XML dump that I can parse? These clients > check their data a few times a day using various different data ranges. > The campaignstats object I am using now is very helpful but it is being > sunset and you also mentioned I can't get MCC stats that way. > > Is my only option to actually download a report from the API and parse it > every time a user changes the date range to request a new data set? Is > that the only way to get these stats values moving forward? > > Thanks, > > Mike > > On Tuesday, January 14, 2014 3:03:29 PM UTC-8, Ray Tsang (AdWords API > Team) wrote: >> >> Mike, >> >> You are welcome! Depending on your needs, you may be able to download >> the data periodically so that you can avoid hitting the server every time. >> Some metric/report are updated at different >> time<https://support.google.com/adwords/answer/2544985>- so you can take >> advantage of synchronizing the data when it becomes fresh. >> >> Thanks, >> >> -- >> Ray Tsang (AdWords API Advisor) >> >> >> >> >> On Monday, January 13, 2014 10:06:33 PM UTC-5, Mike C wrote: >>> >>> Thanks for the response Ray! >>> >>> I've taken a look at your links - Do I need to actually download reports >>> and parse them for this data or can I get an XML response (or any other >>> format I can parse) to the request? I have users that will be changing >>> their date range in the app dash and it doesn't seem very efficient for me >>> to have to download a report, save it , open it, and parse it every time. >>> >>> Please advise. Your help is most appreciated! >>> >>> Mike >>> >>> On Monday, January 13, 2014 12:31:26 PM UTC-8, Ray Tsang (AdWords API >>> Team) wrote: >>>> >>>> Mike, >>>> >>>> There is a way to retrieve stats for all accounts within an MCC. You >>>> will need to iterate over all of the descendant accounts of the MCC, and >>>> for each of those account, get the stats from reporting. >>>> >>>> You can continue to use OAuth 2.0 as the MCC account user. For example: >>>> 1. Use the >>>> ManageCustomerService<https://developers.google.com/adwords/api/docs/reference/v201309/ManagedCustomerService> >>>> to >>>> get a list of accounts (and the customer ID) managed by the MCC >>>> 2. For each account, query for the >>>> stats<https://developers.google.com/adwords/api/docs/guides/reporting>that >>>> you need to aggregate by specifying the Client Customer ID (without >>>> the dashes). >>>> >>>> Cheers, >>>> >>>> -- >>>> Ray Tsang (AdWords API Advisor) >>>> >>>> >>>> >>>> On Tuesday, January 7, 2014 4:05:39 PM UTC-5, Mike C wrote: >>>>> >>>>> Hi Adwords Team, >>>>> >>>>> I've followed the adwords_on_rails demo to create a rails app with a >>>>> dashboard view that shows an account's stats (clicks, impressions, >>>>> conversions, etc.), just like an adwords dashboard. >>>>> >>>>> When a user logs in they authenticate through OAuth and land on a >>>>> selection screen where they select an account ID through a generated list >>>>> or input one manually (per your setup in adwords_on_rails). It all works >>>>> perfectly. >>>>> >>>>> However, is there a way that I can see an overview with stats for all >>>>> the accounts within an MCC? Just like when I sign into adwords with the >>>>> main MCC account credentials, I see a dash with all my clients accounts >>>>> and >>>>> their associated stats (all impressions, clicks etc. for client 1, client >>>>> 2, etc.). >>>>> >>>>> How would I set it up so that I could see that view within the app? >>>>> When I OAuth in as the MCC account, I see a list of all the clients and >>>>> can click on their id set the account id and go into their individual >>>>> dash. >>>>> Even though the MCC's account ID is clickable, if I use it, the dash >>>>> returns no data. >>>>> >>>>> This is important so that we can have agency views as well as >>>>> franchises that have multiple accounts that want a main dash to see all >>>>> their individual account stats. >>>>> >>>>> Any help would be greatly appreciated! >>>>> >>>>> Thanks in advance! >>>>> >>>>> Mike >>>>> >>>> -- -- =~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~ Also find us on our blog and discussion group: http://googleadsdeveloper.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 [email protected] To unsubscribe from this group, send email to [email protected] 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 [email protected]. For more options, visit https://groups.google.com/groups/opt_out.
