Google Ads won't initialize in unity build, but works perfectly in the editor

81 views
Skip to first unread message

bruh 39

unread,
Nov 4, 2024, 4:01:12 PMNov 4
to Google Mobile Ads SDK Developers
As the title says, the ads show completely fine in the editor but dont show in the built game. Like the package doesnt even exist, any part that has something to do with it breaks the game. The game was uploaded publicly 2 days ago, on admob it says ready, everything is confirmed. The code should be good too, its the same code the official documentation gives you, and its almost the same as the code i used for a previous game, and in that game the ads work without a problem. I genuinely dont know why this is happening, i need it fixed asap since we just released our game and are planning to start advertising, but we’re waiting for this to get sorted out first.

Mobile Ads SDK Forum Advisor

unread,
Nov 5, 2024, 1:57:04 AMNov 5
to bruh39...@gmail.com, google-adm...@googlegroups.com
Hi,

I understand that you are facing issues loading ads in build. Kindly share the below details via "Reply to author" option for further investigation:
  • app ID
  • ad unit ID
  • Editor version
  • SDK version
Once received we would try running our sample project and provide you solution.
 
This message is in relation to case "ref:!00D1U01174p.!5004Q02vGi7r:ref" (ADR-00274327)

Thanks,
 
Google Logo Mobile Ads SDK Team


Mobile Ads SDK Forum Advisor

unread,
Nov 8, 2024, 5:49:30 PMNov 8
to bruh39...@gmail.com, google-adm...@googlegroups.com

Hi,

Thank you for getting back to us.

I noticed that you have already inquired about this matter in a separate thread. We already provided a response in that thread.

Please refer to the following response:

I have executed the sample project you provided. However, I am encountering an issue while running it: "UnityException: Can not sign the application. Unable to sign the application; please provide passwords!".

This issue seems to be caused by my lack of access to the necessary signing credentials (keystore or certificate) required to run the application. Could you kindly provide the runnable sample project for further investigation:

If the file(s) you are looking to share are less than 25mb in total you can attach them to this case on your next reply. If you are having trouble attaching your file to this case or if your file(s) are larger than 25mb, you can share your files via reply to author option or  by performing the following steps:

1. Navigate to

https://docs.google.com/forms/d/e/1FAIpQLSfkAiXMeYP-fw1W3Z-tT9uwmATEKO5X6S-th0gR2ezdKaaqfg/viewform?usp=pp_url&entry.400550049=Mobile+Ads+SDK&entry.460850823=5004Q00002kEgt3QAC&entry.80707362=00173317

2. Fill out all fields, and attach your file(s).

3. Please reply back on this thread when you have uploaded your file(s). Please do not share this link.

bruh 39

unread,
Nov 10, 2024, 7:53:48 PMNov 10
to Mobile Ads SDK Forum Advisor, google-adm...@googlegroups.com

I don't remember providing any sample projects? The project i have is too big and i cant upload it anywhere, best i can do i think is show you all my code (which i think i already did) and tell you i followed the implementation guide exactly as it says. I think there would be no point in making a new sample project to test it, since then the real ads wont show either way, which is what i have a problem with, the test ads work perfectly fine in the editor, they just dont work in the built and published game

Mobile Ads SDK Forum Advisor

unread,
Nov 11, 2024, 5:55:05 AMNov 11
to bruh39...@gmail.com, google-adm...@googlegroups.com

Hi,

In our attempts to replicate the issue within our Google sample project, we were unable to reproduce it. Could you please confirm whether the issue is related to your package name? We recommend trying to change the package name and run your project again and confirm the results with us.
 

bruh 39

unread,
Nov 11, 2024, 10:09:06 AMNov 11
to Mobile Ads SDK Forum Advisor, google-adm...@googlegroups.com

How did you even manage to try to replicate it? Shouldn't the ads only work on thr published game, so theres really no way to reproduce it unless you have access to the actual game project and my google play console?

Mobile Ads SDK Forum Advisor

unread,
Nov 11, 2024, 2:05:17 PMNov 11
to bruh39...@gmail.com, google-adm...@googlegroups.com

Hi,

Thank you for getting back to us.

I will check with our team regarding your query and one of my team members will reach out to you once we have an update on this. Meanwhile, your patience is highly appreciated.

Mobile Ads SDK Forum Advisor

unread,
Nov 13, 2024, 9:58:41 AMNov 13
to bruh39...@gmail.com, google-adm...@googlegroups.com
Hello,

Have you tried using Ad Inspector to diagnose your issue? If so, can you share the ad request and response of the ad not loading? This will help us narrow down the cause. 

 
This message is in relation to case "ref:!00D1U01174p.!5004Q02vGi7r:ref" (ADR-00274327)

Thanks,
 
Google Logo
Justin Malandruccolo
Mobile Ads SDK Team


bruh 39

unread,
Nov 13, 2024, 11:54:39 AMNov 13
to Mobile Ads SDK Forum Advisor, google-adm...@googlegroups.com

Hey, the issue is resolved, turns out i had to add some stuff to the proguars.txt file, it was really hard to find anyone with a similar issue but i stumbled across a unity discussions post where someone said this, the ads work now, thanks anyway though!

Reply all
Reply to author
Forward
0 new messages