any MassiveImpact ads lib?

rikky1966

Member
Licensed User
Longtime User
Please, How to create a MassiveImpact ads lib for b4a?

anyone knows if there any chance to add the MI SDK MassiveImpact's Ad Server Mediator (ASM), part of TargetAdLive, to b4a code? it follows the code and the jar file, if you need I can send privately the MassiveImpact SDK cookbook.

thanx:BangHead:

Step 1: add AdView component to App layout
Open the layout location, in which you want to add the adView

Add to the layout xml the following code:
<com.massiveimpact.ad.AdView
xmlns:android="http://schemas.android.com/apk/res/android"

xmlns:massive="http://schemas.android.com/apk/lib/com.massiveimpact.ad" android:id="@+id/massivRichAd1" android:layout_width="fill_parent" android:layout_height="wrap_content" massive:appKey="AB4634328790172FER" massive:type="image" massive:loadOnCreate="true" massive:refreshIntervalInSec="20" massive:sizing="dynamic" massive:adWidth="350" massive:adHeight="50"

/>

Step 2: Add mandatroy internet and access network state permissions under manifest element:
<!-- MI mandatory -->
<uses-permission android:name="android.permission.INTERNET" />

<!-- MI mandatory -->
<uses-permission android:name="android.permission.ACCESS_NETWORK_STATE" />

Add optimization permissions under manifest element (optional):
<uses-permission android:name="android.permission.READ_PHONE_STATE" /> <uses-permission android:name="android.permission.ACCESS_FINE_LOCATION" />
 

Attachments

  • massiveImpactAndroidSDK_V3.5.jar.zip
    69.3 KB · Views: 214
Last edited:
Top