Fetch and analyze marketing campaign data with configurable parameters and multiple output formats
GET /api/revenue
| Parameter | Type | Required | Description |
|---|---|---|---|
start |
string | Yes | Start date in YYYY-MM-DD format |
end |
string | No | End date in YYYY-MM-DD format (defaults to yesterday) |
format |
string | No | Output format: "json" or "csv" (default: "json") |
subid |
string | No | Filter results by subid containing this string |
| Field | Type | Description |
|---|---|---|
date | string | Date of the record |
subid | string | Campaign identifier |
geo | string | Geographic market |
searches | integer | Total searches |
bidded_searches | integer | Bidded searches |
clicks | integer | Total clicks |
revenue | float | Revenue |
rpm | float | Revenue per mille (RPM) |
ctr | float | Click-through rate |
GET /api/revenue?start=2024-01-01&end=2024-01-07&subid=subid_mask_1&format=json