Android OS
iOS
Send In-App/In-Web events in a server-to-server method.
https://api.airbridge.io/events/v1/apps/{app_name}/mobile-app/9360
Send In-App events in a server-to-server method.
Attention
It is recommended to send all available user identifiers as they are crucial for accurate attribution, postback, cohort analysis etc.
Device IDs can be retrieved through the SDK (refer to the data fetching guide).
Available Device IDs per operating system are as follows:
Request Body Key | Data Fetching Field | Operating System |
---|---|---|
device.deviceUUID | Airbridge Device ID | All |
device.gaid | GAID (Google Advertising ID) | Android |
device.appSetID | App Set ID | Android |
device.ifa | IDFA | iOS, iPadOS |
device.ifv | IDFV | iOS, iPadOS |
{
...
"device": {
"deviceUUID": "542177F1-5C23-438B-8088-82D34C94F6D7",
"ifa": "542177F1-5C23-438B-8088-82D34C94F6D7",
"ifv": "37EEC3E0-BF15-412E-ADBA-7D2E82E7A75F",
"osName": "iOS",
"osVersion": "18.0.1"
},
"user": {
"externalUserID": "19443",
"externalUserEmail": "example@ab180.co",
"externalUserPhone": "821012341234"
}
...
}
{
...
"device": {
"deviceUUID": "2dfca632-86f3-4d22-9746-cdfe7985c471",
"gaid": "2dfca632-86f3-4d22-9746-cdfe7985c471",
"appSetID": "7c4681ef-97c6-4ebd-9c04-e22f584b3746",
"osName": "Android",
"osVersion": "5.0.2"
},
"user": {
"externalUserID": "19443",
"externalUserEmail": "example@ab180.co",
"externalUserPhone": "821012341234"
}
...
}
User IDs may be sent without Device IDs if data fetching is inconvenient.
In such cases, Airbridge processes events based on the Device IDs mapped to the provided User ID.
However if no mapping is found, this may lower the accuracy of reports.
{
...
"user": {
"externalUserID": "19443",
"externalUserEmail": "example@ab180.co",
"externalUserPhone": "821012341234"
}
...
}
Android OS
iOS
curl -X POST 'https://api.airbridge.io/events/v1/apps/{app_name}/mobile-app/9360' \
-H 'Accept-Language: ko' \
-H 'Content-Type: application/json' \
-H 'Authorization: Bearer {AIRBRIDGE-API-TOKEN}' \
-H 'X-Forwarded-For: 2001:e60:87e3:81d4:cd57:5d52:ee2e:ff8d' \
-d '{"eventUUID":"9b4b3e4e-2162-4ae6-8986-91ee84644262","user":{"externalUserID":"19443","externalUserEmail":"example@ab180.co","externalUserPhone":"821012341234"},"device":{"deviceUUID":"2dfca632-86f3-4d22-9746-cdfe7985c471","gaid":"2dfca632-86f3-4d22-9746-cdfe7985c471","ifa":"542177F1-5C23-438B-8088-82D34C94F6D7","appSetID":"7c4681ef-97c6-4ebd-9c04-e22f584b3746","ifv":"37EEC3E0-BF15-412E-ADBA-7D2E82E7A75F","deviceModel":"LG-H542","appTrackingTransparency":0,"deviceIdentifier":"iPhone11,2","manufacturer":"Samsung","osName":"Android","osVersion":"5.0.2","locale":"ko-KR","timezone":"Asia/Seoul","orientation":"portrait","screen":{"width":123},"location":{"latitude":120.103,"speed":"12"},"network":{"carrier":"SKTelecom","cellular":true,"wifi":true}},"app":{"packageName":"com.ab180.co","version":"1.2.3"},"eventData":{"goal":{"category":"airbridge.ecommerce.product.addedToCart","action":"shoes","label":"nike","semanticAttributes":{"productListID":"list-id-1","cartID":"cart-id-1","transactionID":"12939172","inAppPurchased":true,"currency":"KRW","products":[{"position":"1","productID":"30372425","name":"나이키 커스텀"}]}}}}'
{
"eventUUID": "9b4b3e4e-2162-4ae6-8986-91ee84644262",
"user": {
"externalUserID": "19443",
"externalUserEmail": "example@ab180.co",
"externalUserPhone": "821012341234"
},
"device": {
"deviceUUID": "2dfca632-86f3-4d22-9746-cdfe7985c471",
"gaid": "2dfca632-86f3-4d22-9746-cdfe7985c471",
"ifa": "542177F1-5C23-438B-8088-82D34C94F6D7",
"appSetID": "7c4681ef-97c6-4ebd-9c04-e22f584b3746",
"ifv": "37EEC3E0-BF15-412E-ADBA-7D2E82E7A75F",
"deviceModel": "LG-H542",
"appTrackingTransparency": 0,
"deviceIdentifier": "iPhone11,2",
"manufacturer": "Samsung",
"osName": "Android",
"osVersion": "5.0.2",
"locale": "ko-KR",
"timezone": "Asia/Seoul",
"orientation": "portrait",
"screen": {
"width": 123
},
"location": {
"latitude": 120.103,
"speed": "12"
},
"network": {
"carrier": "SKTelecom",
"cellular": true,
"wifi": true
}
},
"app": {
"packageName": "com.ab180.co",
"version": "1.2.3"
},
"eventData": {
"goal": {
"category": "airbridge.ecommerce.product.addedToCart",
"action": "shoes",
"label": "nike",
"semanticAttributes": {
"productListID": "list-id-1",
"cartID": "cart-id-1",
"transactionID": "12939172",
"inAppPurchased": true,
"currency": "KRW",
"products": [
{
"position": "1",
"productID": "30372425",
"name": "나이키 커스텀"
}
]
}
}
}
}
{
"at": "2020-02-06 16:06:49",
"data": "Event(9360) is successfully proccessed."
}
https://api.airbridge.io/events/v1/apps/{app_name}/web/9320
Send In-Web events in a server-to-server method.
Attention
It is recommended to send all available user identifiers as they are crucial for accurate attribution, postback, cohort analysis etc.
Cookie IDs can be retrieved through the SDK(refer to the data fetching guide).
The following attribution data must be sent along with the Cookie ID for proper attribution.
Request Body Key | Data Fetching Field | Description |
---|---|---|
eventData.shortID | Attribution Short ID | Campaign Parameter ID |
eventData.trackingData.channel | Default Attribution Channel | Campaign Channel |
eventData.trackingData.params | Default Attribution Parameters | Campaign Parameters |
{
...
"browser": {
"clientID": "05609013-bb5a-4594-bbc3-832cb1b87072"
},
"eventData": {
"shortID": "aef04",
"trackingData": {
"channel": "blog",
"params": {
"ad_creative": "ad_creative",
"ad_group": "ad_group",
"campaign": "ad_campaign",
"content": "ad_content",
"medium": "ad_medium",
"tracking_template_id": "ad_tracking_template_id"
}
}
},
"user": {
"externalUserID": "19443",
"externalUserEmail": "example@ab180.co",
"externalUserPhone": "821012341234"
}
...
}
User IDs may be sent without Cookie IDs if data fetching is inconvenient.
In such cases, Airbridge processes events based on the Cookie IDs mapped to the provided User ID.
However, if no mapping is found, this may lower the accuracy of reports.
{
...
"user": {
"externalUserID": "19443",
"externalUserEmail": "example@ab180.co",
"externalUserPhone": "821012341234"
}
...
}
curl -X POST 'https://api.airbridge.io/events/v1/apps/{app_name}/web/9320' \
-H 'Accept-Language: ko' \
-H 'Content-Type: application/json' \
-H 'Authorization: Bearer {AIRBRIDGE-API-TOKEN}' \
-H 'X-Forwarded-For: 2001:e60:87e3:81d4:cd57:5d52:ee2e:ff8d' \
-d '{"eventUUID":"9b4b3e4e-2162-4ae6-8986-91ee84644262","user":{"externalUserID":"19443","externalUserEmail":"example@ab180.co","externalUserPhone":"821012341234"},"browser":{"clientID":"05609013-bb5a-4594-bbc3-832cb1b87072","userAgent":"Mozilla/5.0 (iPhone; CPU iPhone OS 11_3 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko) Mobile/15E302"},"eventData":{"shortID":"aef04","trackingData":{"channel":"blog"},"goal":{"category":"airbridge.ecommerce.product.addedToCart","action":"shoes","label":"nike","semanticAttributes":{"query":"나이키","productListID":"list-id-1","cartID":"cart-id-1","transactionID":"12939172","inAppPurchased":true,"currency":"KRW","products":[{"position":"1","productID":"30372425","name":"나이키 커스텀","price":1000,"quantity":1,"currency":"KRW"}]}}}}'
{
"eventUUID": "9b4b3e4e-2162-4ae6-8986-91ee84644262",
"user": {
"externalUserID": "19443",
"externalUserEmail": "example@ab180.co",
"externalUserPhone": "821012341234"
},
"browser": {
"clientID": "05609013-bb5a-4594-bbc3-832cb1b87072",
"userAgent": "Mozilla/5.0 (iPhone; CPU iPhone OS 11_3 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko) Mobile/15E302"
},
"eventData": {
"shortID": "aef04",
"trackingData": {
"channel": "blog"
},
"goal": {
"category": "airbridge.ecommerce.product.addedToCart",
"action": "shoes",
"label": "nike",
"semanticAttributes": {
"query": "나이키",
"productListID": "list-id-1",
"cartID": "cart-id-1",
"transactionID": "12939172",
"inAppPurchased": true,
"currency": "KRW",
"products": [
{
"position": "1",
"productID": "30372425",
"name": "나이키 커스텀",
"price": 1000,
"quantity": 1,
"currency": "KRW"
}
]
}
}
}
}
{
"at": "2020-02-06 16:06:49",
"data": "Event(9320) is successfully proccessed."
}
Was this page helpful?