What is the logic to remove Ads after IAP in Cocos2d-X ?

  • iam777
    Likes 0

    Problem Description

    I have a simple game that displays banners and Interstitial. But I am trying to provide “Revomve Ads” after IAP and I am trying to figure out the correct logic in Cocos2d-X. Please I need your assistance on this. Could you provide a short sample code?

  • Sonar Systems admin
    Likes 0

    What ad platform are you using such as iAds, Chartboost, Revmob etc?

  • iam777
    Likes 0

    I am using RevMov.

  • Sonar Systems admin
    Likes 0

    What you could do is, check if the in app purchase is purchased if so then do nothing but if it isn’t then display the ads.

  • iam777
    Likes 0

    What could be the pseudo code?

  • Sonar Systems admin
    Likes 0

    If (inAppPurchased)

    {

    revmobcode code to stop alll running ads

    }

    else

    {

    Show ad

    }

  • iam777
    Likes 0

    Thanks again.

  • Sonar Systems admin
    Likes 0

    Your welcome.

     

    We would appreciate it, if you could take the time and follow us on social media and download our new free app and provide a review.

    Social media links:

    Facebook

    Twitter

    Google+

    YouTube Channel

     

    iOS App Link

    Android App Link

     

    This would help immensely 

Login to reply