Flutter, Firebase and Admob Mediation

806 views
Skip to first unread message

Brennan Altringer

unread,
Apr 3, 2019, 10:55:20 AM4/3/19
to Flutter Dev
I've been looking through the interwebs and haven't found anything. Any insights here? I want to add AdMob Mediation to my Flutter app.

It is weird to be that Firebase/AdMob doesn't have Flutter specific information to get AdMob Mediation to work since it is also a Google property.

Andrew Brogdon

unread,
Apr 3, 2019, 10:59:37 AM4/3/19
to Brennan Altringer, Flutter Dev
Very few people have ever asked about doing mediation with Flutter, which has caused it to fade to the back in favor of other priorities.

If you're using the firebase_admob plugin from the Flutter team, mediation should work for banners, interstitials, and rewarded video. You'd need to manually import the mediated SDKs and their AdMob mediation adapters into your project, but that should be the only real annoyance.

That said, I've never tried it personally, so I'm extremely curious about the results if you make an attempt. :)

-Andrew

On Wed, Apr 3, 2019 at 7:55 AM Brennan Altringer <baltri...@gmail.com> wrote:
I've been looking through the interwebs and haven't found anything. Any insights here? I want to add AdMob Mediation to my Flutter app.

It is weird to be that Firebase/AdMob doesn't have Flutter specific information to get AdMob Mediation to work since it is also a Google property.

--
You received this message because you are subscribed to the Google Groups "Flutter Dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email to flutter-dev...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Brennan Altringer

unread,
Apr 3, 2019, 11:03:51 AM4/3/19
to Flutter Dev
ANDREW!!!! 

Ok I'll give it a try. New to all this stuff so honestly uploading SDKs might be a feet in itself, but I'm sure I can find a tutorial somewhere. I'll report back when I get a chance to see it works.

Brennan
To unsubscribe from this group and stop receiving emails from it, send an email to flutt...@googlegroups.com.

Andrew Brogdon

unread,
Apr 3, 2019, 11:33:24 AM4/3/19
to Brennan Altringer, Flutter Dev
You Flutter app is, at the end of the day, just an Android or iOS app like any other. Most of the work is in getting the building blocks in place.

These guides are the best place to get started:

If you click on the name of the network you want to mediate, you'll be taken to a guide written specifically for that network. It'll walk you through setting up your AdMob mediation groups, adding the SDKs and adapters, and any additional tweaks (updating the Android manifest, for example) that are required. The mobile ads team has a group of engineers dedicated to keeping them up to date.

Once things are set up, the Dart interface offered by firebase_admob should take care of calling into the Google Mobile Ads SDK, which will talk to the appropriate mediation adapter, which will talk to the mediated SDK to load and show ads. So, you know, piece of cake. :)

-Andrew

To unsubscribe from this group and stop receiving emails from it, send an email to flutter-dev...@googlegroups.com.

Brennan Altringer

unread,
Apr 3, 2019, 12:13:46 PM4/3/19
to Flutter Dev
you're a saint

Arsalan Kazmi

unread,
Apr 4, 2019, 4:18:26 PM4/4/19
to Flutter Dev

I have a couple of issues that i need answers too. I would be happy if anyone could answer these.

1- No eCPM against Impressions (InMobi Mediation into AdMob)

2- InMobi network status for optimization is pending(as shown in screenshots). It has been more than 7 days since the integration.


Below are the links to some screenshots that will help you understand my problem better. 


https://www.dropbox.com/s/9ohod0grcdjgqpd/Screenshot%202019-03-29%2000.35.27.png?dl=0

https://www.dropbox.com/s/bhwy1sp5nzrlzph/Screenshot%202019-03-29%2000.35.37.png?dl=0

https://www.dropbox.com/s/kyi3hkv8yai37h3/Screenshot%202019-03-29%2000.35.39.png?dl=0



Thanks.

Felix Wielander

unread,
Apr 28, 2020, 12:14:29 PM4/28/20
to Flutter Development (flutter-dev)
Hi Andrew!

Thank you for the clarifications. I have successfully integrated Facebook Audience Network mediation in my flutter app for Android.
However, iOS creates problems. After following the steps on https://developers.google.com/admob/ios/mediation/facebook#step_3_import_the_facebook_audience_network_sdk_and_adapter I try to run my app on iOS simulator and get this error:

14 warnings generated.
Undefined symbols for architecture x86_64:
"_OBJC_CLASS_$_GADMediatedNativeAdNotificationSource", referenced from:
objc-class-ref in FacebookAdapter(GADFBNativeAd.o)
"_OBJC_CLASS_$_GADNativeAppInstallAdView", referenced from:
objc-class-ref in FacebookAdapter(GADFBNativeAd.o)
ld: symbol(s) not found for architecture x86_64
clang: error: linker command failed with exit code 1 (use -v to see invocation)
note: Using new build system
note: Building targets in parallel
note: Planning build
note: Constructing build description
warning: The iOS Simulator deployment target 'IPHONEOS_DEPLOYMENT_TARGET' is set to 4.3, but the range of supported deployment target versions is 8.0 to 13.4.99. (in target 'nanopb' from project 'Pods')

Could not build the application for the simulator.
Error launching application on iPhone 8 Plus.


I tried to set the deployment target of "nanopb" to 8.0 but the warning about "Undefined symbols for architecture x84_64" persists regardless of what I tried.

(the plain firebase_admob integration without mediation for the iOS app has been working fine previously).


Does anyone have a hint on what could be the problem?

Thanks!
Felix
Reply all
Reply to author
Forward
0 new messages