please help me use admob for old unity

104 views
Skip to first unread message

Dan

unread,
Aug 2, 2017, 5:12:12 AM8/2/17
to Google Mobile Ads SDK Developers
hello
im working now with unity 5.2.4 and when i download the last admob for unity release i got this type of error:
System.Reflection.TargetInvocationException

my game is for android.

so i go back to releases archive and downloaded older versions which keep give me errors and even crashes until i tried this version:
https://github.com/googleads/googleads-mobile-unity/releases/tag/3.5.0

and now the only "error" i get is a debug says this:

Resolver version is now: 10102
UnityEngine.Debug:Log(Object)
GooglePlayServices.PlayServicesResolver:RegisterResolver(IResolver) (at Assets/PlayServicesResolver/Editor/PlayServicesResolver.cs:75)
GooglePlayServices.ResolverVer1_2:.cctor() (at Assets/PlayServicesResolver/Editor/ResolverVer1_2.cs:36)
UnityEditor.EditorAssemblies:SetLoadedEditorAssemblies(Assembly[])

is there a way to fix it and make my unity work with admob? i cant upgrade because my computer is old and i cant have a new computer right now,
my game is already finished and i just need to setup the last things..

Dan

unread,
Aug 2, 2017, 5:15:13 AM8/2/17
to Google Mobile Ads SDK Developers
more i want to add is that i only want to place a simple banner.

Bharani Cherukuri (Mobile Ads SDK Team)

unread,
Aug 2, 2017, 2:51:55 PM8/2/17
to Google Mobile Ads SDK Developers
Hello, 

Thank you for contacting us. Firstly, it is recommended that you use the latest version of the Google Mobile Ads Unity plugin which can be downloaded here. As for the error logs, can you verify if the following steps resolve the issue? I'd suggest that you create a backup of your project and then download the latest Unity Plugin of the Unity Play Services Resolver here. Remove the Assets > PlayServicesResolver folder in your Unity Project. Import the Unity Play Services Resolver in your project and Import "All". Select the Assets menu and then Play Services Resolver > Android Resolver > Resolve Client Jars. Now try to build and run your project. 

Additionally, you can also refer to our sample apps and documentation for more guidance. If you continue to have an issue with this, do provide us a sample project of you implementation so we can take a look.

Regards,
Bharani Cherukuri
Mobile Ads SDK Team 

Dan

unread,
Aug 3, 2017, 1:50:11 AM8/3/17
to Google Mobile Ads SDK Developers
hi
i found earlier this topic and follow the instructions solved my problem.
http://answers.unity3d.com/questions/1347425/problem-with-adds-play-services.html
unity 5.2.4 using admob 3.5.0

which is the same suggestion
Reply all
Reply to author
Forward
0 new messages