Cookie Targeting


With Smart AdServer's cookie targeting, you can

  • store and update data in cookies (dropped in end-users' browsers)
  • target insertions to the presence/absence of the data stored in cookies

Use cases

  • a behavior targeting vendor stores user profile data in cookies; with cookie targeting, you can target insertions to this profile data
  • a retargeting vendor needs to "tag" users who visited a site; with cookie targeting you can target insertions to these tagged visitors
  • you need to tag users who have signed up on your site; with cookie targeting you can target these users

Key concepts

Cookies are text files with stored data. A cookie has a name, content with data stored in key=value format, a lifetime and other types of data.

Cookie request
The cookie request is a call to Smart AdServer with data and parameters. Smart AdServer will respond by setting a cookie with the requested data and parameters.

Cookie request type
Smart AdServer provides multiple cookie request types, which differ in terms of scope of data, supported updating operations etc.

Cookie content
The cookie content consists of key=value pairs and other information; you can target insertions to this data.

Cookie data scope
The cookie data scope refers to the context, in which the data can be targeted: for instance, you can store data for a specific website or a specific partner.

Cookie data update
Data stored in cookies can be updated through additional cookie requests (e. g. add a key=value pair, update a value etc.).

Cookie targeting
Cookie targeting allows you to restrict insertion delivery only if specific data is present/absent in a cookie.

Cookie lifetime
The cookie lifetime is the time until the cookie expires.

Javascript vs. HTML

You can call Smart AdServer's cookie APIs with Javascript or HTML. Javascript is recommended (performance and reliability advantages).

Javascript example

<script language=javascript>
var sas_cookietarget='mykey=myvalue';
var im = new Image();
im.src = '' + escape(sas_cookietarget);


HTML example

<img src="" border="0"/>

About key value format

The data must be stored in the format: key=value

To store a key with multiple values, use the semicolon (;) as a separator: key=value1;key=value2

Was this article helpful?
2 out of 2 found this helpful
Powered by Zendesk