hi,

I'm having problem when generate Criteria Performance Report, i can not get the 
all targeting like age and gender.

but in the UI this account have this targeting.


this is the code:


List<String> fields = new ArrayList<>();


fields.add("AdGroupId");
fields.add("CriteriaType");
fields.add("Criteria");

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

lector selector = new Selector();
selector.getFields().addAll(fields);
selector.setDateRange(dateRange);

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

// download the report
ReportDownloader reportDownloader = new ReportDownloader(adWordsSession);
reportDownloader.setReportDownloadTimeout(HTTP_READ_TIMEOUT);
ReportDownloadResponse response = 
reportDownloader.downloadReport(reportDefinition);

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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.
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/f9a4436d-6226-4d17-84ea-a62c12bafb85%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
  • ... 'Raneen Bsais' via AdWords API and Google Ads API Forum
    • ... 'Dannison Yao (AdWords API Team)' via AdWords API and Google Ads API Forum
      • ... 'Raneen Bsais' via AdWords API and Google Ads API Forum
        • ... 'Dannison Yao (AdWords API Team)' via AdWords API and Google Ads API Forum

Reply via email to