how to include includeZeroImpressions in header

162 views
Skip to first unread message

di...@algomizer.com

unread,
Apr 17, 2016, 5:35:51 AM4/17/16
to AdWords API Forum
According to adwords api new version includeZeroImpressions was removed:

"The includeZeroImpressions field in ReportDefinition is removed. Use the HTTP header to include zero impressions in your report results instead."
so I can't use ReportDefinition object property "includeZeroImpressions" like this:

 ReportDefinition definition = new ReportDefinition();
.....
definition.includeZeroImpressions = true;

ReportUtilities utilities = new ReportUtilities(AdwordsUser, "v201603", definition); 
     using (ReportResponse response = utilities.GetResponse())
                {
                        read results .....
                 }
 and should add it to HTTP header.
Can any one provide an example how to do it ?

Umesh Dengale

unread,
Apr 18, 2016, 10:51:00 AM4/18/16
to AdWords API Forum
Hello,

You could set includeZeroImpressions preperty of ReportingConfiguration. Please check out DownloadCriteriaReport Java example code from the client library. Other languages example code could be found here.

Thanks,
Umesh, AdWords API Team.

Reply all
Reply to author
Forward
0 new messages