Search Unity

[Closed] Remove Ads with IAP?

Discussion in 'Unity IAP' started by Der_Kevin, Feb 10, 2016.

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

    Der_Kevin

    Joined:
    Jan 2, 2013
    Posts:
    517
    Heyho!
    I know, Remove ads/Pro version is not the best monetization strategy but I still want to do this ;)
    the question is just how. I am using Unity Ads and IAP and want to remove all ads for 99ct. a Pro version so to say

    Is there any tutorial or example for this case?

    i already set up something in soomla but want to change to unity IAP now to have everything in one place. the script was pretty slim: http://pastebin.com/rCYZY2tK

    the most important part is actually this:
    Code (CSharp):
    1. public bool IsNoAdsPurchased
    2.     {
    3.         get
    4.         {
    5.             var balance = StoreInventory.GetItemBalance( MazeAssets.NO_ADS_LTVG.ItemId );
    6.  
    7.             if( balance == 1 )
    8.             {
    9.                 plyBloxGlobal.Instance.SetVarValue ("noads", true);
    10.                 return true;
    11.             }
    12.             else
    13.             {
    14.                 plyBloxGlobal.Instance.SetVarValue ("noads", false);
    15.                 return false;
    16.             }
    17.         }
    18.     }
    this sets a bool from a visual scripting tool to true and from there on, i control everything that is related to the "pro" version
     
Thread Status:
Not open for further replies.