Giter Club home page Giter Club logo

Comments (7)

SurajShettigar avatar SurajShettigar commented on May 26, 2024
  1. The background color of Native Ads can be changed through backgroundColor property of FacebookNativeAd widget.

  2. You can implement your own loading indicator and show and hide the indicator based on listener result.
    For example:

FacebookNativeAd(
        adType: NativeAdType.NATIVE_AD,
        width: double.infinity,
        height: 300,
        backgroundColor: Colors.blue,
        listener: (result, value) {
          if(result == NativeAdResult.LOADED)
            showProgress = false;
        },
      );

Then based off of showProgress value, you could show or hide a progress indicator widget.

  1. I am not exactly clear on what you mean when you say that Ads won't show if Facebook app is not installed. I don't think you need Facebook app installed on the device to use Facebook Audience Network monetization for your app.

from facebook_audience_network.

karnadii avatar karnadii commented on May 26, 2024

@SurajShettigar

  1. I am seeing some black/grey color before the ad is loaded

from facebook_audience_network.

SurajShettigar avatar SurajShettigar commented on May 26, 2024

Can you show the code snippet of the Ad?

from facebook_audience_network.

karnadii avatar karnadii commented on May 26, 2024
Container(
          margin: EdgeInsets.only(bottom: 10.0),
          child: FacebookNativeAd(
            placementId: "YOUR_PLACEMENT_ID",
            adType: NativeAdType.NATIVE_BANNER_AD,
            bannerAdSize: NativeBannerAdSize.HEIGHT_100,
            width: double.infinity,
            backgroundColor: Colors.white,
            titleColor: Colors.black,
            descriptionColor: Colors.grey,
            buttonColor: Colors.blue,
            buttonTitleColor: Colors.white,
            buttonBorderColor: Colors.white,
            listener: (result, value) {
              print("Native Ad: $result --> $value");
            },
          ),
        ),

almost the same with your example, is this flutter issue and not his plugin?

from facebook_audience_network.

SurajShettigar avatar SurajShettigar commented on May 26, 2024

I don't think it is a plugin issue because nowhere i have set the background color as grey.

native

As you can see in the above gif, the buttons momentarily are grey in the beginning and then set to the custom color. So i think Facebook Audience Network API is handling the color before it sets our custom color. And that is beyond our scope.

from facebook_audience_network.

karnadii avatar karnadii commented on May 26, 2024

I have tested in 2 different devices, it appears only in certain device only,
and I also tested, FAN will show ads only if facebook apps is installed in the devices.

from facebook_audience_network.

john990 avatar john990 commented on May 26, 2024

I meet same problem.

from facebook_audience_network.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.