Advertisement
Guest User

Untitled

a guest
Apr 30th, 2016
61
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.83 KB | None | 0 0
  1. <LinearLayout
  2. android:layout_width="match_parent"
  3. android:layout_height="match_parent"
  4. android:id="@+id/linearLayout"
  5. android:background="@android:color/white"
  6. android:orientation="vertical"
  7. android:padding="2dp"
  8. android:paddingTop="10dp">
  9.  
  10. <com.google.android.gms.ads.AdView
  11. android:id="@+id/adView"
  12. android:layout_width="wrap_content"
  13. android:layout_height="wrap_content"
  14. ads:adSize="BANNER"
  15. ads:adUnitId="ca-app-pub-5388685404350149/2739466119" />
  16. </LinearLayout>
  17.  
  18. AdView ad = (AdView) findViewById(R.id.adView);
  19. AdRequest adRequest = new AdRequest.Builder()
  20. .addTestDevice(AdRequest.DEVICE_ID_EMULATOR).build();
  21. ad.loadAd(adRequest);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement