rmostafa/DotNetAnalyticsAPI — pull request #6 by ginji (2014-05-26 06:02:27+00:00)
Title: Update AnalyticsManager.cs

Certain requests can cause Google.Apis.Analytics.v3.Data.GaData.Rows to be null, and throw an error. Rather than causing the error, check if this condition exists and return an empty data table, and let the client application deal with the empty table.

I've encountered this condition when requesting things like demographics/audience, for example:

Metrics: Analytics.Data.Visitor.Metrics.visitors
Dimensions: Analytics.Data.Audience.Dimensions.visitorAgeBracket

In GA I see the message "Some data in this report may have been removed when a threshold was applied. (https://support.google.com/analytics/answer/2954071?hl=en-GB&utm_id=ad)" when accessing these same values.