Product
Publishers
Advertisers
Networks
Help
Pause animations
Browse help topics
Reference PublisherNetwork

Pass your user ID and sub IDs on a tracking link

Updated

View as Markdown

Put your user’s ID in sub_id on every link: it comes back on every postback for that user, and it’s how you know whom to credit. Add up to ten values of your own as sub1 to sub10, and they come back on the postback too.

See also: Click tracking

On this page

The parameters

ParameterWhat to put in itLimitsBack on your postback
sub_idYour user’s own ID. One user, one value, always the same.Required. A link without it is refused.Yes, as sub_id and the {sub_id} macro
sub1 to sub10Anything you want back: your own click ID, a sub-publisher, a placement.Each up to 128 characters. An empty, repeated or longer one is ignored and the click still works.Yes, as sub1 to sub10 and the {sub1} to {sub10} macros, only the ones the link carried
device_idThe phone’s advertising ID: IDFA on iOS, GAID on Android.Anything not in an advertising ID’s shape, including an all-zero ID or an unfilled {DEVICE_ID}, is dropped and the click still works.No. It helps advertisers confirm installs.
subsource_idA label for where the link sits, URL-encoded.Up to 128 characters. A longer or repeated one makes the click fail.No. It’s kept on the click record. If we’ve turned on sub-site reporting for your account, a short code also goes to the attribution link of our own apps’ offers.

sub_id: your user, not your campaign

sub_id is the one value that tells you whose conversion it is. Give each user their own, and keep it the same for that user on every link and in every app.

  • A shared value (a campaign name, test, the literal {SUB_ID}) puts every conversion on one “user” you can’t credit.
  • Use an ID, not an email address or a name: it travels in URLs and comes back in postbacks.
  • On the Hosted Offerwall, the uid you open the wall with comes back as sub_id.

sub1 to sub10: your values back

Example: Pebble Rewards adds its own click ID and the screen the link sat on.

https://click.affiliateos.ai/click?off_id=aff_ab12cd34ef56&pub_id=pub_7Hn2&partner_id=prt_Q81x&sub_id=u_48213&sub1=pr_clk_90211&sub2=home_banner

Every postback for that conversion, the credit and any later reversal, carries them back:

https://api.pebble.example/afos?sub_id=u_48213&status=completed&sub1=pr_clk_90211&sub2=home_banner&...

Or place them where you want with macros in your postback URL: ?user={sub_id}&click={sub1}&screen={sub2}. A macro for a value the link didn’t carry comes back empty.

On the Hosted Offerwall

The wall builds its own links, so there’s nothing to add: the uid comes back as sub_id, and sub1 to sub10 aren’t used.

For networks

Your publishers’ links carry their own partner_id, so sub_id and sub1 to sub10 come back on their postbacks as above. Your network’s own postbacks carry sub_id but never sub1 to sub10, whichever link the tap came through.

Macro. A placeholder in your postback URL, such as {sub_id}, that we replace with the real value.What is a macro?

Support

Still stuck? Write to us.

One address for every question: hello@affiliateos.ai. Put the details from this list in your first message so we can find the click or conversion without asking you for them again.

Put these in your message

  1. 01The email you sign in with
  2. 02Your role: publisher, advertiser or network
  3. 03The offer ID
  4. 04The click ID or action_id
  5. 05The time it happened, with your time zone
  6. 06What you expected to happen

Looking for a reward in an app? Ask that app's support. It credits your reward, so only it can see your balance.

Search help