透過集合功能整理內容
你可以依據偏好儲存及分類內容。
搭配「Google AdMob」使用 Firebase
plat_ios
plat_android
plat_cpp
plat_unity
主要功能
提高應用程式內廣告的收益 |
即時放送數百萬 Google 廣告主的廣告
或使用 AdMob 中介服務,從超過 40 個付費聯播網賺取收益。
簡化廣告營運流程
免費提升競爭程度,同時賺取更多收益。
AdMob 個中介服務
廣告聯播網最佳化
內建
這項功能就會自動調整
適用於中介服務架構中其他廣告聯播網的比例
能帶來最高收益
|
改善使用者體驗 |
原生廣告會在您營利時創造良好的使用者體驗
配合應用程式的外觀和風格
選擇各種廣告範本、加以自訂
並嘗試不同的版面配置
|
快速擴充 |
宣傳全球或國內熱門應用程式時
您可以運用AdMob,快速透過使用者賺取收益。
向超過 200 個市場的使用者放送廣告
您是否有多個應用程式?「AdMob」的內部廣告是一項免費工具
可用來向現有使用者族群
交叉宣傳自家應用程式
跨應用程式。
|
存取營利報表 |
AdMob 是行動裝置首選的營利平台,
在產生廣告收益時,AdMob 也能產生
這項工具提供專屬的營利報表
做出更明智的產品策略決策
|
運作原理
Google AdMob敬上
可協助你透過應用程式內廣告,在行動應用程式中營利。廣告可以是
完美融入平台的各種格式選項
原生 UI 元件在 Android 裝置上,還可以顯示應用程式內購
使用者可在你的應用程式內購買宣傳的產品。
如要顯示廣告,您必須註冊 AdMob 個已註冊的應用程式,
Google Mobile Ads SDK (iOS |
Android)。接著即可啟用一或多項服務
廣告單元 ID,是應用程式特定位置的專屬 ID
廣告。
Mobile Ads SDK 可協助您深入瞭解使用者,進而提高成效
應用程式內購,同時盡量提升廣告收益。為了提供上述這些操作的全部內容
SDK 整合會收集裝置資訊、發布商提供的位置
資訊和一般應用程式內購資訊 (例如商品購買資訊)
價格和貨幣)。
使用者指標、Firebase 和 Google Analytics
針對最佳化應用程式使用者體驗和
廣告收益,您需要應用程式的指標和資料。共同合作
AdMob、Firebase 和 Google Analytics 提供額外等級的
有助於達到最佳化目標
在 AdMob 帳戶中查看使用者指標
啟用使用者
指標
AdMob 帳戶,以便存取新資料和功能強大的報表,例如
獎勵廣告
制定出明智的營利策略。
透過 Firebase 探索及運用數據分析資料
連結 AdMob 應用程式
至 Firebase
協助您提升應用程式營利成效和使用者參與度舉例來說,
建立自訂目標對象,甚至將 BigQuery 與數據分析資料搭配使用。
存取更多數據分析資料的自訂功能
新增 Firebase SDK
Google Analytics,以便實作
提供更符合需求的數據分析 (例如自訂事件),查看更完整的使用者
AdMob帳戶中的指標,並且開始使用其他 Firebase 產品。
進一步瞭解這些好處
額外的設定層級!
實作路徑
|
設定應用程式以使用 Firebase |
透過 Firebase 控制台將 Firebase 新增至新的或現有的應用程式。
|
|
建立 AdMob 帳戶並註冊應用程式 |
註冊 AdMob 帳戶
,將應用程式註冊為 AdMob 應用程式。發布前,請將
也就是您先前建立的所有廣告單元 ID
|
|
啟用使用者指標並將 AdMob 應用程式連結至 Firebase |
(選用,但強烈建議使用)
在 AdMob 帳戶中,啟用使用者指標即可查看精選指標。
您也可以將 AdMob 應用程式連結至 Firebase,藉此瞭解及處理以下項目:
並透過 Firebase 控制台存取 Analytics 資料
|
|
更新專案依附元件 |
在 iOS 或 Android 上使用 CocoaPods 新增 Google Mobile Ads SDK。
|
|
在應用程式中導入第一則廣告 |
使用 Mobile Ads SDK,在應用程式使用者介面中建立橫幅廣告的空間
廣告 (這是一個不錯的開始方式!)。您可以
或採用可根據裝置尺寸調整大小的智慧型橫幅廣告
以及螢幕方向
|
後續步驟
除非另有註明,否則本頁面中的內容是採用創用 CC 姓名標示 4.0 授權,程式碼範例則為阿帕契 2.0 授權。詳情請參閱《Google Developers 網站政策》。Java 是 Oracle 和/或其關聯企業的註冊商標。
上次更新時間:2025-07-25 (世界標準時間)。
[null,null,["上次更新時間:2025-07-25 (世界標準時間)。"],[],[],null,["# Use Firebase with Google AdMob\n==============================\n\nplat_ios plat_android plat_cpp plat_unity \nGoogle AdMob is an easy way to monetize mobile apps\nwith targeted, in-app advertising. \n[Google AdMob](//admob.google.com/home/?utm_source=firebase&utm_medium=et&utm_campaign=firebase-docs&utm_content=2017Q1) is a mobile advertising platform that you can use to generate revenue from your app. Using Firebase with AdMob provides you with additional app usage data and analytics capabilities.\n\n\u003cbr /\u003e\n\n\u003cbr /\u003e\n\nReady to get started? Choose your platform:\n\n[iOS+](/docs/admob/ios/quick-start)\n[Android](/docs/admob/android/quick-start)\n[Unity](/docs/admob/unity/start)\n[C++](/docs/admob/cpp/quick-start)\n\n\u003cbr /\u003e\n\nKey capabilities\n----------------\n\n|-----------------------------|----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| Earn more from in-app ads | Show ads from millions of Google advertisers in real time or use AdMob mediation to earn from over 40 premium networks. Simplify your ad operations, improve competition, and earn more, for free. AdMob mediation has [ad network optimization](//support.google.com/admob/answer/3379794) built in, which automatically adjusts the positions of your other ad networks in your mediation stack, which maximizes your revenue. |\n| Improve user experience | Native ads create a positive user experience as you monetize by matching the look and feel of your app. Choose from different ad templates, customize them, and experiment with different layout. |\n| Scale fast | When your app is a global or domestic hit, you can monetize users quickly with AdMob, by showing ads to users in more than 200 markets. Do you have more than one app? House ads from AdMob is a free tool that enables you to cross-promote your apps to your user base, across your family of apps. |\n| Access monetization reports | AdMob is the premier monetization platform for mobile. While generating ad revenue, AdMob also produces its own monetization reports that you can use to make smarter decisions about product strategy. |\n\nHow does it work?\n-----------------\n\n[Google AdMob](//www.google.com/admob/?utm_source=firebase&utm_medium=et&utm_campaign=firebase-docs&utm_content=2017Q1)\nhelps you monetize your mobile app through in-app advertising. Ads can be\ndisplayed using various format options which are seamlessly added to platform\nnative UI components. On Android, you can additionally display in-app purchase\nads, allowing users to purchase advertised products from within your app.\n\n|--------|--------------|--------|----------|\n| Banner | Interstitial | Native | Rewarded |\n\nTo display ads, you'll need an AdMob-registered app that integrates the\nGoogle Mobile Ads SDK ([iOS](/docs/admob/ios/quick-start) \\|\n[Android](/docs/admob/android/quick-start)). You can then activate one or more\nAd Unit IDs which are unique identifiers for the places in your app to display\nads.\n\nThe Mobile Ads SDK helps you gain insights about your users, drive\nmore in-app purchases, and maximize ad revenue. To do all this, the default\nintegration of the SDK collects device information, publisher-provided location\ninformation, and general in-app purchase information (such as item purchase\nprice and currency).\n\n### User metrics, Firebase, and Google Analytics\n\nTo make informed decisions about optimizing your app's user experience and your\nad revenue, you'll need metrics and data from your app. Working together,\nAdMob, Firebase, and Google Analytics offer additional levels of\nconfiguration to help you achieve your optimization goals.\n\n1. **View user metrics in your AdMob account**\n\n [Enable user\n metrics](//support.google.com/admob/answer/9263723) in your\n AdMob account to access new data and powerful reports, such as the\n [rewarded report](//support.google.com/admob/answer/9005580),\n that may help inform your monetization strategy.\n2. **Explore and work with your analytics data via Firebase**\n\n [Link your AdMob app\n to Firebase](//support.google.com/admob/answer/6383165)\n to help you improve app monetization and user engagement. For example, you\n can build custom audiences and even use BigQuery with your analytics data.\n3. **Access more customization features for your analytics data**\n\n [Add the Firebase SDK for\n Google Analytics](/docs/admob/analytics-and-firebase) to implement\n more customized analytics (like custom events), view more complete user\n metrics in your AdMob account, and start using other Firebase products.\n\nLearn more about the [benefits](/docs/admob/analytics-and-firebase) of these\nadditional levels of configuration!\n\nImplementation path\n-------------------\n\n|---|---------------------------------------------------------|------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| | Configure your app to use Firebase | Add Firebase to your new or existing app in the Firebase console. |\n| | Create an AdMob account and register your app | [Sign up for an AdMob account](http://www.google.com/admob/?subid=WW-EN-ET-firebase-docs&utm_source=internal&utm_medium=et&utm_campaign=firebase-docs) and register your app as an AdMob app. Before you publish, add to your app any Ad Unit IDs that you've created. |\n| | Enable user metrics and link your AdMob app to Firebase | *(Optional, but strongly recommended)* In your AdMob account, enable user metrics to view curated metrics. Also, link your AdMob app to Firebase to explore and work with your analytics data via the Firebase console. |\n| | Update project dependencies | Add the Google Mobile Ads SDK using CocoaPods on iOS or Gradle on Android. |\n| | Implement your first ad in your app | Use the Mobile Ads SDK to create space in your app UI for a banner ad (a great place to start!). You can set the layout to just the way you like it or use smart banners that will resize depending on the device size and orientation. |\n\nNext steps\n----------\n\n- Learn how to get started on [iOS](/docs/admob/ios/quick-start) or\n [Android](/docs/admob/android/quick-start).\n\n- Follow the quickstart, a tutorial that guides you through setting up AdMob\n on [iOS](//github.com/firebase/quickstart-ios/tree/master/admob/)\n and\n [Android](//github.com/firebase/quickstart-android/tree/master/admob/).\n\n- Optimize ad monetization for your app by trying out different ad formats or\n configurations with a small subset of users, and then making data driven\n decisions about implementing the ad for all your users.\n To learn more, check out the following tutorials:\n\n - *Test new ad format adoption*\n ([overview](/docs/tutorials/admob_test-new-ad-format-adoption_solution-overview) \\|\n [implementation](/docs/tutorials/admob_test-new-ad-format-adoption_implementation-guide)).\n\n - *Optimize ad frequency*\n ([overview](/docs/tutorials/optimize-ad-frequency/solution-overview) \\|\n [implementation](/docs/tutorials/optimize-ad-frequency))."]]