Custom Ads : Resume From Last Checkpoint (android)

Discussion in 'How Can I...?' started by TheGameAppStudio, Mar 2, 2019.

  1. TheGameAppStudio

    TheGameAppStudio Serious Boxer

    Joined:
    Nov 2, 2016
    Messages:
    927
    Likes Received:
    318
    Hi,
    I am still trying to figure out how to resume from last check point after displaying ads.Though i am successful in showing ads after first defeat i couldn't resume from previous checkpoint.
    Can anyone help me to find an optimal solution? @NikRudenko @ZackGriset @TreySmith Hope you will turn up here as this is making my game release delayed for Android.
    @particles and everyone could share their thoughts :)
     
  2. AaroArts

    AaroArts Miniboss Boxer

    Joined:
    Jun 22, 2016
    Messages:
    1,546
    Likes Received:
    826
    You have to use Set Checkpoint.
    So drop an Action into your Scene that the player can reach.
    Then use another Checkpoint to decide where they restart from.

    The Rewarded Video should reward the player with a Checkpoint Action, which puts the player back to the last or next Checkpoint.
     
  3. TheGameAppStudio

    TheGameAppStudio Serious Boxer

    Joined:
    Nov 2, 2016
    Messages:
    927
    Likes Received:
    318
    Hi,I knew how it works :p I was asking the programming part.I have set a custom ads for second chance button and custom ads shows.But the problem is it doesn't resume from last check point. i.e it doesn't go back to previous screen programmatically .I am looking for exact code that triggers it :p
     
  4. AaroArts

    AaroArts Miniboss Boxer

    Joined:
    Jun 22, 2016
    Messages:
    1,546
    Likes Received:
    826
    Oh right. Well looking at their Mopub example, it looks as though you need to include this function in the AdIntegratorHelper file:

    Code:
    @Override
    public void onRewardedVideoCompleted(Set<String> adUnitIds, MoPubReward reward) {
        AdIntegrator.rewardedVideoDidEnd();
    }
    
    Assuming it works similar to iOS, the AdIntegrator.rewardedVideoDidEnd() should reward the Action after the video has ended.

    However I believe there are some issues with Rewarded Videos on Android using the custom hooks, so maybe it's best to contact Support.
    If you do find the solution, please post it :) Sorry I couldn't be more help.
     
    TheGameAppStudio likes this.
  5. TheGameAppStudio

    TheGameAppStudio Serious Boxer

    Joined:
    Nov 2, 2016
    Messages:
    927
    Likes Received:
    318
    AdIntegrator.rewardedVideoDidEnd(); did the work.Thank you .Btw i am showing interstitial ads under reward video button as there is no use of game coins in the game as of now :)
     
  6. AaroArts

    AaroArts Miniboss Boxer

    Joined:
    Jun 22, 2016
    Messages:
    1,546
    Likes Received:
    826
    That’s awesome.
    I would still use Rewarded Videos though. Interstitials can be closed without being watched, then your Player could restart without watching the Ad.

    You don’t need to use coins, the Rewarded Video can be the Checkpoint.
     
  7. TheGameAppStudio

    TheGameAppStudio Serious Boxer

    Joined:
    Nov 2, 2016
    Messages:
    927
    Likes Received:
    318
    :) Rewards could also be closed right? At present i am using Admob .I found an option to close ads with a popup warning.Either way users would close it.
     
  8. AaroArts

    AaroArts Miniboss Boxer

    Joined:
    Jun 22, 2016
    Messages:
    1,546
    Likes Received:
    826
    Yes, but if a Rewarded Video is closed early, the user isn’t rewarded/doesn’t start from the checkpoint.
    That’s the point of a Rewarded Video and why they generate higher revenue.
     
  9. TheGameAppStudio

    TheGameAppStudio Serious Boxer

    Joined:
    Nov 2, 2016
    Messages:
    927
    Likes Received:
    318
    Yeah that's what i thought but with rewardvideodidend code it resumes if a video has been closed.may be i should add it when reward video completed instead of on closing.
     
  10. Appossible

    Appossible Avid Boxer

    Joined:
    Aug 14, 2017
    Messages:
    198
    Likes Received:
    56
    Can you please let me know the code that needs to be added to the AdIntegrator.h?
    I'm not a programer, no idea what to add.
    Thank you
     
  11. TheGameAppStudio

    TheGameAppStudio Serious Boxer

    Joined:
    Nov 2, 2016
    Messages:
    927
    Likes Received:
    318
  12. Appossible

    Appossible Avid Boxer

    Joined:
    Aug 14, 2017
    Messages:
    198
    Likes Received:
    56
  13. TheGameAppStudio

    TheGameAppStudio Serious Boxer

    Joined:
    Nov 2, 2016
    Messages:
    927
    Likes Received:
    318
    Appossible likes this.

Share This Page