Advanced Features
1、Traffic Grouping
Please refer to Traffic Grouping
Code example:
- APP global custom settings
Map customMap = {
"user_id":"test_user_id",
"user_age":"19",
"custom_data":"TestIMP",
"channel":"tp_channel",
"sub_channel":"tp_sub_channel"
};
TPSDKManager.setCustomMap(customMap);
- Custom settings for each ad slot
Take interstitial as an example:
Map customMap = {
"segment_tag": "interstitial_segment_tag"
};
Map extraMap = TPInterstitialManager.createInterstitialExtraMap(customMap: customMap);
TPInterstitialManager.loadInterstitialAd(unitId, extraMap: extraMap);
2、ROI calculation
Please refer to ROI calculation
3、Adjust Integration
Please refer to Adjust docking,and Adjust Flutter Demo
4、App-ads.txt
Please refer to App-ads.txt
5、About iOS14.5+
Please refer to Compatible iOS14.5+
6、Global display callback
To facilitate developers to display data statistics, the SDK provides a global display callback API
Supported versions: Flutter plugin version v1.0.4+, iOS v8.5.0+, Android v8.8.0.1+
import 'package:tradplus_sdk/tradplus_sdk.dart';
static TPGlobalAdImpressionListener? globalAdImpressionListener;
globalAdImpressionListener = TPGlobalAdImpressionListener(
onGlobalAdImpression: (adInfo) {
//Developers can use this callback to obtain the display callback of all ad slots.
}
);
TPSDKManager.setGlobalAdImpressionListener(globalAdImpressionListener!);
For information about adInfo fields, please refer to: Callback Information