Campaign
Basics of the AdUp API
Use the AdUp API to retrieve reports and performance data automatically. Learn how to authenticate via OAuth, generate reports and efficiently integrate data into your own systems.

Overview
With our AdUp API, you can sit back and automatically transfer all your account data into your preferred BI system.
Procedure
Before you start
To be able to use the AdUp API, create an account access. To do this, go to Profile in your account or read more in the corresponding support article.
Step 1
Obtain your API login details (e.g. via the frontend).
Step 2
Get an access token from the API via OAUTH.
Step 3
Now use the access token to access the Reports route. Take a look at the interactive documentation.
Step 4
Then set up your personal API requests. You can find code examples, descriptions of all fields as well as notes and links to all possible reports further down in this article.
Authentication & Access Token
Step 1: Obtain API access details
Make sure you have your API access details ready.
Step 2: Request an access token
Send an HTTP POST request to the token endpoint https://api.adup-tech.com/v202101/oauth2/token.
Example:
grant_type: The type of grant, e.g. client_credentials.
client_id: Your client ID.
client_secret: Your client secret.
Step 3: Use the access token
Upon successful authentication, you will receive a response with the access token. You can use this token to access protected API resources by including it in the HTTP header of your API requests:
Replace YOUR_ACCESS_TOKEN with the token you received and adjust the URL accordingly.
Additional notes:
Please note that access tokens have a limited validity period and must be renewed regularly.
Responses are in JSON format, for more information see: https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Accept
The use of Postman is described here: https://learning.postman.com/docs/sending-requests/authorization/oauth-20/#using-client-credentials
Report Request
Code
Field | Description |
|---|---|
report_name | Custom name of the report chosen by you. |
report_type | The report type to be used for the report. See 'API Reports' below. |
select | List of fields to be output in the report. The available fields depend on the report type used. See 'API Reports' below to find out the available fields. |
conditions | List of filters to restrict the rows included in the report. A filter consists of field, operator and values. |
download_format | Format in which the report is downloaded. Currently, only JSON is supported. |
date_range_type | The date range for which the report should be created. See 'Date ranges' below. |
date_range | If date_range_type is set to CUSTOM_DATE, this specifies the date range for which the report should be created. See 'Date ranges' below. |
Notes
Segmentation
To obtain statistics with a higher level of detail, you can use segmentation.
For example, to get statistics only for mobile devices, you must filter by device type.
In this case, you will want to segment your report by DeviceType. For instance, if you add the Device field to a Campaign Performance Report, you will get a report with one row for each campaign and device type combination, showing the statistical values (impressions, clicks, conversions, etc.) split across them. Note that the number of rows can increase exponentially for each additional segment field included in your report.
Implicit segmentation Each report is grouped by a key. For example, the Campaign Performance Report is implicitly segmented by CampaignId.
Rows without metrics
The report may contain rows that do not have values in the metrics. This can be caused by non-deliverable items or items paused within the requested period.
To include rows without metrics, you can set includeZeroImpressions to true (default) in the header. This can be used, for example, to create a structure report that contains all available elements of the account.
However, to reduce the number of rows when there are many elements without data, includeZeroImpressions should be set to false. Alternatively, a filter on metrics in conditions can be used.
Date ranges
For any date_range_type other than CUSTOM_DATE, only date_range_type is required.
Date range | Reports are created for… | Example |
|---|---|---|
TODAY | today only | |
YESTERDAY | yesterday only | |
LAST_7_DAYS | the last 7 days excluding today | |
LAST_WEEK | the 7-day period starting from last Monday | |
LAST_BUSINESS_WEEK | the 5-day business week, Monday to Friday, of the last business week | |
THIS_MONTH | all days of the current month | |
LAST_MONTH | all days of the last month | |
ALL_TIME | the entire available period | |
CUSTOM_DATE | A custom period. See Custom period. | |
LAST_14_DAYS | the last 14 days excluding today | |
LAST_30_DAYS | the last 30 days excluding today | |
THIS_WEEK_SUN_TODAY | the period between last Sunday and today | |
THIS_WEEK_MON_TODAY | the period between last Monday and today | |
LAST_WEEK_SUN_SAT | the 7-day period starting with last Sunday |
Micro Amount data type
Some fields have the Micro Amount data type. These contain, for example, currency values multiplied by a factor of one million (1,000,000).
Example: A value of EUR 123.4567 is output in the field as 123456700.
API Reports
We currently offer four different reports that can be retrieved in a customized format via the API.
Account Performance Report (Advertiser) Documentation
Ad Performance Report (Advertiser) Documentation
Campaign Performance Report (Advertiser) Documentation
Direct Placement Performance Report (Advertiser) Documentation
Placement Layout Performance Report (Publisher) Documentation
Site Performance Report (Publisher) Documentation
Further scopes and routes
Have you selected other scopes in your API access in addition to Reporting? To obtain the appropriate routes and information, please contact your AdUp representative or email us via support(at)adup-tech.com.
