Giter Club home page Giter Club logo

Comments (8)

SachinGanesh avatar SachinGanesh commented on May 26, 2024 2

Hi, Thank you for the feedback. We have added a feature to collapse the empty ad space and expand it only if the ad is loaded. We will be pushing the update in a day to two.

from facebook_audience_network.

Omi231 avatar Omi231 commented on May 26, 2024

@SachinGanesh Thank you so much. Waiting for the update...

from facebook_audience_network.

SachinGanesh avatar SachinGanesh commented on May 26, 2024

Hi. This feature is now available through ios branch. If everything works fine we will release it through pub.dev

You can use the below dependecy to test the integration

facebook_audience_network: 
    git: 
      url: [email protected]:dreamsoftin/facebook_audience_network.git
      ref: ios

from facebook_audience_network.

Omi231 avatar Omi231 commented on May 26, 2024

Hi, the ios branch package is adding ~200% blank space below the NativeBanner.

from facebook_audience_network.

henoktadesse avatar henoktadesse commented on May 26, 2024

I was using page view (one item per page) so the collapse feature wasn't as useful for me but I came with this using stack, you can put loading behind the native ad so when the ad finishes loading it covers the loading progress indicator.

                Stack(
                  children: [
                    Align(alignment : Alignment.center,child: CircularProgressIndicator()),
                    FacebookNativeAd(
                      placementId: "placement_id",
                      adType: NativeAdType.NATIVE_AD,
                      width: double.infinity,
                      height: MediaQuery.of(context).size.height/2,
                      backgroundColor: Colors.white,
                      titleColor: Colors.black87,
                      descriptionColor: Colors.black87,
                      buttonColor: Colors.deepOrange.withOpacity(0.6),
                      buttonTitleColor: Colors.white,
                      buttonBorderColor: Colors.deepOrange,
                      keepAlive: true, 
                      keepExpandedWhileLoading: false,
                      expandAnimationDuraion: 300, 
                      listener: (NativeAdResult result, value) {
                        print("Native Ad: $result --> $value");
                      },
                    ),
                  ],
                )

from facebook_audience_network.

Omi231 avatar Omi231 commented on May 26, 2024

@henoktadesse What about Native Banner ads? After the update, native banner ads add some extra space under the ad. I am not able to understand the reason.

from facebook_audience_network.

SachinGanesh avatar SachinGanesh commented on May 26, 2024

@Omi231 Please share a screenshot to show the issue

from facebook_audience_network.

Omi231 avatar Omi231 commented on May 26, 2024

I fixed it by passing height property in NativeAd() widget. This is not mentioned in documentation.

Thank you for the good work. Please improve expandAnimation if possible. It looks glitchy thats why I opted to not use it.

Stay blessed!

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.