FacebookAds.showBannerAtXY(100, 100) is not display ad in the app.
Below is the code I'm using.
I use admob-pro and facebookads plugin.
Using admonpro I'm display banner at bottom. I need to display few ads between the divs so trying to use showBannerAtXY but it is working. While creatingating the banner i'm also having the option overlap:true.
`var ad_units = {
ios : {
banner:"585922791509778_945122628928024",
interstitial:"582271791509778_954635904643363",
nativeAd:"585221791509778_954536797986607"
},
android : {
banner:"585972291509778_945122628928024",
interstitial:"585221791509778_954635904643363",
nativeAd:"585922791509778_954536797986607"
}
};
// select the right Ad Id according to platform
var adid = (/(android)/i.test(navigator.userAgent)) ? ad_units.android : ad_units.ios;
// set your hashed device id if testing on device (optional)
`
I can even see below error while inspecting the webview in chrome. Also pls note that interstitial ad is working
//FacebookAds.prepareInterstitial( {adId:adid.interstitial, autoShow:true} );
Update: Above is displaying the Facebook banner ad at bottom along with Admob, But I expect to display ad at pixel 100, 100
FacebookAds.showBannerAtXY(100, 100) is not display ad in the app. Below is the code I'm using. I use admob-pro and facebookads plugin. Using admonpro I'm display banner at bottom. I need to display few ads between the divs so trying to use showBannerAtXY but it is working. While creatingating the banner i'm also having the option overlap:true.
`var ad_units = { ios : { banner:"585922791509778_945122628928024", interstitial:"582271791509778_954635904643363", nativeAd:"585221791509778_954536797986607" }, android : { banner:"585972291509778_945122628928024", interstitial:"585221791509778_954635904643363", nativeAd:"585922791509778_954536797986607" } }; // select the right Ad Id according to platform var adid = (/(android)/i.test(navigator.userAgent)) ? ad_units.android : ad_units.ios; // set your hashed device id if testing on device (optional)
` I can even see below error while inspecting the webview in chrome. Also pls note that interstitial ad is working //FacebookAds.prepareInterstitial( {adId:adid.interstitial, autoShow:true} );
Update: Above is displaying the Facebook banner ad at bottom along with Admob, But I expect to display ad at pixel 100, 100
XMLHttpRequest cannot load https://m.facebook.com/?refsrc=https%3A%2F%2Fwww.facebook.com%2F&_rdr#?analog=%7B%7D. No 'Access-Control-Allow-Origin' header is present on the requested resource. Origin 'https://www.facebook.com' is therefore not allowed access.