Unity: Disable creative debugger in applovin through admob mediation

329 views
Skip to first unread message

Teja Dhanekula

unread,
Jul 11, 2023, 4:10:16 AM7/11/23
to Google Mobile Ads SDK Developers
Hi,
I've added applovin adapter through admob mediation through this guideĀ https://developers.google.com/admob/unity/mediation/applovin
Post integration, when I shake the mobile, I am shown a blue Applovin symbol which when clicked, opens up the "Max Creative Debugger".
I want to disable this.
However, the admob adapter hasn't exposed any API to deal with this.Ā 
Please let me know how to proceed.
I have tried to call 'ApplovinSDK' through JNI but it throws up multiple errors saying "AppLovinSdk [AppLovinSdk] Multiple SDK instances detected" and "[AppLovinSdk] Unable to find AppLovin SDK key. Please addĀ  meta-data android:name="applovin.sdk.key" android:value="YOUR_SDK_KEY_HERE" into AndroidManifest.xml."
​
private const string appLovinSdkClassName = "com.applovin.sdk.AppLovinSdk";
​AndroidJavaClass unityPlayer = new AndroidJavaClass("com.unity3d.player.UnityPlayer");
AndroidJavaObject currentActivity = unityPlayer.GetStatic<AndroidJavaObject>("currentActivity");
AndroidJavaClass appLovin = new AndroidJavaClass(appLovinSdkClassName);
bool creativeDebuggerEnabled = false;

#if DEVELOPMENT_BUILD
creativeDebuggerEnabled = false;
#endif

appLovin.CallStatic<AndroidJavaObject>("getInstance", currentActivity)
.Call<AndroidJavaObject>("getSettings")
.Call("setCreativeDebuggerEnabled", creativeDebuggerEnabled);

Please let me know how to disable Applovin "Max Creative Debugger" through Admob adapter in Unity.Ā  Thanks.Ā 
Regards
Teja

Teja Dhanekula

unread,
Jul 11, 2023, 5:53:54 AM7/11/23
to Google Mobile Ads SDK Developers
Never mind. I solved it by adding Applovin SDK key to my custom manifest and it got solved. Below is the code I added to AndroidManifest.xml.

Ā  Ā  <meta-data
Ā  Ā  android:name="applovin.sdk.key"
Ā  Ā  android:value="YOUR_SDK_KEY_HERE" />

Regards

Mobile Ads SDK Forum Advisor

unread,
Jul 11, 2023, 9:50:07 AM7/11/23
to dht...@gmail.com, google-adm...@googlegroups.com
Hello Teja,

Thank you for sharing your solution to the community and we're glad that the issue has been resolved.

Please do let us know if you have any other concerns related to Mobile Ads SDK. We'll be happy to assist you.
Ā 
This message is in relation to case "ref:_00D1U1174p._5004Q2n6BaW:ref"

Thanks,
Ā 
Google Logo Mobile Ads SDK Team


Reply all
Reply to author
Forward
0 new messages