The doc say Video Campaigns are supported through reports, But I got nothing

30 views
Skip to first unread message

avidl...@gmail.com

unread,
Oct 30, 2018, 7:06:26 AM10/30/18
to AdWords API and Google Ads API Forum

Hi all:

 
        The doc say  Video Campaigns are supported through reports, But I got nothing (),

1.png

2.png



mycode is following:

           Selector selector = new Selector();      
    List<String> fields = new ArrayList<String>();      
    fields.add("CampaignId");
    fields.add("CampaignName");
    fields.add("Clicks");
    fields.add("Cost");
    fields.add("Date");
    fields.add("Engagements");
    fields.add("Impressions"); 
    fields.add("VideoId");
    fields.add("VideoViews");
    selector.getFields().addAll(fields);

    DateRange dateRange = new DateRange();
    dateRange.setMin("20181021");
    dateRange.setMax("20181031");
    selector.setDateRange(dateRange);
     
    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.CSV); 
    reportDefinition.setSelector(selector); 
 
    ReportDownloaderInterface reportDownloader =
            adWordsServices.getUtility(session, ReportDownloaderInterface.class);

        // Set the property api.adwords.reportDownloadTimeout or call
        // ReportDownloader.setReportDownloadTimeout to set a timeout (in milliseconds)
        // for CONNECT and READ in report downloads.
        ReportDownloadResponse response = reportDownloader.downloadReport(reportDefinition);
        response.saveToFile("d:\\reportFile.csv");
Message has been deleted

Milind Sankeshware (AdWords API Team)

unread,
Oct 30, 2018, 1:42:04 PM10/30/18
to AdWords API and Google Ads API Forum
Hi Lei,

You cannot get the stats at the ad asset level. But to get the ad assets, you will need to use CampaignService.get() and then you can check for the youtubevideomediaids. I can see all the campaigns under the mentioned client customer id are Universal App Campaigns. Please find this document to check the reports which are supported by UAC. Let me know if you have any further questions.

Thanks,
Milind, AdWords API Team
Reply all
Reply to author
Forward
0 new messages