Facebook Ads integration in Mopub

mopub
android

#1

Hi guys,
I have integrated facebook ads in Mopub and created a sample android app.
But when i open my sample app i am only getting Mopub ads but not getting facebook ads even if facebook app is installed on my android device p

please help me out… Below is my log which i get when i open my sample android app

com.mopub.simpleadsdemo D: Attempting to invoke custom event: com.mopub.nativeads.FacebookNative
com.mopub.simpleadsdemo W: Failed to load Custom Event Native class: com.mopub.nativeads.FacebookNative
com.mopub.simpleadsdemo V: Native Ad failed to load with error: Unable to find CustomEventNative…
com.mopub.simpleadsdemo D: Successfully hit tracking endpoint: http://ads.mopub.com/m/imp?appid=&cid=e468dd2ecac84661ad414bcbf0512262&city=&ckv=2&country_code=IN&cppck=6999F&dev=Redmi%203S&exclude_adgroups=38c8a0b6ae774dc3a6f661fe7c50dfd6%2Cf97fc5f8dbb811e68ff5002590f31968&id=d0f2158521424f9da72b466cba33777f&is_mraid=0&mpx_clk=http%3A%2F%2Fmpx.mopub.com%2Fclick%3Flineitem%3D10540194%26ad_domain%3Dgoibibo.com%26adgroup_id%3D38c8a0b6ae774dc3a6f661fe7c50dfd6%26adunit_id%3Dd0f2158521424f9da72b466cba33777f%26ads_creative_id%3De468dd2ecac84661ad414bcbf0512262%26app_id%3Da60409238f134c90adad805c66dc78b9%26app_name%3DLock%20Screen%20And%20App%20Lock%26auction_time%3D1484639197%26bid_price%3D1.66%26bidder_id%3D0f33dczpER%26bidder_name%3DTwitter%26campaign_id%3D5c26416b66af4fd7a1efb1bbf1431511%26charge_price%3D0.09%26asc_price%3D0%26ck%3D6657F%26ckenc%3D2%26country%3DIND%26creative_id%3Dnative_820882841722638336%26currency%3DUSD%26impression_id%3D34c51ea8-6b34-4be8-b888-428519a007ca%26latency%3D0.087%26mopub_id%3Difa%3A88b8e498-8696-4a6e-9be3-02033f17f45b%26paid%3D0%26pub_id%3D796efffca57d463288197f0a18f1ac9a%26pub_name%3Dout%20thinking%20pvt%20ltd%26pub_rev0%3D9203275455420756531%26request_id%3D7fd907cdca1f47f5ad750da6ffa19c98%26seat_id%3Dmap%26units%3D0%26adgroup_type%3Dmarketplace%26adgroup_priority%3D11&os=Android&osv=6.0.1&req=7fd907cdca1f47f5ad750da6ffa19c98&reqt=1484639198.0&rev=0.000054&udid=ifa%3A88b8e498-8696-4a6e-9be3-02033f17f45b&video_type=
com.mopub.simpleadsdemo D: Attempting to invoke custom event: com.mopub.nativeads.MoPubCustomEventNative
com.mopub.simpleadsdemo D: Loading ad from: http://ads.mopub.com/m/ad?id=d0f2158521424f9da72b466cba33777f&nsv=4.11.0&dn=Xiaomi%2CRedmi%203S%2Cland&bundle=com.mopub.simpleadsdemo&ll=13.009%2C77.6506&lla=2000&llf=19192&llsdk=1&z=%2B0530&o=p&w=720&h=1280&sc_a=2.0&mcc=405&mnc=861&iso=in&cn=Jio%204G&ct=3&av=4.11.0&udid=mp_tmpl_advertising_id&dnt=mp_tmpl_do_not_track&MAGIC_NO=2
com.mopub.simpleadsdemo D: Successfully hit tracking endpoint: http://mpx.mopub.com/imp?lineitem=10540194&ad_domain=goibibo.com&adgroup_id=38c8a0b6ae774dc3a6f661fe7c50dfd6&adunit_id=d0f2158521424f9da72b466cba33777f&ads_creative_id=e468dd2ecac84661ad414bcbf0512262&app_id=a60409238f134c90adad805c66dc78b9&app_name=Lock%20Screen%20And%20App%20Lock&auction_time=1484639197&bid_price=1.66&bidder_id=0f33dczpER&bidder_name=Twitter&campaign_id=5c26416b66af4fd7a1efb1bbf1431511&charge_price=0.09&asc_price=0&ck=6657F&ckenc=2&country=IND&creative_id=native_820882841722638336&currency=USD&impression_id=34c51ea8-6b34-4be8-b888-428519a007ca&latency=0.087&mopub_id=ifa%3A88b8e498-8696-4a6e-9be3-02033f17f45b&paid=0&pub_id=796efffca57d463288197f0a18f1ac9a&pub_name=out%20thinking%20pvt%20ltd&pub_rev0=9203275455420756531&request_id=7fd907cdca1f47f5ad750da6ffa19c98&seat_id=map&units=0&adgroup_type=marketplace&adgroup_priority=11
com.mopub.simpleadsdemo D: Attempting to invoke custom event: com.mopub.nativeads.MoPubCustomEventNative
com.mopub.simpleadsdemo D: Loading ad from: http://ads.mopub.com/m/ad?id=d0f2158521424f9da72b466cba33777f&nsv=4.11.0&dn=Xiaomi%2CRedmi%203S%2Cland&bundle=com.mopub.simpleadsdemo&ll=13.009%2C77.6506&lla=2000&llf=19667&llsdk=1&z=%2B0530&o=p&w=720&h=1280&sc_a=2.0&mcc=405&mnc=861&iso=in&cn=Jio%204G&ct=3&av=4.11.0&udid=mp_tmpl_advertising_id&dnt=mp_tmpl_do_not_track&MAGIC_NO=3


#2

Hi @abakashtwit,

Thanks for reaching out!

The following log shows that the FAN adapters are missing, renamed or in the wrong place:

com.mopub.simpleadsdemo W: Failed to load Custom Event Native class: com.mopub.nativeads.FacebookNative

You’ll want to make sure you have the FAN adapters included in the com.mopub.nativeads folder of your project. You’ll also need to make sure you’ve integrated the FAN SDK into your project.

Feel free to check out our Integrating Native Third Party Ad Networks documentation for more information.

Thanks!