Skip to main content
Version: 3.3.0

In-App purchases


In-App purchase tracking will work only in connection with Adjust/AppsFlyer. To connect them, follow this guide for Adjust and this guide for AppsFlyer.

It's possible to track in-app purchase information and send info to Appodeal servers for analytics. It allows to group users by the fact of purchasing in-apps. This will help you to adjust the ads for such users or simply turn it off, if needed. To make this setting work correctly, please submit the purchase info via the Appodeal SDK.

Step 1. Validate In-app Purchases

To make this work correctly, please submit the purchase information via Appodeal SDK.


Please make sure to use all the parameters from the method below and don't comment out any of them.

inAppPurchase: "some product id",
type: .autoRenewableSubscription,
price: "9.99",
currency: "USD",
transactionId: "some transaction id",
additionalParameters: additionalParameters,
success: { [weak self] in self?.alert("Purchase is valid", message: $0.description) },
failure: { [weak self] error, _ in self?.alert("Purchase is invalid", message: error?.localizedDescription) }

Please make sure if you have created in-app product in App Store Connect to use:

  • .consumable or .nonConsumable for purchase type,
  • .autoRenewableSubscription or .nonRenewingSubscription for subscription.
inAppPurchasesome product idAdjust/AppsFlyer

Type must be :

  • .consumable or .nonConsumable
  • .autoRenewableSubscription or .nonRenewingSubscription
priceIn-app event revenue.Adjust/AppsFlyer/Appodeal
currencyIn-app event currency.Adjust/AppsFlyer/Appodeal
transactionIdsome transaction idAdjust/AppsFlyer
additionalParametersAdditional parameters of the in-app event.

If you are using your own Adjust account you need to complete Step 2 from our Event Tracking guide and create some required events on Adjust side.

Step 2. Contact Us

After all completed steps contact our support team via email [email protected] or a live chat with the following information :

  1. Purchases implementation logic in your app (when and where you call validate method and validate purchases).
  2. Allow us to test purchases in your app and send us the testflight to email [email protected].

Step 3. Testing

After you have contacted our Support Team and provided all the required information you can test your app to make sure purchases are validated.

  1. Please go to your App Settings → Attribution Settings → and change Adjust Environment from Production to Sandbox to be able to test validation and don't forget to press Save at the end of the page.

  2. Connect your device to your computer with the opened console (iOS Console) and tag logs by purchase

  3. Now you can open your App and make a test purchase, if you can see Valid purchase in the console, then validation went successfully.

  4. If validation has failed, then please recheck all the steps above.

  5. After testing, change your Adjust Environment to Production in App Settings → Attribution Settings.