Impressions
Method: POST
URL: https://www.wellcomemat.com/api/analytics/impressions.php
Notes:
-
This endpoint returns view/impression data.
-
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
- This currently includes YouTube views but not YouTube impressions, making some returned datasets inaccurate.
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;
};