Can't add ads to my app.

前端 未结 5 633
渐次进展
渐次进展 2021-01-18 07:57

So I followed this guide from admob with Google Play Services, https://developers.google.com/mobile-ads-sdk/docs/admob/fundamentals#play And I have encountered a problem. Th

5条回答
  •  青春惊慌失措
    2021-01-18 08:25

    Use

    AdRequest.Builder adRequestBuilder = new AdRequest.Builder();
    adView.loadAd(adRequestBuilder.build());
    

    EDIT:

    Remove

    setContentView(R.layout.menu);
    

    add behind loadAd()

    setContentView(layout);
    

提交回复
热议问题