native_admob_flutter
native_admob_flutter copied to clipboard
[iOS] <Google> <Google:HTML> Not all asset views lie inside the native ad view. This indicates an integration problem. Such implementations will not be supported in the future. Please make sure that all native ad assets are rendered inside the native ad view.
This warning is shown for the first NativeAd in the example app:
<Google> <Google:HTML> Not all asset views lie inside the native ad view. This indicates an integration problem. Such implementations will not be supported in the future. Please make sure that all native ad assets are rendered inside the native ad view.
In addition to that, the first 2 NativeAds in the example are displayed without buttons, although we've specified buttons for them in the example code:

Same issue as well
Please see #58 and #31
In addition to that, the first 2 NativeAds in the example are displayed without buttons, although we've specified buttons for them in the example code:
This may be because AdExpanded isn't supported on iOS.
This issue also happening on android.
Please make sure all ad assets (images, headline, body) are inside of the ad. None of the assets should be clipped.
This is likely a duplicate of #37
Please make sure the ad is bigger than 32x32
@bdlukaa But I'm using default constructor adBannerLayoutBuilder and it shows up
Do you still see this issue?
@bdlukaa Sorry for delay. Yeah I'm still seeing this. Also I'm seeing this as well:
Google:HTML Full screen native media view size has been detected to be 0x0. This size seems to be too small, and might indicate a problem with your SDK implementation. Note that media views slots that have a width or height smaller than 120x120 will be demonetized in the future. Please make sure the full screen native media view has sufficiently large area.
Wasn't native ad media property optional? Right now I'm using it as a banner.
Google:HTML Full screen native media view size has been detected to be 0x0. This size seems to be too small, and might indicate a problem with your SDK implementation. Note that media views slots that have a width or height smaller than 120x120 will be demonetized in the future. Please make sure the full screen native media view has sufficiently large area.
@FatihTirek please make sure you're not setting the ad height or width to 0 (by wrapping it in a container or something) to hide the ad.
Wasn't native ad media property optional?
it is
@bdlukaa I'm pretty sure I didn't set any of them to 0. Right now ad has 50px height and width null ( Auto Expand ). Also I copied the code from my old app and it had no issue like this. Everything exactly same as old one. Maybe it can be related to library version? Because I'm using latest version in my new app and old one was using 1.3.3.
Edited: I recently looked at my old app and it shows the same thing. But that didn't exist before. I'm confused.
It seems unlikely that this issue is a duplicate of #37. Please see here: https://groups.google.com/g/google-admob-ads-sdk/c/sSK08cKZVe8/m/4N1An-sRAgAJ They said: "As this appears to be more of an issue with our system (Admob) just not recognizing the dimensions of the ad."
Does this happen on android?
@bdlukaa, that's true, even with native_ads.dart example.
I/Ads (20549): Received log message: Google:HTML Full screen native media view size has been detected to be 0x0. This size seems to be too small, and might indicate a problem with your SDK implementation. Note that media views slots that have a width or height smaller than I/Ads (20549): 120x120 will be demonetized in the future. Please make sure the full screen I/Ads (20549): native media view has sufficiently large area.
My temporary solution:
put media at the bottom
AdLayoutBuilder get adDefaultLayoutBuilder => (ratingBar, media, icon, headline,
advertiser, body, price, store, attribuition, button) {
return AdLinearLayout(
padding: EdgeInsets.all(6),
height: MATCH_PARENT,
// The first linear layout width needs to be extended to the
// parents height, otherwise the children won't fit good
width: MATCH_PARENT,
decoration: AdDecoration(backgroundColor: Color(0xFF111111)),
children: [
AdLinearLayout(
children: [
icon,
AdLinearLayout(children: [
headline,
AdLinearLayout(
children: [attribuition, advertiser, ratingBar],
orientation: HORIZONTAL,
width: MATCH_PARENT,
),
], margin: EdgeInsets.only(left: 4)),
],
gravity: LayoutGravity.center_horizontal,
width: WRAP_CONTENT,
orientation: HORIZONTAL,
margin: EdgeInsets.only(top: 0),
),
media,
],
);
};
set AdMediaView height to 120
NativeAd(
height: 60,
builder: (context, child) {
return Material(
elevation: 8,
child: child,
);
},
buildLayout: adDefaultLayoutBuilder,
loading: Text(''),
error: Text(''),
icon: AdImageView(padding: EdgeInsets.only(left: 0)),
headline: AdTextView(
style: TextStyle(
color: Colors.white.withOpacity(0.8),
)),
advertiser: AdTextView(
style: TextStyle(
color: Colors.white.withOpacity(0.7),
)),
body: AdTextView(
style: TextStyle(
color: Colors.white.withOpacity(0.8),
)),
media: AdMediaView(
height: 120,
width: MATCH_PARENT,
),
attribution: AdTextView(
width: WRAP_CONTENT,
height: WRAP_CONTENT,
padding: EdgeInsets.symmetric(horizontal: 2, vertical: 0),
margin: EdgeInsets.only(right: 4),
maxLines: 1,
text: 'Ad',
decoration: AdDecoration(
borderRadius: AdBorderRadius.all(10),
border: BorderSide(color: Colors.black, width: 1),
backgroundColor: primaryColor,
),
style: TextStyle(
color: Colors.white.withOpacity(0.8),
fontWeight: FontWeight.bold),
),
)
@bdlukaa Sorry for delay. Yeah I'm still seeing this. Also I'm seeing this as well:
Google:HTML Full screen native media view size has been detected to be 0x0. This size seems to be too small, and might indicate a problem with your SDK implementation. Note that media views slots that have a width or height smaller than 120x120 will be demonetized in the future. Please make sure the full screen native media view has sufficiently large area.
Wasn't native ad media property optional? Right now I'm using it as a banner.
I am also facing this issue. How is it possible to have a 120x120 media size for a banner size Ads?