How can I integrate AirPush ads in my Android app?

I want to add AirPush advertisements to my Android app. I read the full documentation from http://www.airpush.com/publishers/publishers/downloadsdk/ and this pdf file download pdf for airpush sdk

Now I have two queries:

  • We must provide the application URL either on the Android market, or some other, when we create a new application using spk airpush. So, how can we give this URL as the 1st application download without integration with Airpush, and get the application URL, and then download again using integration with Airpush.

  • And second: we just need to specify the application identifier, application key and package name in the manifest and add the jar file to lib. and leave the code shown below in this step where we want to show these ads. Am i head ??

    open class AirTestActivity extends action {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);
    }
    

    }

  • Is it necessary to add a layout with text viewing and image representation in layouts, as shown 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 this. Please guide me

+5
source share
1 answer

Regarding # 1: you just need to have the package name of your application to create a market URL. for example com.myapp.pack. So your application url will look like this:

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

, Airpush .

# 2: , Airpush.

# 3: AirPush_notify.xml BannerPush.

, . Airpush360.jar - Airtest. - , , , sdk, support@airpush.com.

+3

All Articles