Comments (7)
-
The background color of Native Ads can be changed through
backgroundColor
property ofFacebookNativeAd
widget. -
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.
- 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.
from facebook_audience_network.
Can you show the code snippet of the Ad?
from facebook_audience_network.
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.
I don't think it is a plugin issue because nowhere i have set the background color as grey.
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.
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.
I meet same problem.
from facebook_audience_network.
Related Issues (20)
- Undefined symbols for architecture arm64 HOT 1
- Deprecated version of the Android embedding! HOT 2
- Multiple Interstitial Ads
- Does it still work.(Bidding) HOT 7
- Has this project been abandoned? HOT 7
- The plugin `facebook_audience_network` uses a deprecated version of the Android embedding. HOT 4
- Undefined symbols for architecture arm64: HOT 1
- Could not resolve com.facebook.android:audience-network-sdk:6.+. Received status code 502 from server: Bad Gateway HOT 3
- Version Solving Failed
- Native Banner Ads and Banner Ads background or Title color is not change.
- App crash on release mode - Banner Ad
- did facebook_audience_network support Android V2 embedding ??
- Plugin not compatible with url_launcher
- Native Ad error but no error code HOT 1
- Use of the REQUEST_INSTALL_PACKAGES permission
- Did fan supports bidding with admob HOT 2
- Banner ad not showing
- IOS device not show test and HOT 6
- Rewarded Ad: RewardedVideoAdResult.ERROR HOT 2
- it's showing no fill on banner ad .
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from facebook_audience_network.