1

アプリケーションに Adsense を実装しています。パブリッシャー ID を取得し、Google Adsense SDK チュートリアルを使用してアプリケーションにコードを実装しました。しかし、広告がアプリケーションに表示されません。

これが私のコードです:

AdSenseSpec adSenseSpec = new AdSenseSpec("pub-xxxxxxxxxxxxxxxx") .setCompanyName("Google Adsense 登録時の会社名") .setAppName("アプリケーション名")
.setAdTestEnabled(false);

  GoogleAdView adView = (GoogleAdView) findViewById(R.id.adview);
       adView.setEnabled(true);
       adView.showAds(adSenseSpec);

これらは logcat に入っています:

05-18 13:19:41.077: WARN/webcore(8506): 最初のレイアウトの後に viewWidth を取得できません 05-18 13:19:43.377: VERBOSE/NotificationService(171): [cancelNotificationWithTag]::::: pkg:android id:-669611123 05-18 13:19:43.859: 警告/PowerManagerService(171): タイマー 0x3->0x3|0x0 05-18 13:19:44.297: 警告/webcore(8506): 取得できません最初のレイアウト後の viewWidth

どんな体にも手がかりがありますか?

ありがとうございます。それでは、お元気で

4

1 に答える 1