About :- Earn maximum advertising revenue with a mobile ad server, RTB ad exchange, and an ad network mediation platform connected to 337 Demand Partners.
Platform :-
- iOS (iPhone and iPad incl. iAd)
- Android
- Windows & Windows Phone
- BlackBerry
Payment Method & Terms :-
- International Wire Transfer
- PayPal
Smaato follows a 60-day payment schedule. Smaato will pay you your net revenue share within sixty days after the end of the calendar month in which revenue was accrued.
—> Frist Open smaato Account And Get Publisher ID And app ID.
After Getting All Information Start Eclipse And Create New Project.
For google_play_services import project from the J:\android-sdk-windows\extras\google\google_play_services\libproject
—> AndroidManifest.xml
<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" /> <uses-permission android:name="android.permission.ACCESS_COARSE_LOCATION" /> <uses-permission android:name="android.permission.ACCESS_FINE_LOCATION" /> <uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE" /> <uses-permission android:name="android.permission.READ_CALENDAR"/> <uses-permission android:name="android.permission.WRITE_CALENDAR"/> <uses-permission android:name="android.permission.GET_ACCOUNTS"/> <meta-data android:name="com.google.android.gms.version" android:value="@integer/google_play_services_version"/> <activity android:name="com.smaato.soma.interstitial.InterstitialActivity" ></activity>
–> For Banner Ads Open Layout.xml File.
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android" xmlns:tools="http://schemas.android.com/tools" xmlns:BannerView="http://schemas.android.com/apk/lib/com.smaato.soma" android:layout_width="match_parent" android:layout_height="match_parent" android:id="@+id/myRelativeLayoutId" > <com.smaato.soma.BannerView android:id="@+id/bannerView" android:layout_width="fill_parent" android:layout_height="50dp" android:layout_alignParentLeft="true" android:layout_alignParentTop="true" BannerView:adSpaceId="130000404" BannerView:publisherId="1100000250" BannerView:loadNewBanner="true" /> </RelativeLayout>
open MyActivity.java file…
import android.app.Activity; import android.os.Bundle; import com.smaato.soma.interstitial.Interstitial; public class MainActivity extends Activity { Interstitial interstitial; @Override protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.activity_main); /*BannerView mBanner = new BannerView (MainActivity.this); RelativeLayout myRelativeLayout = (RelativeLayout) findViewById(R.id.myRelativeLayoutId); myRelativeLayout.addView(mBanner, new LayoutParams(LayoutParams.MATCH_PARENT, 70)); mBanner.getAdSettings().setPublisherId(publisherId); mBanner.getAdSettings().setAdspaceId(adspaceId); mBanner.asyncLoadNewBanner();*/ interstitial = new Interstitial(this); //this, supposed to be your activity interstitial.getAdSettings().setPublisherId(1100000250); interstitial.getAdSettings().setAdspaceId(130000405); interstitial.asyncLoadNewBanner(); interstitial.show(); } }
—> Run Your Code.
Leave a Reply