导入SDK

谷歌SDK
横幅
using GoogleMobileAds Api;

public string “地址”
BannerView bannner=new BannerView(地址) ,AdSize.Banner,AdPosition.Bottom);
AdRequest request=new AdRquest.Builder().Builder();
bannerView.LoadAd(request);

全屏

InterstitalAd ad=new InterstitialAd(地址);
Adrequest request=new Adrequest.Builder().Build();
ad.loadAd(request);
ad.show();// 显示

你可能感兴趣的:(导入SDK)