Skip to content
This repository has been archived by the owner on Mar 12, 2022. It is now read-only.

[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. #71

Open
ramtinq opened this issue Jun 2, 2021 · 14 comments · May be fixed by #125
Labels
help wanted Extra attention is needed iOS Native Ad Issue or pull request related to Native Ad

Comments

@ramtinq
Copy link
Contributor

ramtinq commented Jun 2, 2021

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

@3eif
Copy link

3eif commented Jun 2, 2021

Same issue as well

@bdlukaa bdlukaa added help wanted Extra attention is needed iOS Native Ad Issue or pull request related to Native Ad labels Jun 2, 2021
@bdlukaa
Copy link
Owner

bdlukaa commented Jun 2, 2021

Please see #58 and #31

@bdlukaa
Copy link
Owner

bdlukaa commented Jun 6, 2021

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.

@FatihTirek
Copy link

This issue also happening on android.

@bdlukaa
Copy link
Owner

bdlukaa commented Jun 9, 2021

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

@FatihTirek
Copy link

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

@bdlukaa
Copy link
Owner

bdlukaa commented Jul 7, 2021

Do you still see this issue?

@FatihTirek
Copy link

FatihTirek commented Jul 28, 2021

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

@bdlukaa
Copy link
Owner

bdlukaa commented Jul 28, 2021

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

@FatihTirek
Copy link

FatihTirek commented Jul 29, 2021

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

@a43501
Copy link

a43501 commented Aug 7, 2021

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

@bdlukaa
Copy link
Owner

bdlukaa commented Aug 7, 2021

Does this happen on android?

@a43501
Copy link

a43501 commented Aug 8, 2021

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

@EternalYouth29
Copy link

EternalYouth29 commented Aug 24, 2021

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

@3eif 3eif linked a pull request Dec 22, 2021 that will close this issue
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
help wanted Extra attention is needed iOS Native Ad Issue or pull request related to Native Ad
Projects
None yet
Development

Successfully merging a pull request may close this issue.

6 participants