[英]How can i Integrating the MiniMob Ads SDK in my android application?
[英]How can i Integrating the AirPush Ads in my android application?
我想在我的Android應用程序中添加AirPush Ads。 我已經閱讀了http://www.airpush.com/publishers/publishers/downloadsdk/的完整文檔和pdf文件下載pdf for airpush sdk
現在我有兩個問題:
當我們使用airpush sdk創建新的應用程序時,我們必須提供Android市場或其他一些應用程序URL。 那么我們如何才能像第一次上傳應用程序而沒有那個airpush集成並獲取應用程序的URL然后再次上傳airpush集成。
第二件事是我們必須在清單中提供app id,app key和package name,並在lib中添加jar文件。 並在我們想要展示這些廣告的活動中展示我在下面顯示的一些代碼。 我是誰嗎?
公共類AirTestActivity擴展了Activity {Airpush airpush;
/** Called when the activity is first created. */ @Override public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.main); // create Airpush constructor. airpush = new Airpush(this); airpush.startSmartWallAd(); //launch smart wall on App start // start Dialog Ad // airpush.startDialogAd(); // start AppWall ad // airpush.startAppWall(); // start Landing Page // airpush.startLandingPageAd(); airpush.startPushNotification(true); // start icon ad. airpush.startIconAd(); } @Override public boolean onKeyDown(int keyCode, KeyEvent event) { if (keyCode == KeyEvent.KEYCODE_BACK && event.getRepeatCount() == 0) { //use smart wall on app exit. // airpush.startSmartWallAd(); } return super.onKeyDown(keyCode, event); }
}
是否有必要在布局中添加帶有textview和圖像視圖的布局,如下所示
<ImageView android:id="@+id/imageView" android:layout_width="fill_parent" android:layout_height="35dp" android:layout_centerHorizontal="true" > </ImageView> <TextView android:id="@+id/textView" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_below="@+id/imageView" android:layout_centerHorizontal="true" android:layout_marginTop="10dp" android:textAppearance="@android:style/TextAppearance.StatusBar.EventContent" android:textSize="11dp" />
我們必須做的其他事情。 請指導我
關於#1:您只需要擁有應用程序的包名稱來構建市場URL。 例如com.myapp.pack
。 所以你的應用程序的市場網址將如下所示:
https://play.google.com/store/apps/details?id=com.myapp.pack 。
如果您更改應用程序的包名稱,您可以隨時在Airpush的編輯應用程序部分進行編輯。
關於#2:是的,這是初始化Airpush的正確方法。
關於#3:BannerPush廣告需要airpush_notify.xml。
最后,包含您的包名稱的jar是正確的。 Airpush360.jar
是隨Airtest app提供的樣品罐。 如有任何疑問或疑問,請查看下載sdk頁面上提供的實施文檔或發送電子郵件至support@airpush.com。
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.