Google内容映射 功能
一、Google内容映射说明
借助应用内容映射,您可以面向用户投放与内容相关的广告,并确保广告放置在适合您广告客户的内容附近。 Google参考文档
- 适用客户:内容型产品,比如小说、新闻、漫画类APP
- 支持的广告类型:原生广告,横幅广告
- 开始支持版本
| 平台 | 版本 |
|---|---|
| Android | V9.6.10.1+ |
| iOS | V9.3.0+ |
| Unity | 插件版本v1.0.9+ |
| Flutter | 插件版本v1.0.9+ |
二、调用方法
Android平台
// 支持最多传入4 个 URL
HashMap<String, Object> mLocalExtras = new HashMap<>();
ArrayList<String> urls = new ArrayList<>();
urls.add("https://www.example.com");
urls.add("https://www.mycontenturl1.com");
urls.add("https://www.mycontenturl3.com");
urls.add("https://www.mycontenturl4.com");
mLocalExtras.put("google_neighboring_contenturls", urls);
//以Native作为示例
tpNative.setCustomParams(mLocalExtras);
// 请求广告前调用
tpNative.loadAd();