In app purchase to remove all ads

Mayhem_MadnessMayhem_Madness Member, PRO Posts: 168
edited June 2015 in Working with GS (Mac)

Hi everyone, I'm trying to implement in app purchases to remove all ads within my game, i have iAds and rev mob, could someone explain to me how to do this? I have tried doing it, but can't get it to work. When i press the remove ads button nothing happens, is something meant to happen when testing?

Thanks.

Comments

  • Braydon_SFXBraydon_SFX Member, Sous Chef, Bowlboy Sidekick Posts: 9,273

    Is there logic inside the remove ads button? Just because it says "remove ads" doesn't mean it works some magic. :P

    You'll want to create a boolean attribute and name it something like adsOff.
    When that is false, you know you to show ads. When the user purchases the IAP, change adsOff to true. It's that simple. You'll then have to go to all of your logic that either displays or requests an ad and hook that up into a rule that says:

    When attribute game.adsOff is false
    -- show ads
    

    When you change adsOff to true, that condition in the rule is no longer met and it will not trigger.

  • Mayhem_MadnessMayhem_Madness Member, PRO Posts: 168
    edited June 2015

    @Braydon_SFX said:
    Is there logic inside the remove ads button? Just because it says "remove ads" doesn't mean it works some magic. :P

    You'll want to create a boolean attribute and name it something like adsOff.
    When that is false, you know you to show ads. When the user purchases the IAP, change adsOff to true. It's that simple. You'll then have to go to all of your logic that either displays or requests an ad and hook that up into a rule that says:

    When attribute game.adsOff is false
    -- show ads
    

    When you change adsOff to true, that condition in the rule is no longer met and it will not trigger.

    Hi Braydon, sorry for the misunderstanding, i meant that i had put rules in, and it wasn't working.

    Anyway what you have said i had tried and nothing happens.

    Do i have to use In App Purchase- buy item.. or In App purchase item(deprecated behaviour) ?

    Also if it is the first one, do i have to tick the consumable box or not?
    Thanks.

  • Braydon_SFXBraydon_SFX Member, Sous Chef, Bowlboy Sidekick Posts: 9,273

    @Thor - the deprecated behavior is no longer supported so you will have to use the various other In-App Purchase behaviors. These behaviors give you as a developer more control over the things that happen in your game.

    Consumable mean that a user can buy that IAP over and over again - a good example would be in-game coins. Since you are removing ads, that would be a non-consumable - you don't want people buying that over and over again.

    There are various IAP tutorial out there on Youtube and some on these forums. Feel free to do a quick search.

  • Mayhem_MadnessMayhem_Madness Member, PRO Posts: 168

    @Braydon_SFX said:
    Thor - the deprecated behavior is no longer supported so you will have to use the various other In-App Purchase behaviors. These behaviors give you as a developer more control over the things that happen in your game.

    Consumable mean that a user can buy that IAP over and over again - a good example would be in-game coins. Since you are removing ads, that would be a non-consumable - you don't want people buying that over and over again.

    There are various IAP tutorial out there on Youtube and some on these forums. Feel free to do a quick search.

    Ok Braydon, thanks for that.

    I have had a look in the forums and have put that into my rules, but its still not working.

    I have attached two screenshots, one for my ads, and one for the remove ads button.

    Would it be possible, if you could tell me what I've done right or wrong, thanks.

  • Mayhem_MadnessMayhem_Madness Member, PRO Posts: 168


    @Braydon_SFX said:
    Thor - the deprecated behavior is no longer supported so you will have to use the various other In-App Purchase behaviors. These behaviors give you as a developer more control over the things that happen in your game.

    Consumable mean that a user can buy that IAP over and over again - a good example would be in-game coins. Since you are removing ads, that would be a non-consumable - you don't want people buying that over and over again.

    There are various IAP tutorial out there on Youtube and some on these forums. Feel free to do a quick search.

  • Mayhem_MadnessMayhem_Madness Member, PRO Posts: 168

    Still can't get this to work, can anyone help?

  • Braydon_SFXBraydon_SFX Member, Sous Chef, Bowlboy Sidekick Posts: 9,273

    @Thor said:
    Still can't get this to work, can anyone help?

    You need to look at tutorials that are available. You need to look at the table cell (column 5) in your purchase table. When that equals "purchased" you need to change your attribute to true. You can test IAP in Creator, but you have to do some workarounds. Check out @Armelline's free tutorial file - it shows you how to setup non-consumable items.

  • Mayhem_MadnessMayhem_Madness Member, PRO Posts: 168

    @Braydon_SFX said:
    You need to look at tutorials that are available. You need to look at the table cell (column 5) in your purchase table. When that equals "purchased" you need to change your attribute to true. You can test IAP in Creator, but you have to do some workarounds. Check out Armelline's free tutorial file - it shows you how to setup non-consumable items.

    Is there a way to do it without a table?

  • Braydon_SFXBraydon_SFX Member, Sous Chef, Bowlboy Sidekick Posts: 9,273

    @Thor said:
    Is there a way to do it without a table ?

    Not with the new system.

Sign In or Register to comment.