繁体   English   中英

如何在我的Android应用程序中集成AirPush Ads?

[英]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

现在我有两个问题:

  1. 当我们使用airpush sdk创建新的应用程序时,我们必须提供Android市场或其他一些应用程序URL。 那么我们如何才能像第一次上传应用程序而没有那个airpush集成并获取应用程序的URL然后再次上传airpush集成。

  2. 第二件事是我们必须在清单中提供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); } 

    }

  3. 是否有必要在布局中添加带有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.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM