> For the complete documentation index, see [llms.txt](https://knowledgebase.offer18.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://knowledgebase.offer18.com/network/mobile-attribution-integration/appsflyer/global-attribution-url.md).

# Global Attribution URL

#### **Offer URL**

```
https://app.appsflyer.com/com.appsflyer.app?af_sub_siteid={sub_aff_id}&pid=partner_int&af_siteid={aff_id}&af_click_lookback=30d&clickid={tid}&c={offername}&af_c_id={offerid}&advertising_id={googleaid}&android_id={androidid}&idfa={iosidfa}&oaid={deviceid}
```

<table data-header-hidden><thead><tr><th width="249.1682814836629"></th><th width="150"></th><th width="319.49514567824684"></th></tr></thead><tbody><tr><td><strong>Offer18 Macro Name</strong></td><td><strong>Macro Identifier</strong></td><td><strong>Description</strong></td></tr><tr><td>Click ID</td><td>{tid}</td><td>Platform unique Click ID macro</td></tr><tr><td>Affiliate ID / Publisher ID</td><td>{aff_id}</td><td>Pass Affiliate ID in Attribution URL</td></tr><tr><td>Sub Affiliate ID</td><td>{sub_aff_id}</td><td>Pass Sub-Affiliate ID in Attribution URL</td></tr><tr><td>Campaign ID</td><td>{offerid}</td><td>Pass OfferID in Attribution URL <br>(required for iOS)</td></tr><tr><td>Campaign Name </td><td>{offername}</td><td>Pass Campaign Name in Attribution URL</td></tr><tr><td>Google Advertising ID</td><td>{googleaid}</td><td>Pass Google Advertising ID in Attribution URL</td></tr><tr><td>iOS Advertising ID</td><td>{iosidfa}</td><td>Pass iOS advertising ID in case of IOS Campaigns in Attribution URL</td></tr><tr><td>Device ID</td><td>{deviceid}</td><td>Pass Unique Device id in Attribution URL</td></tr><tr><td>Android ID</td><td>{androidid}</td><td>Pass Android ID in Attribution URL</td></tr></tbody></table>

<figure><img src="/files/omSYQAGsnIyG6XfcDbk1" alt=""><figcaption></figcaption></figure>


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## 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, and the optional `goal` query parameter:

```
GET https://knowledgebase.offer18.com/network/mobile-attribution-integration/appsflyer/global-attribution-url.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

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.
