Exclude the Ad Quality SDK from Unity Applications (LevelPlay SDK 8.9.0+)
Overview
Starting with LevelPlay SDK version 8.9.0, the Ad Quality SDK is included by default when you integrate LevelPlay into your Unity project. This change is managed at the native layer and affects all Unity developers who install LevelPlay via either the Ads Mediation Unity Package Manager (UPM) package, or the Unity Plugin (.unitypackage).
This article outlines the steps you can take to manually exclude the Ad Quality SDK from their Unity application on both Android and iOS platforms. This gives developers the flexibility to remove Ad Quality if needed while still benefiting from its automatic inclusion by default.
Note: These instructions apply only to LevelPlay SDK version 8.9.0 and above.
Exclude Ad Quality for Android
Note: Ensure that mainTemplate.gradle is enabled in your project by checking Custom Main Gradle Template from Project Settings – Player – Publishing Settings.
In the dependencies section of the mainTemplate.gradle, change:
implementation 'com.unity3d.ads-mediation:mediation-sdk:x.x.x'
to: (Replace the x.x.x with the correct version)
implementation ("com.unity3d.ads-mediation:mediation-sdk:x.x.x") {
exclude group: 'com.unity3d.ads-mediation', module: 'adquality-sdk'
}
Then build the project. The Ad Quality SDK should be excluded from your app bundle.
Exclude Ad Quality for iOS
To exclude the Ad Quality SDK from your Unity iOS build:
In the IronSourceSDKDependencies.xml from Asset/LevelPlay/Editor, change:
<iosPod name="IronSourceSDK" version="x.x.x.x">
to:
<iosPod name="IronSourceSDK/Ads" version="x.x.x.x">
Then build the project. The Ad Quality SDK should be excluded from your app bundle. You can verify it by inspecting the Pods folder.