Gamoshi enables users to issue reports using API, in an easy & fast way.
Gamoshi created a method for Advertisers and Publishers to get reports using an HTTP GET request by using the following endpoint - https://{dashboard host}/api/v1/report.
- In the Analytics module -> API tab. Upon the first login, users need to press the 'Generate a token' button.
You can override the token by using the ''Override token' button. Unless overridden, the token will be valid for 30 days. - You should press the 'Copy' button and place the token in your HTTP GET request URL.
- Users can add parameters to the REST API request, for better filtering and analysis.
The full list of allowed parameters & values is in the table below.
Permitted Request Parameters & values - REST API request
Parameter name |
Description |
Supported values |
Mandatory |
Example |
---|---|---|---|---|
date_range
|
The date range of the report
|
today (default)* yesterday |
No | |
from_date |
The customized beginning of a date range. |
yyyy-mm-dd |
No (if exist overrides the date_range value) |
2021-02-01 |
to_date |
The customized end of a date range. |
yyyy-mm-dd |
No |
2021-02-28 |
timezone |
The customized time zone. The default is ETC/UTC |
America/Los_Angeles America/Yellowknife |
No |
America/Chicago |
dimensions |
The results will be grouped by the chosen value. |
country |
No |
dimensions=ad_size |
perspective |
Inventory or Advertiser. For analytics user of a business partner who has both Advertiser and Inventory. Otherwise, this param would be disabled. |
Inventory |
No |
perspective= |
granularity |
The time granularity of the report |
none (default) hour, day, month |
Yes |
granularity=hour |
output format |
The response format.
|
json (default)* |
Yes |
output_format=csv |
include_sum |
If summaries appear at the start |
true/false(=default) |
No |
true |
limit |
the number of records in the results set |
1-10000 |
No |
default=500 |
filters |
Users can filter the results, multi filters can be applied. |
All the dimensions |
No |
filters=country|contains|USA,DEU;ad_type|equals|Banner |
metric_filters |
Users can filter the results, multi filters can be applied. |
The supported metric dimensions: |
No |
metric_filters=impressions|>|1000 |
Each parameter added should be preceded by '&' and then parameter name = value
Example: A request for data between the date range of 1.4.24 to 30.4.24, daily by dimension 'Country':
https://dashboard.gamoshi.io/api/v1/report?from_date=2024-04-01&to_date=2024-04-30&granularity=day&report_token=report_2024-05-07_3faa738d-79c6-4064-a91c-f74f4e7eg36b&dimensions=country
Each response includes zero or more row objects packed into one response as shown below in the example:
"event": {
"fired_impressions": 1033679,
"fired_video_impressions": 0,
"clicks": 0,
"cost": 773.578,
"revenue": 531.045,
"profit": 242.532,
"partner_legal_name": "",
"inventory_id": 7700,
"inventory_name": "example inventory"
}
Value | Type | Description |
success | boolean | success/failed |
created | date | The timestamp of the request |
cached | boolean | true/false |
fromTo | the date range of the response | |
numberOfRows | ||
timeInMili | Number | |
rows | array of objects |
When the same request is issued within the time range of 5-minutes, the response data will not be refreshed (cache value will be true).