Native ads are not compatible with TMPro

44 views
Skip to first unread message

Vinh Nguyễn

unread,
May 8, 2023, 9:53:10 PM5/8/23
to Google Mobile Ads SDK Developers
I'm getting the following error when trying to use TMPro_Text to display native ad elements:


05-03 15:40:48.028 21246 21422 E Unity   : Material 'LiberationSans SDF Material (Instance)' with Shader 'TextMeshPro/Distance Field' doesn't have a color property '_Color'
05-03 15:40:48.028 21246 21422 E Unity   : UnityEngine.Material:get_color()
05-03 15:40:48.028 21246 21422 E Unity   : _haxgDigL4kQjs0quhD4BNlgJDGK._qx65gBXWOb4ezVWgAMPigJk1C9n:_CVy3erjqcd5F1sBkl8N46JQgg7K(_kiSTBxHwqmur5Cl0uaJcaELV9Sf)
05-03 15:40:48.028 21246 21422 E Unity   : _haxgDigL4kQjs0quhD4BNlgJDGK._qx65gBXWOb4ezVWgAMPigJk1C9n:_u5vUHsFRYmebjG9frWpazKe04WE(List`1)
05-03 15:40:48.028 21246 21422 E Unity   : _haxgDigL4kQjs0quhD4BNlgJDGK._qx65gBXWOb4ezVWgAMPigJk1C9n:_6KhPcByypdGiaZIj1OsqmjdaSNj(_kiSTBxHwqmur5Cl0uaJcaELV9Sf, List`1)
05-03 15:40:48.028 21246 21422 E Unity   : GoogleMobileAds.Api.NativeAdInteractionHandler:_ryu4QWFdcmN0KYFBv1d3GlWlD4w(Object, EventArgs)
05-03 15:40:48.028 21246 21422 E Unity   : _haxgDigL4kQjs0quhD4BNlgJDGK._kiSTBxHwqmur5Cl0uaJcaELV9Sf:CheckForImpression()
05-03 15:40:48.028 21246 21422 E Unity   :
05-03 15:40:48.028 21246 21422 E Unity   : [ line -1437650940]
05-03 15:40:48.028 21246 21422 E Unity   :
05-03 15:40:48.031 21246 21422 E Unity   : Material 'LiberationSans SDF Material (Instance)' with Shader 'TextMeshPro/Distance Field' doesn't have a color property '_Color'
05-03 15:40:48.031 21246 21422 E Unity   : UnityEngine.Material:get_color()
05-03 15:40:48.031 21246 21422 E Unity   : _haxgDigL4kQjs0quhD4BNlgJDGK._qx65gBXWOb4ezVWgAMPigJk1C9n:_CVy3erjqcd5F1sBkl8N46JQgg7K(_kiSTBxHwqmur5Cl0uaJcaELV9Sf)
05-03 15:40:48.031 21246 21422 E Unity   : _haxgDigL4kQjs0quhD4BNlgJDGK._qx65gBXWOb4ezVWgAMPigJk1C9n:_u5vUHsFRYmebjG9frWpazKe04WE(List`1)
05-03 15:40:48.031 21246 21422 E Unity   : _haxgDigL4kQjs0quhD4BNlgJDGK._qx65gBXWOb4ezVWgAMPigJk1C9n:_6KhPcByypdGiaZIj1OsqmjdaSNj(_kiSTBxHwqmur5Cl0uaJcaELV9Sf, List`1)
05-03 15:40:48.031 21246 21422 E Unity   : GoogleMobileAds.Api.NativeAdInteractionHandler:_ryu4QWFdcmN0KYFBv1d3GlWlD4w(Object, EventArgs)
05-03 15:40:48.031 21246 21422 E Unity   : _haxgDigL4kQjs0quhD4BNlgJDGK._kiSTBxHwqmur5Cl0uaJcaELV9Sf:CheckForImpression()
05-03 15:40:48.031 21246 21422 E Unity   :
05-03 15:40:48.031 21246 21422 E Unity   : [ line -1437650940]
05-03 15:40:48.031 21246 21422 E Unity   


Environment:
Unity 2021.3.20f1
Xiaomi Redmi Note 8 - Android 11
TMPro-v3.0.6
GoogleMobileAds-native-v7.4.0
GoogleMobileAds-v8.0.0

Mobile Ads SDK Forum Advisor

unread,
May 9, 2023, 5:39:43 AM5/9/23
to dev.v...@gmail.com, google-adm...@googlegroups.com
Hi Vinh,

Thank you for raising this to us. Could you please share a test project of your implementation of AdMob with TextMeshPro? Kindly provide it to us using the steps below.
 

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=5004Q00002lBldxQAC&entry.80707362=00178016

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.



Regards,
Google Logo Mobile Ads SDK Team


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