native_admob_flutter icon indicating copy to clipboard operation
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.

Open ramtinq opened this issue 4 years ago • 14 comments
trafficstars

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:

Simulator Screen Shot - iPhone 12 Pro Max - 2021-06-02 at 18 34 17

ramtinq avatar Jun 02 '21 14:06 ramtinq

Same issue as well

3eif avatar Jun 02 '21 14:06 3eif

Please see #58 and #31

bdlukaa avatar Jun 02 '21 14:06 bdlukaa

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.

bdlukaa avatar Jun 06 '21 19:06 bdlukaa

This issue also happening on android.

FatihTirek avatar Jun 08 '21 12:06 FatihTirek

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 avatar Jun 09 '21 00:06 bdlukaa

@bdlukaa But I'm using default constructor adBannerLayoutBuilder and it shows up

FatihTirek avatar Jun 09 '21 08:06 FatihTirek

Do you still see this issue?

bdlukaa avatar Jul 07 '21 19:07 bdlukaa

@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.

FatihTirek avatar Jul 28 '21 10:07 FatihTirek

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 avatar Jul 28 '21 12:07 bdlukaa

@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.

FatihTirek avatar Jul 29 '21 10:07 FatihTirek

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."

a43501 avatar Aug 07 '21 04:08 a43501

Does this happen on android?

bdlukaa avatar Aug 07 '21 20:08 bdlukaa

@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),
              ),
            )

a43501 avatar Aug 08 '21 02:08 a43501

@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?

EternalYouth29 avatar Aug 24 '21 12:08 EternalYouth29