@@Overbound Can confirm: Just use the scripts from Unity docs and you should be fine after upgrading to 4.0. Worked perfect for me while using Unity 2019.4.18f1
what can i say man to thank u i've tried more than 15 videos nothing worked with me but you are my hero u saved me, 1000000 thanks😍 but banner ads only showing test in editor not on mobile, there's a solution for that
i try with some doifferent unity version but got stuck on ads initialization, i never get the debug log unity ads initialization complete, are you guys get the same problem ? anyone have the solution?
Make sure you have given android game id in sdk Script. And try tapping the button two times and wait for 15 seconds. Then close the app, reopen app and try again. App will show test ad. Don't forget to have an active internet connection on your device
How to do this when you complete a level because at the start the UI of the level complete is off and so the buttons that come with it then you get a error can you show how to do that?
How do you actually REWARD the player after watching the ad? I assume you put your code in the "OnUnityAdsShowComplete" inside the if-statement. But that doesn't seem to be working for me. The "Debug.Log("Unity Ads Rewarded Ad Completed");" doesn't even trigger.
@@PixelbugStudio Nope, it's not been resolved yet. Is this only happening me or have you checked that the Debug.Log pops up in the console when closing the ad?
Hi I have a Problem With Unity Ads everytime when is game over ads it showing and the scene sound is playing How can I stop Scene sound from Playing when ads is showing.
Thanks for the video, it's working fine on unity editor but when I test in real device banner position always showing on top_left corner no matter what I positioned.
There are loadad and showad methods already written in the script. I called load ad in start function so that i can download and make sure the ad is ready for showing before someone tap on ad showing button. And then i assigned load ad method to the button. Which means when someone press that button then the showAd method will be executed. Hope that's clear.
The console didn't say initialization complete, I have been searching the internet to try to figure out why but I can't find any answers. Tutorial was really nice and detailed just wish I could get this working.
nice tutorial! One question, when publishing to xcode it says "'IronSource/IronSource.h' file not found" and doesnt let me archive it, how would i fix this?
But why would you put ads on buttons? Because to let this work the buttons always need to be active to let the script work and if it's off you will aslo get an error
There's something I don't understand What happens to the Interstitial and Rewarded Ads buttons you've created? That means they show up on your gameplay right? I thought Interstitial Ads are automatic, they don't need a click? Or what am I missing??
hi when i finish this is what comes out " Error showing Ad Unit Interstitial_Android: NOT_READY - Placement Interstitial_Android is not ready " what to do? thank you
It's because the ad is not ready. Means not downloaded or not loaded. Make sure you have an active internet connection and you are loading the ad before showing it.
how do you know the player has been rewarded? when I close the ad there is no reward? Or will this work when the game is released? Surely pressing close should generate the rewarded add reward like an extra life etc Maybe I am doing something wrong? I can get the rewarded ad working but no reward when I close, is this normal? Thank you for your time and your video. Peace.
Do I need to initialize ads only once the game runs or when every new scene loads? Should it add the script to every scene or should I use singleton to pass it on every scene? And should I disable the test mode in the script too?
The type or namespace name 'UnityAdsInitializationError' could not be found (are you missing a using directive or an assembly reference?) the solution plz
you need to have sdk 3.7 or higher to do that click windows .. package manager ... advertisement ... click on the other version , the newest one ! and click update
How to add multiple rewards....like on button gives you coins after watch whole ad and other button gives you extra life??? I mean i can create 2 seperated methods for each reward but how to implement witch reward should player get? Do i need to make two seperated Reward scripts and call function from each Reward script?
@@PixelbugStudio yea i was thinking that too, I even did that with bool and its working. I was just curios is there another way to add multiple rewars. Thank you for responding! :)
The thing is your ad loading function is calling when the scene starts. If you're offline at that time, then the ad loading will be failed. So to fix that you can check the internet connection before loading the ad instead of directly loading ad which lead to failure.
@@PixelbugStudio public void OnUnityAdsShowComplete(string adUnitId, UnityAdsShowCompletionState showCompletionState) { if (adUnitId.Equals(_adUnitId) && showCompletionState.Equals(UnityAdsShowCompletionState.COMPLETED)) { Debug.Log("Unity Ads Rewarded Ad Completed"); gameManager.RewardedAdCoins(); // reward function being called Advertisement.Load(_adUnitId, this); } } I have written like this, as we are using Ad 4.0.0 there is no remove listener function, unity says its handling callbacks not sure, if you can help on this much appreciated.
@@suraj8356 maybe add a bool at the top of the script , and when they press the watch ad again it sets to false again, bool adrewarded = false; public void OnUnityAdsShowComplete(string adUnitId, UnityAdsShowCompletionState showCompletionState) { if (adUnitId.Equals(_adUnitId) && showCompletionState.Equals(UnityAdsShowCompletionState.COMPLETED)) { Debug.Log("Unity Ads Rewarded Ad Completed"); if(!adrewarded ){ adrewarded = true; gameManager.RewardedAdCoins(); // reward function being called } Advertisement.Load(_adUnitId, this); } }
@@PixelbugStudio hello, it works for me. but I have another problem, when I pass the game to my cell phone, would the test ads have to be seen? because they do not appear to me, I am afraid to upload it to the play store and that the ads will not be shown
I didn't published any games with Unity ads. But if the test ads are working fine on your mobile device then everything you have done is correct. Next thing you should do is turn off test ads and publish the game. Never test with real ads on your device. It'll give wrong ad traffic to the server. Which is not good for your game.
When the real ads are starting to show for the first time it'll take some time. Ads will show only when they get enough request to the server. That may be the problem here.
Hello,Ads Are working fine and all but What to do if want Publish this on Google play and Earn Money or something?Do i have to do anything more?Thanks!
Once your test ads are working fine then you have already registered your app on unity ads. You can see your app on unity dashboard. Before you publish the app make sure to uncheck test ads. I have only used admob to upload my game. So i am not really sure if there's any other complications are there in unity ads. But both ad platforms works pretty much same way.
@@PixelbugStudio i've tried that, but the rewards doesn't seems to play out. The rewards for my game is just a simple restart the game... But it seems the game don't restart after the ads finished.
when i uncheck the test mode in the banner Ads it doesnt show anything on the Android build hmmmm but if i check it the Ads shows up but its in test mode anyone have the same problem as mine
@@rax4355 i got it bro u cant test real ads in development its illegal and you can get banned from using real ads when testing thats why its not showing but if u publish it in playstore it will show up.
@@PixelbugStudio I am not testing, its final release, I think I have done some mistake in banner ad code can you please comment the code because you cut some part in banner ads Chapter
Unfortunately some developers already have created a thread in unity answers about this, but unity didn't responded yet. Every devs out there including myself is facing this issue. If there's any update or any solution comes up , I'll inform you.
@@PixelbugStudio Hey, the code above the OnUnityAdsShowComplete tells the code tells //İmplement the Show Listener’s OnUnityAdsShowCompleted… So i think if we can implement that then it will work. But how to implement that?
@@PixelbugStudio There are lots of tutorial about implementing facebook audience network on unity but there is not tutorial for unity how to move apps to bidding on facebook audience network
Make sure your class name and the script file name are same. When you copy paste the entire code, the class name will not be same as the script file name
@@PixelbugStudio I like the way you replied you are👈 the bestGdev 👍 Hmm I was looking for the explanation of codes which is still not available in your video just copy and paste is not a good practice I thought ,otherwise video was good
Actually there's no need to understand full code of ad implementation unless you wanna do something innovative while implementing ads such as rewarding player through a banner ad or something. You can find detailed explanation in the unity documentation if that's the case.
@@PixelbugStudio brother I am having problem with SDK code ,when I pasted it in visual studio it throws error with initialize ,in the following line of code advertisement.initialize(parameters);
In unity documentation they have written script so that when you press a button banner ad will show. But in this video i have commented those lines and every time the game is being played the banner ad will show. You can customise the code as your game's needs. If you need further help then join discord. I can help you there
If you are having issues in early 2022 with the script, version 3.7.5 works fine. Anything lower than 3.7 will not work. 4.0 was not working either.
Because of this comment I almost didn't upgrade because 3.7.5 was not working for me. I upgraded to 4.0 and all is well.
@@Overbound Can confirm: Just use the scripts from Unity docs and you should be fine after upgrading to 4.0. Worked perfect for me while using Unity 2019.4.18f1
we are talking about the adverisement package here for people who does not get it
bro u helped me, everyone's solution didn't work but urs is the best and eziest one
Thank you so much beacause I sub and like . Thank you Pixelbug Studio
Fantastic clear video. The integration has changed a lot since I last did it so this video is massively helpful. Subscribed.
I had watched a million videos on how to do this. Finally I found one that really works thanks. I'm subscribing
Thank you. I watched multiple videos but only yours worked
soon it will be 760k subscribers,Content is super clear , Keep it up PixelBug
🙌
what can i say man to thank u
i've tried more than 15 videos nothing worked with me but you are my hero u saved me, 1000000 thanks😍
but banner ads only showing test in editor not on mobile, there's a solution for that
Amazing video. After testing a lot of tutorials finally, this works for me. Thank you so much. You deserved Like and also Subscribe👍
Man, after years trying to get a job, finally i can earn some money. Thank you so much!
You Mate Are An Absolute Legend, got yourself a sub
Awesome tutorial! Really helped me to understand this, very clear and step by step, just as i like it!
bro i try to put rewarded ads but error is occuring "Invalid token '=' class, struct, or interface member declaration" plz solveit
Can you share code in discord?
same
i have this too please help
Try using unity ads 3.7.5 version
i try with some doifferent unity version but got stuck on ads initialization, i never get the debug log unity ads initialization complete, are you guys get the same problem ? anyone have the solution?
The ads play in the editor, but do not show up on android test build
Make sure you have given android game id in sdk Script. And try tapping the button two times and wait for 15 seconds. Then close the app, reopen app and try again. App will show test ad. Don't forget to have an active internet connection on your device
@@PixelbugStudio Tried everything. It still doesn't work on Android, but works on the editor.
Join the discord, let's chat there
@@PixelbugStudio I am having the same issue, any chance you guys fixed it ?
@@PixelbugStudio yeah I've got the same thing
How to do this when you complete a level because at the start the UI of the level complete is off and so the buttons that come with it then you get a error can you show how to do that?
Hello.
Anyone knows how to do this with more than 1 rewardedAdButton and with diferents rewards in diferent panels?
How do you actually REWARD the player after watching the ad? I assume you put your code in the "OnUnityAdsShowComplete" inside the if-statement. But that doesn't seem to be working for me. The "Debug.Log("Unity Ads Rewarded Ad Completed");" doesn't even trigger.
Did this problem resolved?
@@PixelbugStudio Nope, it's not been resolved yet. Is this only happening me or have you checked that the Debug.Log pops up in the console when closing the ad?
Unfortunately some developers already have created a thread in unity answers about this, but unity didn't responded yet.
Hi! i'm having the same issue have you solved this problem?
Has this been resolved?
Hi I have a Problem With Unity Ads everytime when is game over ads it showing and the scene sound is playing How can I stop Scene sound from Playing when ads is showing.
Thanks for the video, it's working fine on unity editor but when I test in real device banner position always showing on top_left corner no matter what I positioned.
Thanks for the nice tutorial
What the defferant between load ad and show ad? Because u have used load ad method not show ad method
Load ad method downloads and make the ad ready for showing. Show ad just shows the ad
@@PixelbugStudio but u didnt call show ad in the video u just called load ad ? Is that right
There are loadad and showad methods already written in the script. I called load ad in start function so that i can download and make sure the ad is ready for showing before someone tap on ad showing button. And then i assigned load ad method to the button. Which means when someone press that button then the showAd method will be executed. Hope that's clear.
The console didn't say initialization complete, I have been searching the internet to try to figure out why but I can't find any answers. Tutorial was really nice and detailed just wish I could get this working.
have you found the solution?
same
nice tutorial! One question, when publishing to xcode it says "'IronSource/IronSource.h' file not found" and doesnt let me archive it, how would i fix this?
But why would you put ads on buttons? Because to let this work the buttons always need to be active to let the script work and if it's off you will aslo get an error
Wow this vid is AMAZING
thank You!!
Great Tutorial, thanks a lot. Simple, Quick, Efficient! :)
This video helped me, thank you!
I can't see ads when I build the android apk ? How to fix this one?
Hi! I have the same issue have you solved this one?
@@ikee_2947 no it's instantiated but user can't see it 🙂
Thanks Thanks Thanks For Guiding In a much better way
what ae test ids for unity ads
awesome video dude☺
There's something I don't understand
What happens to the Interstitial and Rewarded Ads buttons you've created? That means they show up on your gameplay right?
I thought Interstitial Ads are automatic, they don't need a click? Or what am I missing??
Can you implement Unity Ads and AdMob Ads in the same project or need just one. If need just one who is the best ??
Advertisement.initilize(parameters)
I had problem in this line of code, initialize turns red I tried almost everything but it's not fixing yet
hi when i finish this is what comes out " Error showing Ad Unit Interstitial_Android: NOT_READY - Placement Interstitial_Android is not ready " what to do? thank you
It's because the ad is not ready. Means not downloaded or not loaded. Make sure you have an active internet connection and you are loading the ad before showing it.
Error showing Ad Unit Interstitial_Android: NOT_READY - Placement Interstitial_Android is not ready
I don't see Android ID on Service?
It helps me alot. Thankyou so much
JaKhass video hai bhidu
Thank you very much you'r video really helped me
how do you know the player has been rewarded? when I close the ad there is no reward? Or will this work when the game is released? Surely pressing close should generate the rewarded add reward like an extra life etc Maybe I am doing something wrong? I can get the rewarded ad working but no reward when I close, is this normal? Thank you for your time and your video. Peace.
how to adjust UI according to banner ad size?
Didn't get that
@@PixelbugStudio solved the problem 👍🤪 thank you anyway
Great Man
Do I need to initialize ads only once the game runs or when every new scene loads? Should it add the script to every scene or should I use singleton to pass it on every scene? And should I disable the test mode in the script too?
You should pass the script to every scene. You can use "don't destroy on load".
when i put the code for rewarded ads it came with a bunch of errors, i don't know what to do. I put the right version and the name is correct
Did you google the errors?
@@PixelbugStudio never mind i found out my package for it wasn't updated to the max, sorry about that
The type or namespace name 'UnityAdsInitializationError' could not be found (are you missing a using directive or an assembly reference?) the solution plz
Did you do exactly what is shown in the video?
you need to have sdk 3.7 or higher to do that click windows .. package manager ... advertisement ... click on the other version , the newest one ! and click update
My banner ad is really small, anyway to scale it up?
Hello.. did you managed to fix it?
@@PixelbugStudio I’m not sure I’m waiting for my game to pass the review stage on google play so I can see
@@PixelbugStudio turns out it was the aspect ratio i was using
sounds are gone just after rewarded ad
How to add multiple rewards....like on button gives you coins after watch whole ad and other button gives you extra life??? I mean i can create 2 seperated methods for each reward but how to implement witch reward should player get? Do i need to make two seperated Reward scripts and call function from each Reward script?
I think making a bool or int to identify which button is pressed will solve your problem.
@@PixelbugStudio yea i was thinking that too, I even did that with bool and its working. I was just curios is there another way to add multiple rewars.
Thank you for responding! :)
Brother while implementing SDK code it throws error in initialization
Sir actually I follow the same but it's not working
Great job thank you!
am getting this error can u help me out "Error showing Ad Unit Interstitial_Android: NOT_READY - Placement Interstitial_Android is not ready"
2 reasons.
1. May be you don't have an active internet connection..or
2. You're not loading the ad before showing it.
where can I put the reward in rewarded ad
There's a function called "OnUnityAdsShowComplete" in the documentation. You can copy paste it from there.
Hello, when I Start my Scene offline and get online while staying in the same scene the ad wont be able to load. Any solutions to fix that Problem?
The thing is your ad loading function is calling when the scene starts. If you're offline at that time, then the ad loading will be failed. So to fix that you can check the internet connection before loading the ad instead of directly loading ad which lead to failure.
Bro I subbed everything worked but the ads are only about unity any advise ?
It's becoz you are in test mode.
Thank you very much :)
Does anyone know of a video showing how to make banner ads with mediation in unity?
bro error is coming on IUnityAdsInitializationListener what to do
What's the error?
@@PixelbugStudio thnks for the reply but the issue is now solved :)
Hi I have a question, When player clicks on rewarded ads, multiple times the reward keeps multiplying every time is there a fix for this? Thanks
Give reward only after the ad is completely played. Not after you click the ad button.
@@PixelbugStudio public void OnUnityAdsShowComplete(string adUnitId, UnityAdsShowCompletionState showCompletionState)
{
if (adUnitId.Equals(_adUnitId) && showCompletionState.Equals(UnityAdsShowCompletionState.COMPLETED))
{
Debug.Log("Unity Ads Rewarded Ad Completed");
gameManager.RewardedAdCoins(); // reward function being called
Advertisement.Load(_adUnitId, this);
}
}
I have written like this, as we are using Ad 4.0.0 there is no remove listener function, unity says its handling callbacks not sure, if you can help on this much appreciated.
Can you try Ad version 3.7.5. This problem occurs to many devs.
@@PixelbugStudio sure, Thank you again 👍
@@suraj8356 maybe add a bool at the top of the script , and when they press the watch ad again it sets to false again,
bool adrewarded = false;
public void OnUnityAdsShowComplete(string adUnitId, UnityAdsShowCompletionState showCompletionState)
{
if (adUnitId.Equals(_adUnitId) && showCompletionState.Equals(UnityAdsShowCompletionState.COMPLETED))
{
Debug.Log("Unity Ads Rewarded Ad Completed");
if(!adrewarded ){
adrewarded = true;
gameManager.RewardedAdCoins(); // reward function being called
}
Advertisement.Load(_adUnitId, this);
}
}
what is when the player turn the wifi of
You'll have to write a code for "if the ad load is failed". You can find the function for that in the documentation.
OnUnityAdsShowComplete doesn't work, like the player is not rewarded at all : (
That's still a problem developers face including me. If i find any solution I'll inform you.
@@PixelbugStudio after I build project to Android it works, it gives the rewards after watched video, in Editor tho it doesn't
when i copy and paste the first script, appear this error: no overload for method "Initialize" takes 4 arguments
what i do?
Have you changed the name of script same as the class name?
@@PixelbugStudio Yes :(
@@Stereo.Flacko i have a same pb with ads 4.0
I'll check and get back to you guys
@@Stereo.Flacko remove ads 4.0 and ubdate to ads 3.7.5
In the sdk script, initialize marks me as false, do you know why?
If you're using a version other than 3.7.5 then please switch to 3.7.5
@@PixelbugStudio hello, it works for me.
but I have another problem, when I pass the game to my cell phone, would the test ads have to be seen? because they do not appear to me, I am afraid to upload it to the play store and that the ads will not be shown
I didn't published any games with Unity ads. But if the test ads are working fine on your mobile device then everything you have done is correct. Next thing you should do is turn off test ads and publish the game. Never test with real ads on your device. It'll give wrong ad traffic to the server. Which is not good for your game.
@@PixelbugStudio Do you know what could be the problem why the ads are not shown on my cell phone?
When the real ads are starting to show for the first time it'll take some time. Ads will show only when they get enough request to the server. That may be the problem here.
Hello,Ads Are working fine and all but What to do if want Publish this on Google play and Earn Money or something?Do i have to do anything more?Thanks!
Once your test ads are working fine then you have already registered your app on unity ads. You can see your app on unity dashboard. Before you publish the app make sure to uncheck test ads. I have only used admob to upload my game. So i am not really sure if there's any other complications are there in unity ads. But both ad platforms works pretty much same way.
Can i ask you? Why my console shows Interstitial ads not ready? Whats should i do?
You need to call load ad method before calling show ad method. And you should have an active internet connection.
@@PixelbugStudio yeah... I've fixed it... Thank you mate
Hello... How to add rewards after the rewarded ads finished playing? Thanks in advance
There's a method called OnUnityAdsShowComplete. You can find it in the documentation and you can copy paste code for rewarding inside this method
@@PixelbugStudio i've tried that, but the rewards doesn't seems to play out. The rewards for my game is just a simple restart the game... But it seems the game don't restart after the ads finished.
Can you try with a different version of unity ads. This problem has occurred to other devs also. Don't know when they're gonna fix this.
when i uncheck the test mode in the banner Ads it doesnt show anything on the Android build hmmmm but if i check it the Ads shows up but its in test mode anyone have the same problem as mine
same
@@rax4355 i got it bro u cant test real ads in development its illegal and you can get banned from using real ads when testing thats why its not showing but if u publish it in playstore it will show up.
@@arnoldthegreat4138 ok, thanks bro
Thanks a lotttttttt!
Banner Ads Not Showing On Build PLEASE HELP
Please open and close app more than 3 times. May be it's becoz the time it's taking to download the ad.
@@PixelbugStudio but rewarded ad is working and what is downloading
I mean the test ads should be downloaded if you are testing on a device. Try changing the placement position of the ad.
@@PixelbugStudio I am not testing, its final release, I think I have done some mistake in banner ad code can you please comment the code because you cut some part in banner ads Chapter
Join discord so that we don't spam the comment section.
Hi. Reward not working. İ mean ads showing but Debug.Log(Rewarded); not showing in console…
Unfortunately some developers already have created a thread in unity answers about this, but unity didn't responded yet.
Every devs out there including myself is facing this issue. If there's any update or any solution comes up , I'll inform you.
@@PixelbugStudio thanks
@@PixelbugStudio Hey, the code above the OnUnityAdsShowComplete tells the code tells //İmplement the Show Listener’s OnUnityAdsShowCompleted…
So i think if we can implement that then it will work. But how to implement that?
The commented line is just the description of what the code below is for. It's already implemented.
@@PixelbugStudio oh :(
Error showing Ad Rewarded_Android: NOT_READY - Placement Rewarded_Android is not ready
Are you connected your device to the internet?
@@PixelbugStudio yes i mean the ad works but after i close it if u wait for a second or two it prints that error in the console, but its ok now
Bro still I am working hard on this
Why it's not happening
Will figure this out tomorrow. It's night time here. Get into the discord please. So that we don't spam the comments.
@@PixelbugStudio
Okk brother
Subscribed
Could you please make a video about implementing Facebook Audience Network with Bidding on Unity?
Never done that..but will try for sure
@@PixelbugStudio Thanks)
@@PixelbugStudio There are lots of tutorial about implementing facebook audience network on unity but there is not tutorial for unity how to move apps to bidding on facebook audience network
It changed recently ryt?
@@PixelbugStudio Yeah, İ do not know how to move my unity apps to bidding
Which software you used to code i am using the default Microsoft visual studio but in your case its auto correcting too
You can add plugins for autocorrect
@@PixelbugStudio any suggestions?
You can find those here code.visualstudio.com/docs/other/unity
@@PixelbugStudio thx
Thanks bro
when ever i copy any code its says are you using a reference waha wah wah
Make sure your class name and the script file name are same. When you copy paste the entire code, the class name will not be same as the script file name
@@PixelbugStudio very glad you responded i tried that too i will leave a reply of the exact error in a while
Thankyou!
Nice
i ma b rich
It's not the way I meant poor video
Sorry about that. What was the problem you were facing while implementing ads?
@@PixelbugStudio I like the way you replied you are👈 the bestGdev 👍
Hmm I was looking for the explanation of codes which is still not available in your video just copy and paste is not a good practice I thought ,otherwise video was good
Actually there's no need to understand full code of ad implementation unless you wanna do something innovative while implementing ads such as rewarding player through a banner ad or something. You can find detailed explanation in the unity documentation if that's the case.
@@PixelbugStudio brother I am having problem with SDK code ,when I pasted it in visual studio it throws error with initialize ,in the following line of code advertisement.initialize(parameters);
Too complicated. simplyfy it.
Can you tell where you are getting stuck?
@@PixelbugStudio why do I need buttons for banner ads? Shouldn't they run automatically when game starts?
In unity documentation they have written script so that when you press a button banner ad will show. But in this video i have commented those lines and every time the game is being played the banner ad will show. You can customise the code as your game's needs. If you need further help then join discord. I can help you there
:D
Thanks a lot this really helped
Thank you so much man.