Search Unity

  1. Megacity Metro Demo now available. Download now.
    Dismiss Notice
  2. Unity support for visionOS is now available. Learn more in our blog post.
    Dismiss Notice

How to hide banner ads when using unity monetisation

Discussion in 'Unity Ads & User Acquisition' started by sushanta1991, Sep 30, 2019.

Thread Status:
Not open for further replies.
  1. sushanta1991

    sushanta1991

    Joined:
    Apr 3, 2011
    Posts:
    305
    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.
     
  2. Dinochrome

    Dinochrome

    Joined:
    Apr 23, 2018
    Posts:
    19
    Hello! Any updates on this issue? I have the same problem. Seems that you can't close ads.
     
  3. JeffDUnity3D

    JeffDUnity3D

    Joined:
    May 2, 2017
    Posts:
    14,446
    Does Banner.Hide not work for you?
     
  4. sushanta1991

    sushanta1991

    Joined:
    Apr 3, 2011
    Posts:
    305
    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();
     
  5. JeffDUnity3D

    JeffDUnity3D

    Joined:
    May 2, 2017
    Posts:
    14,446
  6. ap-unity

    ap-unity

    Unity Technologies

    Joined:
    Aug 3, 2016
    Posts:
    1,519
  7. sushanta1991

    sushanta1991

    Joined:
    Apr 3, 2011
    Posts:
    305
    @ap-unity
    Thank you so much for the information, it will be helpful in future.
     
Thread Status:
Not open for further replies.