当前位置:网站首页>【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-09 04:48:00 【Huawei developers BBS】
1. Problem description
Use the test advertisement id to test, the advertisement can be displayed normally, when using the official advertisement id, turn on the VPN, and switch the application market country and regionIn the UK, 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:
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 our application according to the descriptionWhether it is satisfied, we can check the following link for the description document of the error code in the Android-Java&Kotlin part of the advertisement:

There are specific instructions in 2 and 3 in the document, we will check according to our actual situation.
The second case:
Since this application is tested by overseas applications in China, we also have to consider whether the scene 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 region.In the case of using WIFI, it is recommended not to insert the SIM card, otherwise you should make sure that the SIM card is the SIM card of the corresponding region;
2. Change the country and device language in the mobile phone application market to the corresponding region as much as possible;
3.The location of the mobile phone region should be changed to the corresponding region, and the 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 system time of the mobile phone is set to the 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/?ha_source=zzh
边栏推荐
猜你喜欢
随机推荐
equals和==
`英语` 2022/8/8
How to do the stability test, this article thoroughly explains it!
2022年安全员-B证考试练习题及在线模拟考试
【Harmony OS】【ArkUI】ets开发 基础页面布局与数据连接
【UNR #6 A】面基之路(最短路)
2022年熔化焊接与热切割考试模拟100题及在线模拟考试
MySQL:意向共享锁和意向排它锁 | 死锁 | 锁的优化
MySQL:已提交读和可重复读的实现原理 | MVCC(多版本并发控制)——笔记自用
B. Arrays Sum
Construction and practice of full stack code test coverage and use case discovery system
Ali YunTianChi competition problem (machine learning) - ali cloud security malware detection (complete code)
钉钉与RStudio快捷方式冲突--钉钉快捷键设置
基于ABP和Magicodes实现Excel导出操作
GraalVM安装
【luogu U142356】勇者的后缀(SA)(主席树)(二分)
【MLT】MLT多媒体框架生产消费架构解析(二)
遗传力缺失的案例
【暑期每日一题】洛谷 P4325 [COCI2006-2007#1] Modulo
【Harmony OS】【ARK UI】轻量级数据存储









