Skip to main content
Upload data directly through the API and view the data together in reports.

Ad Spend Data

Directly upload impressions, clicks, and cost data for media sources that don’t report spend by API.

Metric Data

Upload new metric data directly and view the status of your uploads. Request to upload ad spend data in CSV format. The Content-Type in the Request Header uses multipart/form-data.

CSV file format and schema

Content rules and schema of ad spend CSV files

Sample CSV File

🚧 Case Sensitivity

Please be aware that data in columns with a type defined as ‘string’ is case-sensitive. Note that Airbridge records mobile OS names as ‘Android’ and ‘iOS’. When uploading your data, it’s essential to use ‘Android’ and ‘iOS’ for OS names. Failure to do so may result in separate rows in the dashboard when data is grouped by results. Please adhere to this naming convention for consistency and accurate data representation.

Overwrite (correct) Previously Ingested Ad Spend

Previously ingested ad spend can be overwritten by using CSV files that contain data with the identical key of data previously ingested. The key is formed from the ‘date’, ‘channel’, and ‘campaign’ fields. If the keys match, data ingested last overwrites data previously ingested.
[Example A]
1. 2022-08-03: Upload data for date, channel, campaign, and ad_group. 2. 2022-08-04: Upload data for date, channel and campaign. 3. Result: Spend data from ‘2022-08-03’ was overwritten by spend data from ‘2022-08-04’ because ‘2022-08-04’ was last ingested and the identical key is the same. (ad group is overwritten null)
[Example B]
1. 2022-08-03: Upload data for date, channel and campaign. 2. 2022-08-04: Upload data for date, channel, campaign and ad_group. 3. Result: Spend data from ‘2022-08-03’ was overwritten by spend data from ‘2022-08-04’ because ‘2022-08-04’ was last ingested and the identical key is the same.
[Example C]
1. 2022-08-03: Upload data for date, channel, campaign and ad_group 2. 2022-08-04: Upload data for date, channel, campaign and ad_group 3. Result: Based on the values ‘date’, ‘channel’, and ‘campaign’, the data was overwritten by ‘2022-08-04’

Delete Previously Ingested Ad Spend

To delete previously uploaded cost data, re-upload the clicks, impressions, and cost metrics for the same identity key with all values set to 0.

Note

  • Only be used as an API token for Owner, In-house Marketer permission accounts.
  • A maximum of 10000 rows are allowed in a CSV file for a single request.
  • The maximum size of a CSV file in a single request is 1 MB.
  • Column values of type string are limited to at least one character and up to 256 characters.
  • Ensure there are no spaces before or after the column name and value.
POST

Request


Headers

string
You can specify the language to use for API requests and responses. It follows the ISO-639-1 format.
string
Represents the media type of the resource. Defaults to application/json.
string
The key value to use for API requests. Instructions for getting API keys are in “how to generate API Keys”.

Response


200