<?xml version="1.0" encoding="utf-8"?><LinearLayout android:orientation="vertical" android:layout_width="match_parent" android:layout_height="match_parent"xmlns:android="http://schemas.android.com/apk/res/android"xmlns:ads="http://schemas.android.com/apk/res-auto"><RelativeLayout android:orientation="vertical" android:id="@+id/layout" android:layout_width="match_parent" android:layout_height="0.0dip" android:layout_weight="0.31"><ImageView android:id="@+id/mage" android:layout_width="match_parent" android:layout_height="match_parent" /></RelativeLayout><com.google.android.gms.ads.AdViewandroid:id="@+id/adView"android:layout_width="match_parent"android:layout_height="wrap_content"ads:adSize="SMART_BANNER"ads:adUnitId="my unit ad id"/></LinearLayout>
protected void onCreate(Bundle var1) {super.onCreate(var1);this.setContentView(R.layout.activity_main);
AdView adView = (AdView)this.findViewById(R.id.adView);
AdRequest adRequest = new AdRequest.Builder()
.build();
adView.loadAd(adRequest);
}
Glad I could help :)
--
---
You received this message because you are subscribed to a topic in the Google Groups "Google AdMob Ads Developers" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/google-admob-ads-sdk/RG8W51t5ccc/unsubscribe.
To unsubscribe from this group and all its topics, send an email to google-admob-ads...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.