floatinghotpot / cordova-plugin-facebookads

Cordova/PhoneGap plugin for Facebook Audience Network Ads
65 stars 71 forks source link

AD Position problem #10

Open gant02 opened 9 years ago

gant02 commented 9 years ago

Hello,

I updated this plugin and it seems that there is a problem with the AD Position parameters. In fact "FacebookAds.showBanner(8);" doesn't work anymore. It doesn't show the banner at all. If I remove the position "8" it works but at the top.

The only solution that i found is to configure autoshow at top then showBanner at bottom. It works but I have a white rectangular at the top then at the bottom.

Here is my configuration:

FacebookAds.createBanner({ adId: facebookadsid.banner,
position:FacebookAds.AD_POSITION.TOP_CENTER, deviceHash: '', isTesting: false, // receiving test ad autoShow: true });

document.addEventListener('onAdLoaded', function(){ FacebookAds.showBanner(8); });

If I define the position inside the createBanner function to FacebookAds.AD_POSITION.BOTTOM_CENTER, I see no ads.

Can you check it?

Thanks,

Sandy

gant02 commented 9 years ago

In fact, I have the same problem with the previsous version (3.23.1). It seems to be linked with the cordova version 5.x. No problem with the same code with version 4.x.

ersingencturk commented 9 years ago

i have the same problem but just only for IOS when a deploy build, strangely development builds working fine also android seems to work fine. banner loads but not visible, I also use it like: FacebookAds.showBanner(8);

stromrv commented 8 years ago

I have the same problem also on Android with Cordova 5.x. Impossible to show facebook banner ads in the bottom of the app. The admob plugin is working fine with the same configuration.

jason-engage commented 8 years ago

I'm also having issues getting FacebookAds to show android banners. The ad loaded event is firing correctly but nothing is showing up on screen. The code is working fine on IOS.