How to monetize your games with admob ads in unity - Unity admob tutorial 2020
Consider donating to help me keep this channel and website alive : paypal.me/supportTheGameGuy 💖
or Support me patreon : / the_game_guy 💖
--- Important links
- Admob Sdk for unity : github.com/googleads/googlead...
- How to setup the ads : developers.google.com/admob/u...
- Download the Ad manager Script : thegameguy.net/resources.html
In this video im gonna walk you through the process of implementing admob ads (Banner , Interstitial and rewarded video ads ) in unity. I have already made an ad manager script that takes care of everything, you just need to download the script and if needed you can also makes changes to the script to make it work for your game.
- We will look into setting up the admob account.
- Create our ad units.
- Use test ads for testing purposes.
- and finally build the game for android and try out all the ads.
Important Note
You should never use multiple ads on a single screen in your games and for the rewarded videos ads its important that the user chooses to watch the ad.
For more google ad policies : support.google.com/googleplay....
Also check out these awesome videos :
How to play test your Game by Brackeys :
• HOW TO PLAYTEST!
Adding new weapons to my game by Dani :
• Adding New Weapons to ...
Wierdest Mobile game ads by Dani :
• The WEIRDEST Mobile Ga...
Making a lowpoly 3d car race game in unity by Imphenzia :
• Low Poly Racing - Maki...
Understand your AI Tensorboard :
• Understand your Unity ...
Music: www.bensound.com 🎵
Пікірлер: 93
Thank you very much ! nice tutorial, all important links are in the description and its perfect explained.
Love the way you teach bro
Love your tutorial
THANKS for the script man
thanks mahn i subscribed
Thank You Very Much You Are Great Bro!
Sir can I use this admob for my android game publishing on amazon app store not on playstore plz reply sir
Thank you so much
Very good tutorial i appretiate
The type or namespace name 'RewardBasedVideoAd' could not be found (are you missing a using directive or an assembly reference?) how i solve this
Hello, thanx for your video. I'd like to ask, should I turn off unity ads and ( in services ) it to work properly? I'm not sure whether i need them or not so admob could work correctly.
ads are working well in unity editor but when i make apk for android then on that apk file ads are not working please help me
Hello sir I am not able to see ads. What is your unity and visual studio version. As in visual studio getting migration error
Assets\AdmobAds.cs(18,12): error CS0246: The type or namespace name 'RewardBasedVideoAd' could not be found (are you missing a using directive or an assembly reference?) whenever i add the script in my project i get that error
admob does not show my apps from the App Store to link them, what can I do? Is there a problem if I show the ads without linking it to admob?
NICE
I'm getting an error of NullReferenceException at line "rewardedAd.LoadAd(new AdRequest.Builder().Build(), rewarded_Ad_ID);" kindly help me resolve this one.
@moritzehrhardt4404
3 жыл бұрын
@azizc99tn _ Thank you very much. I came up with the same issue. Without you I would probably still be sitting at it all day.
how to code if i clicked on button then interstital ads show after this change scene.??? help me
@TheGameGuy
3 жыл бұрын
You could call the showInterstitial method when a player click the button by making a public method for the button that calls the showinterstitial ad method
Pls response I am using the unity game git for 2d I changed the background but I want it to layer down from the levels But instead the background is in the front and clocked everything how can I layer it down
@TheGameGuy
3 жыл бұрын
Can you please be specific to what tutorial you are pointing to?
@aaronicgaming5536
3 жыл бұрын
The Game Guy pls make a new project and import the 2d game kit and you will be given a character background and all that stuff I want an tutorial on how to change the background
My google Mobile Api does not let me import everything.....it just automatically unchecks the boxes can u help me???
Hi Game guy! Thank you for this tutorial, I got one question/problem/doubt because I don't get it on your video: where do you put the script admobs? In the same gameobject as the game manager? Right know in my game I got two scripts in an object in each scene/level. Do I have to change it? And call the admobs only at the begining of the game once, and the game manager in each scene/level? Thank you for this nice tutorial!
@itssushitime446
2 жыл бұрын
I am not sure but i think that if you create a new gameobject and put it in there you will be allright
I followed all the steps but Ad didn't show up, I am using test app id. and can u pls tell what is Game id?
Please sir I have a question, in your video u said we cannot use our real ad id so I want to know whether we are going to change it to our real id when we want to publish our game. And can you make a video on publishing our game to play store
same process for unity webGL build ??????(webgl for facebook instant game)
Bro it is giving this error Argument 1: cannot convert from 'string' to 'System.Action' in this code void Start() { MobileAds.Initialize(GameID); }
@sayedalamaanzaidi5964
3 жыл бұрын
pls help
@yaliggtv3574
Жыл бұрын
@@sayedalamaanzaidi5964 It gave me the same problem now. Did you manage to find a solution?
@sayedalamaanzaidi5964
Жыл бұрын
@@yaliggtv3574 yes the new versions of Unity is not supporting admob you have to integrate only unity ads to make it work
Look carefully from 3:05 to 3:06 and see the white hide id bar, he has showed the app id a few frame(oh my bad english:)) )
For the *Copy/Paste gang* 😜 Grab the Scripts from : thegameguy.net/resources.html
@bella-rp2rw
3 жыл бұрын
where can i found the script?
whats the difference . rewardedAds and RewardedVideoAds
Very nice tut, One issue I am facing it, On load rewarded ad I have to click twice to make that button work. In other words, I have to tap twice to load the ad. Why is that? Can you help me fix the issue plz?
any turtorial for implement gdpr consent in unity ?
if your apps not uploaded on playstore yet then ads wont show up, right ?
@TheGameGuy
3 жыл бұрын
Actually ads will show up even if you havent uploaded your game on play store but i would highly recommend you use test ads if you havent yet published your game on PS or your account couls get suspended or banned..
NullReferenceException: Object reference not set to an instance of an object on GameManager Start() method "NEED SOLUTION"
@timeTrial4617
3 жыл бұрын
oh I didn't add the admobScript to the camera or to any emptyObject that's why it was showing the above error
@xnopel4326
3 жыл бұрын
Thx man
@timeTrial4617
3 жыл бұрын
@@xnopel4326 😅 I still remember that day
Can i download your project? That scricpt doesnt work without the GameManager. Red ERROR: The name 'GameManager' does not exist in the current context
i am getting null reference error how to fix say
@timeTrial4617
3 жыл бұрын
Me too getting same error, banner() not instance
Thanks bro Can you please share your knowledge about how to add more rewarded ads with different rewards Thanks again in regards ✨
@marcoantoniomartiniano8488
3 жыл бұрын
make an IF with a variable in click event, when variable == 0 you send one reward, variable == 1 tou send another.
Very good tutorial. Can you make a tutorial for IAP to remove ads?
Plz tell how to add ads when we lose the game the ad pop up (interstitial ad).plzz
@TheGameGuy
3 жыл бұрын
You just need to call the showinterstitial ad method inside your gameover method (if you have any)
@rishigameryt607
3 жыл бұрын
@@TheGameGuy it's not working. I already have tried it
@rishigameryt607
3 жыл бұрын
@@TheGameGuy pls make a short tutorial. How to do it ..plzz
@rishigameryt607
3 жыл бұрын
@@TheGameGuy without clicking any button automatically ad will pop up after game over
Nice tutorial could you shoot the video "How to put an ad when running an application via ADMOB in unity"? Thanks in advance.
@coolvlogstelugu
3 жыл бұрын
There is a solution but don't do that... It may irritate player and they will uninstall games
Can i have a copy of this source code to follow along with
@TheGameGuy
3 жыл бұрын
Sure, i have given the download link in the description.
@kurtpublic631
3 жыл бұрын
@@TheGameGuy I mean of the game not files
@TheGameGuy
3 жыл бұрын
@@kurtpublic631 Well that's exactly the reason why i kept it simple and just added a few buttons so that everyone could easily follow along.. and i didn't save a copy of this project on my pc so sorry for that.
@kurtpublic631
3 жыл бұрын
@@TheGameGuy Dang it just i dont understand unity well so can u make a more single one where u show the project creation please
Yo Brooo nice tutorial! I implemented ads using admob but they always put an adlimit on my account😔. After three months the adlimit gets removed and then within 2 days adlimit is placed again..it is in a loop! Any way to stop them from putting adlimit?
@TheGameGuy
3 жыл бұрын
Many people have been complaining about this issue, even i have faced this issue on my mobile games. Still can't figure out the exact reason why it happens as im not using any illegal traffic source. But you must go through their ad policies first maybe you will find something useful there.
why dont fix the errors?
To which gameobject should i attach the admob script??
@TheGameGuy
3 жыл бұрын
Just make a new gameobject call it admanager or anything you want and attach this script to that object..
@sidharthnair7775
3 жыл бұрын
@@TheGameGuy im not able to add the admob plugin to unity, is it compatible with the 2020.13f version of unity? I was getting multiple builds errors
bro, can I play 2 ads back to back for unlocking a reward if yes then how?
@TheGameGuy
3 жыл бұрын
You could but then google will most probably consider it as an ad policy violation and suspend your account for 30 days..
@subhasishkolay8398
3 жыл бұрын
@@TheGameGuy ya I just came to know that and even if I did that the ads won't load so fast actually I misunderstood the directions
@subhasishkolay8398
3 жыл бұрын
@@TheGameGuy I need your help again bro this time I want to know how to unlock a reward after the player has finished watching an ad?
I don't have any Idea ...but pin🌚
nyc but how can i implement interstitial ads between two scene ?
@TheGameGuy
3 жыл бұрын
To do that you just need to show the interstitial ad when someone clicks a button to go to another scene and when the ad ends just load the next scene.
@PradeepKumar-kk4zd
3 жыл бұрын
@@TheGameGuy ya i know but my ads show after change the scene i set invoke for delay change scene but ads show perfectly before the change scene. But after ads closed scene 1 then call invoke function and scene change .... this is my prob .... how to solve this plz help
pl help me to overcome this.... i have added admob scrip to gameobject, once i played following error occurs. NullReferenceException: Object reference not set to an instance of an object AdmobAds.loadRewardVideo () interstitial and banner ad works. once i clicked rewarded ad button the following error occurs, NullReferenceException: Object reference not set to an instance of an object AdmobAds.showVideoAd () pl help me to overcome this.
ad manager script's link not working??
@TheGameGuy
3 жыл бұрын
thegameguy.net/resources/admob-monetization.html
@samiulhaq415
3 жыл бұрын
@@TheGameGuy thanks for instant reply :)
@samiulhaq415
3 жыл бұрын
I am getting null reference exception error when requesting and showInterstitialAd() . using my own app id and test ad id.
can you put the admanager script
@TheGameGuy
3 жыл бұрын
thegameguy.net/resources.html You can get the scripts from here
How to make REAL ads PLZ
Not working.
Bro please make a slider control movement like your games in Play Store 🙏🥰 left and right with slider ....................... Please
@TheGameGuy
3 жыл бұрын
You can easily do that with the help of Slider.. just replace the x = input.getaxis line with slider.value.
@TheGameGuy
3 жыл бұрын
Check out this video here : kzread.info/dash/bejne/dIajr9aghrq9iLQ.html
@spidersense1639
3 жыл бұрын
@@TheGameGuy thanks a lot 👍👍
@spidersense1639
3 жыл бұрын
@@TheGameGuy can you please provide me a line of code I m so confused right now 😅😅😅 please 🙏🏻🙏🏻 i am new in Game developement industry.
@TheGameGuy
3 жыл бұрын
@@spidersense1639 Yeah sure.. All you need to do is create a reference for the slider on top. and now in the update method you need to set the float x variable to slider's current value like this x = slider.value; or whatever you have named the slider.. and make sure you reference the slider you are using in your game.
waste of time nothing works for your real game