# Hugoffers国内idfa归因对接流程

### 1、对接广告主

1、对接广告主Tracking参数，参考如下：（需要配置参数：idfa、ip、callback）\
&#x20;       示例链接：[http://test.hugoffers.com/q?offerid=123456\&ip={ip}\&idfa={idfa}\&callback={CALLBACK|urlencode}](http://%2A%2A%2A.com/q?offerid=123456\&ip=%7Bip%7D\&idfa=%7Bidfa%7D\&callback=%7BCALLBACK%7Curlencode%7D)\
2、Callback配置\
&#x20;       第一步：在Advertisers-Detail-Postback Setting处拿到Postback URL前半部分例如<http://test1.hopb0.com/notify/110158/?click_id=>\
&#x20;       第二步：将上述链接在[转码网站](http://tool.chinaz.com/tools/urlencode.aspx) UrlEncode编码得到http%3a%2f%2ftest1.hopb0.com%2fnotify%2f110158%2f%3fclick\_id%3d\
&#x20;       第三步：拼接上述编码后的链接即在后面加上{click\_id}，示例拼接后的链接为 http%3a%2f%2ftest1.hopb0.com%2fnotify%2f110158%2f%3fclick\_id%3d{click\_id}\
&#x20;       第四步：拼接整个Offer tracking示例\
http\://\*\*\*.com/q?offerid=123456\&ip={ip}\&idfa={idfa}\&callback=http%3a%2f%2ftest1.hopb0.com%2fnotify%2f110158%2f%3fclick\_id%3d{click\_id}  此时得到的tracking链接即为推广链接。给到下游媒体的推广链接为[https://test.hotrk0.com/offer?offer\_id=221\&aff\_id=1\&aff\_sub=\[click\_id\]\&aff\_pub=\[source\]\&advertising\_id=\[advertising\_id\]\&idfa=\[idfa\]](https://test.hotrk0.com/offer?offer_id=221\&aff_id=1\&aff_sub=%5Bclick_id%5D\&aff_pub=%5Bsource%5D\&advertising_id=%5Badvertising_id%5D\&idfa=%5Bidfa%5D)

**如果上游为异步对接**，只需在tracking链接前面加上get:  以下为示例链接\
get:[http://\*\*\*.com/q?offerid=123456\&ip={ip}\&idfa={idfa}\&callback=](http://%2A%2A%2A.com/q?offerid=123456\&ip=%7Bip%7D\&idfa=%7Bidfa%7D\&callback=%7BCALLBACK%7Curlencode%7D)http%3a%2f%2ftest1.hopb0.com%2fnotify%2f110158%2f%3fclick\_id%3d{click\_id}

### 2、对接渠道

1、渠道Tracking配置\
&#x20;       正常配置Tracking，添加idfa参数及Postback。**渠道如果需要在Tracking中配置Callback回传**，参考如下：\
&#x20;       [https://test.hotrk0.com/offer?offer\_id=221\&aff\_id=1\&idfa={idfa}\&ip={ip}\&aff\_sub=callback](https://test.hotrk0.com/offer?offer_id=221\&aff_id=1\&aff_sub=aazz\&idfa=%7Bidfa%7D\&ip=%7Bip%7D\&aff_sub2=%7Bcallback) | urlencode，之后在渠道Postback Format中写入**decode:{aff\_sub}**&#x5373;可。例如 [https://test.hotrk0.com/offer?offer\_id=5\&aff\_id=6\&idfa={idfa}\&ip={ip}\&aff\_sub=http%3a%2f%2f39.104.70.46%3a8085%2fmailuo%2fapi%2fcallback.json%3fclickId%3d](https://test.hotrk0.com/offer?offer_id=5\&aff_id=6\&aff_sub=aazz\&idfa=%7Bidfa%7D\&ip=%7Bip%7D\&aff_sub2=http%3a%2f%2f39.104.70.46%3a8085%2fmailuo%2fapi%2fcallback.json%3fclickId%3d)

2、如果渠道为异步对接只需在**Affilites Controller**处勾选**Disable Check Platform Disable Check Country**即可，**但是如果上游有做国家和平台的限定也需要和上游沟通将国家和平台限定去除！！！**<br>

### 测试

1、广告主测试\
&#x20;       拿到对接广告主时给下游媒体的推广链接 [https://test.hotrk0.com/offer?offer\_id=221\&aff\_id=1\&aff\_sub=\[click\_id\]\&aff\_pub=\[source\]\&advertising\_id=\[advertising\_id\]\&idfa=\[idfa\]](https://test.hotrk0.com/offer?offer_id=221\&aff_id=1\&aff_sub=%5Bclick_id%5D\&aff_pub=%5Bsource%5D\&advertising_id=%5Badvertising_id%5D\&idfa=%5Bidfa%5D)   替换idfa（最好使用未安装过推广App的iPhone点下面这条链接测试安装）和其他参数，例如\
<https://test.hotrk0.com/offer?offer_id=221&aff_id=1&aff_sub=testclick&aff_pub=testpub&idfa=5D3C5122-5A3C-43A4-B06F-7FAA73775668> &#x20;

![在Offer详情处拿到Test link测试](/files/-LrgBwRc6fxpc_mgIeL6)

点击安装之后和上游确认是否有收到对应idfa点击及安装数据，并且在conversion report处检查是否有收到上游回传的激活数据。

2、渠道测试\
&#x20;       让渠道替换给他们下游媒体的推广链接参数后测试安装激活，激活后和最上游确认是否有接收相应激活数据并且在系统conversion report处检查是否有接收上游转化数据并确认是否有回传给下游媒体。


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://support.hugoffers.com/zhong-wen-shuo-ming-wen-dang/xi-tong-shi-yong-da-gai-liu-cheng/hugoffers-gao-jie-yun-ying-ji-qiao/hugoffers-guo-nei-idfa-gui-yin-dui-jie-liu-cheng.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
