Learn About User ID Sync

Vaida
Vaida
  • Updated

Most companies in advertising technology set their own identifier in web pages often by using cookies.

Why You Need to Match Cookies

Because of the way browsers are designed, cookies set by a given company usually can't be read by other companies. For example, Adform sets an identifier that cannot be read by its partners.

If companies only worked with identifiers set by themselves, programmatic and data exchange functionality would be limited. Therefore, Adform would not be able to buy ads or data from its partners. For programmatic channels and data exchange to work, a company needs to share identification information. This is done through an ID matching process.

Example

If Adform wants to match IDs with a partner (a site called "example.com").

  1. Adform identifies the partner with ID 123.

  2. Once the ID matching process starts, a pre-agreed matching pixel is triggered, similar to http://example.com/party=adform/sync?uid=123.

  3. As a result, Adform attaches a parameter to the example.com pixel (parameter UID=123).

  4. example.com can read their own identifier from the browser and build a matching table of example.com IDs mapped to Adform.com IDs.

The matching table can look like this:

example.com ID

Adform ID

ABCD

123

ABCE

321

ABCF

999

Either Adform or example.com (or both) can store the matching table.

Programmatic Behavior

When Adform acts as an SSP and example.com acts as an DSP:

  1. A user visits the site tracked by the Adform SSP.

  2. Adform identifies the user as 123.

  3. Adform looks up for the example.com ID in the matching table (in this case, ABCD).

  4. A bid request with the ID ABCD is sent to example.com.

  5. Example.com bids on the known user.

How to Match Third-Party Cookies

User ID synchronization should only be implemented where the necessary transparency has been provided and any required consent or other applicable privacy signals have been obtained. Clients remain responsible for ensuring that identifier sharing with third parties complies with applicable privacy laws, contractual obligations, and user choices communicated through supported privacy frameworks.

To match third-party cookies:

  1. On your website, open your browser‘s developer tools on the page where the placement is being called.

    If the cookie exists, use its value for the matching process.

  2. In the developer's tools panel, click Network and filter out requests made by Adform (rp=).

  3. Open a request and navigate to the Header section.

  4. In Request Headers, look for the cookie UID in the browser.

  5. In Query string parameters look for CC=1. If this parameter exists, you can stop the process because the user has disabled cookies. If the parameter doesn‘t exist, proceed to the next step.

  6. Set the cookie UID with a random long value.

  7. Take the current URL, append CC=1, and redirect to it (go back to Step 1).

You can append custom parameters to Adform's cookie-matching URL, which will be passed along in the redirect to the URL:

https://c1.adform.net/serving/cookie/match?CC=1&cid=3432-234--234&custom=mycustomparamvalue1
    https://example.com/idsync/adf?cid=3432-234--234&custom=mycustomparamvalue1

Was this article helpful?

/
How we can make it better?

Thank you for your feedback!