Facebook not showing Banner after deployment to playstore - facebook

I have developed an Application using Flutter and with Facebook audience Package I've integrated the Ads to Flutter App
There's no issue with Interstitial or native ads
But banner ads are not showing in App after Deployment to the Play Store...
I have already made thousands of Ads Request to FaceBook banner Ads but there is NON-impression from FacebookHere is an image which doesn't have any impression!!! I don't know why
here is my CODE in Flutter (Dart)
Widget BannerWidget(placementId) {
return FacebookBannerAd(
placementId: BannerId,
bannerSize: BannerSize.STANDARD,
listener: (result, value) {
print("Banner Ad: $result --> $value");
},
);
}
Package name -> facebook_audience_network: 1.0.1
need Help and Thank you

Related

Flutter admob mediation with Facebook Audience Network: how to customize ad display?

I have a flutter social network app with admob native ads working fine, and I would like to implement mediation with Facebook Audience Network.
I configured everything on Admob and imported the SDK, the ads impressions are OK.
But this is how Facebook ads are displayed (which is not great, Admob ads fill all the space available):
Facebook Audience Network ads display
This is my build code for ads in feed :
separatorBuilder: (BuildContext context, int index){
if (index != 0 && index % 3 == 0) {
return Container(
height: 300,
child: Card(
color: white,
child: NativeAdmob(
controller: nativeAdController,
adUnitID: AdsHelper.bannerAdUnitId,
type: NativeAdmobType.full,
error: CupertinoActivityIndicator())
),
);
} else {
return Container(height: 5, color: baseAccent);
}
},
My question is :
How can I customize the ads layout so that it fills available space and have a great display ?
Also, when I clic on ads nothing happen, maybe it is because this version is not yet released on AppStore and PlayStore ?
For those who might have the same issue, I found an alternative solution.
The integration problem seems to come from flutter_native_admob package that is not really compatible with mediation with facebook apparently.
So I replaced it by facebook_audience_network package and now it works fine.
I have no more mediation through Admob but at least I have facebook ads which was my point.

flutter ad's only display in test mode

I try to implement ad mob package in my flutter app. I have create my admob account, I choose reward ad, I have my Id bloc and my appId, I have add my google-services.json in the app folder,I have completed the manifest.
My problem is when I use
.load(adUnitId: RewardedVideoAd.testAdUnitId, targetingInfo: targetingInfo)
It's OK I can see video ad after press button, but it's not my unitID
If I use my UnitID like that
.load(adUnitId:"ca-app-pub-xxxxxxxxxxxx/xxxxxxxxx", targetingInfo: targetingInfo)
I have no video ad after press button
I have this error
error in showing ad: PlatformException(ad_not_loaded, show failed for rewarded video, no ad was loaded, null)
I have since long time a bug with release mode, so I launch only in debug mode, it can be the source of my problem ?
Are there a delay of use after creation of admob account or bloc ?
thank you
ads show when u publish your app in the store so if the test ads work's fin than your ads work perfact

How to implement Facebook Account Kit in Ionic 4

I'm getting error Cannot read property 'loginWithPhoneNumber' of undefined
I've made developer account and setup App. I'm trying to implement this on android and have installed cordova-plugin-accountkit.
I tried this code on click:
(<any>window).AccountKitPlugin.loginWithPhoneNumber({
useAccessToken: true,
defaultCountryCode: "US",
},function(res){
console.log(res)
},function(err){
console.log(err)
})
You have to remove fcm or firebase plugin from your app and then remove and add android platform again and build. It will work fine

InterstitialAd object is there in Admob and Facebook

Background : I am trying to have the Interstitial Ads from Admob and Facebook separately (Not via Mediation) . The facebook Ads will be triggered if the App is installed from Amazon App store.
Question : I need to declare the variable interstitialFromAdmob and interstitialAdFromFacebook. interstitialFromAdmob is for the Ad from Admob and interstitialAdFromFacebook is for the Ad from Facebook. For this Admob and Facebook has used the same Object InterstitialAd. Hence I am unable to declare the variables pointing the Admob and facebook separate. Please let me know how to resolve this
InterstitialAd interstitialFromAdmob;
InterstitialAd interstitialAdFromFacebook;
This is a very common case.
For those classes have duplicated short class name, a long or full path class name shall be used.
For examples, you can use:
com.facebook.ads.InterstitialAd internstitialAdFromFacebook;

facebook canvas app install ad not getting published

We are facing some issues while publishing Canvas App Install Ads using facebook ads api.
We are getting this error while submitting the Ad. Ad Creative has been successfully created.
Ad Specs:
{
"adset_id":"XXXXXXXXXXX",
"name":"e2e canvas app create # app # 1407",
"bid_type":"ABSOLUTE_OCPM",
"creative":{
"object_id":"XXXXXXXXXXXX",
"actor_name":"e2e canvas app create # a",
"body":"e2e canvas app create # app # 1407",
"name":"e2e canvas app create # app # 1407",
"link_url":"LINK_URL",
"image_hash":"996e9f651b6bc8f86ee7ac83c72f0718"
},
"targeting":{
"genders":["1"],
"age_max":64,
"age_min":13,
"geo_locations":{"countries":["IN","CN","GB","ZA","RU"]}
},
"bid_info":"{
'ACTIONS':0,
'REACH':1500,
'CLICKS':0,
'SOCIAL':0
}",
"objective":"CANVAS_APP_INSTALLS"
}
Error:
Please include a value for 'user_os' or 'user_device' in ad targeting spec.|Exception|1487504