SDK Initialization
Before creating any advertising slot object, you must first call the initialization TradPlus SDK.
#
API- Initialize TradPlus in the game startup class: otherwise the background cannot accurately count DAU.
Method | Description |
---|---|
TradplusAds.Instance().InitSDK("appId") | appId:The application ID created by TradPlus background. Just call it once. Get the location in TradPlus backend Apps & Ad Units -> Add App |
- Callback
Method | Parameter | Description |
---|---|---|
TradplusAds.Instance().OnInitFinish | bool success | Initialization end callback. success:Whether the initialization is successful, true means the initialization is successful. |
#
Other APIMethod | Description |
---|---|
TradplusAds.Instance().SetCustomMap(Dictionary customMap) | Set global traffic grouping. Called before initializing the SDK. |
Dictionary<string, object> settingMap = new Dictionary<string, object>(); settingMap.Add("oaid","oaid obtained by the developer"); TradplusAds.Instance().SetSettingDataParam(settingMap); | Set global OAID. Called before requesting an ad. V10.2.0.1 starts to support (Android only) |
#
Code Example#
Privacy Policy SettingsFor relevant privacy policy settings, please refer to the following documents: