You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to Google Mobile Ads SDK Developers
In my project, I'm using Anchored Adaptive Banner AdSize. The key code is as follows:
DisplayMetrics outMetrics = Resources.getSystem().getDisplayMetrics(); float widthPixels = outMetrics.widthPixels;
float density = outMetrics.density;
int adWidth = (int) (widthPixels / density)
AdView adView = new AdView(context); adView.setAdSize(AdSize.getCurrentOrientationAnchoredAdaptiveBannerAdSize(ConfigApplication.getContext(), adWidth))
In the production environment, we have found that: After checking with the tool Layout Inspector, it was found that:
Sometimes the width of the banner ad view (adView) being displayed is smaller than the screen width.
Sometimes the adView width is normal, but the content inside it is smaller than the screen width and is not centered.