简体   繁体   中英

How can i Integrating the AirPush Ads in my android application?

i want to add the AirPush Ads in my android application. I have worked read the full documentation from the http://www.airpush.com/publishers/publishers/downloadsdk/ and this pdf file download pdf for airpush sdk

Now i have two queries:

  1. We have to give the app url either of the android market or some other when we create new app using the airpush sdk. So how can we give that url like 1st upload the app without that airpush integration and get the url of the app and then again upload with the airpush integration.

  2. And the 2nd thing is we have to just give that app id, app key and package name in the manifest and add the jar file in lib. and rest some code which i shown below in that activity where we want to show these Ads. Am i wright ??

    public class AirTestActivity extends 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. Is it necessary to add the layout with textview and image view in the layouts like below

     <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" /> 

Anything else we have to do for that. Please guide me

Regarding #1 : You just need to have the package name of your application to construct market url. for example com.myapp.pack . So your app's market url will look like:

https://play.google.com/store/apps/details?id=com.myapp.pack .

In case if you change your app's package name you can edit it in edit app section of Airpush anytime.

Regarding #2 : Yes, thats the correct way to initialise Airpush.

Regarding #3 : The airpush_notify.xml is required for BannerPush ads.

Lastly the jar with your package name is the correct one to implement. Airpush360.jar is the sample jar provided with the Airtest app. IN case of any queries or confusions,please go through the implementation document provided on download sdk page or drop an email to support@airpush.com.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

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