Hello,

I am retrieving ad performance report using java SDK. 

for some ads I recieve duplicate rows, all the data is exactly the same. In 
order to investigate the issue, I have removed the field I request, one by 
one and came to realize that Date field is causing the problem, without it 
the data is received fine

This is my request:

Selector selector = new Selector();
//set fields
selector.getFields().addAll(Lists.newArrayList(
        "AccountCurrencyCode",
        "AdGroupId",
        "AdType",
        "AveragePageviews",
        "AveragePosition",
        "CampaignId",
        "Labels",
        "Id",
        "Clicks",
        "Cost",
        "CreativeDestinationUrl",
        "CreativeFinalUrls",
        "CreativeTrackingUrlTemplate",
        "Date",
        "DisplayUrl",
        "Headline",
        "Impressions"


));

//set dates
DateRange dateRange = new DateRange();
dateRange.setMin(startDate.toString());
dateRange.setMax(endDate.toString());
selector.setDateRange(dateRange);

// Create report definition.
ReportDefinition reportDefinition = new ReportDefinition();
reportDefinition.setReportName("Ad performance report #" + 
System.currentTimeMillis());
reportDefinition.setDateRangeType(ReportDefinitionDateRangeType.CUSTOM_DATE);
reportDefinition.setReportType(ReportDefinitionReportType.AD_PERFORMANCE_REPORT);
reportDefinition.setDownloadFormat(DownloadFormat.XML);
reportDefinition.setSelector(selector);



startDate and endDate are of type LocalDate


Any thing I am doing wrong?


Thanks


Nir

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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 [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].
Visit this group at https://groups.google.com/group/adwords-api.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/adwords-api/03d5de98-31fc-48c4-9883-f7f1fe242844%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
  • duplicate rows i... nir.benyaacov via AdWords API Forum
    • Re: duplica... 'Vishal Vinayak (Adwords API Team)' via AdWords API Forum
      • Re: dup... nir.benyaacov via AdWords API Forum
        • Re:... 'Vishal Vinayak (Adwords API Team)' via AdWords API Forum
          • ... nir.benyaacov via AdWords API Forum
            • ... 'Vishal Vinayak (Adwords API Team)' via AdWords API Forum
    • Re: duplica... nir.benyaacov via AdWords API Forum
    • Re: duplica... nir.benyaacov via AdWords API Forum

Reply via email to