当前位置:网站首页>Huawei ADS reports an error when obtaining conversion tracking parameters: getInstallReferrer IOException: getInstallReferrer not found installreferrer
Huawei ADS reports an error when obtaining conversion tracking parameters: getInstallReferrer IOException: getInstallReferrer not found installreferrer
2022-07-30 15:53:00 【Huawei Developer Forum】
1. Problem description
The first thing we need to understand is: what are conversion tracking parameters?
This is a capability provided by Huawei's advertising services. Advertisers and App developers can obtain app conversion tracking parameters through the SDK provided by advertising services. Advertisers can analyze App promotion channels based on the conversion tracking parameters, which is convenient for advertisers.Clearly grasp the conversion performance analysis of each channel.Before obtaining conversion tracking parameters, make sure that the app must have integrated the ads-installreferrer SDK. For details, we can refer to the following documents:
For the ability to obtain conversion tracking parameters, Huawei ADS provides sample code and puts the code on GitHub. If you also need the case code, you can click the following link to download:
github.com/HMS-Core/hms-ads-demo-advertising-identifier/tree/master/InstallReferrer
After we understand the above, let's take a look at the specific problems:
Do not modify any code, run it directly on Huawei mobile phone, and select the sdk mode, then click "Conversion Tracking Parameter Example", after viewing the log, you will find the following error:
getInstallReferrer IOException: getInstallReferrer not found installreferrer

Since the problem has occurred, let's analyze and solve the error.
2. Problem analysis
You can see that the error is getInstallReferrer IOException. We should first go to the official documentation to see if we can find similar errors.
When we searched the documentation for this error, we saw the following code:

This exception may indeed occur in this callback, and then we continue to look for this callback and find its corresponding API documentation:
After comparison, you will find that this callback represents the callback when the service is established, and the error is thrown in the method getInstallReferrer(). Let's look for this method:

It can be seen that the function of this method is to obtain conversion tracking parameters, so here, we can clearly analyze what the problem is:
getInstallReferrer IOException: getInstallReferrer not found installreferrer is because no conversion tracking parameters were found.
3. Solutions
After running the Demo, it is not feasible to click the conversion tracking parameter example directly, and the above error will be thrown. We need to follow the steps below:
Select "Write Test Conversion Tracking Parameters" to fill in the conversion tracking parameter information:

Fill in the following information:
The package name is the package name of the current Demo, for example: com.huawei.pps.hms.test
The content of conversion tracking parameters can be added at will, for example: test
After the saving is successful, the conversion tracking parameters are obtained, as shown in the following figure:

OK, this problem can be solved here!
For more technical articles, please visit https://developer.huawei.com/consumer/cn/forum/?ha_source=zzh
边栏推荐
猜你喜欢

RobotStudio实现喷漆、打磨等功能(曲面路径生成与仿真)

HTTP缓存小结

Excel uses Visual Basic Editor to modify macros

yarn的安装及使用教程

哨兵

一文读懂Elephant Swap,为何为ePLATO带来如此高的溢价?

Alluxio for Presto fu can across the cloud self-service ability

【开发者必看】【push kit】推送服务典型问题合集2

(Crypto essential dry goods) Detailed analysis of the current NFT trading markets

ISELED---氛围灯方案的新选择
随机推荐
【AGC】开放式测试示例
The Prospects of the Metaverse and the Four Tracks
L2-007 家庭房产(vector、set、map的使用)
哨兵
Configuration - Notes
华为ADS获取转化跟踪参数报错:getInstallReferrer IOException: getInstallReferrer not found installreferrer
How is the B+ tree index page size determined?
GeoServer + openlayers
Load Base Split usage documentation
动态规划 --- 状态压缩DP 详细解释
flask获取post请求参数
几种常见的存储器
【开发者必看】【push kit】推送服务典型问题合集2
经典实例分割模型Mask RCNN原理与测试
开源WebGIS架构
yarn安装详细教程说明、升级教程、修改yarn的全局和缓存目录、yarn基本命令
Classes and Objects (Part 2)
CAD几个优化设置
TensorFlow自定义训练函数
Flask introductory learning tutorial