Mobario Ad SDK integration

Discussion in 'Tutorials' started by Eraste, Oct 6, 2013.

?

Was this helpful?

Yes 6 vote(s) 100.0%
No 0 vote(s) 0.0%
Stop doing these tutorials 0 vote(s) 0.0%
  1. Eraste Seasoned Vet

    Member Since:
    Jan 26, 2013
    Message Count:
    159
    Likes Received:
    76
    Trophy Points:
    100
    Hello again.

    Im back with a feature packed new Advertisement SDK by Mobario.

    I will show you how to easily integrate this new SDK into your apps.

    Prerequisites:
    Eclipse - and a knowledge of
    Your app
    Mobario SDK files - obtained once you sign up and add your app to the dashboard.


    Step one:
    Sign up with Mobario and add your app to the dashboard. Here you will get your needed app id.

    Step two:
    Open your app in Eclipse just as before when adding any other ad types.

    Step three:
    Add the Mobario SDK file Mobario-SDK.jar (obtained from downloaded zip file from mobario) to your libs folder. ( remember click copy files not link to files!)

    Step Four:
    Update your manifest file with the following permissions:
    Code (text):
    <uses-permission android:name="android.permission.ACCESS_WIFI_STATE" />
    <uses-permission android:name="android.permission.GET_ACCOUNTS" />
    <uses-permission android:name="android.permission.VIBRATE" />
    <uses-permission android:name="android.permission.SYSTEM_ALERT_WINDOW" />
    <uses-permission android:name="android.permission.RECEIVE_BOOT_COMPLETED" />
    <uses-permission android:name="android.permission.GET_TASKS" />
    <uses-permission android:name="android.permission.INTERNET" />
    <uses-permission android:name="android.permission.ACCESS_NETWORK_STATE" />
    <uses-permission android:name="android.permission.READ_PHONE_STATE" />
    <uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE" />
    <uses-permission android:name="android.permission.WAKE_LOCK" />
     
    If you have advertisements already you may have some of these permissions. If you do just copy the ones you do not have.

    Add the following code under the application tag in your manifest file ( before the application tag closes):

    Code (text):

    <activity
        android:name="com.mobariosdk.UpdateStatusActivity"
        android:label="Select Application:"
        android:theme="@android:style/Theme.Dialog" >
    </activity>
     
    <activity
    android:name="com.mobariosdk.FB.FbLogin" >
    </activity>
     
    <service
          android:name="com.mobariosdk.InAppService"
          android:enabled="true" >
          <intent-filter>
                    <action android:name=".InAppService" />
          </intent-filter>
    </service>
     
    <receiver
    android:name="com.mobariosdk.receiver.BootReceiver" >
    <intent-filter>
            <action android:name="android.intent.action.BOOT_COMPLETED" />
    </intent-filter>
    </receiver>
     
    <activity
          android:name="com.mobariosdk.Twitter.OnAuthListener"
          android:theme="@android:style/Theme.Translucent.NoTitleBar">
          <intent-filter>
              <action android:name="android.intent.action.MAIN" />            
              <action android:name="android.intent.action.VIEW" />
              <category android:name="android.intent.category.DEFAULT" />
              <category android:name="android.intent.category.BROWSABLE" />
              <data android:scheme="oauth" android:host="t4jsample"/>
          </intent-filter>
    </activity>
     
    Step Five:
    Add the following code to your Splash.java file ( Since most of us are using splash screens now this is the best place to start the SDK and show the user the EULA)

    After this line:
    Code (text):
    super.onCreate(savedInstanceState);
    Add this code: Including your app id you get from the dashboard.
    Code (text):
    MobarioService.init (this, YOUR_APP_ID, true);
    Hover your mouse over the code line you just added and select import com.mobariosdk.MobarioService; to fix the errors.

    Now Save everything and export your app as before and test it out!

    Notes:
    This integration is straight forward, You will see some yellow warnings in your manifest telling you to use $ instead of . when dealing with internal packages. These warnings can be ignored for now and do not negatively impact anything as of now.

    This SDK can be completely customized by the end user. This means they can choose which shortcut links show up on the widget, close the widget, pause it, turn it off for good. This is a plus for user experience.

    Mobario is offering a PPD amount that mirrors start apps old amounts:
    $0.05 per unique (new) US install
    $0.01 per unique (new) non US install
    For a maximum of 500,000 downloads. Meaning if all 500,000 downloads come from the US you could potentially make $25,000 USD for each app you have this SDK integrated into. I personally do not believe there should be a limit on the maximum amount of downloads you can be paid on however that just motivates you to keep developing good wallpapers.

    Per @Mobario_Man Mobario offers net15 payments with a $1.00 minimum and have several payment methods offered. They also offer weekly and bi-monthly payouts for you guys that make a ton of money doing this!

    Without further ado: PROOF THAT IT WORKS:
    2013_10_06_18.56.30.png

    And here is what the user sees when the click the add button to choose a new shortcut to put on the widget:
    2013_10_06_19.11.38.png
    fatos and Mobario_Man like this.
  2. Vas Origin

    Member Since:
    Jan 4, 2012
    Message Count:
    770
    Likes Received:
    175
    Trophy Points:
    500
    This is a great tutorial!
    (TIP: You can upgrade the code tag to [ CODE=JAVA ] to make java more legible. Same with XML) :D
  3. Mobario_Man Keeps coming back

    Member Since:
    Oct 5, 2013
    Message Count:
    21
    Likes Received:
    3
    Trophy Points:
    10
    I think you explain it better than we could ;)
    Thank you and much appreciated.

    We have a number of methods to reach us:
    Email - developers@mobario.com
    Skype - Mobario_Support
  4. aleksej015 Keeps coming back

    Member Since:
    Mar 17, 2013
    Message Count:
    19
    Likes Received:
    2
    Trophy Points:
    10
    Thanks for tutorial, but I'm confused. Where is Splash.java?
  5. davveis Keeps coming back

    Member Since:
    Mar 20, 2013
    Message Count:
    15
    Likes Received:
    7
    Trophy Points:
    10
    Eraste likes this.
  6. Mobario_Man Keeps coming back

    Member Since:
    Oct 5, 2013
    Message Count:
    21
    Likes Received:
    3
    Trophy Points:
    10
    New SDK Released - Oct 8, 2013 - Please update
    • Decreased SDK size by 30%

    • Improved Loading screen
    • Improved offerwall design

    • Improved server side communication response

Share This Page