Facebook Audience Network with Mediation doesn't work

203 views
Skip to first unread message

iOS Dev

unread,
Jun 8, 2017, 6:47:02 AM6/8/17
to Google Mobile Ads SDK Developers
Hello,

I have integrated Facebook Audience network with mediation to see FAN Ads but it doesn't show.

My iOS App already have latest Google Admob SDK and I see Admob Interstitial Ads working fine.

I downloaded latest Facebook SDK v4.23.0 and linked FBAudienceNetwork.framework to my project. Also I linked FacebookAdapter.framework (4.23.0) to my project. as per this doc: https://developers.google.com/admob/ios/mediation/facebook

I set Facebooks Mediation ads rate to highest, but still i don't see any Facebook Ads.

I then did Placement code:

// Add a function in your View Controller that initializes the interstitialAd:
- (void)loadInterstitial
{
  FBInterstitialAd *interstitialAd =
    [[FBInterstitialAd alloc] initWithPlacementID:@"MY_PLACEMENT_ID"];
  interstitialAd.delegate = self;
  [interstitialAd loadAd];
}

// Now that you have added the code to load the ad, add the following functions 
// to display the ad once it is loaded and to handle loading failures:
- (void)interstitialAdDidLoad:(FBInterstitialAd *)interstitialAd
{
  NSLog(@"Interstitial ad is loaded and ready to be displayed");

  // You can now display the full screen ad using this code:
  [interstitialAd showAdFromRootViewController:self];
}

- (void)interstitialAd:(FBInterstitialAd *)interstitialAd 
      didFailWithError:(NSError *)error
{
  NSLog(@"Interstitial ad is failed to load with error: %@", error);
}

"I see the Facebook Ads fine."

My question is why I don't see facebook Ads with mediation. I only see Admob Interstitial Ads.

Appreciate any help!


Bharani Cherukuri (MobileAds SDK Team)

unread,
Jun 8, 2017, 2:07:52 PM6/8/17
to Google Mobile Ads SDK Developers
Hello, 

Thank you for contacting us. I would need some additional information to investigate the issue further on our end. Would you be able to provide us with a sample code of your implementation and your Ad Unit ID so we can take a quick look. I should also mention that, if it is a newly created Ad Unit ID and/or Placement ID, it may take few hours before serving live ads.

Let me know if you have any other questions.

Regards, 
Bharani Cherukuri
Mobile Ads SDK Team

Nidhi Sharma

unread,
Jun 10, 2017, 12:21:06 AM6/10/17
to google-adm...@googlegroups.com
Hello,

Thanks for the quick reply.

But I get it working last day, when I didn't see any ads I did code to make direct request for Facebook mediation ads, then the status of request got changed on Admob server. And after some time I saw the ads through mediation too.

Thanks,

--

---
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/-FQyW9yjU1s/unsubscribe.
To unsubscribe from this group and all its topics, send an email to google-admob-ads-sdk+unsub...@googlegroups.com.
To post to this group, send email to google-admob-ads-sdk@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Reply all
Reply to author
Forward
0 new messages