AdMob native ad with Facebook audience network integration

100 views
Skip to first unread message

Shyam

unread,
Oct 24, 2019, 2:52:38 AM10/24/19
to Google Mobile Ads SDK Developers
I have already integrated admob native ad in my app and now I want to integrate facebook native ad using mediation.

As stated in link, some of the fields are mismatched. So how to bind app icon, socialText etc fields ?

How can I differentiate which ad is loaded - admob or facebook and how can I bind(inflate) the views based on that ? Or as shown in this class, everything will be taken care automatically ? If that is the case then that means I dont have to change my code, I just have to change admob ad sources etc.... Then why in this link it is mentioned that there are some fields mismatched ? There is no any demo, example or tutorial available on internet. I spend more than 5 days but did not get any help.

Please help me to clear my doubts.



Mobile Ads SDK Forum Advisor Prod

unread,
Oct 24, 2019, 8:03:11 AM10/24/19
to sanjaymodh...@gmail.com, google-adm...@googlegroups.com
Hi there,

Thank you for reaching out to us. Let me do the best I can to assist you with this.

With regard to your concern, some Facebook native ad assets don't map one to one to Google native ad assets. You may check this sample  oncode handling other assets provided from FAN mediation. In addition, you may utilize getMediationAdapterClassName callback which returns the mediation adapter class name during ad request. This returns null for non mediated ads.

Regards,
Teejay Pimentel
Mobile Ads SDK Team

ref:_00D1U1174p._5001UKOKzl:ref

Shyam

unread,
Oct 24, 2019, 8:29:21 AM10/24/19
to Google Mobile Ads SDK Developers
Why there is no any sample code given ? There is no any help on that. How to bind ads element for different ad networks ? How to use getMediationAdapterClassName  ? When, where, how to compare the value with facebook ad network ?

It would be good if you could point to any sample app that could work with admob and FAN mediation native ad. I am totally confused how to use it ?

Mobile Ads SDK Forum Advisor Prod

unread,
Oct 25, 2019, 2:31:39 AM10/25/19
to sanjaymodh...@gmail.com, google-adm...@googlegroups.com

Hi Shyam,

This is Mark, let me support you on this as Teejay's out of the office today.

Binding ad elements may differ for different ad networks. You may refer to this sample implementation for third party adapters. In addition, you may utilize UnifiedNativeAdMapper to provide a mapping from the mediated ad network's native ad object. Also, with regard to getMediationAdapterClassName (), you can call this method inside OnUnifiedNativeAdLoadedListener or you can create your own callback implementations using AdListener.

Regards,
Mark Albios
Mobile Ads SDK Team



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