Sunday, September 30, 2012

Advertising services: Mobclix


Advertising services: Mobclix
Mobclix - a company that specializes in mobile advertising, combined into a single multi-vendor network advertising, such as AdMob, MillenialMedia, Smaato, InMobi and others. In this article I want to talk about how to set the advertisement from the service into your application.


What offers Mobclix:
  • A large number of advertising platforms (more than 20);
  • SDK for Android and iPhone;
  • Detailed statistics on the whole and for each application individually;
  • Good technical support;
  • Stable payments.


Getting Started

To get started, to register at this link and download the sdk. For each application, you need to get your Application ID. So go to Overview - Applications and click Add Application. After filling out the required fields, and clicking Save, your application will be assigned an Application ID. 

Code integration

Open up your Android project in Eclipse.  Click on «Properties»in the «Project» menu bar.  Select «Java Build Path» on the left and then select the “Libraries” tab. Click «Add JARs...» and select the «mobclix.jar». The «mobclix.jar» should now appear under your project’s Referenced Libraries.
For advertising service you must add the following permissions in AndroidManifest:
<uses-permission android:name="android.permission.INTERNET" />
<uses-permission android:name="android.permission.READ_PHONE_STATE" />
<uses-permission android:name="android.permission.ACCESS_NETWORK_STATE" />
Also in AndroidManifest to add Activity to display advertisements and Application ID of the application

<meta-data
   android:name="com.mobclix.APPLICATION_ID"
   android:value="Your Application ID" />
<activity
   android:name="com.mobclix.android.sdk.MobclixBrowserActivity"
   android:theme="@android:style/Theme.Translucent.NoTitleBar" />
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" /> 
    <com.mobclix.android.sdk.MobclixMMABannerXLAdView
        android:id="@+id/banner_adview"
        android:layout_width="fill_parent"
        android:layout_height="50dip"
        android:layout_gravity="center" />
</LinearLayout>
2. From code
 
MobclixAdView adview = new MobclixMMABannerXLAdView(this);
parentView.addView(adview);

Adding advertising services

Now you need to activate the ad for our application. Go back to the website and select the tab Services.
First, select the menu item Setup. This section are customizing banners for different platforms and screen resolutions.
Add a standard banner: Android and 320x50. Set parameters banner on your own. That advertising was beginning to show, you must choose Yes for Ads Running and Off for Test Mode. When you're finished, click Save.
Then go to the menu item Ad Networks. Here is the activation of advertising platforms. Select the newly created banner: Android and 320x50. And for the platform you want to run, you must click Sign Up.
Section Optimization set priorities for the of advertising platforms, and Section Custom Ads can create your own banner.

Links

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

1 comment:

  1. Thanks for nice info. It’s useful for me. Can you give me some more information with details? I will wait for your next post.

    Coral Gables mobile advertising agency

    ReplyDelete