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

  • @nicoschwer6120
    @nicoschwer61203 жыл бұрын

    Thank you very much ! nice tutorial, all important links are in the description and its perfect explained.

  • @sheerazali5178
    @sheerazali51783 жыл бұрын

    Love the way you teach bro

  • @BryceUpclips
    @BryceUpclips3 жыл бұрын

    Love your tutorial

  • @youtubechalao1580
    @youtubechalao15803 жыл бұрын

    THANKS for the script man

  • @thetwobrothers6302
    @thetwobrothers63023 жыл бұрын

    thanks mahn i subscribed

  • @ninjacodes6391
    @ninjacodes63913 жыл бұрын

    Thank You Very Much You Are Great Bro!

  • @RH-pg8tm
    @RH-pg8tm3 жыл бұрын

    Sir can I use this admob for my android game publishing on amazon app store not on playstore plz reply sir

  • @ensar.karpuz
    @ensar.karpuz3 жыл бұрын

    Thank you so much

  • @BryceUpclips
    @BryceUpclips3 жыл бұрын

    Very good tutorial i appretiate

  • @aniketcoder1469
    @aniketcoder14693 жыл бұрын

    The type or namespace name 'RewardBasedVideoAd' could not be found (are you missing a using directive or an assembly reference?) how i solve this

  • @bob27111
    @bob271112 жыл бұрын

    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.

  • @salehlodhi3352
    @salehlodhi33522 жыл бұрын

    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

  • @allaboutmumbai4583
    @allaboutmumbai45833 жыл бұрын

    Hello sir I am not able to see ads. What is your unity and visual studio version. As in visual studio getting migration error

  • @hdmovies1160
    @hdmovies11603 жыл бұрын

    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

  • @carlosa2843
    @carlosa28433 жыл бұрын

    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?

  • @lorenztan9512
    @lorenztan95122 жыл бұрын

    NICE

  • @hamzakhalid411
    @hamzakhalid4113 жыл бұрын

    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

    @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.

  • @KineticProduction
    @KineticProduction3 жыл бұрын

    how to code if i clicked on button then interstital ads show after this change scene.??? help me

  • @TheGameGuy

    @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

  • @aaronicgaming5536
    @aaronicgaming55363 жыл бұрын

    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

    @TheGameGuy

    3 жыл бұрын

    Can you please be specific to what tutorial you are pointing to?

  • @aaronicgaming5536

    @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

  • @akshatsultania2412
    @akshatsultania24123 жыл бұрын

    My google Mobile Api does not let me import everything.....it just automatically unchecks the boxes can u help me???

  • @dudusstar41
    @dudusstar413 жыл бұрын

    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

    @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

  • @stressbuster32
    @stressbuster323 жыл бұрын

    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?

  • @jeffreyogbonnaya7682
    @jeffreyogbonnaya76823 жыл бұрын

    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

  • @samiulhaq415
    @samiulhaq4153 жыл бұрын

    same process for unity webGL build ??????(webgl for facebook instant game)

  • @sayedalamaanzaidi5964
    @sayedalamaanzaidi59643 жыл бұрын

    Bro it is giving this error Argument 1: cannot convert from 'string' to 'System.Action' in this code void Start() { MobileAds.Initialize(GameID); }

  • @sayedalamaanzaidi5964

    @sayedalamaanzaidi5964

    3 жыл бұрын

    pls help

  • @yaliggtv3574

    @yaliggtv3574

    Жыл бұрын

    @@sayedalamaanzaidi5964 It gave me the same problem now. Did you manage to find a solution?

  • @sayedalamaanzaidi5964

    @sayedalamaanzaidi5964

    Жыл бұрын

    @@yaliggtv3574 yes the new versions of Unity is not supporting admob you have to integrate only unity ads to make it work

  • @trollminecraftvn4360
    @trollminecraftvn43603 жыл бұрын

    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:)) )

  • @TheGameGuy
    @TheGameGuy3 жыл бұрын

    For the *Copy/Paste gang* 😜 Grab the Scripts from : thegameguy.net/resources.html

  • @bella-rp2rw

    @bella-rp2rw

    3 жыл бұрын

    where can i found the script?

  • @ApexArtistX
    @ApexArtistX3 жыл бұрын

    whats the difference . rewardedAds and RewardedVideoAds

  • @theoverallsite
    @theoverallsite3 жыл бұрын

    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?

  • @ariskurniawan7129
    @ariskurniawan71293 жыл бұрын

    any turtorial for implement gdpr consent in unity ?

  • @agungsetyawan6569
    @agungsetyawan65693 жыл бұрын

    if your apps not uploaded on playstore yet then ads wont show up, right ?

  • @TheGameGuy

    @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..

  • @timeTrial4617
    @timeTrial46173 жыл бұрын

    NullReferenceException: Object reference not set to an instance of an object on GameManager Start() method "NEED SOLUTION"

  • @timeTrial4617

    @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

    @xnopel4326

    3 жыл бұрын

    Thx man

  • @timeTrial4617

    @timeTrial4617

    3 жыл бұрын

    @@xnopel4326 😅 I still remember that day

  • @RozgarAhmed
    @RozgarAhmed3 жыл бұрын

    Can i download your project? That scricpt doesnt work without the GameManager. Red ERROR: The name 'GameManager' does not exist in the current context

  • @sathishn6708
    @sathishn67083 жыл бұрын

    i am getting null reference error how to fix say

  • @timeTrial4617

    @timeTrial4617

    3 жыл бұрын

    Me too getting same error, banner() not instance

  • @mussbi3519
    @mussbi35193 жыл бұрын

    Thanks bro Can you please share your knowledge about how to add more rewarded ads with different rewards Thanks again in regards ✨

  • @marcoantoniomartiniano8488

    @marcoantoniomartiniano8488

    3 жыл бұрын

    make an IF with a variable in click event, when variable == 0 you send one reward, variable == 1 tou send another.

  • @insidiusHOA
    @insidiusHOA3 жыл бұрын

    Very good tutorial. Can you make a tutorial for IAP to remove ads?

  • @rishigameryt607
    @rishigameryt6073 жыл бұрын

    Plz tell how to add ads when we lose the game the ad pop up (interstitial ad).plzz

  • @TheGameGuy

    @TheGameGuy

    3 жыл бұрын

    You just need to call the showinterstitial ad method inside your gameover method (if you have any)

  • @rishigameryt607

    @rishigameryt607

    3 жыл бұрын

    @@TheGameGuy it's not working. I already have tried it

  • @rishigameryt607

    @rishigameryt607

    3 жыл бұрын

    @@TheGameGuy pls make a short tutorial. How to do it ..plzz

  • @rishigameryt607

    @rishigameryt607

    3 жыл бұрын

    @@TheGameGuy without clicking any button automatically ad will pop up after game over

  • @Safrdo
    @Safrdo3 жыл бұрын

    Nice tutorial could you shoot the video "How to put an ad when running an application via ADMOB in unity"? Thanks in advance.

  • @coolvlogstelugu

    @coolvlogstelugu

    3 жыл бұрын

    There is a solution but don't do that... It may irritate player and they will uninstall games

  • @kurtpublic631
    @kurtpublic6313 жыл бұрын

    Can i have a copy of this source code to follow along with

  • @TheGameGuy

    @TheGameGuy

    3 жыл бұрын

    Sure, i have given the download link in the description.

  • @kurtpublic631

    @kurtpublic631

    3 жыл бұрын

    @@TheGameGuy I mean of the game not files

  • @TheGameGuy

    @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

    @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

  • @shazboi
    @shazboi3 жыл бұрын

    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

    @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.

  • @max109y
    @max109y3 жыл бұрын

    why dont fix the errors?

  • @sidharthnair7775
    @sidharthnair77753 жыл бұрын

    To which gameobject should i attach the admob script??

  • @TheGameGuy

    @TheGameGuy

    3 жыл бұрын

    Just make a new gameobject call it admanager or anything you want and attach this script to that object..

  • @sidharthnair7775

    @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

  • @subhasishkolay8398
    @subhasishkolay83983 жыл бұрын

    bro, can I play 2 ads back to back for unlocking a reward if yes then how?

  • @TheGameGuy

    @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

    @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

    @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?

  • @rmg127
    @rmg1273 жыл бұрын

    I don't have any Idea ...but pin🌚

  • @PradeepKumar-kk4zd
    @PradeepKumar-kk4zd3 жыл бұрын

    nyc but how can i implement interstitial ads between two scene ?

  • @TheGameGuy

    @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

    @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

  • @karkeeravindran3649
    @karkeeravindran36493 жыл бұрын

    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.

  • @samiulhaq415
    @samiulhaq4153 жыл бұрын

    ad manager script's link not working??

  • @TheGameGuy

    @TheGameGuy

    3 жыл бұрын

    thegameguy.net/resources/admob-monetization.html

  • @samiulhaq415

    @samiulhaq415

    3 жыл бұрын

    @@TheGameGuy thanks for instant reply :)

  • @samiulhaq415

    @samiulhaq415

    3 жыл бұрын

    I am getting null reference exception error when requesting and showInterstitialAd() . using my own app id and test ad id.

  • @kashafdev4139
    @kashafdev41393 жыл бұрын

    can you put the admanager script

  • @TheGameGuy

    @TheGameGuy

    3 жыл бұрын

    thegameguy.net/resources.html You can get the scripts from here

  • @tornadogamesdev698
    @tornadogamesdev6983 жыл бұрын

    How to make REAL ads PLZ

  • @charlestheninja
    @charlestheninja3 жыл бұрын

    Not working.

  • @spidersense1639
    @spidersense16393 жыл бұрын

    Bro please make a slider control movement like your games in Play Store 🙏🥰 left and right with slider ....................... Please

  • @TheGameGuy

    @TheGameGuy

    3 жыл бұрын

    You can easily do that with the help of Slider.. just replace the x = input.getaxis line with slider.value.

  • @TheGameGuy

    @TheGameGuy

    3 жыл бұрын

    Check out this video here : kzread.info/dash/bejne/dIajr9aghrq9iLQ.html

  • @spidersense1639

    @spidersense1639

    3 жыл бұрын

    @@TheGameGuy thanks a lot 👍👍

  • @spidersense1639

    @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

    @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.

  • @ArUnKuMaR-ox6yn
    @ArUnKuMaR-ox6yn3 жыл бұрын

    waste of time nothing works for your real game