Skip to main content
Request to upload metric data in CSV format.

Header

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
CategoryColumn NameTypeDescriptionRequired
Group bydatestringThe date the spend was incurred.
The date must be in the format ‘YYYY-MM-DD’ This date should correspond with the timezone set in the Airbridge app. Future dates are not permitted. Upload requests that violate this condition will not be processed.
Required
Group bychannelstringThe channel.Required
Group byevent_categorystringThe event category.
It is viewed as a metric name in the report.
Required
Metricevent_valuedoubleThe event value.Required
Group bycampaignstringThe campaign.Optional
Group byad_groupstringThe ad group.Optional
Group byad_creativestringThe ad creative.Optional
Group bycontentstringThe content.Optional
Group byevent_sourcestringThe event source.
app, web, tracking_link, sms_link (case-sensitive)
Optional
Group byos_namestringThe OS Name.
Be aware that data in columns with a type defined as ‘string’ is case-sensitive.
e.g. Android, iOS
Optional
Group bytermstringThe term.Optional
Group bycountrystring2-digit lowercase country value.
e.g. kr, us, gb, fr
Optional
Group bycurrencystringThe currency.
Must use capitalized, three-letter currency codes that comply with ISO 4217.
e.g. KRW, USD
Optional
Group bysub_publisherstringThe sub publisher.Optional
Group bysub_sub_publisher_1stringThe sub-sub publisher 1.Optional
Group bysub_sub_publisher_2stringThe sub-sub publisher 2.Optional
Group bysub_sub_publisher_3stringThe sub-sub publisher 3.Optional
Group byis_first_event_per_device_idbooleanWhether the first event is based on device ID.
true or false (case-sensitive)
Optional
Group byis_first_event_per_user_idbooleanWhether the first event is based on user ID.
true or false (case-sensitive)
Optional

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 Previously Ingested Metric Data

Previously ingested metric data 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 ‘event_category’ fields. If the keys match, data ingested last overwrites data previously ingested.
[Example A]
1. 2022-08-03: Upload for date, channel, campaign and ad_group. 2. 2022-08-04: Upload for date, channel and campaign. 3. Result: Spend data from ‘2022-08-03’ was overwritten by 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 for date, channel and campaign. 2. 2022-08-04: Upload 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’ (ad_group value are also updated.)
[Example C]
1. 2022-08-03: Upload for date, channel, campaign and ad_group. 2. 2022-08-04: Upload 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’

Archive Data

If you want a previously uploaded metric to be invisible in a report, please request it through your CSM.

Note

  • Only be used as an API token for Owner, In-house Marketer permission accounts.
  • The order of the columns in the CSV file does not affect the upload functionality.
  • 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.
  • event_category can accept alphabets and numbers.
  • event_category cannot contain , ” .
  • New data registered during upload (e.g. self_serve_test_campaign for campaign) will not be visible in the selection options when using a filter. You can use it by entering it in freeform.
  • If the CSV file has rows where both the groupBy and the event category are the same, the data is displayed in the report as summed values for the same row.
  • Upload data
  • Display report

Try API Request

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