Android Promotion
From AdLocus
Revision as of 15:31, 7 October 2014 by Kevinchang (Talk | contribs)
Contents
前言
適地性優惠通知服務是依據全區定向或特定地理位置定向,提供您的使用者最適合的主動式訊息,同時具有高額的分潤收益。
啟動優惠通知服務,請將相關程式碼加在整個程式的進入點(例如:Application 的 onCreate )
自我檢查
- Library Project 與 AndroidManifest.xml 是否已設定完成
啟用優惠通知服務
新版
- 設定 AndroidManifest.xml
<activity android:name="com.adlocus.AdActivity" android:parentActivityName="YourActivity" android:theme="@style/AdLocusDialogTheme" > <meta-data android:name="android.support.PARENT_ACTIVITY" android:value="YourActivity" /> </activity>
- "YourActivity" 填入發送優惠通知時的主畫面 Activity.
- 在該 Activity 加入下列程式碼
Intent promotionIntent = new Intent(this, YourActivity.class); PushAd.enablePush(this, "your app key", promotionIntent );
傳統
PushAd.enablePush(this, "your app key"); // 請填入 app key
停用優惠通知服務
PushAd.disablePush(this);
使用者調整個人化優惠服務
PushAd.showSettingPage(this, "your app key");
單元測試
PushAd.test(this);