本帖最后由 cg小白兔 于 2024-5-22 15:40 编辑
Hi, devs! I've made a simple wrapper for different ad networks. Basically, the idea was that you install plugins, setup keys and placement IDs. And then just show ads with 1 call. You don't need to learn SDK docs, initialize plugins, load and reload ads, subscribe to events an other boring things. The wrapper hides low-level things and provides unified high-level functions like showing ads. Moreover, it supports waterfalls based on Remote Config, so you can setup what to show first based on eCPM data at runtime.
Features:
● Supported ads: UnityAds, AdMob, IronSouce, Vungle, YandexAds
● Basic formats: Interstitial, Rewarded and Banner
● AdManager, an unified wrapper for all networks
● You can add new networks support by adding new adapters
● Remote waterfalls using Remote Config (separate for each ad type)
Setup steps:
1. Chose ad networks: UnityAds, AdMob, IronSource, Vungle, YandexAds (at least one). Start from AdMob if you're new with ads.
2. Visit ad provider websites and register, add your app, create ad placements. Get App Key and Placement IDs.
3. Download and import official ad packages for Unity (for chosen networks).
4. Add AdManger to your scene and enable ad networks.
5. Adapter components will be added next to AdManager. Setup App Key and Placement IDs for each adapter.
6. Show ads with ShowInterstitial, ShowRewarded and ShowBanner.
7. Enable [Custom Proguard File] to keep java libs if [Minimize] is enabled (proguard-user.txt included, just in case).
8. Check device logs with adb logcat to make sure that everything is fine.
Waterfall setup steps:
1. Enable Use Remote Waterfall in AdManager.
2. Import Remote Config from Package Manager.
3. Open Remote Config and create string keys: AdManager.Waterfall.Interstitial, AdManager.Waterfall.Rewarded, AdManager.Waterfall.Banner.
4. Set comma-separated values "IronSource,AdMob,UnityAds,Vungle" (change priority if needed), press [Push].
5. Run and check logs in Console.
What to do with other networks? Mediation? Bidding?
1. Visit Get started section.
2. Enable AdMob mediation, choose networks (for example, AdColony or AppLovin).
3. Install adapters for selected ad networks from Choose networks section.
4. Run on a device an check logs from AdapterAdMob.
Support:
● Discord - questions, live chat with developers
嗨,开发人员!我为不同的广告网络做了一个简单的包装。基本上,我们的想法是安装插件、设置密钥和投放 ID。然后只需调用一次即可显示广告。你不需要学习 SDK 文档、初始化插件、加载和重新加载广告、订阅事件以及其他无聊的事情。封装器隐藏了低级功能,提供统一的高级功能,如显示广告。此外,它还支持基于远程配置的瀑布流,因此您可以在运行时根据 eCPM 数据设置首先显示哪些内容。
功能特点
支持广告: UnityAds、AdMob、IronSouce、Vungle、YandexAds
基本格式: 插播广告、奖励广告和横幅广告
AdManager,适用于所有网络的统一包装器
可通过添加新适配器来增加对新网络的支持
使用远程配置进行远程瀑布流(每种广告类型单独设置)
设置步骤
1. 选择广告网络: UnityAds、AdMob、IronSource、Vungle、YandexAds(至少一个)。如果您是广告新手,请从 AdMob 开始。
2. 访问广告提供商网站并注册,添加您的应用程序,创建广告位。获取应用程序密钥和广告投放 ID。
3. 下载并导入 Unity 的官方广告包(针对所选网络)。
4. 在场景中添加 AdManger 并启用广告网络。
5. AdManager 旁边将添加适配器组件。为每个适配器设置 App Key 和 Placement ID。
6. 使用 ShowInterstitial、ShowRewarded 和 ShowBanner 显示广告。
7. 启用[自定义 Proguard 文件],以便在启用[最小化]时保留 java 库(包含 proguard-user.txt,以防万一)。
8. 使用 adb logcat 检查设备日志,确保一切正常。
瀑布流设置步骤:
1. 在 AdManager 中启用使用远程瀑布流。
2. 从软件包管理器导入远程配置。
3. 打开 Remote Config 并创建字符串键: AdManager.Waterfall.Interstitial、AdManager.Waterfall.Rewarded、AdManager.Waterfall.Banner。
4. 4. 设置以逗号分隔的值 "IronSource,AdMob,UnityAds,Vungle"(如有需要可更改优先级),按 [Push]。
5. 运行并检查控制台中的日志。
如何处理其他网络?调解?竞价?
1. 访问 "开始 "部分。
2. 启用 AdMob 调解,选择网络(例如 AdColony 或 AppLovin)。
3. 3. 从 "选择网络 "部分为所选广告网络安装适配器。
4. 在设备上运行,检查 AdapterAdMob 的日志。
支持:
Discord - 提出问题,与开发人员实时聊天
|