Hi,
to integrate ads in my application.
it shows blank area instead of showing ads in it.
please see my code: using SDK (4.4w)
1) Activity Code
AdView adView = (AdView)this.findViewById(R.id.adView);
AdRequest adRequest = new AdRequest.Builder()
.addTestDevice(AdRequest.DEVICE_ID_EMULATOR)
.build();
adView.loadAd(adRequest);
2) Google play services are enabled on my phone just verified through following code
int status = GooglePlayServicesUtil.isGooglePlayServicesAvailable(getApplicationContext());
3) Layout code
android:id="@+id/drawer_layout"
android:layout_width="match_parent"
android:layout_height="match_parent" >
<LinearLayout
android:layout_width="match_parent"
android:layout_height="match_parent"
android:background="@drawable/activity_background"
android:orientation="vertical"
>
<com.google.android.gms.ads.AdView
android:id="@+id/adView"
android:layout_width="match_parent"
android:layout_height="wrap_content"
ads:adUnitId="xxxxxxxxxxxxxx"
ads:adSize="BANNER"
/>
</LinearLayout>
</android.support.v4.widget.DrawerLayout>
4) Manifest code:
<activity
android:name="com.google.android.gms.ads.AdActivity"
android:configChanges="keyboard|keyboardHidden|orientation|screenLayout|uiMode|screenSize|smallestScreenSize" />
<meta-data android:name="com.google.android.gms.version"
android:value="@integer/google_play_services_version"/>