本指南將說明如何使用 Google Mobile Ads SDK,利用中介服務從 Mintegral 載入及顯示廣告,同時涵蓋刊登序列和出價整合。內容會說明如何將 Mintegral 加入廣告單元的中介服務設定,以及如何將 Mintegral SDK 和轉接程式整合至 Unity 應用程式。
支援的整合項目和廣告格式
Mintegral 的 AdMob 中介服務轉接程式具備下列功能:
整合項目 | ||
---|---|---|
出價 | 1 | |
瀑布 | 2 | |
格式 | ||
開啟應用程式 | 1 2 | |
橫幅廣告 | ||
插頁式 | ||
已獲得獎勵 | ||
插頁式獎勵廣告 | ||
原生 | 1 3 |
1 這種格式的出價整合目前仍在 Beta 版封測階段。
2 這種格式的瀑布整合功能目前仍在 Beta 版封測階段。
需求條件
- 最新版 Google Mobile Ads SDK
步驟 1:在 Mintegral UI 中設定設定
Sign up or Log in to your Mintegral account.
Locate the App Key
Navigate to the APP Setting tab and take note of the APP Key.
Add a new application
From the APP Setting tab, click the Add APP button.
Select the Platform and fill out the rest of the form. Then, click Save.
Android
iOS
Take note of your application's APP ID.
Android
iOS
Create an ad placement
Once your application has been created, navigate to the Placements & Units tab and click on the Add Placement button as shown below to create your ad placement.
Android
iOS
Enter a Placement Name and AD Format.
Bidding
Select Header Bidding as the Bidding Type. Fill out the rest of the form and click Save.
Waterfall
Select Traditional as the Bidding Type. Fill out the rest of the form and click Save.
Once your ad placement is created, take note of the Placement ID.
Android
iOS
Click the 1 AD Units drop down and take note of the AD Unit ID.
Android
iOS
Locate your Mintegral Reporting API Key
Bidding
This step isn't required for bidding integrations.
Waterfall
You will need your Mintegral Reporting API Key for setting up your AdMob ad unit ID. Navigate to Account > API Tools. Take note of your Skey and Secret.
步驟 2:在使用者介面中設定 Mintegral 需求 AdMob
調整廣告單元中介服務設定
新增 Mintegral 至 GDPR 和美國州級法規廣告合作夥伴名單
請按照 GDPR 設定 和 美國州級法規設定 ,在 AdMob UI 和美國州級法規廣告合作夥伴清單中新增 Mintegral。
步驟 3:匯入 Mintegral SDK 和轉接程式
從 Changelog (變更記錄) 下載連結下載最新版 Mintegral 的 Google 行動廣告中介服務外掛程式,並從 ZIP 檔案中擷取 GoogleMobileAdsMintegralMediation.unitypackage
。
在 Unity 專案編輯器中,依序選取「Assets」>「Import Package」>「Custom Package」,然後找出下載的 GoogleMobileAdsMintegralMediation.unitypackage
檔案。確認已選取所有檔案,然後按一下「Import」。
接著,依序選取「Assets」>「Play Services Resolver」>「Android Resolver」>「Force Resolve」(強制解析)。Unity Play 服務解析器程式庫會從頭開始執行依附元件解析作業,並將宣告的依附元件複製到 Unity 應用程式的 Assets/Plugins/Android
目錄中。
步驟 4:新增必要的程式碼
Android
使用 Mintegral 整合時不需要額外程式碼。
iOS
SKAdNetwork 整合
按照 Mintegral 說明文件的說明,將 SKAdNetwork ID 新增至專案的 Info.plist
檔案。
步驟 5:測試實作成果
啟用測試廣告
請務必為 AdMob。
如要取得適用於橫幅廣告、插頁式廣告、獎勵和原生廣告格式的 Mintegral 測試廣告,Mintegral 建議使用 Mintegral Test ID 頁面。
驗證測試廣告
如要確認您正在接收來自Mintegral的測試廣告,請使用 Mintegral (Bidding) and Mintegral (Waterfall) 廣告來源在廣告檢查器中啟用單一廣告來源測試。
錯誤代碼
如果轉接程式無法接收來自 Mintegral 的廣告,發布商可以使用下列類別下的 ResponseInfo
,查看廣告回應的根本錯誤:
Android
com.mbridge.msdk
com.google.ads.mediation.mintegral.MintegralMediationAdapter
iOS
GADMediationAdapterMintegral
以下是廣告無法載入時,Mintegral 轉接程式擲回的代碼和隨附訊息:
Android
錯誤代碼 | 網域 | 原因 |
---|---|---|
101 | com.google.ads.mediation.mintegral | 伺服器參數無效 (例如缺少應用程式 ID 或刊登位置 ID)。 |
102 | com.google.ads.mediation.mintegral | 要求的廣告大小不符合 Mintegral 支援的橫幅廣告大小。 |
103 | com.google.ads.mediation.mintegral | 出價回應遺失或無效。 |
104 | com.google.ads.mediation.mintegral | Mintegral SDK 傳回未供應廣告的錯誤。 |
iOS
錯誤代碼 | 網域 | 原因 |
---|---|---|
101 | com.google.mediation.mintegral | 伺服器參數無效 (例如缺少應用程式 ID 或刊登位置 ID)。 |
102 | com.google.mediation.mintegral | Mintegral SDK 傳回未供應廣告的錯誤。 |
103 | com.google.mediation.mintegral | Mintegral SDK 無法顯示廣告。 |
104 | com.google.mediation.mintegral | 要求的廣告大小不符合 Mintegral 支援的橫幅廣告大小。 |
Mintegral Unity 中介服務外掛程式變更記錄
1.6.4 版
- 支援 Mintegral Android 轉接器 16.7.61.0 版。
- 支援 Mintegral iOS 轉接器 7.6.7.0 版。
- 使用 Google 行動廣告 Unity 外掛程式 9.1.0 版建立並測試。
1.6.3 版
- 支援 Mintegral Android 轉接器 16.7.41.0 版。
- 支援 Mintegral iOS 轉接器 7.6.6.0 版。
- 使用 Google 行動廣告 Unity 外掛程式 9.1.0 版建立並測試。
1.6.2 版
- 支援 Mintegral Android 轉接器 16.7.41.0 版。
- 支援 Mintegral iOS 轉接器 7.6.4.0 版。
- 使用 Google 行動廣告 Unity 外掛程式 9.1.0 版建立並測試。
1.6.1 版
- 支援 Mintegral Android 轉接器 16.7.21.0 版。
- 支援 Mintegral iOS 轉接器 7.6.3.0 版。
- 使用 Google 行動廣告 Unity 外掛程式 9.1.0 版建立並測試。
1.6.0 版
- 支援 Mintegral Android 轉接器 16.7.11.0 版。
- 支援 Mintegral iOS 轉接器 7.6.2.0 版。
- 使用 Google 行動廣告 Unity 外掛程式 9.0.0 版建立並測試。
1.5.0 版
- 支援 Mintegral Android 轉接器 16.6.71.0 版。
- 支援 Mintegral iOS 轉接器 7.6.0.0 版。
- 使用 Google 行動廣告 Unity 外掛程式 9.0.0 版建立並測試。
1.4.0 版
- 支援 Mintegral Android 轉接器 16.6.34.0 版。
- 支援 Mintegral iOS 轉接器 7.5.6.0 版。
- 請使用 Google 行動廣告 Unity 外掛程式 8.7.0 版建立並測試。
1.3.0 版
- 支援 Mintegral Android 轉接器 16.5.91.0 版。
- 支援 Mintegral iOS 轉接器 7.5.3.0 版。
- 已將下列方法新增至
Mintegral
類別:SetConsentStatus(bool)
SetDoNotTrackStatus(bool)
- 請使用 Google 行動廣告 Unity 外掛程式 8.6.0 版建立並測試。
1.2.1 版
- 支援 Mintegral Android 轉接器 16.4.61.0 版。
- 支援 Mintegral iOS 轉接器 7.3.8.0 版。
- 請使用 Google 行動廣告 Unity 外掛程式 8.3.0 版建立並測試。
1.2.0 版
- 已將轉接器內容移至
GoogleMobileAds/Mediation/Mintegral/
。 - 支援 Mintegral Android 轉接器 16.4.41.0 版。
- 支援 Mintegral iOS 轉接器 7.3.6.0 版。
- 請使用 Google 行動廣告 Unity 外掛程式 8.3.0 版建立並測試。
1.1.0 版
- 支援 Mintegral Android 轉接器 16.3.61.0 版。
- 支援 Mintegral iOS 轉接器 7.2.9.1 版。
- 請使用 Google 行動廣告 Unity 外掛程式 7.4.1 版建立並測試。
1.0.0 版
- 初始版本!
- 支援 Mintegral Android 轉接器 16.2.61.0 版。
- 支援 Mintegral iOS 轉接器 7.2.6.0 版。
- 使用 Google 行動廣告 Unity 外掛程式 7.3.1 版建立並測試。