LevelPlay / IronSource

magify_flutter_sdk has no dedicated LevelPlay/ironSource setter for initialization. If you want LevelPlay to use the same identifier as Magify, read MagifyClient.instance.clientId and hand it to LevelPlay's own Flutter plugin initialization as the user ID:

final clientId = await MagifyClient.instance.clientId;
// pass clientId as the LevelPlay user id when configuring the LevelPlay Flutter plugin

Reporting LevelPlay ad revenue

The supported integration point is ad revenue/impression reporting: forward LevelPlay's impression callback (for example onImpressionSuccess) into MagifyClient.instance.trackBaseAdsImpression using the MagifyAdsImpressionData.ironSource factory. See Advertisement for the full field reference.

await MagifyClient.instance.trackBaseAdsImpression(
  MagifyAdsImpressionData.ironSource(
    adUnitId: adInfo.adUnit,
    networkName: adInfo.adNetwork,
    instanceId: adInfo.instanceId,
    instanceName: adInfo.instanceName,
    revenue: adInfo.revenue,
    revenuePrecision: adInfo.precision,
  ),
);

Next step

Continue to AppLovin MAX for the equivalent AppLovin integration, or back to Advertisement for the full impression-reporting reference.

Related articles

Campaigns usage examples

Android SDK Installation

ProductIdType

PurchaseInfo

PurchaseType

Obtainers