cordova-plugin-facebookads icon indicating copy to clipboard operation
cordova-plugin-facebookads copied to clipboard

"createNativeAd" executed but "onAdLoaded" event never get fired.

Open shkhalid opened this issue 7 years ago • 3 comments

I am trying to implement native ads. createNativeAd is working fine. But onAdLoaded never get fired.

FacebookAds.createNativeAd('XXXXXX_XXXXXX',(success)=>{
         alert('Native Ad Created');   // 
  },error=>{
          alert("Error :"+error);
  });

// Never Fired

document.addEventListener('onAdLoaded',function(data) {
       alert( JSON.stringify(data) );
 });

shkhalid avatar Oct 26 '17 07:10 shkhalid

I had the same problem, but only in development. I did not change the code recently and the last time I worked on it, this event was triggering well and the test mechanism was working properly. Can edge effects appear using other plugins like cordova-plugin-admobpro or other mediation plugins? Because I use these in my project.

lycwed avatar Nov 07 '17 12:11 lycwed

Same problem here, removed a revmob and admob plugin but the behavior stays. Callbacks are called with "OK" but no "onAdLoaded" event gets fired. Also nothing happens on the network stack. Tried nativeAds and bannerAds Any idea would be great!

Using Ionic 3 with cordova-plugin-facebookads: 4.23.2 @

Cotspheer avatar Dec 06 '17 21:12 Cotspheer

Any solution for this problem ? I am also facing same issue

Anand1907 avatar Feb 14 '18 08:02 Anand1907