Hướng dẫn: Tối ưu hoá mô hình kiếm tiền kết hợp bằng AdMob, Google Analytics và Firebase
Sử dụng bộ sưu tập để sắp xếp ngăn nắp các trang
Lưu và phân loại nội dung dựa trên lựa chọn ưu tiên của bạn.
Hướng dẫn giải pháp
Thông thường, trọng tâm ban đầu để kiếm tiền từ ứng dụng là mua hàng trong ứng dụng, nhưng
thị trường cho thấy quảng cáo trong ứng dụng là nguồn doanh thu cao nhất cho ứng dụng.
Trên thực tế, theo một số báo cáo, quảng cáo trong ứng dụng dự kiến sẽ tăng
gần 50%, trong khi doanh thu từ giao dịch mua hàng trong ứng dụng dự kiến sẽ chỉ tăng khoảng
30%. Ngoài ra, chỉ có khoảng 5% người dùng mua hàng, có nghĩa là đối với
phần lớn cơ sở người dùng, bạn cần triển khai tính năng kiếm tiền
chiến lược – chẳng hạn như quảng cáo trong ứng dụng.
Phương pháp kiếm tiền kết hợp có thể nắm bắt mọi phân khúc người dùng của bạn. Tuy nhiên,
việc tối ưu hoá chiến lược đó rất phức tạp, nhưng Google có cung cấp các công cụ và sản phẩm
để trợ giúp.
Sử dụng Google AdMob để tạo và triển khai đơn vị quảng cáo sẽ hiển thị trong
ứng dụng, sau đó AdMob đảm nhận việc kết nối nhà quảng cáo với không gian quảng cáo đó.
Thiết lập Google Analytics để linh động phân khúc người dùng của bạn thành các danh mục
(như "Người mua"), mà sau đó bạn có thể tận dụng để triển khai kết hợp
kiếm tiền.
Sử dụng Firebase Remote Config để tự động phân phát quảng cáo trong ứng dụng
trải nghiệm của bạn trong ứng dụng dựa trên việc người dùng có thuộc "Người mua" đó hay không đối tượng
hoặc không.
Kiến thức bạn sẽ học được
Trong hướng dẫn nhiều bước này, bạn sẽ tìm hiểu cách sử dụng Google AdMob,
Đối tượng Google Analytics và Firebase để triển khai và tối ưu hoá kết hợp
kiếm tiền. Chiến dịch này sử dụng
quảng cáo xen kẽ
như trường hợp kiểm thử mẫu, nhưng bạn có thể ngoại suy và sử dụng các thuộc tính này
Nếu bạn muốn sử dụng một
định dạng quảng cáo khác.
Lưu ý rằng hướng dẫn này giả định rằng bạn có hiểu biết cơ bản về
Google AdMob và nền tảng Firebase mà bạn muốn tìm hiểu cách
tối ưu hoá hoạt động kiếm tiền từ quảng cáo trong ứng dụng bằng cách sử dụng Google Analytics và
Firebase Remote Config.
Các sản phẩm và tính năng được sử dụng trong hướng dẫn này
Google AdMob
Google AdMob cho phép bạn tạo đơn vị quảng cáo
sẽ được phân phát trong ứng dụng của bạn. Khi bạn liên kết AdMob với Firebase,
AdMob gửi thông tin doanh thu từ quảng cáo đến Firebase để cải thiện chiến lược quảng cáo
tối ưu hoá.
Google Analytics
Google Analytics cung cấp cho bạn thông tin chi tiết về
chỉ số mức độ tương tác của người dùng, tỷ lệ giữ chân và khả năng kiếm tiền như tổng doanh thu,
Doanh thu AdMob, doanh thu từ giao dịch mua hàng và nhiều thông tin khác. Tính năng này cũng cho phép bạn tạo đối tượng và phân khúc người dùng.
Firebase Remote Config
Firebase Remote Config cho phép bạn
tự động thay đổi và tuỳ chỉnh hành vi cũng như giao diện của ứng dụng cho
phân khúc người dùng mong muốn — tất cả mà không cần xuất bản phiên bản mới của
. Trong hướng dẫn này, bạn sẽ sử dụng tham số Remote Config để
kiểm soát liệu một đơn vị quảng cáo mới có hiển thị cho người dùng của bạn hay không dựa trên
vị trí trong đối tượng Google Analytics.
Thiết lập các thông số và điều kiện Remote Config trong
Bảng điều khiển Firebase.
Thêm SDK Remote Config vào cơ sở mã của ứng dụng.
Định cấu hình thực thể Remote Config.
Tìm nạp và kích hoạt Remote Config.
Sử dụng giá trị tham số Remote Config.
Phát hành ứng dụng.
Bạn cần có
Ứng dụng của riêng bạn (dự án iOS, Android, Flutter hoặc Unity)
Ứng dụng của bạn đã đăng ký dưới dạng một ứng dụng Firebase được liên kết với một ứng dụng AdMob
(tìm hiểu thêm).
Điều này có nghĩa là những thao tác sau cũng được thực hiện:
Bạn đã bật Google Analytics trong dự án Firebase của mình (có nghĩa là bạn đã
đã liên kết dự án Firebase với một tài sản Google Analytics).
Bạn đã thêm cấu hình Firebase hiện hành vào cơ sở mã của ứng dụng.
Quyền truy cập vào tài khoản AdMob được liên kết với ứng dụng của bạn, có quyền tạo
đơn vị quảng cáo mới
Quyền truy cập vào dự án Firebase được liên kết của ứng dụng, với quyền tạo
và quản lý Firebase Remote Config
Quyền truy cập vào tài sản Google Analytics được liên kết với dự án Firebase của bạn bằng
quyền tạo đối tượng (ít nhất là vai trò Người chỉnh sửa)
Môi trường phát triển tích hợp (IDE) mà bạn muốn sử dụng
Bảng thuật ngữ
Xem danh sách các thuật ngữ phổ biến cho giải pháp này
Sự kiện Google Analytics:
Những hành động mà người dùng thực hiện trong ứng dụng của bạn, chẳng hạn như mua hàng trong ứng dụng, nhấp vào
quảng cáo, đăng nhập vào ứng dụng, v.v.
Đối tượng Google Analytics:
Một phân khúc người dùng có cùng thuộc tính. Tất cả người dùng trong một
đã thể hiện hành vi tương tự trong ứng dụng của bạn (ví dụ:
thêm một mặt hàng vào giỏ hàng) và/hoặc chia sẻ dữ liệu nhân khẩu học hoặc dữ liệu mô tả khác (đối với
ví dụ: độ tuổi).
Tham số Remote Config: Tham số có thể định cấu hình (cặp khoá-giá trị)
dùng để kiểm soát việc ứng dụng có hiển thị quảng cáo hay không. Trong phần triển khai cơ bản của hướng dẫn này, giá trị này sẽ có giá trị boolean.
Điều kiện Remote Config: Điều kiện được dùng để nhắm mục tiêu một nhóm ứng dụng
thực thể. Các điều kiện được tạo thành từ một hoặc nhiều quy tắc mà tất cả phải đánh giá
thành true cho điều kiện để đánh giá thành true cho một thực thể ứng dụng nhất định.
[null,null,["Cập nhật lần gần đây nhất: 2025-07-25 UTC."],[],[],null,["**Solution tutorial**\n\nOftentimes, the initial focus for app monetization is in-app purchases, but the\nmarket shows that in-app advertising is a top revenue stream for apps.\n\nIn fact, according to some reports, in-app advertising is projected to grow\nnearly 50%, whereas in-app purchase revenue is projected to grow only by about\n30%. In addition, only about 5% of users make purchases, which means that for\nthe *majority of your user base*, you need to implement a monetization\nstrategy --- like in-app advertising.\n\nA hybrid approach to monetization can capture all your user segments. However,\noptimizing that strategy is complicated, but Google offers tooling and products\nto help.\n\n- Use **Google AdMob** to create and implement ad units to display in your\n app, and then AdMob takes care of connecting advertisers to that ad space.\n\n- Set up **Google Analytics** to dynamically segment your users into categories\n (like \"Purchasers\"), which you can then leverage to implement hybrid\n monetization.\n\n- Use **Firebase Remote Config** to dynamically serve an in-app ads\n experience in your app based on whether a user is in that \"Purchaser\" audience\n or not.\n\nWhat you'll learn\n\nIn this multistep tutorial, you'll learn how to use Google AdMob,\nGoogle Analytics audiences, and Firebase to implement and optimize a hybrid\nmonetization strategy. It uses an\n[interstitial](https://support.google.com/admob/answer/7311435) ad\nformat as the example test case, but you can extrapolate and use these same\nsteps if you want to use a\n[different ad format](https://support.google.com/admob/answer/6128738).\n\nNote that this tutorial assumes that you have a basic understanding of\nGoogle AdMob and the Firebase platform and that you'd like to learn how to\noptimize your in-app advertising monetization using Google Analytics and\nFirebase Remote Config.\n| **Tip:** If there's a term that you're not familiar with, check out the [glossary](#glossary) at the bottom of this page.\n\nProducts and features used in this tutorial\n\n|--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| Google AdMob \u003e [Google AdMob](/docs/admob) enables you to create ad units that will be served within your app. When you link AdMob with Firebase, AdMob sends ad revenue information to Firebase to improve ad strategy optimization. Google Analytics \u003e [Google Analytics](/docs/analytics) gives you insight into user engagement, retention, and monetization metrics like total revenue, AdMob revenue, purchase revenue, and much more. It also allows you to create user audiences and segments. | Firebase Remote Config \u003e [Firebase Remote Config](/docs/remote-config) enables you to dynamically change and customize the behavior and appearance of your app for desired user segments --- *all without publishing a new version of your \u003e app* . In this tutorial, you'll use Remote Config parameters to control whether a new ad unit is shown to your users based on their placement in a Google Analytics audience. |\n\nTutorial overview\n\n[Go\ndirectly to the step-by-step tutorial](/docs/tutorials/optimize-hybrid-monetization/step-1)\n\n1. [**Use\n AdMob to to create new ad units for display**](/docs/tutorials/optimize-hybrid-monetization/step-1)\n\n 1. Create an ad unit in your AdMob account.\n\n 2. Implement the ad unit in your app's codebase.\n\n2. [**Set up\n Google Analytics**](/docs/tutorials/optimize-hybrid-monetization/step-2)\n\n 1. Add the Google Analytics for Firebase SDK to your app's codebase.\n\n 2. Understand Google Analytics audiences.\n\n3. [**Set up\n Firebase Remote Config to show specific ads experiences**](/docs/tutorials/optimize-hybrid-monetization/step-3)\n\n 1. Set up Remote Config parameters and conditions in the\n Firebase console.\n\n 2. Add the Remote Config SDK to your app's codebase.\n\n 3. Configure the Remote Config instance.\n\n 4. Fetch and activate Remote Config.\n\n 5. Use the Remote Config parameter value.\n\n 6. Release your app.\n\nWhat you'll need\n\n- Your own app (iOS, Android, Flutter, or Unity project)\n\n- Your app registered as a Firebase App that's linked to an AdMob App\n ([learn more](//support.google.com/admob/answer/6383165)). \n\n This means the following are also done:\n\n - You've enabled Google Analytics in your Firebase project (meaning you've\n linked your Firebase project to a Google Analytics property).\n\n - You've added the applicable Firebase configuration to your app's codebase.\n\n- *(Android apps or apps targeting Android)*\n [Link your Firebase App to Google Play](https://support.google.com/firebase/answer/6392038)\n (required to get in-app purchase event data)\n\n- Access to your app's associated AdMob account, with permissions to create\n new ad units\n\n- Access to your app's associated Firebase project, with permissions to create\n and manage Firebase Remote Config\n\n- Access to the Google Analytics property linked to your Firebase project, with\n permissions to create audiences (at least Editor role)\n\n- Your preferred IDE\n\nGlossary\n\n\u003cbr /\u003e\n\nView a list of common terms for this solution\n\n\u003cbr /\u003e\n\n- **Google Analytics [events](https://support.google.com/firebase/answer/6317485)**:\n Actions that users take in your app, like making an in-app purchase, clicking\n an ad, signing into your app, etc.\n\n- **Google Analytics [audience](https://support.google.com/analytics/answer/9267572)**:\n A segment of your user base who share the same attributes. All the users in a\n given audience have exhibited the same behavior in your app (for example,\n added an item to cart) and/or share demographic or other descriptive data (for\n example, age range).\n\n- **Remote Config parameter**: The configurable parameter (key-value pair)\n used to control whether the app shows ads or not. In the basic implementation\n of this guide, it will have a boolean value.\n\n- **Remote Config condition**: A condition is used to target a group of app\n instances. Conditions are made up of one or more rules that must all evaluate\n to true for the condition to evaluate to true for a given app instance.\n\n\u003cbr /\u003e\n\n\u003cbr /\u003e\n\n\u003cbr /\u003e\n\n*** ** * ** ***\n\n\u003cbr /\u003e\n\n[**Step 1** : Use AdMob to create new ad units for display\narrow_forward_ios](/docs/tutorials/optimize-hybrid-monetization/step-1)\n\n\u003cbr /\u003e\n\n\u003cbr /\u003e\n\n*** ** * ** ***"]]