Adapty logo
Adapty
Create
Home
Feedback
Documentation Feedback
6

    Boards

  • Questions & Support

  • Feature Requests

  • Documentation Feedback

Powered by Canny

Documentation Feedback

Tell us how we can make our docs better!
posts
Flutter code doesnot work with adapty v.5
The field 'adid' was removed in adjust_sdk: ^5.0.0 AdjustConfig config = new AdjustConfig('{YourAppToken}', AdjustEnvironment.sandbox); config.attributionCallback = (data) async { var attribution = Map<String, String>(); if (data.trackerToken != null) attribution['trackerToken'] = data.trackerToken!; if (data.trackerName != null) attribution['trackerName'] = data.trackerName!; if ( data.network != null) attribution['network'] = data.network !; if (data.adgroup != null) attribution['adgroup'] = data.adgroup!; if (data.creative != null) attribution['creative'] = data.creative!; if (data.clickLabel != null) attribution['clickLabel'] = data.clickLabel!; if (data.adid != null) attribution['adid'] = data.adid!; <<<<<< if (data.costType != null) attribution['costType'] = data.costType!; if (data.costAmount != null) attribution['costAmount'] = data.costAmount!.toString(); if (data.costCurrency != null) attribution['costCurrency'] = data.costCurrency!; if (data.fbInstallReferrer != null) attribution['fbInstallReferrer'] = data.fbInstallReferrer!; try { await Adapty().updateAttribution(attribution, source: AdaptyAttributionSource.adjust); } on AdaptyError catch (adaptyError) { // handle error } catch (e) {} };
2
·

complete

Powered by Canny