Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <LinearLayout
- android:layout_width="match_parent"
- android:layout_height="match_parent"
- android:id="@+id/linearLayout"
- android:background="@android:color/white"
- android:orientation="vertical"
- android:padding="2dp"
- android:paddingTop="10dp">
- <com.google.android.gms.ads.AdView
- android:id="@+id/adView"
- android:layout_width="wrap_content"
- android:layout_height="wrap_content"
- ads:adSize="BANNER"
- ads:adUnitId="ca-app-pub-5388685404350149/2739466119" />
- </LinearLayout>
- AdView ad = (AdView) findViewById(R.id.adView);
- AdRequest adRequest = new AdRequest.Builder()
- .addTestDevice(AdRequest.DEVICE_ID_EMULATOR).build();
- ad.loadAd(adRequest);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement