2011-07-12 50 views
0

我在我的應用程序中實現了AdWhirl。 AdWhirl應顯示MillennialMedia和AdMob廣告。廣告應顯示30秒。但AdWhirl經常嘗試旋轉廣告。AdWhirl展示廣告(MillennialMedia和AdMob)

07-12 15:35:08.193: DEBUG/AdWhirl SDK(3099): Showing ad: 
07-12 15:35:08.193: DEBUG/AdWhirl SDK(3099):  nid: 867085576acb41328c1ba5f9d9b57f02 
07-12 15:35:08.193: DEBUG/AdWhirl SDK(3099):  name: millennial 
07-12 15:35:08.193: DEBUG/AdWhirl SDK(3099):  type: 6 
07-12 15:35:08.193: DEBUG/AdWhirl SDK(3099):  key: 36973 
07-12 15:35:08.193: DEBUG/AdWhirl SDK(3099):  key2: 
07-12 15:35:08.193: DEBUG/AdWhirl SDK(3099): Valid adapter, calling handle() 
07-12 15:35:08.213: INFO/MillennialMediaAdSDK(3099): No incomplete downloads. 
07-12 15:35:08.213: INFO/MillennialMediaAdSDK(3099): Last ad name is null. Call for new ad. 
07-12 15:35:08.223: INFO/MillennialMediaAdSDK(3099): Making ad request 
07-12 15:35:08.223: DEBUG/AdWhirl SDK(3099): Showing ad: 
07-12 15:35:08.223: DEBUG/AdWhirl SDK(3099):  nid: 867085576acb41328c1ba5f9d9b57f02 
07-12 15:35:08.223: DEBUG/AdWhirl SDK(3099):  name: millennial 
07-12 15:35:08.223: DEBUG/AdWhirl SDK(3099):  type: 6 
07-12 15:35:08.223: DEBUG/AdWhirl SDK(3099):  key: 36973 
07-12 15:35:08.223: DEBUG/AdWhirl SDK(3099):  key2: 
07-12 15:35:08.223: DEBUG/AdWhirl SDK(3099): Valid adapter, calling handle() 
07-12 15:35:08.233: INFO/MillennialMediaAdSDK(3099): No incomplete downloads. 
07-12 15:35:08.243: INFO/MillennialMediaAdSDK(3099): Last ad name is null. Call for new ad. 
07-12 15:35:08.253: INFO/MillennialMediaAdSDK(3099): Making ad request 
07-12 15:35:08.253: DEBUG/AdWhirl SDK(3099): Showing ad: 
07-12 15:35:08.253: DEBUG/AdWhirl SDK(3099):  nid: 867085576acb41328c1ba5f9d9b57f02 
07-12 15:35:08.253: DEBUG/AdWhirl SDK(3099):  name: millennial 
07-12 15:35:08.253: DEBUG/AdWhirl SDK(3099):  type: 6 
07-12 15:35:08.253: DEBUG/AdWhirl SDK(3099):  key: 36973 
07-12 15:35:08.253: DEBUG/AdWhirl SDK(3099):  key2: 
07-12 15:35:08.253: DEBUG/AdWhirl SDK(3099): Valid adapter, calling handle() 
07-12 15:35:08.263: INFO/MillennialMediaAdSDK(3099): No incomplete downloads. 
07-12 15:35:08.273: INFO/MillennialMediaAdSDK(3099): Last ad name is null. Call for new ad. 
07-12 15:35:08.273: INFO/MillennialMediaAdSDK(3099): Making ad request 
07-12 15:35:08.283: DEBUG/AdWhirl SDK(3099): Showing ad: 
07-12 15:35:08.283: DEBUG/AdWhirl SDK(3099):  nid: 867085576acb41328c1ba5f9d9b57f02 
07-12 15:35:08.283: DEBUG/AdWhirl SDK(3099):  name: millennial 
07-12 15:35:08.283: DEBUG/AdWhirl SDK(3099):  type: 6 
07-12 15:35:08.283: DEBUG/AdWhirl SDK(3099):  key: 36973 
07-12 15:35:08.283: DEBUG/AdWhirl SDK(3099):  key2: 
07-12 15:35:08.283: DEBUG/AdWhirl SDK(3099): Valid adapter, calling handle() 
07-12 15:35:08.293: INFO/MillennialMediaAdSDK(3099): No incomplete downloads. 
07-12 15:35:08.303: INFO/MillennialMediaAdSDK(3099): Last ad name is null. Call for new ad. 
07-12 15:35:08.303: INFO/MillennialMediaAdSDK(3099): Making ad request 
07-12 15:35:08.373: WARN/MediaPlayer(3099): info/warning (1, 44) 
07-12 15:35:08.463: DEBUG/dalvikvm(3099): GC freed 3121 objects/172616 bytes in 51ms 
07-12 15:35:08.493: INFO/MediaPlayer(3099): Info (1,44) 
07-12 15:35:08.503: INFO/global(3099): Default buffer size used in BufferedReader constructor. It would be better to be explicit if an 8k-char buffer is required. 
07-12 15:35:08.503: DEBUG/AdWhirl SDK(3099): Millennial success 
07-12 15:35:08.503: DEBUG/AdWhirl SDK(3099): Will call rotateAd() in 30 seconds 
07-12 15:35:08.513: DEBUG/AdWhirl SDK(3099): Added subview 
07-12 15:35:08.523: DEBUG/AdWhirl SDK(3099): Pinging URL: http://met.adwhirl.com/exmet.php?appid=38bf6e85df2f40c0a796409186977dfd&nid=867085576acb41328c1ba5f9d9b57f02&type=6&uuid=7d1dd13a2fa91c0ad174cb69a11549a3&country_code=de_DE&appver=300&client=2 
07-12 15:35:08.533: INFO/global(3099): Default buffer size used in BufferedReader constructor. It would be better to be explicit if an 8k-char buffer is required. 
07-12 15:35:08.533: DEBUG/AdWhirl SDK(3099): Millennial success 
07-12 15:35:08.533: DEBUG/AdWhirl SDK(3099): Will call rotateAd() in 30 seconds 
07-12 15:35:08.653: DEBUG/dalvikvm(3099): GC freed 1985 objects/166920 bytes in 52ms 
07-12 15:35:08.663: INFO/global(3099): Default buffer size used in BufferedReader constructor. It would be better to be explicit if an 8k-char buffer is required. 
07-12 15:35:08.663: DEBUG/AdWhirl SDK(3099): Millennial success 
07-12 15:35:08.663: DEBUG/AdWhirl SDK(3099): Will call rotateAd() in 30 seconds 
07-12 15:35:08.673: INFO/global(3099): Default buffer size used in BufferedReader constructor. It would be better to be explicit if an 8k-char buffer is required. 
07-12 15:35:08.673: DEBUG/AdWhirl SDK(3099): Millennial success 
07-12 15:35:08.673: DEBUG/AdWhirl SDK(3099): Will call rotateAd() in 30 seconds 
07-12 15:35:08.703: DEBUG/AdWhirl SDK(3099): Added subview 
07-12 15:35:08.713: DEBUG/AdWhirl SDK(3099): Added subview 
07-12 15:35:08.713: DEBUG/AdWhirl SDK(3099): Added subview 
07-12 15:35:08.723: WARN/webcore(3099): skip viewSizeChanged as w is 0 
07-12 15:35:08.806: DEBUG/AdWhirl SDK(3099): Pinging URL: http://met.adwhirl.com/exmet.php?appid=38bf6e85df2f40c0a796409186977dfd&nid=867085576acb41328c1ba5f9d9b57f02&type=6&uuid=7d1dd13a2fa91c0ad174cb69a11549a3&country_code=de_DE&appver=300&client=2 
07-12 15:35:08.873: INFO/MillennialMediaAdSDK(3099): Millennial ad return success 
07-12 15:35:08.873: INFO/MillennialMediaAdSDK(3099): Millennial ad return success 
07-12 15:35:09.043: INFO/MillennialMediaAdSDK(3099): Millennial ad return success 
07-12 15:35:09.053: DEBUG/AdWhirl SDK(3099): Pinging URL: http://met.adwhirl.com/exmet.php?appid=38bf6e85df2f40c0a796409186977dfd&nid=867085576acb41328c1ba5f9d9b57f02&type=6&uuid=7d1dd13a2fa91c0ad174cb69a11549a3&country_code=de_DE&appver=300&client=2 
07-12 15:35:09.133: DEBUG/dalvikvm(3099): GC freed 4009 objects/757568 bytes in 55ms 
07-12 15:35:09.163: ERROR/MillennialMediaAdSDK(3099): The reference to the ad view was broken. 
07-12 15:35:09.293: DEBUG/dalvikvm(3099): GC freed 775 objects/822176 bytes in 51ms 
07-12 15:35:09.293: DEBUG/AdWhirl SDK(3099): Pinging URL: http://met.adwhirl.com/exmet.php?appid=38bf6e85df2f40c0a796409186977dfd&nid=867085576acb41328c1ba5f9d9b57f02&type=6&uuid=7d1dd13a2fa91c0ad174cb69a11549a3&country_code=de_DE&appver=300&client=2 
07-12 15:35:10.553: WARN/MediaPlayer(3099): info/warning (1, 44) 
07-12 15:35:10.553: INFO/MediaPlayer(3099): Info (1,44) 
07-12 15:35:12.713: WARN/MediaPlayer(3099): info/warning (1, 44) 
07-12 15:35:12.713: INFO/MediaPlayer(3099): Info (1,44) 
07-12 15:35:13.013: INFO/AdWhirl SDK(3099): Rotating Ad 
07-12 15:35:13.013: DEBUG/AdWhirl SDK(3099): Dart is <5.805535775904331> of <98.0> 
07-12 15:35:13.013: DEBUG/AdWhirl SDK(3099): Showing ad: 
07-12 15:35:13.013: DEBUG/AdWhirl SDK(3099):  nid: b44f46dac80e4d06be1760181025370b 
07-12 15:35:13.013: DEBUG/AdWhirl SDK(3099):  name: admob 
07-12 15:35:13.013: DEBUG/AdWhirl SDK(3099):  type: 1 
07-12 15:35:13.013: DEBUG/AdWhirl SDK(3099):  key: a14cffb2bf162f1 
07-12 15:35:13.013: DEBUG/AdWhirl SDK(3099):  key2: 
07-12 15:35:13.013: DEBUG/AdWhirl SDK(3099): Valid adapter, calling handle() 

由於某種原因,AdWhirl試圖連續三次顯示MillennialMedia廣告。因此,廣告在數毫秒後就會出現並消失,另一個MillennialMedia廣告立即出現。最後,AdMob廣告出現並停留30秒。但是,千禧年的成功將在30秒內被稱爲rotateAd()。我認爲真正的問題是這樣的:

ERROR/MillennialMediaAdSDK(3099): The reference to the ad view was broken. 

從報告中可以看出,在過去幾天中,展示次數急劇減少。

編輯: 我加的廣告是這樣的:

layout.xml:

<de.xazen.tictactoe.mAdWhirlLayout 
     android:id="@+id/adwhirl_layout" 
     android:layout_width="fill_parent" 
     android:layout_height="wrap_content" 
     android:layout_alignParentBottom="true" 
     android:layout_gravity="center_horizontal|bottom" 
     android:onClick="onAdClick" 
     /> 

的manifest.xml:

<!--   Ads --> 
    <meta-data 
     android:value="123456789asdfghkjlkuz" 
     android:name="ADWHIRL_KEY" 
     /> 
    <!--   AdMobActivity definition --> 
     <activity 
      android:name="com.google.ads.AdActivity" 
     android:configChanges="keyboard|keyboardHidden|orientation" 
     /> 
    <!--   Millenial definition --> 
     <activity 
      android:name="com.millennialmedia.android.MMAdViewOverlayActivity" 
      android:theme="@android:style/Theme.Translucent.NoTitleBar" 
      /> 
     <activity 
      android:name="com.millennialmedia.android.VideoPlayer" 
      android:theme="@android:style/Theme.NoTitleBar.Fullscreen" 
      android:configChanges="keyboardHidden|orientation|keyboard" 
      /> 
     <!-- Track Market installs from AdMob ads --> 
     <receiver android:name="com.google.ads.InstallReceiver" android:exported="true"> 
      <intent-filter> 
       <action android:name="com.android.vending.INSTALL_REFERRER" /> 
      </intent-filter> 
     </receiver> 
     <!-- Used for install referrer tracking --> 
     <receiver android:name="com.google.android.apps.analytics.AnalyticsReceiver" android:exported="true"> 
      <intent-filter> 
       <action android:name="com.android.vending.INSTALL_REFERRER" /> 
      </intent-filter> 
     </receiver> 

mAdWhirl.java:

公共類mAdWhirlLayout擴展AdWhirlLayout {

public mAdWhirlLayout(Context context, AttributeSet attrs) { 
    super(context, attrs); 
    // TODO Auto-generated constructor stub 
} 

@Override 
public boolean onInterceptTouchEvent(MotionEvent event) { 
    if (event.getAction() == MotionEvent.ACTION_UP) { 
     new Achievement("1234567567").unlock(new Achievement.UnlockCB() { 
      @Override 
      public void onSuccess(boolean newUnlock) { 
       ((Activity) getContext()).setResult(Activity.RESULT_OK); 
       // ((Activity) getContext()).finish(); 
      } 
      @Override public void onFailure(String exceptionMessage) { 
       Toast.makeText(((Activity) getContext()), 
         "Error (" + exceptionMessage + ") unlocking achievement.", 
         Toast.LENGTH_SHORT).show(); 
       ((Activity) getContext()).setResult(Activity.RESULT_CANCELED); 
       // ((Activity) getContext()).finish(); 
      } 
     }); 
    } 
    return super.onInterceptTouchEvent(event); 
} 

} 

我不確定這可能是問題,因爲它在舊版本中工作。

+0

您是否嘗試過更新所有sdks?也許你更新了一個,但沒有更新一個,並且發生了一些事情...... –

+0

我收到了最新的sdks。仍然無法工作。 – Xazen

+0

種類在黑暗中拍攝,但也許你可以發佈你的代碼爲AdWhirl佈局。我注意到,當人們以某種​​方式創建它時,他們往往會遇到奇怪的問題。 –

回答

0

它似乎是SDK中的一個錯誤。新版本的SDK不會導致問題。但是...我們現在正在嘗試其他網絡。