Importing a custom data set
For most customers connecting data sources will be the primary source of data collection, for users with webhooks, we have a custom webhook integration as well.
However, in some use-cases, you may want to import a custom dataset. This article covers the schema and procedure for importing a custom dataset to AdLibertas.
Uploading the data
To get started all we need is data uploaded to an s3 bucket, please reach out to your account manager for AWS credentials.
All files will be nested underneath an s3 folder in this format:
Here is an example of the output
Partitioning:
If you have used hive or AWS glue/ athena before, our s3 paths should be familiar. Each upload should be categorized underneath a dataset_id
and an event_date
.
A dataset can be as large as you like and contain multiple apps. However, we ask that you separate uploads by an event_date
(YYYY-MM-DD).
Breaking down the example file partitions, you can see the dataset_id=com.awesomeapp
and event_date=2021-05-28
where *com.awesomeapp* is the dataset ID and *2021-05-28* is the event date.
Formatting:
Each file uploaded is in a JSONL file gzipped format. Please see this example file for the schema of each JSON object (our schema is very close to the Firebase analytics schema). This is the schema used for the Hive data table. Do note most of the columns are not required, but to get the most out of the AdLibertas platform, we ask that you provide as much data as possible.
These columns should be provided at a minimum:
event_timestamp
event_name
(ad_impression,in_app_purchase,user_engagement,etc)event_params
(this can be a revenue event [IAP or impression], engagment time in the app, user activity, etc)user_id
(your unique user ID)user_pseudo_id
(IDFV or Google App Set ID)user_properties
(assigned user properties, often AB test assignments)user_first_touch_timestamp
(Install timestamp)device.vendor_id
(IDFV) and/ordevice.advertising_id
(IDFA or GAID)geo.country
(ISO2 country code)app_info.id
(app bundle ID)platform
(IOS or ANDROID)traffic_source.name
(campaign name for tracking LTV & ROAS by campaign)
Example SQL query
Here is the comprehensive schema of the Hive table that the new dataset needs to follow.
Last updated