'Disable StartApp SDK auto show ads when activity is visibile
I was successfully able to add StartApp ads to my project, I only added 1 banner.
My question is, why a full screen ad keeps showing when my activity is visibile? (e.g: I'm inside the app then I open YouTube without closing my app, when I get back to my app, a full screen ad pops up)
Is there any solution to disable it?
I tried removing this Manifest code who's responsible on that ad, but my app crashes asking for that transparent activity.
android:name="com.startapp.sdk.adsbase.activities.OverlayActivity"
android:configChanges="orientation|screenSize|screenLayout|keyboardHidden"
android:theme="@android:style/Theme.Translucent"/>
Example of the ad showing: Screenshot
Solution 1:[1]
I fixed it by disabling return ads.
StartAppSDK.init(this, "StartApp App ID", false);
Solution 2:[2]
I'v tried that and It's still showing Then I've add RETURN_ADS_DISENABLED to the meta dataand it works so my whole meta data becames
<meta-data
android:name="com.startapp.sdk.APPLICATION_ID.RETURN_ADS_DISENABLED"
android:value="ur app id" />
Solution 3:[3]
You can write like this
StartAppSDK.init(this, "StartApp App ID");
StartAppAd.disableAutoInterstitial();
StartAppSDK.setTestAdsEnabled(BuildConfig.DEBUG);// this for test ad
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
Solution | Source |
---|---|
Solution 1 | Ilyasse Salama |
Solution 2 | mohammed zaton |
Solution 3 | Abhi S |