Unity AdMob Easy Integration! (NO GRADLE ERRORS!! NO JAVA HOME ERRORS!!) 2024

Опубликовано: 06 Февраль 2024
на канале: Game Designverse
2,521
59

#unity #unitygamedevelopment #unitygaming #unity3d #creativecanvasgames
Hey guys,
Just make sure you are using the Latest Unity LTS versions while working with new Ad Mob plugins.
Generally the errors occur due to package conflicts, and google keeps updating their packages. Keep yourself updated to avoid these.

I have provided the list of checks below, make sure you do these before making a final build,
1. Correct Unity version 2022.1.18f1 with proper sdk and ndk version
2. Build target to android
3. Proper path setup of JAVA_HOME in the environment variables
4. Change Mono to IL2CPP and tick the ARMx64
5. .net2 to .net
6. set andriod API target to the highest
7. Tick all Build Gradle checks (just to be sure)

Make a clean build
If it ask to install latest Android API, do it, let it install properly, a windows power shell will open to install the newest Android APIs

Check if everything is working

Download the latest Ad Mob package
------------------------------------------------------------------------
Download the Latest AdMob plugin from here: https://developers.google.com/admob/u...
Import package with all items
Run the dependency manager to resolve issues

Download the code and package from here: https://github.com/satyam-anand22/Adm...
Any Queries, please feel free to post it here:   / unityqueries  
Agar mere se solve hua to thik nahi to dekhte hain qya kar sakte hain


Again make a clean build with plugin to check if there are any build errors
if yes, comment what you got, or post it in the Reddit link provided. I will check and try to resolve it if possible

If no errors, continue
Add the ad script (Link in the pinned comments), do the setup or just add this package to test

Setup test ids, check with the test Ad Ids provided below
Use these Test Ad Ids for testing purpose
Test ID's
app id ca-app-pub-3940256099942544~3347511713

//android
bannerId ca-app-pub-3940256099942544/6300978111
interid ca-app-pub-3940256099942544/1033173712
rewardedId ca-app-pub-3940256099942544/5224354917
nativeId ca-app-pub-3940256099942544/2247696110

//ios
bannerId ca-app-pub-3940256099942544/2934735716
interid ca-app-pub-3940256099942544/4411468910
rewardedId ca-app-pub-3940256099942544/1712485313
nativeId ca-app-pub-3940256099942544/3986624511



Check with editor by playing if ads are requested

Run the clean build again with ads
If everything working? like and comment it worked for you
if not tell me what problem you got along with unity version

All links pinned in the Comment section!!


Chapters:
0:00 Intro
0:19 Start
3:45 A Clean Build




NEW TUTORIAL VIDEOS COMING SOON!! Subscribe now to never miss an update!

Game Development
-Unity Enemy AI Tutorial
-Unity Batman Arkham Style Fighting series
-Unity Sword combo tutorial
-Unity Platformer system
-Unity grapple system

Game Design
-What makes a good level
-Game Design what to design
-Game Economies


Смотрите видео Unity AdMob Easy Integration! (NO GRADLE ERRORS!! NO JAVA HOME ERRORS!!) 2024 онлайн без регистрации, длительностью часов минут секунд в хорошем качестве. Это видео добавил пользователь Game Designverse 06 Февраль 2024, не забудьте поделиться им ссылкой с друзьями и знакомыми, на нашем сайте его посмотрели 2,521 раз и оно понравилось 59 людям.