Error When Importing Admob Package in Unity 5.2

414 views
Skip to first unread message

Troy Walker

unread,
Sep 27, 2015, 3:57:48 PM9/27/15
to Google Mobile Ads SDK Developers
For some reason when I import the admob unity package. I get the following errors:


Assets/GoogleMobileAds/Api/BannerView.cs(22,20): error CS1502: The best overloaded method match for `GoogleMobileAds.Common.IGoogleMobileAdsBannerClient.CreateBannerView(string, AdSize, GoogleMobileAds.Api.AdPosition)' has some invalid arguments

Assets/GoogleMobileAds/Api/BannerView.cs(22,20): error CS1503: Argument `#2' cannot convert `GoogleMobileAds.Api.AdSize' expression to type `AdSize'

I am using 5.2 in Unity

Does anyone know how to fix or what the issues could be?

Thanks

Vu Chau (MobileAds SDK Team)

unread,
Sep 28, 2015, 11:49:31 AM9/28/15
to Google Mobile Ads SDK Developers
Hi Troy,

Could you verify that you are only having one imported MobileAds/AdMob plugin in the project?  Sometimes this error happens when you are using another AdMob plugin at the same time with the SDK.

Vu Chau
Mobile Ads SDK Team
Reply all
Reply to author
Forward
0 new messages