DFP not serving Ads for Google Nexus7 using SmartBanner

我只是一个虾纸丫 提交于 2019-12-11 02:06:32

问题


I am using DFP in Android. It is delivering ads for mobile emulators but it is not delivering the ads for Google Nexus 7 (1920x1200 with 320 dpi) device.

Below is the code which I am using.

final FrameLayout adLayout = (FrameLayout) activity.findViewById(R.id.frame_layout_adView);
        PublisherAdView adView = new PublisherAdView(activity);
        adView.setAdUnitId(adUnitId);
        adView.setAdSizes(AdSize.SMART_BANNER);
        adView.setAdListener(new DFPAdvertisementListener(adView, adLayout)); //Set the AdListener to listen for standard ad events.
        adLayout.addView(adView); //Add the adView to it.
        adView.loadAd(new PublisherAdRequest.Builder().build());

Order Sizes which I am using in DFP server is below.

320x50 360x50 468x50 720x107 728x90 768x90 800x90

But none of them is delivering in the app. It simply says noFill from server.

But the ads are delivering if I test in the Google Nexus 7 (1920x1200 with 240 dpi).

Please advice me to fix it.


回答1:


I have fixed this problem. The real issue is The nexus and Kindle fire devices are converting the uploaded images into 2x density. Then it gives the exact support.

Cheers.



来源:https://stackoverflow.com/questions/23953400/dfp-not-serving-ads-for-google-nexus7-using-smartbanner

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!