# Tracking URL Macros

#### Tokens are to be used in the Offer URL for the purpose of exchanging click information with the Advertiser. <a href="#tokens-to-be-used-in-offer-url-for-the-purpose-of-exchange-click-information-with-advertisers." id="tokens-to-be-used-in-offer-url-for-the-purpose-of-exchange-click-information-with-advertisers."></a>

<table data-header-hidden data-full-width="false"><thead><tr><th width="231.11113706259766"></th><th width="150"></th><th width="289.2776203966006"></th></tr></thead><tbody><tr><td><strong>Macro</strong> </td><td><strong>Token</strong></td><td><strong>Description (when to use)</strong></td></tr><tr><td>TID</td><td>{tid}</td><td>This is the Platform's unique Click ID Macro</td></tr><tr><td>Affiliate ID</td><td>{aff_id}</td><td>To pass Affiliate id in Offer URL</td></tr><tr><td>Sub Affiliate ID</td><td>{sub_aff_id}</td><td>To pass Sub-Affiliate id in Offer URL</td></tr><tr><td>Click IP Address</td><td>{ip}</td><td>To pass the IP address in Offer URL</td></tr><tr><td>Offer ID of Offer</td><td>{offerid}</td><td>To pass Offer ID in Offer URL</td></tr><tr><td>Offer Name of the Offer</td><td>{offername}</td><td>To pass Offer name in Offer URL</td></tr><tr><td>Device User Agent <br>(url encoded)</td><td>{useragent}</td><td>To pass Device user agent in Offer URL</td></tr><tr><td>Device User Agent <br>(raw format)</td><td>{raw_useragent}</td><td>To pass Raw Device user agent </td></tr><tr><td>Advertiser's ID</td><td>{adv_id}</td><td>To pass Advertiser account ID (Advertiser data)</td></tr><tr><td>Country Code (2-digit)</td><td>{country}</td><td>To pass Country name in Offer URL</td></tr><tr><td>Exact Click Time</td><td>{timestamp}</td><td>To pass click time in unix Timestamp format</td></tr><tr><td>Device ID (Affiliate Data)</td><td>{deviceid}</td><td>To pass device id in Offer URL <br>(If received from Affiliates in Affiliate Tracking link)</td></tr><tr><td>Source (Affiliate Data)</td><td>{source}</td><td>To pass source data in Offer URL <br>(If received from Affiliates in Affiliate Tracking link)</td></tr><tr><td>Google Advertising ID (Affiliate Data)</td><td>{googleaid}</td><td>To pass google id in Offer URL <br>(If received from Affiliates in Affiliate Tracking link)</td></tr><tr><td>Android Device ID (Affiliate Data)</td><td>{androidid}</td><td>To pass android id in Offer URL <br>(If received from Affiliates in Affiliate Tracking link)</td></tr><tr><td>IOS Device ID</td><td>{iosidfa}</td><td>To pass IDFA in Offer URL<br>(If received from Affiliates in Affiliate Tracking link)</td></tr><tr><td>Operating System</td><td>{os}</td><td>To pass Operating system details in Offer URL</td></tr><tr><td>Operating System Versions</td><td>{os_ver}</td><td>To pass Operating system version details in Offer URL</td></tr><tr><td>random</td><td>{random}</td><td>To pass the random value in Offer URL</td></tr></tbody></table>

#### Addition Macros to pass more information in Advertiser URL  <a href="#in-addition-to-all-above-if-offer18-users-wants-to-pass-more-information-in-advertiser-url-then-belo" id="in-addition-to-all-above-if-offer18-users-wants-to-pass-more-information-in-advertiser-url-then-belo"></a>

<table data-header-hidden data-full-width="false"><thead><tr><th width="241.21645009417534"></th><th width="150"></th><th width="300.24582898931294"></th></tr></thead><tbody><tr><td><strong>Macro</strong></td><td><strong>Token</strong></td><td><strong>Description</strong> </td></tr><tr><td>Dynamic Affiliate Sub1</td><td>{aff_sub1}</td><td>Additional Data to receive from Affiliate and pass in Offer URL</td></tr><tr><td>Dynamic Affiliate Sub2</td><td>{aff_sub2}</td><td>Additional Data to receive from Affiliate and pass in Offer URL</td></tr><tr><td>Dynamic Affiliate Sub3</td><td>{aff_sub3}</td><td>Additional Data to receive from Affiliate and pass in Offer URL</td></tr><tr><td>Dynamic Affiliate Sub4</td><td>{aff_sub4}</td><td>Additional Data to receive from Affiliate and pass in Offer URL</td></tr><tr><td>Dynamic Affiliate Sub5</td><td>{aff_sub5}</td><td>Additional Data to receive from Affiliate and pass in Offer URL</td></tr><tr><td>Dynamic Affiliate Sub6</td><td>{aff_sub6}</td><td>Additional Data to receive from Affiliate and pass in Offer URL</td></tr><tr><td>Dynamic Affiliate Sub7</td><td>{aff_sub7}</td><td>Use for Probabilistic tracking</td></tr><tr><td>Dynamic Affiliate Sub8</td><td>{aff_sub8}</td><td>Additional Data to receive from Affiliate and pass in Offer URL</td></tr><tr><td>Dynamic Affiliate Sub9</td><td>{aff_sub9}</td><td>Additional Data to receive from Affiliate and pass in Offer URL</td></tr><tr><td>Dynamic Affiliate Sub10</td><td>{aff_sub10}</td><td>Additional Data to receive from Affiliate and pass in Offer URL</td></tr></tbody></table>


---

# 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://knowledgebase.offer18.com/network/offers/tracking-url-macros.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.
