Google Ads MediaView not correctly resizing height to wrap_content when displaying image

后端 未结 5 443
情歌与酒
情歌与酒 2020-12-31 04:54

I got an email from AdMob today saying:

Change to native ads policy: Native ads will require MediaView to render the video or main image asset. In a

5条回答
  •  青春惊慌失措
    2020-12-31 05:24

    If implementing Advanced Native Ads, use "imageScaleType" property of MediaView as suggested here in the official docs https://developers.google.com/admob/android/native/advanced#setting_imagescaletype

    adView.mediaView.setImageScaleType(ImageView.ScaleType.CENTER_CROP)

    or any other ScaleType as per requirement.

提交回复
热议问题