Hi, i am trying to download this report 
ReportDefinitionReportType.VIDEO_PERFORMANCE_REPORT
but something is very weird: the data is NOT being aggregated

for the same AdGroupId,CampaignId,Date i get more then one row.

and while using the ui of google ad word (website) there is only one row 
for this columns.

in download report data is actually split into two rows and they are equals 
to the actual total
but the entire calculation of all % columns are effected .

i even tried downoading a report with less column and i am getting more 
than one row

could it be a bug ?

this is my code:

    Selector selector = new Selector();
    List<String> fields = selector.getFields();

    fields.add("AdGroupId");
    fields.add("CampaignId");
    fields.add("Clicks");
    fields.add("Cost");
    fields.add("Date");
    fields.add("Engagements");
    fields.add("Impressions");
    fields.add("VideoDuration");
    fields.add("VideoQuartile100Rate");
    fields.add("VideoQuartile25Rate");
    fields.add("VideoQuartile50Rate");
    fields.add("VideoQuartile75Rate");
    fields.add("VideoViews");



    DateRange dateRange = new DateRange();
    dateRange.setMin(startDate);
    dateRange.setMax(endDate);
    selector.setDateRange(dateRange);

    // Create report definition.
    ReportDefinition reportDefinition = new ReportDefinition();
    reportDefinition.setReportName("keywords convertion report #" + 
System.currentTimeMillis());
    
reportDefinition.setDateRangeType(ReportDefinitionDateRangeType.CUSTOM_DATE);
    
reportDefinition.setReportType(ReportDefinitionReportType.VIDEO_PERFORMANCE_REPORT);
    reportDefinition.setDownloadFormat(DownloadFormat.GZIPPED_CSV);
    reportDefinition.setIncludeZeroImpressions(false); // tried even delete 
this row but didnt change
    reportDefinition.setSelector(selector);

    // try {
    // download the report
    ReportDownloader reportDownloader = new ReportDownloader(adWordsSession);
    reportDownloader.setReportDownloadTimeout(HTTP_READ_TIMEOUT);
    ReportDownloadResponse response = 
reportDownloader.downloadReport(reportDefinition);
            GZIPInputStream inputStream = new 
GZIPInputStream(response.getInputStream());

<https://github.com/jradcliff>

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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/ae2005c0-f155-4d14-9f9d-d3e84781ff7c%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to