googleads / googleads-mobile-android-mediation

Sample Android project showcasing how to build a mediation adapter or custom event for the Google Mobile Ads SDK.
Apache License 2.0
242 stars 198 forks source link

[BUG] Getting class name instead of ad logo url when I am trying to show AdIcon through FacebookAdapter #173

Open pranshu170191 opened 5 years ago

pranshu170191 commented 5 years ago

Versions which I am using to show programatic ads - Audience Network - com.facebook.android:audience-network-sdk:5.4.1 Mediation - com.google.ads.mediation:facebook:5.4.1.1 Google Ads Manager - com.google.android.gms:play-services-ads:18.1.1

I have integrated Google Ads Manager in my android app and trying to get facebook ads through mediation but after upgrading to latest mediation (FacebookAdapter) I am not getting Ad Icon whenever ads are received from Facebook. When I debugged I am not getting an image URL instead of that a class name is getting returned

I am using this method to show Advertiser Icon - > UnifiedNativeAd.getIcon(), which is returning the class name

This is what is getting return com.facebook.ads.NativeAdBase$Image@eb6dee2

vungocgiang commented 5 years ago

Same issue And, when i used native banner ad from Facebook (native ad without mediaview), ad view not clickable

spilaka commented 5 years ago

@pranshu170191 Facebook SDK itself renders AdIcon and Main image asset. For more information you can go through this developer guide : https://developers.google.com/admob/android/mediation/facebook#using_native_ads

pranshu170191 commented 5 years ago

@spilaka Is there any example code snippet which I can refer, what happens in case of Adx then, currently Adx is working fine for me