使用SmartBanner DFP广告未投放的谷歌Nexus7 [英] DFP not serving Ads for Google Nexus7 using SmartBanner
问题描述
我在Android中使用DFP。它针对移动模拟器提供广告,但它不是为谷歌Nexus 7
( 1920×1200
与<$ C提供的广告$ C> 320 DPI )设备。
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.
下面是code,我现在用的。
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());
我正在使用DFP服务器,订单规模以下是
Order Sizes which I am using in DFP server is below.
为320x50
360x50的
468x50
720x107
尺寸为728x90
768x90
800x90
但他们没有在应用程序中提供。它只是说NOFILL从服务器。
But none of them is delivering in the app. It simply says noFill from server.
但是,如果我在谷歌Nexus 7测试广告是否交付( 1920×1200
与 240 DPI
)。
But the ads are delivering if I test in the Google Nexus 7 (1920x1200
with 240 dpi
).
请咨询我解决它。
推荐答案
我已经解决了这个问题。真正的问题是Nexus和Kindle Fire的设备转换上传的图片至2x密度。然后,它会给出确切的支持。
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.
干杯。
这篇关于使用SmartBanner DFP广告未投放的谷歌Nexus7的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!