Android AdMob点击但不能打开网站

时间:2016-10-11 21:05:59

标签: android

我的Android应用有AdMob。广告正在展示,但是当我点击广告时,应用会关闭,但广告网站却未打开。这是我的代码:

我的观点:

<com.google.android.gms.ads.AdView
  android:id="@+id/adViewm"
  ads:adSize="BANNER"
  ads:adUnitId="ca-app-pub-*****/****"
  android:layout_width="match_parent"
  android:layout_height="wrap_content"
  android:layout_gravity="center"
  android:layout_alignParentBottom="true"
  android:layout_centerHorizontal="true" />

我的活动:

AdView adView = (AdView) this.findViewById(R.id.adViewm);
AdRequest adRequest = new AdRequest.Builder().build();
adView.loadAd(adRequest);

我的依赖关系:

compile 'com.google.android.gms:play-services-ads:7.5.0'
compile 'com.google.android.gms:play-services:7.5.0'

我的宣言:

<meta-data
    android:name="com.google.android.gms.version"
    android:value="@integer/google_play_services_version" />
<activity
    android:name="com.google.android.gms.ads.AdActivity"
    android:configChanges="keyboard|keyboardHidden|orientation|screenLayout|uiMode|screenSize|smallestScreenSize" >
</activity>

image

0 个答案:

没有答案