I'm trying to implement Abmob mediation for the Facebook Audience Network on iOS. I keep on getting the following error in the in my log with no Facebook ads been displayed:
Ad network adapter GADMAdapterFacebook implements an old API. Please update the adapter. No valid adapters found for this ad network. I am on the latest version
@interface GADMAdapterFacebook ()
@property (nonatomic, strong) FBAdView *fbAdView;
@end
@implementation GADMAdapterFacebook
@synthesize delegate = delegate_;
- (void)requestBannerAd:(GADAdSize)adSize
parameter:(NSString *)serverParameter
label:(NSString *)serverLabel
request:(GADCustomEventRequest *)request
{
if ([serverParameter length] == 0) {
[self.delegate customEventBanner:self didFailAd:nil];
return;
}
self.fbAdView = [[FBAdView alloc]initWithPlacementID:serverParameter
adSize:kFBAdSize320x50
rootViewController:[self.delegate viewControllerForPresentingModalView]];
self.fbAdView.delegate = self;
[self.fbAdView loadAd];
}
- (void) dealloc {
_fbAdView.delegate = nil;
self.fbAdView = nil;
}
#pragma mark FBAdViewDelegate methods
- (void)adViewDidLoad:(FBAdView *)adView;
{
[self.delegate customEventBanner:self didReceiveAd:self.fbAdView];
}
- (void)adView:(FBAdView *)adView didFailWithError:(NSError *)error;
{
[self.delegate customEventBanner:self didFailAd:error];
}
- (void)adViewDidClick:(FBAdView *)adView
{
[self.delegate customEventBanner:self clickDidOccurInAd:self.fbAdView];
[self.delegate customEventBannerWillPresentModal:self];
[self.delegate customEventBannerWillLeaveApplication:self];
}
-(void)adViewDidFinishHandlingClick:(FBAdView *)adView
{
[self.delegate customEventBannerWillDismissModal:self];
[self.delegate customEventBannerDidDismissModal:self];
}
@end
Undefined symbols for architecture x86_64:
"_ADBannerContentSizeIdentifierLandscape", referenced from:
-[GADMAdapterIAdBannerPreIOS7 getBannerWithSize:] in libTWNStaticLibrary.a(GADMAdapterIAdBannerPreIOS7.o)
-[GADMAdapterIAdBannerPreIOS7 adjustADBannerToAdSize] in libTWNStaticLibrary.a(GADMAdapterIAdBannerPreIOS7.o)
"_ADBannerContentSizeIdentifierPortrait", referenced from:
-[GADMAdapterIAdBannerPreIOS7 getBannerWithSize:] in libTWNStaticLibrary.a(GADMAdapterIAdBannerPreIOS7.o)
-[GADMAdapterIAdBannerPreIOS7 adjustADBannerToAdSize] in libTWNStaticLibrary.a(GADMAdapterIAdBannerPreIOS7.o)
"_OBJC_CLASS_$_ADBannerView", referenced from:
objc-class-ref in libTWNStaticLibrary.a(GADMAdapterIAdBannerPreIOS7.o)
objc-class-ref in libTWNStaticLibrary.a(GADMAdapterIAdBannerIOS7.o)
"_OBJC_CLASS_$_ADInterstitialAd", referenced from:
objc-class-ref in libTWNStaticLibrary.a(GADMAdapterIAdInterstitial.o)
Any ideas?
BTW, I'm on ios8 if it makes any difference.
Undefined symbols for architecture x86_64:
"_OBJC_CLASS_$_FBAdSettings", referenced from:
objc-class-ref in libTWNStaticLibrary.a(GADMAdapterFacebook.o)
"_OBJC_CLASS_$_FBAdView", referenced from:
objc-class-ref in libTWNStaticLibrary.a(GADFBBannerAd.o)
"_OBJC_CLASS_$_FBInterstitialAd", referenced from:
objc-class-ref in libTWNStaticLibrary.a(GADFBInterstitialAd.o)
"_kFBAdSize320x50", referenced from:
_GADFBAdSizeFromAdSize in libTWNStaticLibrary.a(GADFBBannerAd.o)
"_kFBAdSizeInterstital", referenced from:
_GADFBAdSizeFromAdSize in libTWNStaticLibrary.a(GADFBBannerAd.o)
I found that 'FBAdView' is mentioned in FacebookAdsSDK.framework.
I added it but nothing's changed.
Thanks,
Nick
Hello there,