User Identifiers
AttentionIt is recommended to send all available user identifiers as they are crucial for accurate attribution, postback, cohort analysis etc.
1. Device ID
Device IDs can be retrieved through the SDK (refer to the data fetching guide). Available Device IDs per operating system are as follows:Request Example
Request Example
2. User ID(user.externalUserID)
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.
Request Example
Request Example
Precautions for Ad Channel Integration
Fields needed for Ad OptimizationWhen using channel integration, the event information can also be used for ad optimizations.
Due to this, it is strongly recommended to send all available event information through the API.
The fields below are generally used for optimization:
- app.packageName
- device.osName
- device.osVersion
- device.appTrackingTransparency
- device.limitAdTracking
Example Payloads
Product Purchase
Product Purchase
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”.
string
required
You can send the user’s IP in the X-Forwarded-For header. Without X-Forwarded-For, user behavior is logged with the IP of the server that requested the Server To Server API, not the user’s IP (client request IP).We accept values in the form of ipv4 (
123.123.123.123), ipv6 (2001:e60:87e3:81d4:cd57:5d52:ee2e:ff8d).number
Can use
device.clientIP to decide user’s IP when can’t send device IP at X-Forwarded-For.Required when: When device.clientIP is configured at Request BodyPath Params
string
required
Airbridge App Name. (Unique ID)
Body Params
string
Random UUID v4 string.Accepts a random string in UUID4 format.The event uuid is used for duplication as a unique ID for the event, and will be generated automatically by the event api if not provided.
number
The time the event occurred. (default: current timestamp)A Unix timestamp in milliseconds (13 digits in Unixtime).If the eventTimestamp is older than 24 hours from the time the event was sent, it will not be processed by the server.
object
User information.
object
Device Information.Required when: required if user.ExternalUserID is not sent
object
required
User app information.
object
required
Event information.