Last active
May 20, 2021 22:51
-
-
Save adeubank/2dd721f41920b40e58f0ffe62ea32abf to your computer and use it in GitHub Desktop.
An example AdLibertas API request to import an event into Audience Reporting. Reach out to your account manager for your Webhook URL and Authentication Token.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
POST http://publicapi.adlibertas.com/v1/webhooks/events/12345_your_webhook_id | |
Authorization: Basic you_adlibertas_auth_token | |
Content-Type: application/json | |
{ | |
"event": { | |
"id": "your_unique_event_id", | |
"event_date": "20210519", | |
"event_timestamp": 1621459749000000, | |
"event_name": "event_name_b637", | |
"event_params": [ | |
{ | |
"key": "event_param_key_string_b637", | |
"value": { | |
"string_value": "b637", | |
"int_value": null, | |
"float_value": null, | |
"double_value": null | |
} | |
}, | |
{ | |
"key": "event_param_key_int_b637", | |
"value": { | |
"string_value": null, | |
"int_value": 1, | |
"float_value": null, | |
"double_value": null | |
} | |
}, | |
{ | |
"key": "event_param_float_b637", | |
"value": { | |
"string_value": null, | |
"int_value": null, | |
"float_value": 70.7, | |
"double_value": null | |
} | |
}, | |
{ | |
"key": "event_param_double_b637", | |
"value": { | |
"string_value": null, | |
"int_value": null, | |
"float_value": null, | |
"double_value": "26.5" | |
} | |
} | |
], | |
"user_id": "user_id_b637", | |
"user_pseudo_id": "user_pseudo_id_b637", | |
"user_properties": [ | |
{ | |
"key": "user_prop_key_string_b637", | |
"value": { | |
"string_value": "b637", | |
"int_value": null, | |
"float_value": null, | |
"double_value": null, | |
"set_timestamp_micros": 1621459749000000 | |
} | |
}, | |
{ | |
"key": "user_prop_key_int_b637", | |
"value": { | |
"string_value": null, | |
"int_value": 69, | |
"float_value": null, | |
"double_value": null, | |
"set_timestamp_micros": 1621459749000000 | |
} | |
}, | |
{ | |
"key": "user_prop_float_b637", | |
"value": { | |
"string_value": null, | |
"int_value": null, | |
"float_value": 47.9, | |
"double_value": null, | |
"set_timestamp_micros": 1621459749000000 | |
} | |
}, | |
{ | |
"key": "user_prop_double_b637", | |
"value": { | |
"string_value": null, | |
"int_value": null, | |
"float_value": null, | |
"double_value": "64.0", | |
"set_timestamp_micros": 1621459749000000 | |
} | |
} | |
], | |
"user_first_touch_timestamp": 1621459749000000, | |
"device": { | |
"category": "category_b637", | |
"mobile_brand_name": "mobile_brand_name_b637", | |
"mobile_model_name": "mobile_model_name_b637", | |
"mobile_marketing_name": "mobile_marketing_name_b637", | |
"mobile_os_hardware_model": "mobile_os_hardware_model_b637", | |
"operating_system": "operating_system_b637", | |
"operating_system_version": "operating_system_version_b637", | |
"vendor_id": "32EE5E80-7E80-4BB0-A0FA-7C19CECF78E5", | |
"advertising_id": null, | |
"language": "language_b637", | |
"is_limited_ad_tracking": "Yes", | |
"time_zone_offset_seconds": 8662, | |
"browser": "browser_b637", | |
"browser_version": "browser_version_b637", | |
"web_info": "web_info_b637" | |
}, | |
"geo": { | |
"continent": "continent_b637", | |
"country": "country_b637", | |
"region": "region_b637", | |
"city": "city_b637", | |
"sub_continent": "sub_continent_b637", | |
"metro": "metro_b637" | |
}, | |
"app_info": { | |
"id": "app_id_2", | |
"version": "version_b637", | |
"install_store": "install_store_b637", | |
"install_source": "install_source_b637", | |
"firebase_app_id": "firebase_app_id_b637" | |
}, | |
"traffic_source": { | |
"name": "name_b637", | |
"medium": "medium_b637", | |
"source": "source_b637" | |
}, | |
"platform": "IOS" | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment