TAMedia Wiki

Android Interstitial Ads

:*宣告Interstitial廣告版位,
請以下述方式進行Interstitial Ad版位的宣告
注意:目前Interstitial廣告有相同版位ID在同一台裝置上,預設為毎120分鐘展示一次,如需調整請洽服務窗口

twmAdViewInterstitial = new TWMAdViewInterstitial(this);
twmAdViewInterstitial.setTWMAdViewListener(new TWMAdViewListener() {
  @Override
  public void onReceiveAd(View view) { //call twmAdViewInterstitial show
   twmAdViewInterstitial.show();
  }
  @Override
  public void onFailedToReceiveAd(View view) {  //onFailedToReceiveAd
  }
});

:*啟動Interstitial廣告服務

void com.taiwanmobile.pt.adp.view.TWMAdViewInterstitial.activeAd(String slotId, String vendorId, boolean testmark)
Parameters: 
slotId 廣告版位Id 
vendorId 開發者Id 
testmark 是否測試標籤 , false:表正式服務,true:表進行測試中

輸入相關參數啟動廣告服務

twmAdViewInterstitial.activeAd("<Your Slot ID>", "<Your name>", true);