Hi,

we download campaign performance stats on a daily basis and encounter this 
exception fairly regularly.  Is anyone else seeing this? :

Exception System.NullReferenceException: Object reference not set to an 
instance of an object.
at 
Google.Api.Ads.AdWords.Util.Reports.ReportUtilities.DownloadReportToStream(String
 
downloadUrl, Boolean returnMoneyInMicros, String postBody, Stream 
outputStream)
at 
Google.Api.Ads.AdWords.Util.Reports.ReportUtilities.DownloadClientReportInternal(String
 
downloadUrl, String postBody, Boolean returnMoneyInMicros, String path)
at 
Google.Api.Ads.AdWords.Util.Reports.ReportUtilities.DownloadClientReport[T](T 
reportDefinition, Boolean returnMoneyInMicros, String path)

AFAICT the problematic invocations are not significantly different to other 
successful invocations.  It occurs irrespective 
of ReportDefinitionReportType.  Here is how we create the ReportDefinition:

ReportDefinition definition = new ReportDefinition();
definition.reportName = "blah";
definition.reportType = 
ReportDefinitionReportType.CAMPAIGN_PERFORMANCE_REPORT;
definition.downloadFormat = DownloadFormat.CSV;
definition.includeZeroImpressions = true;
definition.dateRangeType = ReportDefinitionDateRangeType.TODAY;
Selector selector = new Selector();
selector.fields = ... dictionary of fields ...;
definition.selector = selector;

This is with Assembly Google.AdWords.dll, v16.6.0.0.

Many thanks, Peter

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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].
For more options, visit https://groups.google.com/d/optout.

Reply via email to