So I am new to coding in general and I am trying to figure out how coding in a rewarded video for AppLovin works. If I set up scenes to run the game where would I code in the rewarded ads? Would it be after the function that ends the game or at the beginning of the script before the game starts? Any help is appreciated. Thank you!
Rewarded video takes up the full screen, so it makes sense that you should do this at the end of a round or end of the game. You don’t want ads to be too obtrusive. So if your game is played quickly, you might only want to run ads every few games.
Rob
Okay. That makes sense. So code in the rewarded ad after the game checks to see if the player has no lives left. Thank you so much!
You have to decide when your game is over and choose to show the rewarded ad. The ads don’t contain logic for your game. Sometimes you can use them to determine an amount of a reward.
Rob
Oh right. I didn’t think of that. Thank you.
Also, you should check if a reward ad is available before trying to show the ad.
-
Check if you have a reward to show.
-
Prompt user for the option to see the ad.
-
Present the ad.
-
Give the user the reward for watching the ad.
Rewarded video takes up the full screen, so it makes sense that you should do this at the end of a round or end of the game. You don’t want ads to be too obtrusive. So if your game is played quickly, you might only want to run ads every few games.
Rob
Okay. That makes sense. So code in the rewarded ad after the game checks to see if the player has no lives left. Thank you so much!
You have to decide when your game is over and choose to show the rewarded ad. The ads don’t contain logic for your game. Sometimes you can use them to determine an amount of a reward.
Rob
Oh right. I didn’t think of that. Thank you.
Also, you should check if a reward ad is available before trying to show the ad.
-
Check if you have a reward to show.
-
Prompt user for the option to see the ad.
-
Present the ad.
-
Give the user the reward for watching the ad.