adjust-icon

Send subscription information

You can record App Store and Play Store subscriptions and verify their validity with the Adjust SDK. After a user purchases a subscription, you need to create a corresponding App Store or Play Store subscription table.

1. Instantiate a subscription table

To get started, create a subscription table containing the details of the purchase.

Record the purchase date

You can record the date when the user purchased a subscription. This information will be available for reporting.

Record the purchase region (iOS only)

You can record the region in which the user purchased a subscription. To do this, set the salesRegion method of your Apple App Store subscription map to the country code as a string. This needs to be formatted as the countryCode of the Storefront object.

-- App Store subscription
local adjust = require "plugin.adjust"
adjust.trackAppStoreSubscription({
-- price as string, for example "0.99" or "6.00"
price = "6.00",
currency = "EUR",
transactionId = "transaction-id",
salesRegion = "sales-region"
})

This field is optional and doesn’t need to be set.

Add callback parameters

You can add callback parameters to your subscription object. These parameters are appended to your callback URL when the SDK sends subscription information.

Add key-value pairs under the callbackParameters table in your subscription table:

Add partner parameters

You can also add partner parameters to your subscription object. The SDK sends these parameters to Adjust’s servers when the user purchases a subscription, and Adjust forwards the information to your configured network partners.

Include key-value pairs under the partnerParameters table: