GoogleMobileAds unitypackage version 3.9.0 gives error in Unity 5.6.4.p3

1,018 views
Skip to first unread message

Guru

unread,
Nov 28, 2017, 11:02:32 AM11/28/17
to Google Mobile Ads SDK Developers
Hi

I used GoogleMobileAds.unitypackage (version 3.9.0) in  Unity 5.6.4.p3 iOS game.

I got these compiler error when I build iOS in Unity.

Assets/GoogleMobileAds/Api/RewardBasedVideoAd.cs(98,30): error CS1594: Delegate `System.EventHandler' has some invalid arguments

Assets/GoogleMobileAds/Api/RewardBasedVideoAd.cs(98,49): error CS1503: Argument #2' cannot convertReward' expression to type `GoogleMobileAds.Api.Reward'

Assets/GoogleMobileAds/Platforms/iOS/RewardBasedVideoAdClient.cs(221,21): error CS0117: Reward' does not contain a definition forAmount'

Assets/GoogleMobileAds/Platforms/iOS/RewardBasedVideoAdClient.cs(220,21): error CS0117: Reward' does not contain a definition forType'

How to fix these error in GoogleMobileAds SDK ?


Screen Shot 2017-11-28 at 9.17.41 PM.png

Deepika Uragayala- MobileAds SDK team

unread,
Nov 28, 2017, 3:27:38 PM11/28/17
to Google Mobile Ads SDK Developers
Hi Guru,

Thanks for reaching out to us. I was able to make a new project and import the later v3.9.0 Mobile Ads plugin and use our sample script to build for both Android and iOS platforms and did not find any issues. I have attached the sample app and you will be able to build from the iOS project folder and test it yourself. You might have missed a few steps while integrating and I would suggest that you revisit our guidelines and try again.

Let me know if you continue to have issues. I'll be happy to help.

Regards,
Deepika Uragayala
Mobile Ads SDK Team

Guru

unread,
Nov 28, 2017, 11:05:00 PM11/28/17
to Google Mobile Ads SDK Developers
Thanks a lots for sample project. Yes you are right...no issue in sample project. I found two Reward.cs file. One from game side and one from SDK. I just renamed game files and solved issue. Thanks a lots for your support that hint me to solve.

Sky Host

unread,
Dec 7, 2017, 1:36:46 AM12/7/17
to Google Mobile Ads SDK Developers
Reply all
Reply to author
Forward
0 new messages