API Usage‎ > ‎

Commission Junction Link Guide

Definitions

Publisher: (Also referred as an Affiliate or a Partner) - An independent party, or Web site, that promotes Groupon deals in exchange for commission.
PID: Publisher ID. This is the identifier of the publisher web site from which the consumer clicks on the link representing a Groupon deal. PID belongs to the publisher and can be retrieved from Commission Junction website. Navigate to Account->Web Site Settings section.
AID: Ad ID. Specific value assigned to a link in the Commission Junction Network with a numeric value of 4-10 characters. AID identifies Groupon. Please use the following id: 10804307
SID: Shopper ID, also known as Sub ID. Commission Junction provides the capability for publishers to pass unique values in their affiliate link to identify where sale actions originate. Loyalty and Rewards publishers may use this parameter to pass a unique member ID in order to credit cash-back or points to its members.

Prerequisites

Commission Junction PID (required)
Familiarity with Groupon Deals API (see http://sites.google.com/site/grouponapiv2/api-resources/deals)

Steps

  1. Get a list of deals from the Deals API
  2. Extract a dealUrl
  3. Encode the dealUrl for safe transmission over the internet
    • replace unsafe ASCII characters with "%" followed by two hexadecimal digits corresponding to the character values in the ISO-8859-1 charset.
    • Example: "http://www.groupon.com/deals/redbox-national" should be encoded into "http%3A%2F%2Fwww.groupon.com%2Fdeals%2Fredbox-national
  4. Prepend encoded dealUrl with Commission Junction redirect URL: "http://www.anrdoezrs.net/click-<PID>-10804307?sid=<ShopperID_Value>&url="
    • Note that you need to substitute <PID> with your Commission Junction Publisher ID
    • Note that if you are not using the <ShopperID_Value>, you can eliminate the sid= parameter as such: "http://www.anrdoezrs.net/click-<PID>-10804307?url="

Examples

When successfully implemented, links structure should look like the following:
  • With Commission Junction SID parameter:
    http://www.anrdoezrs.net/click-123456-10804307?sid=Shopper123456&url=http%3A%2F%2Fwww.groupon.com%2Fdeals%2Fredbox-national
  • Without Commission Junction SID Parameter:
    http://www.anrdoezrs.net/click-123456-10804307?url=http%3A%2F%2Fwww.groupon.com%2Fdeals%2Fredbox-national
Note the following values in the link examples above:
PID=123456
AID=10804307
SID=Shopper123456

Comments