We provide the ability for publishers to receive reports using an application programming interface (API).

Generation location: https://dashboard.wmgroup.us/settings/profile/api-token-generator

Example of a link:

• range: https://dashboard.wmgroup.us/api/reports/run-report/api/token=TOKEN&type=analytics-api&range=yesterday&metrics=impressions,clicks,ctr,cpm,revenue&dimensions=placement,size,inventoryType,domain

• dateFrom and dateTo: https://dashboard.wmgroup.us/api/reports/run-report/api/token=TOKEN&type=analytics-api&dateFrom=2020-08-12&dateTo=2020-08-13&metrics=impressions,clicks,ctr,cpm,revenue&dimensions=placement,size,inventoryType,domain

Request type: GET

Parameters

token – a unique string that is generated during a request to receive such a link in the dashboard;

type – type of report that is generated. Currently, this value is not changeable;

range – the period for which the report is generated. Possible values:

• yesterday
• lastThreeDays
• lastSevenDays
• lastSixtyDays
• monthToYesterday
• lastMonth

Can only pass one value. Can be replaced by other parameters: dateFrom and dateTo.

dateFrom – the parameter passes the start date of the report period. Works only in conjunction with the dateTo parameter. Accepts date format: YYYY-MM-DD (2020-08-12). The date must not be later than dateTo;

dateTo – the parameter transmits the end date of the report period. Works only in conjunction with the dateTo parameter. Accepts date format: YYYY-MM-DD (2020-08-13). The value cannot be earlier than the dateFrom value;

metrics – metrics, numerical indicators based on which the report is generated. Can take multiple values separated by commas (impressions,clicks,ctr,cpm,revenue). Possible values:

• impressions
• clicks
• ctr
• cpm
• revenue

dimensions – metrics, indicators by which the report data will be grouped. Can take multiple values separated by commas (placement, size, inventoryType, domain). Possible values:

• placement
• size
• inventoryType
• domain