Flutter code doesnot work with adapty v.5
Alexey Tushurashvili
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) {}
};
Ludmila Nemkova
Hi Alexey,
We have added the instruction for Adjust v5.x, please see it on https://adapty.io/docs/adjust#sdk-configuration
Thank you for your request