Hi Sandeep, I got the response as you expected,
- Use download type as XML - Use getStream() to get data - Use simplexml_load_string to load the content - Convert to json That's it. I hope it may help you. On Monday, June 3, 2019 at 12:24:06 PM UTC+5:30, Sandeep Yadav wrote: > > Hi Everyone, > > I am using the Google AdWords API to get campaigns reports. While I am > accessing the reports using getAsString() then I can see the report is > being downloaded into excel format. > > I don't want a report to be download. I want the result in an array or > JSON. > > Can you please help me to fix this issues. > > Thank You > -- -- =~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~ Also find us on our blog: https://googleadsdeveloper.blogspot.com/ =~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~ You received this message because you are subscribed to the Google Groups "AdWords API and Google Ads 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 and Google Ads API Forum" group. To unsubscribe from this group and stop receiving emails from it, send an email to adwords-api+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/adwords-api/b56f130f-47cf-477b-9df2-ec92d4783fb8%40googlegroups.com.