-
Notifications
You must be signed in to change notification settings - Fork 1
Unity Project Setup
Download our Unity plugin from here. After downloading, open your Unity project import our plugin into your project by following this path; Assets > Import Package > Custom Package and find Appmediation.unitypackage.
You can check the Samples folder for example implementations.
IMPORTANT: After removing/updating native plugins, you must restart Unity. Once native plugin is loaded, it's never unloaded. This is needed for Unity to re-index native plugins. Otherwise you might end up using outdated/old builds of plugins. Check this StackOverflow answer for details.
If you need to use multidex, please refer the documentation here.
In order to optimize build sizes, we decided to make some partners optional, it is best to include them if you have significant traffic from countries below;
Just download the .embeddedFramework
that includes partner library and its adapter from here and add MyTargetSDK.framework
and APPMMyTargetAdapter.a
(not the .embeddedFramework) to the directory Plugins/Appmediation/iOS/Adapters
.
Just download the zip that includes partner library from here and add it to to the directory Plugins/Appmediation/Android/libs
.
Just download the .embeddedFramework
that includes partner library and its adapter from here and add DUModuleSDK.framework
and APPMBaiduAdapter.a
(not the .embeddedFramework) to the directory Plugins/Appmediation/iOS/Adapters
.
-
Just download the zip that includes partner library from here and add it to to the directory
Plugins/Appmediation/Android/libs
. -
Update your AndroidManifest:
<provider android:name="com.duapps.ad.stats.DuAdCacheProvider" android:authorities="${applicationId}.DuAdCacheProvider" android:exported="false" android:enabled="@bool/isLessThenApi28" /> <meta-data android:name="app_license" android:value="YOUR_BAIDU_LICENSE" /> <receiver android:name="com.duapps.ad.base.PackageAddReceiver" > <intent-filter> <action android:name="android.intent.action.PACKAGE_ADDED" /> <data android:scheme="package" /> </intent-filter> </receiver>
-
Replace YOUR_BAIDU_LICENSE with Baidu license key that you can receive from your Appmediation manager or write to support@appmediation.com