Import Google Mobile Ads Unity Plugin occur error

1,620 views
Skip to first unread message

邹建宁

unread,
Mar 3, 2017, 9:33:46 PM3/3/17
to Google Mobile Ads SDK Developers
when I import the plugin to my project, it remind me "Assets/GoogleMobileAds/Api/CustomNativeTemplateAd.cs(53,26): error CS0117: `Utils' does not contain a definition for `GetTexture2DFromByteArray'" 

But if I import the plugin to another project.It work fine.

This is the related code.



If someone know how to repair it,please help me.Thank you very much.

My unity version is 5.4.1f1.

邹建宁

unread,
Mar 3, 2017, 9:46:33 PM3/3/17
to Google Mobile Ads SDK Developers
OK,I find the problem,there are two Utils.cs in my project.The ads get the wrong one, I would rename it.

Android Dev

unread,
Jul 25, 2019, 6:03:53 AM7/25/19
to Google Mobile Ads SDK Developers


On Saturday, 4 March 2017 08:03:46 UTC+5:30, 邹建宁 wrote:
replace it   -->  GoogleMobileAds.Common.Utils.CheckInitialization();

Mobile Ads SDK Forum Advisor Prod

unread,
Jul 25, 2019, 3:19:26 PM7/25/19
to droid...@gmail.com, google-adm...@googlegroups.com
Hello there,

Thanks for reaching out to us. If you still have any issues, please let us know. We will be happy to assist you.

Regards,
Deepika Uragayala
Mobile Ads SDK Team
 

ref:_00D1U1174p._5001UEGNPU:ref
Reply all
Reply to author
Forward
0 new messages