1、Google AdMob 接入

Paste_Image.png
官網(wǎng)(必須翻墻): https://www.google.com/admob/
首先Android SDK中必須下載Google Play services

Paste_Image.png
然后再將下載的Google Play services包Copy到Google SDK的Android目錄下

Paste_Image.png
以下是加載兩種Google廣告模式的代碼,第一種是開始界面展示的廣告

Paste_Image.png

Paste_Image.png
第二種是當(dāng)點(diǎn)擊暫停游戲是顯示全屏廣告

Paste_Image.png

Paste_Image.png
2、UnityAds接入
Ads官網(wǎng) http://www.unityads.unity3d.com/
SDK可以在AssetStore里面下載

Paste_Image.png
下載后下面是廣告播放的代碼

Paste_Image.png

Paste_Image.png
下面還有其他廣告的接入平臺(tái)可參考

Paste_Image.png