Difference between revisions of "Android Interstitial"
From AdLocus
(Created page with "== 前言 == 插頁式版位將以曝光次數高分潤,是您提高收益的最好單元之一。 == 自我檢查 == * JAR檔與 AndroidManifest.xml 是否已Android_Ad...") |
|||
| Line 8: | Line 8: | ||
在您想啟用插頁式版位的 Activity 中加入下列程式碼 | 在您想啟用插頁式版位的 Activity 中加入下列程式碼 | ||
<syntaxhighlight lang="java"> | <syntaxhighlight lang="java"> | ||
| − | private InterstitialAd | + | private InterstitialAd mInterstitialAd = new InterstitialAd(this, "Your app key"); |
| − | + | ||
| − | mInterstitialAd = new InterstitialAd(this, | + | |
mInterstitialAd.loadAd(); | mInterstitialAd.loadAd(); | ||
| − | |||
</syntaxhighlight> | </syntaxhighlight> | ||
Revision as of 22:32, 2 October 2014
前言
插頁式版位將以曝光次數高分潤,是您提高收益的最好單元之一。
自我檢查
- JAR檔與 AndroidManifest.xml 是否已設定完成
啟用插頁式版位
在您想啟用插頁式版位的 Activity 中加入下列程式碼
private InterstitialAd mInterstitialAd = new InterstitialAd(this, "Your app key"); mInterstitialAd.loadAd();