-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'ADP-1473-sharing-mode'
* ADP-1473-sharing-mode: Final version Version for review Version for review
- Loading branch information
Showing
3 changed files
with
32 additions
and
21 deletions.
There are no files selected for viewing
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
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -62,6 +62,7 @@ Each event is wrapped into the following structure: | |
"event_datetime": "2023-02-18T18:40:22.000000+0000", | ||
"event_properties": <event-specific properties>, | ||
"event_api_version": 1, | ||
"profiles_sharing_access_level": [{"profile_id": "f9e83cb0-0cf3-4e92-b1a4-733311fe5800", "customer_user_id": "[email protected]"}], | ||
"attributions": {"attribution_source1": <attribution_data>, "attribution_source2": <attribution_data>, ...}, | ||
"user_attributes": {"attribute_name1": "attribute_value1", "attribute_name2": "attribute_value2", ...} | ||
"integration_ids": {"firebase_app_instance_id": "val1", "branch_id": "val2", "one_signal_player_id": "val3", ... } | ||
|
@@ -70,23 +71,24 @@ Each event is wrapped into the following structure: | |
|
||
### Event parameters | ||
|
||
| Property | Type | Description | | ||
| :--------------------------- | :------------------- | :---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | | ||
| **profile_id** | String | The Сustomer user ID of the profile in Adapty. | | ||
| **customer_user_id** | String | User ID you use in your app to identify the user. For example, it can be your user UUID, email, or any other ID. Null if you didn't set it. | | ||
| **idfv** | String | The identifier for vendors (IDFV) is a unique code assigned to all apps developed by a single developer, which in this case refers to your apps | | ||
| **idfa** | String | The identifier for advertisers (IDFA) is a random device identifier assigned by Apple to a user's device. | | ||
| **advertising_id** | String | The Advertising ID is a unique code assigned by the Android Operating System that advertisers might use to uniquely identify a user's device. | | ||
| **profile_install_datetime** | ISO 8601 date & time | Installation date and time in format [IOS 8601](https://www.iso.org/iso-8601-date-and-time-format.html): starting with the year, followed by the month, the day, the hour, the minutes, seconds, and milliseconds. For example, 2020-07-10T15:00:00.000000+0000, represents the 10th of July 2020 at 3 p.m. | | ||
| **user_agent** | String | User-agent used by the browser on the device. | | ||
| **email** | String | E-mail of your user. | | ||
| **event_type** | String | Event name as set up in the in the **Events names** section of the [**Integrations** -> **Webhooks**](https://app.adapty.io/integrations/customwebhook) page in lowercase. | | ||
| **event_datetime** | ISO 8601 date & time | Event date and time in format [IOS 8601](https://www.iso.org/iso-8601-date-and-time-format.html) : starting with the year, followed by the month, the day, the hour, the minutes, seconds, and milliseconds. For example, 2020-07-10T15:00:00.000000+0000, represents the 10th of July 2020 at 3 p.m. | | ||
| **event_properties** | JSON | JSON of [event properties](events#properties). | | ||
| **event_api_version** | Integer | Adapty API version. The current value is `1`. | | ||
| **attributions** | JSON | JSON of [attribution data](webhook#attribution-data). | | ||
| **user_attributes** | JSON | JSON of [custom user attributes](setting-user-attributes#custom-user-attributes). | | ||
| **integration_ids** | JSON | JSON of user integration identifiers. If a user doesn't have any identifier or integrations are disabled, then a null is sent. | | ||
| Property | Type | Description | | ||
| :-------------------------------- | :------------------- | :----------------------------------------------------------- | | ||
| **profile_id** | String | The Сustomer user ID of the profile in Adapty. | | ||
| **customer_user_id** | String | User ID you use in your app to identify the user. For example, it can be your user UUID, email, or any other ID. Null if you didn't set it. | | ||
| **idfv** | String | The identifier for vendors (IDFV) is a unique code assigned to all apps developed by a single developer, which in this case refers to your apps | | ||
| **idfa** | String | The identifier for advertisers (IDFA) is a random device identifier assigned by Apple to a user's device. | | ||
| **advertising_id** | String | The Advertising ID is a unique code assigned by the Android Operating System that advertisers might use to uniquely identify a user's device. | | ||
| **profile_install_datetime** | ISO 8601 date & time | Installation date and time in format [IOS 8601](https://www.iso.org/iso-8601-date-and-time-format.html): starting with the year, followed by the month, the day, the hour, the minutes, seconds, and milliseconds. For example, 2020-07-10T15:00:00.000000+0000, represents the 10th of July 2020 at 3 p.m. | | ||
| **profiles_sharing_access_level** | JSON | <p> A list of objects, each containing the IDs of users who share the access level (including the current profile):</p><ul> <li> **profile_id**: (UUID4) The Adapty Profile ID sharing the access level, including the current profile.</li> <li> **customer_user_id**: (string) The Customer User ID, if provided.</li> </ul> <p>This is used when the [**Sharing paid access between user accounts**](general#6-sharing-purchases-between-user-accounts) parameter is set to share an access level.</p> | | ||
| **user_agent** | String | User-agent used by the browser on the device. | | ||
| **email** | String | E-mail of your user. | | ||
| **event_type** | String | Event name as set up in the in the **Events names** section of the [**Integrations** -> **Webhooks**](https://app.adapty.io/integrations/customwebhook) page in lowercase. | | ||
| **event_datetime** | ISO 8601 date & time | Event date and time in format [IOS 8601](https://www.iso.org/iso-8601-date-and-time-format.html) : starting with the year, followed by the month, the day, the hour, the minutes, seconds, and milliseconds. For example, 2020-07-10T15:00:00.000000+0000, represents the 10th of July 2020 at 3 p.m. | | ||
| **event_properties** | JSON | JSON of [event properties](events#properties). | | ||
| **event_api_version** | Integer | Adapty API version. The current value is `1`. | | ||
| **attributions** | JSON | JSON of [attribution data](webhook#attribution-data). | | ||
| **user_attributes** | JSON | JSON of [custom user attributes](setting-user-attributes#custom-user-attributes). | | ||
| **integration_ids** | JSON | JSON of user integration identifiers. If a user doesn't have any identifier or integrations are disabled, then a null is sent. | | ||
|
||
:::warning | ||
Note that this structure may grow over time — with new data being introduced by us or by the 3rd parties we work with. Make sure that your code that processes it is robust enough and relies on the specific fields, but not on the structure as a whole. | ||
|