1

嘿伙计们,对不起,我的第三个问题属于这个主题,但它没有开始工作。

这是我的结果……每一次。(包括所有罐子/适配器) - 它也会导致“有效适配器,调用句柄”,但它也总是说“失败

11-22 13:14:02.634: DEBUG/AdWhirl SDK(2621): Will call rotateAd() in 30 seconds
11-22 13:14:32.634: INFO/AdWhirl SDK(2621): Rotating Ad
11-22 13:14:32.634: DEBUG/AdWhirl SDK(2621): Dart is <48.07955443549056> of <100.0>
11-22 13:14:32.644: DEBUG/AdWhirl SDK(2621): Showing ad:
11-22 13:14:32.644: DEBUG/AdWhirl SDK(2621):     nid: 7e779e360983412dad4d46c180a3493c
11-22 13:14:32.644: DEBUG/AdWhirl SDK(2621):     name: admob
11-22 13:14:32.644: DEBUG/AdWhirl SDK(2621):     type: 1
11-22 13:14:32.644: DEBUG/AdWhirl SDK(2621):     key: a14c9xxxx1e3aacf01
11-22 13:14:32.644: DEBUG/AdWhirl SDK(2621):     key2: 
11-22 13:14:32.644: DEBUG/AdWhirl SDK(2621): Valid adapter, calling handle()
11-22 13:14:32.854: DEBUG/AdWhirl SDK(2621): AdMob failure
11-22 13:14:32.854: ERROR/AdWhirl SDK(2621): nextRation is null!
11-22 13:14:32.854: DEBUG/AdWhirl SDK(2621): Will call rotateAd() in 30 seconds
11-22 13:15:02.854: INFO/AdWhirl SDK(2621): Rotating Ad
11-22 13:15:02.854: DEBUG/AdWhirl SDK(2621): Dart is <31.576009879080946> of <100.0>
11-22 13:15:02.864: DEBUG/AdWhirl SDK(2621): Showing ad:
11-22 13:15:02.864: DEBUG/AdWhirl SDK(2621):     nid: 7e779e360983412dad4d46c180a3493c
11-22 13:15:02.864: DEBUG/AdWhirl SDK(2621):     name: admob
11-22 13:15:02.864: DEBUG/AdWhirl SDK(2621):     type: 1
11-22 13:15:02.864: DEBUG/AdWhirl SDK(2621):     key: a14cxxxxxacf01
11-22 13:15:02.864: DEBUG/AdWhirl SDK(2621):     key2: 
11-22 13:15:02.864: DEBUG/AdWhirl SDK(2621): Valid adapter, calling handle()
11-22 13:15:03.114: DEBUG/AdWhirl SDK(2621): AdMob failure
11-22 13:15:03.114: ERROR/AdWhirl SDK(2621): nextRation is null!
11-22 13:15:03.114: DEBUG/AdWhirl SDK(2621): Will call rotateAd() in 30 seconds
11-22 13:15:33.117: INFO/AdWhirl SDK(2621): Rotating Ad
11-22 13:15:33.117: DEBUG/AdWhirl SDK(2621): Dart is <74.7807305713731> of <100.0>
11-22 13:15:33.117: DEBUG/AdWhirl SDK(2621): Showing ad:
11-22 13:15:33.117: DEBUG/AdWhirl SDK(2621):     nid: 90728xxxx734a2669b1c15ebbfd9
11-22 13:15:33.117: DEBUG/AdWhirl SDK(2621):     name: zestadz
11-22 13:15:33.117: DEBUG/AdWhirl SDK(2621):     type: 20
11-22 13:15:33.117: DEBUG/AdWhirl SDK(2621):     key: 14131C047A50414B4Exxxxxxx146584xxx56838229
11-22 13:15:33.117: DEBUG/AdWhirl SDK(2621):     key2: 
11-22 13:15:33.117: DEBUG/AdWhirl SDK(2621): Valid adapter, calling handle()
11-22 13:15:36.274: DEBUG/AdWhirl SDK(2621): ZestADZ failure
11-22 13:15:36.274: ERROR/AdWhirl SDK(2621): nextRation is null!
11-22 13:15:36.274: DEBUG/AdWhirl SDK(2621): Will call rotateAd() in 30 seconds

我的代码,曾经这样做:

AdWhirlTargeting.setTestMode(false);
AdManager.setTestDevices( new String[] { "5B7D2A0178D212B6E94E22A15725A3D3" } ); //my mobile

RelativeLayout layout = (RelativeLayout) this.findViewById(R.id.widget54xx);
AdWhirlLayout adWhirlLayout = new AdWhirlLayout(this, "548feca89xxadWhirlIDf482a");
adWhirlLayout.setAdWhirlInterface(this);

final int DIP_WIDTH = 320; 
final int DIP_HEIGHT = 52; 
final float DENSITY = getResources().getDisplayMetrics().density; 
int scaledWidth = (int) (DENSITY * DIP_WIDTH + 0.5f); 
int scaledHeight = (int) (DENSITY * DIP_HEIGHT + 0.5f); 

RelativeLayout.LayoutParams adWhirlLayoutParams =
 new RelativeLayout.LayoutParams(scaledWidth, scaledHeight);
adWhirlLayout.setBackgroundColor(Color.BLACK); //just for debug

layout.addView(adWhirlLayout, adWhirlLayoutParams);
layout.invalidate();

布局和一切似乎都很好。还有高度,应该可以工作(我的设备上的结果为 52px),我真的不知道,有什么问题。

最好的问候,我会非常感谢任何类型的小费,CV /迈克

4

1 回答 1

1

如果您的应用程序没有可用的广告,我认为这就是结果。由于每个“最小的应用程序”都有广告,我真的不知道为什么我的应用程序没有任何广告可用(大约 7000 个用户)

……不知道。

我通过 adwhirl 更改为千禧广告网络(同时使用两者),它总是提供广告。可惜这些广告不如 admob 广告。但至少有广告。

祝你好运,也很高兴获得有关 admob 广告填充率的提示。

于 2011-01-13T15:35:11.097 回答