当前位置: 首页 > news >正文

网站开发用了什么平台网站制作费用一览表

网站开发用了什么平台,网站制作费用一览表,全国企业信息信用公示系统,武汉阳逻定制公交线路Unity 欧盟UMP用户协议Android接入指南 官方文档链接开始接入mainTemplate.gradle 中引入CustomUnityPlayerActivity 导入UMP相关的包java类中新增字段初始化UMPSDK方法调用![在这里插入图片描述](https://img-blog.csdnimg.cn/direct/d882171b068c46a1b956e80425f3a9cf.png)测…

Unity 欧盟UMP用户协议Android接入指南

    • 官方文档链接
    • 开始接入
      • mainTemplate.gradle 中引入
      • CustomUnityPlayerActivity 导入UMP相关的包
        • java类中新增字段
        • 初始化UMPSDK方法
        • 调用![在这里插入图片描述](https://img-blog.csdnimg.cn/direct/d882171b068c46a1b956e80425f3a9cf.png)
        • 测试
        • 获取测试设备ID
        • 需要和发行沟通一下 开启UMP测试
        • 真机端测试配置环境
        • 接通成功应展示的界面

在这里插入图片描述

官方文档链接

Google 欧盟地区用户意见征求政策 UMPSDK接入文档

开始接入

mainTemplate.gradle 中引入

项目路径下 Assets/Plugins/Android/mainTemplate.gradle
在这里插入图片描述

implementation 'com.google.android.ump:user-messaging-platform:2.1.0'

CustomUnityPlayerActivity 导入UMP相关的包

import com.google.android.ump.ConsentInformation;
import com.google.android.ump.ConsentRequestParameters;
import com.google.android.ump.FormError;
import com.google.android.ump.UserMessagingPlatform;
import com.google.android.ump.ConsentForm;
import com.google.android.ump.ConsentDebugSettings;
java类中新增字段
   private ConsentInformation consentInformation;boolean isUseEEA = false;boolean isUseTestDeivce = false;boolean isResetUMP = false;
初始化UMPSDK方法

在下面代码注释 “加载广告”的地方处理你的开屏广告

 private  void InitUMPSDK(){if(isUseTestDeivce && isUseEEA){   ConsentDebugSettings debugSettings = new ConsentDebugSettings.Builder(this).setDebugGeography(ConsentDebugSettings.DebugGeography.DEBUG_GEOGRAPHY_EEA).addTestDeviceHashedId("TEST-DEVICE-HASHED-ID").build();}// Set tag for under age of consent. false means users are not under age// of consent.ConsentRequestParameters params = new ConsentRequestParameters.Builder().setTagForUnderAgeOfConsent(false).build();consentInformation = UserMessagingPlatform.getConsentInformation(this);consentInformation.requestConsentInfoUpdate(this,params,(ConsentInformation.OnConsentInfoUpdateSuccessListener) () -> {UserMessagingPlatform.loadAndShowConsentFormIfRequired(this,(ConsentForm.OnConsentFormDismissedListener) loadAndShowError -> {if (loadAndShowError != null) {// Consent gathering failed.Log.w(TAG, String.format("%s: %s",loadAndShowError.getErrorCode(),loadAndShowError.getMessage()));}// Consent has been gathered.if (consentInformation.canRequestAds()) {// 在此处加载广告/// tpSplash.showAd();}});},(ConsentInformation.OnConsentInfoUpdateFailureListener) requestConsentError -> {// Consent gathering failed.Log.w(TAG, String.format("%s: %s",requestConsentError.getErrorCode(),requestConsentError.getMessage()));});// Check if you can initialize the Google Mobile Ads SDK in parallel// while checking for new consent information. Consent obtained in// the previous session can be used to request ads.if (consentInformation.canRequestAds()) {// 在此处加载广告/// tpSplash.showAd();}if(isResetUMP){consentInformation.reset();}//记录有没有授权SharedPreferences.Editor editor = sharedPreferences.edit();editor.putBoolean("authorization", true); //editor.apply();}
调用在这里插入图片描述
测试

TEST-DEVICE-HASHED-ID 为你的设备测试ID
在这里插入图片描述

获取测试设备ID

当isUseEEA,isUseTestDeivce,isResetUMP都为true时运行后搜setTestDeviceIds在这里插入图片描述

在这里插入图片描述

需要和发行沟通一下 开启UMP测试

在这里插入图片描述

真机端测试配置环境

开启VPN -选德国节点

接通成功应展示的界面

在这里插入图片描述

http://www.rdtb.cn/news/21598.html

相关文章:

  • 三维家是在网站上做还是在app上网络营销模式下品牌推广研究
  • 淘宝做网站费用深圳货拉拉
  • 服务器里怎么建设网站关键词投放
  • 泰州网站建设与网页制作营销策略有哪些有效手段
  • adobe做网站的是哪个软件世界杯32强排名
  • 手机网站导航菜单营销型网站的公司
  • 徐州玉龙湾旅游开发公司seo优化公司
  • 曲阜做网站哪家好b2b网站平台有哪些
  • 好用的土木建筑网站推广软件赚钱的app
  • 黄骅做网站的电话seo整站优化费用
  • 怎么做网页设计稿seo网站优化经理
  • 网站开发的工具某网站seo诊断分析和优化方案
  • 云主机怎么做网站十大网络营销经典案例
  • 网站网页设计百度文库官网
  • 游戏网站建设毕业论文推广普通话活动方案
  • 如何在app上做网站竞价托管哪家便宜
  • 建一个网站需要哪些人分类信息网站平台有哪些
  • 网站制作公司 深圳谷歌浏览器app下载
  • 大型网站订单系统怎么设计长春网站快速排名提升
  • 做网站的商标是哪类做网站哪家公司比较好而且不贵
  • 怎么做用户调研网站推广app平台有哪些
  • 济南网站技术个人推广app的妙招
  • 陕西网站开发公司哪家好seo关键词排名优化怎样
  • 搭建网站服务外贸平台app
  • 网站后台素材宁波网站快速优化
  • 网站开发技术创业计划b站推广
  • 怎么做百度口碑网站营销型网站建设公司价格
  • 嘉祥网站建设友情链接交换平台源码
  • 普陀区建设和交通委员会网站优化大师的三大功能
  • 佛山做app网站线下推广渠道和方式