Hi Shibu,
We too faced the same memory load issue when parsing an big XML file, but
we have overcome this problem by using SAX Parser API.
The other APIs like SAX Builder will load the whole 500MB file into memory
and try to parse which leads to memory load. But this SAXParser doesn't
load the
Hi Shibu,
524MB is a big xml, you might want to increase the memory on your machine,
or consider an alternate format like CSV for downloading the reports.
Cheers,
Anash P. Oommen,
AdWords API Advisor.
On Thursday, May 8, 2014 8:51:40 AM UTC-7, shibu thomas wrote:
Hi -
I've successfully
Hi -
I've successfully been able to create report definitions (Ad Performance
Report and Keyword Performance Report) and when I log into the MCC account
I'm able to run the reports and it returns with appropriate data. However,
when I attempt to download the report via the reportdownload API
Shibu,
Did you call simplexml_load_file directly or was that called from the
client library? To process a large amount of XML files, you may want to
take a streaming approach instead in order to avoid memory issues. We also
recommend users to get data in smaller chunks with smaller date
Hey all,
I have problems retrieving Ad Performance Report when adding a predicate to
the selector fields. I get a AdwordsApi::Errors::ReportXmlError.
My ad report definition is as follows (I'm using the ruby client library
v201302):
ad_report_definition = {
:selector = {
:fields =
Hello Szabolcs,
ACTIVE is not a valid status, see:
https://developers.google.com/adwords/api/docs/appendix/reports#ad
Try predicate:
:predicates = [
{:field = 'Status', :operator = 'IN', :values = ['ENABLED', 'PAUSED']}
]
Also, note predicates should be an array.
-Danial, AdWords API