floatinghotpot / cordova-plugin-facebookads

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

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

Open shkhalid opened 6 years ago

shkhalid commented 6 years ago

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) );
  });
lycwed commented 6 years ago

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.

Cotspheer commented 6 years ago

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 @

Anand1907 commented 6 years ago

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