Certain "Unique" Metrics Confusing in v2 Analytics (Deprecated)

Was this article helpful?

In v2 Analytics, certain "unique" metrics were unexpectedly returned in responses.

Warning: The v2 Analytics API has been deprecated. See Ooyala IQ Analytics for more details on the new v3 Analytics API.
In the v2 Analytics API, you can request that the system return the "daily uniques" (unique viewership details) for a given date. Unfortunately, the API response included not just the "daily uniques" but sometimes unexpectedly the "weekly" and "monthly" uniques. This presented difficulty to the user, who had to determine exactly which metric was the one he wanted among those he had requested and those not expected in the response. These metrics are shown in the snippet of a v2 Analytics response shown below:
"metrics": {
    "video": {
     "uniq_replays": {
      "monthly_uniqs": "40",
      "daily_uniqs": "45",
      "weekly_uniqs": "40"

In Ooyala IQ, this behavior has been corrected such that only a single "unique" metric is returned in the response. The single unique metric corresponds to the time frame specified on the request (daily, weekly, and so forth).