Hi,
I want to show banner ads in only home screen but if user opens any other screen like setting screen I want to hide the banner. How can I do this with unity monetisation sdk?
I haven’t found any function to do this. Please help.
Hi,
I want to show banner ads in only home screen but if user opens any other screen like setting screen I want to hide the banner. How can I do this with unity monetisation sdk?
I haven’t found any function to do this. Please help.
Hello! Any updates on this issue? I have the same problem. Seems that you can’t close ads.
Does Banner.Hide not work for you?
There is nothing like Banner.Hide in Unity Monetization api, I have checked all options.
You can create banner ads like this -
ShowAdPlacementContent ad = Monetization.GetPlacementContent(“banner”) as ShowAdPlacementContent;
ad.Show();
but there is NO option like -
ad.Hide();
Sorry, it may have been changed recently. My mistake. I was following this Can I make banner ads optional for the player?
@sushanta1991
The Monetization API does not support banner placements. You must use the Advertisements namespace for that functionality.
In the Advertisements namespace, there is Banner.Show and Banner.Hide:
https://docs.unity3d.com/Packages/com.unity.ads@3.3/api/UnityEngine.Advertisements.Advertisement.Banner.html
I would recommend using the Advertisements namespace, in general, unless you have a specific reason to use the Monetization namespace.
@ap-unity
Thank you so much for the information, it will be helpful in future.