Tuesday, October 2, 2012

Advertising Services: WapStart


Advertising Services: WapStart
WapStart - the largest mobile advertising network in Russia. How to use this network, I will explain in this article.




What offers WapStart:
  • Guaranteed purchase advertising mobile traffic;
  • Maximizing revenue through the price formation on the basis of the auction;
  • High efficiency of advertising by targeting a broad functional;
  • Detailed statistics on-line advertising campaigns on the mobile site;
  • The ability to place their own advertising with a functional "Home Advertising";
  • Support for a wide pool of mobile application platforms;
  • Robust, scalable ad management with a guaranteed rate of return banner;
  • Pre-moderation before placement on the mobile platform of each ad;
  • SDK for Android, iPhone, Java ME;
  • API for Bada, Symbian, Blackberry, Window Phone 7, PHP, etc.
 

Getting Started

To get started, to register at this link and download the sdk. For each application, you need to get your code. So go to Platform - Management and click Add platform. After filling out the required fields, and save the platform, your application will be assigned a unique code. 

Code integration

SDK is available as source code, which must be placed in the folder src. Also need to copy files from the resource (res).
For advertising service you must add the following permissions in AndroidManifest:
<uses-permission android:name="android.permission.INTERNET" />
<uses-permission android:name="android.permission.ACCESS_NETWORK_STATE" />
Also in the block AndroidManifest <application> want to add information about the used Activity:
<activity android:name="ru.wapstart.plus1.sdk.MraidBrowser" />
There are two ways to add an advertising banner in View:
1. From xml
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
    android:layout_width="fill_parent"
    android:layout_height="fill_parent"
    android:orientation="vertical" >

    <TextView
        android:layout_width="fill_parent"
        android:layout_height="wrap_content"
        android:layout_weight="1"
        android:text="@string/hello" />

    <ru.wapstart.plus1.sdk.Plus1BannerView
                  android:id="@+id/banner_adview"
                  android:layout_width="320dp"
                  android:layout_height="50dp"
                  android:layout_gravity="center"
            />
</LinearLayout>

During the initialization of the Activity create and configure the objects as follows:
 
    private Plus1BannerView mBannerView;
    private Plus1BannerAsker mAsker;
    
    @Override
    public void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.main);
        
        mBannerView =
          (Plus1BannerView) findViewById(R.id.banner_adview);
        
        mAsker =
          new Plus1BannerAsker(
           new Plus1BannerRequest()
            .setApplicationId(Ваш код площадки),
           mBannerView
            .enableAnimationFromTop()
            .enableCloseButton()
          );

    }
2. From code
 
mBannerView = new Plus1BannerView(this);
parentView.addView(adview);
Then it is necessary to provide for the call handlers onResume() and onPause():
 
 @Override
 protected void onPause() {
  super.onPause();
  mAsker.onPause();
 }

 @Override
 protected void onResume() {
  super.onResume();
  mAsker.onResume();

Links

The source codes of this project can be downloaded here: zip

No comments:

Post a Comment