admob mediation adaptor for facebook audience network does not work with latest facebook sdk

1,542 views
Skip to first unread message

Leon Atkinson-Derman

unread,
Apr 13, 2015, 11:22:25 AM4/13/15
to google-adm...@googlegroups.com
It appears that the mediation adaptor for admob needs to be updated to support the latest facebook sdk. Any idea when this will happen?
Thanks

My setup (pod file)

Using Facebook-iOS-SDK (4.0.1)

Using Google-Mobile-Ads-SDK (7.1.0)


I'm getting the following linker errors when I attempt to build with LibAdapterFacebook-1.1.0:

Undefined symbols for architecture arm64:

  "_kFBAdSize320x50", referenced from:

      _GADFBAdSizeFromAdSize in libAdapterFacebook.a(GADFBBannerAd.o)

  "_kFBAdSizeHeight50Banner", referenced from:

      _GADFBAdSizeFromAdSize in libAdapterFacebook.a(GADFBBannerAd.o)

  "_OBJC_CLASS_$_FBAdView", referenced from:

      objc-class-ref in libAdapterFacebook.a(GADFBBannerAd.o)

  "_OBJC_CLASS_$_FBAdSettings", referenced from:

      objc-class-ref in libAdapterFacebook.a(GADMAdapterFacebook.o)

  "_kFBAdSizeHeight250Rectangle", referenced from:

      _GADFBAdSizeFromAdSize in libAdapterFacebook.a(GADFBBannerAd.o)

  "_kFBAdSizeInterstital", referenced from:

      _GADFBAdSizeFromAdSize in libAdapterFacebook.a(GADFBBannerAd.o)

  "_OBJC_CLASS_$_FBInterstitialAd", referenced from:

      objc-class-ref in libAdapterFacebook.a(GADFBInterstitialAd.o)

  "_kFBAdSizeHeight90Banner", referenced from:

      _GADFBAdSizeFromAdSize in libAdapterFacebook.a(GADFBBannerAd.o)

ld: symbol(s) not found for architecture arm64

clang: error: linker command failed with exit code 1 (use -v to see invocation)

Andrew Brogdon (Mobile Ads SDK Team)

unread,
Apr 13, 2015, 6:26:27 PM4/13/15
to google-adm...@googlegroups.com
The errors you see indicate that the linker can't find the Facebook SDK symbols that are referenced by our adapter. This usually means that the Facebook SDK has not been properly imported into the project. I would recommend double-checking your podfile and project settings (as well as the linker output log) to make sure that the Facebook SDK is getting into your build.

-Andrew

Sanjay Mohnani

unread,
Jul 15, 2015, 11:01:21 AM7/15/15
to google-adm...@googlegroups.com
Hi Andrew,

I was trying to use the Facebook ad adapter for DFP. I have checked the FacebookSDK integration as well as the FBAudienceFramework integration. 
When i build my app the linker throws and error... 


Undefined symbols for architecture i386:

  "_kFBAdSizeHeight250Rectangle", referenced from:

      _GADFBAdSizeFromAdSize in libAdapterFacebook.a(GADFBBannerAd.o)

ld: symbol(s) not found for architecture i386

clang: error: linker command failed with exit code 1 (use -v to see invocation)



Actually the library you provided doesn't seems to have some symbols in it. 


please guide me through it. .


Andrew Brogdon (Mobile Ads SDK Team)

unread,
Jul 15, 2015, 1:17:52 PM7/15/15
to google-adm...@googlegroups.com, sanjay.m...@gmail.com
That symbol is part of the Facebook SDK. You can see it referenced in their documentation here:


It's not part of our adapter (if it were, we'd have a name collision). If the linker isn't able to find it, the reason is almost always that the Facebook SDK has not been incorporated into the build correctly. I'd recommend rechecking your build settings, paths, and phases, then recompiling from scratch.

-Andrew

Sanjay Mohnani

unread,
Jul 16, 2015, 6:55:34 AM7/16/15
to google-adm...@googlegroups.com

Hi Andrew,


Thanks for the reply, I have tried many option, also one that was mentioned by you, but still no success.


I have reverted all my changes, got the project back to working state with GoogleMobileAdsSdkiOS-7.3.1.

After that when I try to integrate LibAdapterFacebook-1.1.0 in my project and build, I get following linking errors - 


 "_OBJC_CLASS_$_FBAdSettings", referenced from:

      objc-class-ref in libAdapterFacebook.a(GADMAdapterFacebook.o)

  "_OBJC_CLASS_$_FBAdView", referenced from:

      objc-class-ref in libAdapterFacebook.a(GADFBBannerAd.o)

  "_OBJC_CLASS_$_FBInterstitialAd", referenced from:

      objc-class-ref in libAdapterFacebook.a(GADFBInterstitialAd.o)

  "_kFBAdSize320x50", referenced from:

      _GADFBAdSizeFromAdSize in libAdapterFacebook.a(GADFBBannerAd.o)

  "_kFBAdSizeHeight250Rectangle", referenced from:

      _GADFBAdSizeFromAdSize in libAdapterFacebook.a(GADFBBannerAd.o)

  "_kFBAdSizeHeight50Banner", referenced from:

      _GADFBAdSizeFromAdSize in libAdapterFacebook.a(GADFBBannerAd.o)

  "_kFBAdSizeHeight90Banner", referenced from:

      _GADFBAdSizeFromAdSize in libAdapterFacebook.a(GADFBBannerAd.o)

  "_kFBAdSizeInterstital", referenced from:

      _GADFBAdSizeFromAdSize in libAdapterFacebook.a(GADFBBannerAd.o)

ld: symbol(s) not found for architecture i386

clang: error: linker command failed with exit code 1 (use -v to see invocation)


Can you please help me to resolve this issue?




--

---
You received this message because you are subscribed to a topic in the Google Groups "Google Mobile Ads SDK Developers" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/google-admob-ads-sdk/Fh7kUukTbdc/unsubscribe.
To unsubscribe from this group and all its topics, send an email to google-admob-ads...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Andrew Brogdon (Mobile Ads SDK Team)

unread,
Jul 16, 2015, 4:22:35 PM7/16/15
to google-adm...@googlegroups.com, sanjay.m...@gmail.com
To mediate Facebook ads with the Mobile Ads SDK, you need the Mobile Ads SDK, the Facebook adapter, and the Facebook SDK all linked into your project. From your description, it sounds like you just have the Mobile Ads SDK and the adapter set up, so you'll need to follow Facebook's instructions for including their SDK.

Once you have all three of those things linked correctly, the linker will be able to find those symbols, and your app will build.

-Andrew

Sanjay Mohnani

unread,
Jul 17, 2015, 12:37:11 AM7/17/15
to google-adm...@googlegroups.com
Hello Andrew,

Thanks for the reply and expert advices. 

I did exactly the same as you'd mention, and it worked. 

Earlier also I did the same things, but the only reason between the previous builds and the build that succeeded was of linker picking files from the earlier version of the Facebook SDK, rather than the new one(v 4.4).

I cleaned the project, rebuild it from scratch and this time it picked the files from the new Facebook SDK, also the symbols which FB adapter failed to find earlier, were found this time.


Once again thanks a lot for your support.

Andrew Brogdon (Mobile Ads SDK Team)

unread,
Jul 17, 2015, 4:19:07 PM7/17/15
to google-adm...@googlegroups.com, sanjay.m...@gmail.com
No problem. I'm glad you got it working, and let us know if you have any other questions about the SDK.

-Andrew

Sushmitha G

unread,
Dec 6, 2016, 5:16:44 AM12/6/16
to Google Mobile Ads SDK Developers, sanjay.m...@gmail.com
Hello Andrew,

 I'm facing the same issue. My FBAudienceNetwork is 4.17.0 and I have downloaded facebook adapter (FacebookAdapter.framework) from https://developers.google.com/mobile-ads-sdk/docs/dfp/android/mediation-networks.

Please help me to solve this issue. Thank you.
Reply all
Reply to author
Forward
0 new messages