diff --git a/versioned_docs/version-3.0/events.md b/versioned_docs/version-3.0/events.md index a71b07e0..9a41d8c4 100644 --- a/versioned_docs/version-3.0/events.md +++ b/versioned_docs/version-3.0/events.md @@ -116,6 +116,7 @@ In that case following events will be sent: | **expires_at** | ISO 8601 date | Date and time when paid access will expire. | | **activated_at** | ISO 8601 date | Date and time when paid access was activated. | | **billing_issue_detected_at** | ISO 8601 date | Date and time of billing issue. | +| **profile_has_access_level** | Bool | A boolean that indicates whether the profile has an active access level. | Each event has the following properties: @@ -149,6 +150,7 @@ Event example "environment": "Sandbox", "vendor_product_id": "premium", "event_datetime": "2020-02-18T18:40:22.000000+0000", + "profile_has_access_level": true, "store": "app_store" } ``` @@ -209,6 +211,7 @@ Adapty has a special event `access_level_updated`. It is sent only to [webhook]( | **active_introductory_offer_type** | str | | **active_promotional_offer_type** | str | | **active_promotional_offer_id** | str | +| **profile_has_access_level** | bool | We don't send `access_level_updated` upon subscription expiration - please, refer to **expires_at** value to end the subscriptions on your side. diff --git a/versioned_docs/version-3.0/google-cloud-storage.md b/versioned_docs/version-3.0/google-cloud-storage.md index 8ad163a2..70dfa290 100644 --- a/versioned_docs/version-3.0/google-cloud-storage.md +++ b/versioned_docs/version-3.0/google-cloud-storage.md @@ -48,8 +48,8 @@ In the Adapty Dashboard, the following fields are needed to set up the connectio | **Google Cloud Project ID** | A user-assigned identifier for your Google Cloud project. Find this ID in the downloaded private JSON key file under the `project_id` field. | | **Google Cloud Service Account Private Key ID** | A unique identifier assigned to your private key when you create a new service account in the Google Cloud Console. Find this ID in the downloaded private JSON key file under the `private_key_id` field. | | **Google Cloud Bucket Name** | The name of the bucket in Google Cloud Storage where you want to store your data. It should be unique within the Google Cloud Storage environment and should not contain any spaces. | -| **Email ** | The email address associated with your service account in Google Cloud Console. It is used to grant access to resources in your project. | -| **Folder inside the bucket ** | The name of the folder inside the bucket where you want to store your data. It should be unique within the bucket and can be used to organize your data. This field is optional to fill. | +| **Email** | The email address associated with your service account in Google Cloud Console. It is used to grant access to resources in your project. | +| **Folder inside the bucket** | The name of the folder inside the bucket where you want to store your data. It should be unique within the bucket and can be used to organize your data. This field is optional to fill. | ## Create Google Cloud Storage credentials @@ -82,6 +82,7 @@ Please note that we only support Service Account HMAC key authorization, means i 2. Next, create a new service account for the Adapty by clicking on the "+ CREATE SERVICE ACCOUNT" button. + A reason why the user canceled a subscription.

Can be:

**iOS & Android**_voluntarily_cancelled_, _billing_error_, _refund_

**iOS** _price_increase_, _product_was_not_available_, _unknown_, _upgraded_

**Android** _new_subscription_replace_, _cancelled_by_developer_

| +| **cancellation_reason** |

A reason why the user canceled a subscription.

Can be:

**iOS & Android**_voluntarily_cancelled_, _billing_error_, _refund_

**iOS** _price_increase_, _product_was_not_available_, _unknown_, _upgraded_

**Android** _new_subscription_replace_, _cancelled_by_developer_

| | **android_app_set_id** | An [AppSetId](https://developer.android.com/design-for-safety/privacy-sandbox/reference/adservices/appsetid/AppSetId) - unique, per-device, per developer-account user-resettable ID for non-monetizing advertising use cases. | | **android_id** | On Android 8.0 (API level 26) and higher versions of the platform, a 64-bit number (expressed as a hexadecimal string), unique to each combination of app-signing key, user, and device. For more details, see [Android developer documentation](https://developer.android.com/reference/android/provider/Settings.Secure#ANDROID_ID). | | **device** | The end-user-visible device model name. | @@ -312,4 +319,3 @@ Below the credentials, there are three groups of events you can export, send, an />
- diff --git a/versioned_docs/version-3.0/webhook.md b/versioned_docs/version-3.0/webhook.md index 55274ca7..793967ef 100644 --- a/versioned_docs/version-3.0/webhook.md +++ b/versioned_docs/version-3.0/webhook.md @@ -62,6 +62,7 @@ Each event is wrapped into the following structure: "event_datetime": "2023-02-18T18:40:22.000000+0000", "event_properties": , "event_api_version": 1, + "profiles_sharing_access_level": [{"profile_id": "f9e83cb0-0cf3-4e92-b1a4-733311fe5800", "customer_user_id": "example@gmail.com"}], "attributions": {"attribution_source1": , "attribution_source2": , ...}, "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 |

A list of objects, each containing the IDs of users who share the access level (including the current profile):

  • **profile_id**: (UUID4) The Adapty Profile ID sharing the access level, including the current profile.
  • **customer_user_id**: (string) The Customer User ID, if provided.

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.

| +| **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.