Impressions
Method: POST
URL: https://www.wellcomemat.com/api/analytics/impressions.php
Notes:
-
This endpoint returns the total plays and player impressions for the range. A play is a viewer starting the video, counted the moment playback begins, with no minimum watch time.
-
You may only use one or none of
shared,hash, andfilter.
Parameters
| Key | Type | Description |
|---|---|---|
| key | text | {{key}} |
| secret | text | {{secret}} |
| start_date | text | Required [YYYY-MM-DD hh:mm:ss] |
| end_date | text | Required [YYYY-MM-DD hh:mm:ss] |
| shared | text | If request Rolled-up Reporting [“true”,“false”] |
| hash | text | Focuses view query on the given Media Hash |
| filter | text | Custom filter can be created (“vv.media_id = 214122”) |
| debug | text | [“true”,“false”] |
Response
-
loadsis the player impression count plus the estimated view count. An estimated view is a request that downloaded more than 1,000 bytes of a video file from the CDN, or a view YouTube or Facebook reported. -
viewsis the larger of the play count and the estimated view count. Both counts include the views YouTube and Facebook report, so adding them would count those views twice. -
views_percentisviewsas a percentage ofloads. -
loads_percentis the difference between 100 andviews_percent.
type AnalyticsImpressionsResponse = {
success: 0 | 1;
data: {
wm_impressions: number;
youtube_impressions: number;
loads: number;
views: number;
views_percent: number;
loads_percent: number;
};
google_chart: string; // (with escaped characters)
error: string;
warnings: string;
};