当前位置:网站首页>【HMS core】【Ads Kit】Huawei Advertising——Overseas applications are tested in China. Official advertisements cannot be displayed
【HMS core】【Ads Kit】Huawei Advertising——Overseas applications are tested in China. Official advertisements cannot be displayed
2022-08-03 04:40:00 【Huawei developers BBS】
1. Description of the problem
Use the test advertising id to test, the advertisement can be displayed normally. When using the official advertising id, the VPN is turned on, the country of the application market is switched to the United Kingdom, and the time point on the mobile phone is also switched to the corresponding country, and then the advertisement cannot be displayed normally. The error codes reported from the log are 3 and 2. The log is shown in the following figure:

2. Solutions
In order to solve this problem, we need to start from the following aspects, and implement corresponding solutions for each situation to investigate:
The first case:
You can see that there are clear error codes 2 and 3 in the log, so what we need to do is to find the description of the error code, and check whether our application is satisfied according to the description. The description of the error code in the advertisement Android-Java&Kotlin partDocumentation, we can view the following links:

There are specific instructions in 2 and 3 in the document, and we check according to our actual situation.
Second case:
Because this application is tested by overseas applications in China, we also have to consider whether the scenario meets the relevant conditions that overseas applications need to meet when they are tested in China. The specific conditions are as follows:
For overseas applications to be tested in China, the following conditions must be met:
1. The test machine should be an overseas device, and the network environment should be the network in the corresponding overseas area. In the case of using WIFI, it is recommended not to insert a SIM card, otherwiseMake sure that the SIM card is the SIM card of the corresponding region;
2. Change the country and device language in the mobile application market to the corresponding region as much as possible;
3. Change the location of the mobile phone to the corresponding region. Change method:
Settings -> System and Updates -> Language and Input Method -> Language and Region -> Region
Settings -> System & updates -> Language & input -> Language and region -> Region
4. The phone'sThe system time is set to standard time.
Description:
Overseas devices, overseas networks, and mobile phone regions must be guaranteed to be overseas. Some advertisements will match the device language, so it is best to change the language of the corresponding region. The SIM card and application market country areInterference factors, the SIM card will affect which server address to send the request to.
OK, we can check carefully according to the above two situations!
| For more technical articles, please visit: https://developer.huawei.com/consumer/cn/forum/topic/0202817233486630009?fid=18?ha_source=zzh |
边栏推荐
- 7.Keras开发简介
- Redis连接不上的报错解决方案汇总
- Assembly answers
- 2022 the first of the new league henan (4) : zhengzhou university of light industry G - maze
- JS底层手写
- Interface test practice | Detailed explanation of the difference between GET / POST requests
- 安装ambari
- v-on指令:为元素绑定事件
- 私域流量时代来临,电商企业如何布局?
- 直播|StarRocks 技术内幕 :低基数全局字典优化
猜你喜欢

【Harmony OS】【FAQ】鸿蒙问题合集1

OSI的分层特点、传输过程与三次握手、四次挥手、tcp与udp包头的描述

软件开发的最大的区别是什么?

CobalStrike(CS)基础超级详细版

unity2D横板游戏教程6-敌人AI以及受击动画

【生物素叠氮化物|cas:908007-17-0】价格_厂家

Unity2D horizontal board game tutorial 6 - enemy AI and attack animation

三丁基-巯基膦烷「tBuBrettPhos Pd(allyl)」OTf),1798782-17-8

数字孪生园区场景中的坐标知识

荧光标记多肽FITC/AMC/FAM/Rhodamine/TAMRA/Cy3/Cy5/Cy7-Peptide
随机推荐
How to prepare for the test interface test data
MOSN 反向通道详解
Technology Sharing | How to do assertion verification for xml format in interface automation testing?
Dialog manager in the fourth chapter: the dialog message loop
接口和协议
建立树形结构
8.电影评论分类:二分类问题
js的垃圾回收机制
软件开发的最大的区别是什么?
DDL操作数据库、表、列
2.何为张量
mysql 创建索引的三种方式
【Harmony OS】【FAQ】Hongmeng Questions Collection 1
在线密码生成工具推荐
富瑞宣布战略交易,以简化运营,持续专注于打造领先的独立全服务型全球投行公司
js中的闭包
install ambari
Shenzhen Offline Registration|StarRocks on AWS: How to conduct rapid and unified analysis of real-time data warehouses
修饰生物素DIAZO-生物素-PEG3-DBCO|重氮-生物素-三聚乙二醇-二苯基环辛炔
常见亲脂性细胞膜染料DiO, Dil, DiR, Did光谱图和实验操作流程