AdMob Facebook Mediation in Android - facebook

I am unable to mediate between admob and facebook audience network (FAN) in android app. The app is only serving ads from Admob network. The mediation between Admob and FAN is not working. Below is the process I have followed:
Integrated Admob in Android app. This is working fine.
Created a new developer account in facebook.
Added a new app (application id) in facebook.
Added two publishers id in facebook (one for banner and other for interstitial)
Included the adapter jar in the eclipse and added it to build path
Downloaded facebook sdk and added the classes.jar in eclipse. Added this to build path.
Added meta-data for facebook app id in Android Manifest
Project is compiled without any errors
Made proguard changes as per the instruction available at: https://firebase.google.com/docs/admob/android/mediation#include_network_adapters_and_sdks
Added mediation entries in Admob with ecpm 0.01 and 5.00.
When I run the code, I only get test ads from admob. On facebook, i see no ad requests. Till facebook doesn't recieves the ad request, it won't validate the app and ads.
Not sure if I need to make any change to android code. I am using the same code that worked for admob. It is just that I have now included the facebook jars and made changes to manifest file. No change is made to java code files or xml files?
Also, does facebook need activity context in adview request? I have adview defined in XML so I don't knw how to pass the activity context.
The code is driving me crazy.. and there is no single documentation available on how to make admob and FAN work in android code..

Prioritize facebook so the traffic/request will go to facebook instead admob just for testig purposes.
In my case to redirect traffic to facebook I set admob floor eCPM to $50 so it won't be served and surely it will try facebook since you configured it in the mediation stack.
NOTE: DO not use test ads on admob when doing above. Use real ads just don't click on it.

Here's what I did: For Facebook to validate your app, deactivate the mediation in your code and try loading just a Facebook ad instead as they show on their how-to-page. Once you see the ad from Facebook the status of your App turns to "validating". For me after like 3-4 hours it changed to "ready".

To get the Facebook ads delivered to your device, you need to have Facebook app installed and logged-in at least once. Do the following:
Install the Facebook app on your phone
Log in to the Facebook app with the same account from which you are requesting the ads
Now open your own app and request the ads from Facebook. If your integration is fine, you should get the ads.

Related

How to integrate Facebook Pixel Sdk in flutter

I want to integrate the facebook pixel sdk in flutter. Can anyone help me that how i can integrate that in my flutter project
For native app development, Facebook SDK is required.
Flutter Facebook Login Package will provide you, not only the login but also the required SDK.
Next, Facebook_App_Events Package, which is going to help you in sending tracked data to FB, for eg. when a person clicks to watch a video on your app or makes a purchase etc.
An app event is an action that takes place in your app or on your web
page such as a person installing your app or completing a purchase.
Facebook App Events allows you to track these events to view
analytics, measure ad performance, and build audiences for ad
targeting.

How to test Facebook Ads conversion for Mobile Apps?

I have implemented the Facebook SDK and App Events in the mobile app. I have already tested it using Facebook Events Manager. Events are properly reported with no errors.
I want to test it with ads. Is there a way to do it using Ads Preview? We tried it but Ads Reporting is not showing any event against the ads.
Is there any way to test without running an ad campaign?
You can test it using whitehat account. Using it you can add campaigns, adsets and ads in "test" mode. App events work as well.

Verify Facebook mediation on iOS

I use Admob to monetize my apps and recently I added Facebook mediation. For Android it was verified already (it was a while ago and I honestly I don't remember how).
I see this information fo iOS:
Instructions Copy the line below and add it to your app-ads.txt file
at https:// domain.com/app-ads.txt. We've included your business...
The thing is that I have this mediation on a Flutter app and I have no domain.
How can I verify this?
How can I validate this?
You can Publish app-ads.txt with Firebase Hosting
Then release new version of your iOS app and add the link to iOS app Marketing URL in app store connect.

How to integrate Facebook Audience Network using ad mediation (without Admob) in Flutter?

I am new app development.
I integrated admob in my flutter app but unfortunately I was banned from admob.
Now I decided to go with Facebook Audience Network (FAN).
FAN now only allow Meditation and I couldn't find any flutter tutorial on YouTube for FAN integration with other mediation partners.
Anyone please guide me on this.
Thank you.
When you mediating one network. You need to show ads with one mediation platform.(Admost/MoPub/ironsource..etc)
FAN approved platforms..
Secondly, You need to check which platform is supporting Flutter repository..
While choosing platform you need to check which Platform giving Flutter Repository for Banner, Interstitial, Native Ads. Because with this repository you are going to show FAN ads in Mediation platforms (Admost/moPub/ironsource..) placements.
and then add this dependency of FAN in your Android Gradle..
Thirdly, After Implementing (Admost/mopub) Code in your App..
Finally.. You need to add your FAN ads ids in (admost/mopub) account for in mediation options..
Don't forget to use similar ads(Banner=Banner) type id for mediation placements..
And you also dont need FAN repository in Flutter..

Ionic Facebook plugin work only on one phone

I'm building an Ionic app with Facebook Login support.
I'm setting all as required in the developer.facebook.com settings and on config.xml on ionic config.
The login works fine for only my phone.
On every other phone the method facebook.login(['email']) reject Promise and pass an empty error.
How is it possible, counting that every configuration is compiler-related and not phone-related? There isn't config that uses device information.
Is really strange because I'm expecting does or doesn't work everywhere.
On every phone I've tried, Facebook app is installed and logged. No Facebook Lite installed.
Find the problem.
Facebook dev app was is develop mode so only me can access.
Possible solutions are:
Make in prod mode the app
Add other users facebook account to tester list