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

Nar*_*rma 5 android ads

我想在我的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);
    }
    
    Run Code Online (Sandbox Code Playgroud)

    }

  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" />
    
    Run Code Online (Sandbox Code Playgroud)

我们必须做的其他事情.请指导我

小智 3

关于#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 是要实现的正确的 jar。Airpush360.jar是Airtest应用程序提供的示例jar。如有任何疑问或困惑,请查看下载 sdk 页面上提供的实施文档或发送电子邮件至 support@airpush.com。