dreamsoftin / facebook_audience_network

Flutter Facebook Audience Network
https://pub.dartlang.org/packages/facebook_audience_network/
MIT License
154 stars 93 forks source link

Facebook AD is not showing , error code 1001 #105

Open jm90hong opened 3 years ago

jm90hong commented 3 years ago

Hi! I'm developing facebook audience network using this plugin. Everythings have been accepted in facebook ad dashboard site.\ But app not showing Native Ad.

Here is My code

  @override
  void initState() {
    // TODO: implement initState
    super.initState();
    FacebookAudienceNetwork.init(
      //testingId: "bla-bla", //optional
    );
  }

 @override
  Widget build(BuildContext context) {
    return Scaffold(
      body: Column(
        mainAxisAlignment: MainAxisAlignment.center,
        children: <Widget>[
          const Text('Facebook AD'),
          Container(
            alignment: const Alignment(0.5, 1),
            child: FacebookNativeAd(
              placementId: 'bla-bla',
              adType: NativeAdType.NATIVE_AD,
              height: 300,
              backgroundColor: Colors.orange,
              titleColor: Colors.white,
              descriptionColor: Colors.white,
              buttonColor: Colors.orange,
              buttonTitleColor: Colors.white,
              buttonBorderColor: Colors.white,
              keepAlive: true, //set true if you do not want adview to refresh on widget rebuild
              keepExpandedWhileLoading: false, // set false if you want to collapse the native ad view when the ad is loading
              expandAnimationDuraion: 300, //in milliseconds. Expands the adview with animation when ad is loaded
              listener: (result, value) {
                print("Native Ad: $result --> $value");
              },
            ),
          )
        ],
      ),
    );
  }
}
vishptl3190 commented 2 years ago

I am also facing this same issue at first instance ads were showing properly using testingid but now it frequently showing no fill and ad open too frequently error

plokmij commented 2 years ago

I also facing this issue. Works perfectly with test ads but 0 impressions in production. Everytime I get 1001.

erperejildo commented 2 years ago

any solutions? I get this error in example project