If you use C# events instead of direct assignment for the Button component, you can share one Ad system between interstitial and rewarded ads and cut down on size. Maybe you could even pass an int or a bool during the event call as a tag for how many /+ what kind of ads to play. Just some thoughts. Great tutorial!!!
I have a problem, after I got the reward from the rewarded ada reload the scene to get another rewarded ad, the button becomes not interactable and if I turn on and click on it, the ad doesnt show, only the first time that I execute the game
@@JDE19 yeah, Just delete the LoadAd call from the initialization script and assign the function directly to the button (Just dont remember if it was the showad or the load ad void). Also if you dont want to have another ad after the first one you need to erase or Mark as comment the code that is marked as"load another ad"
placementId cannot be nil or empty, I know this error is beacause my button is inactive in the beggining, but I want it to get active only when play dies, so is there a fix to it?
Whay is happening this?: When I use the button, the rewarded ad is called once. (normal) the second time i use the same button, the rewarded ad is called twice, then 5 times, then 13, 34...
Thanks so much, great video. When the interstitial ad has finished does it (the button and ad script) kind of self-destroy? I want to have the ad load every two levels so should I have the script on the 'Next Level' button? Thanks so much.
The button and ad script will not be destroyed. They'll continue to exist. If you want the ad to load every two levels, you would need to keep track of how many levels have been completed since the last ad was shown.
I REALLY APPRECIATE YOUR FAST AND SIMPLE TUTORIAL and I would like to ask you how we can make the ad play without using a button .that is after a certain event say the player fails a level
Thanks for the information. I have a question: I have the RewardedAdsButton in the same scene as the game (all is the same scene, even the main menu). So when player presses the add button it displays the ad, but when the scene reloads (because the player dies), the button gets opaque and cannot be pressed again. I will appreciate any help, thanks
Hi, excelent but I have a question. What if you want to call a rewarded Ad from another game script instead of from a button? All YT videos show how to do it from a canvas button... Thanks
When publishing, do I need to disable in the unity editor the option?: Project settings -> Services -> Ads -> Test mode Also, in the Ads manager in the gameobject that has the scripts?
Thank you @Hooson for such an awesome tutorial... But you forgot to add an important method, without which Unity rewarded video ad registering multiple times and on every click it gets multiplied. Well I solved this problem by calling OnDestry(), from OnUnityAdsShowStart(string adUnitId). This gives appropriate follow and rewards on every click. ))
How can I define what type of ads are going to be show in the interstitial? I think about mainly two variables to set, being length of the ad (in seconds) and the right format (portrait, landscape)?
@@sliceggjd I know iam late but if someone has the same problem as i , if you disactivate the button before you called the LoadAd Method and you activated it again, the button will not be interactable, you will need to make it interactable when you activate the button by Writing /*the variable of the button*/.interactable = true; in the code that you activated the button in or the panal or canvas in.
Showing Me EveryTime this error: Error showing Ad Unit Interstitial_Android: NOT_READY - Placement Interstitial_Android is not ready UnityEngine.Debug:Log (object) loadInterstitial:OnUnityAdsShowFailure (string,UnityEngine.Advertisements.UnityAdsShowError,string) (at Assets/Assets/Swipe/Scripts/Mitu/loadInterstitial.cs:49) UnityEngine.Advertisements.Utilities.CoroutineExecutor:Update () (at ./Library/PackageCache/com.unity.ads@4.4.2/Runtime/Advertisement/Utilities/CoroutineExecutor.cs:17)
Hello! Thank you very much for the video! it worked very well! One question I have a button for when the player dies that gives you 3 more lives. But I want to add a button, I don't know if in the same window or in another part where I deliver 20 coins. How should I do in this case? Because the RewardedAdsButton code is for only one.
Thank you this was very useful, but I have a question. Everything works perfectly in the browser but nothing displays when I try it on my actual phone device, do we have to check for an ad to be ready or anything before calling show?