Cliques Adserver contains endpoints to handle impressions, clicks and conversions, all post-auction.
Impression endpoint. (crg is short for 'Creative Group'.)
- Looks up creatives in this creative group and pick a creative according to weights assigned to each, then return the appropriate creative tag for this asset
- Logs the impression and all associated metadata
crgid
: REQUIRED ObjectID of Creative Group sub-docimpid
: impression_id for associated impression, generated by exchange. Used for logging.pid
: ObjectID of placement object in which this ad is being rendered. Passed through by exchange.
Click endpoint.
- Redirects to desination URL
- Logs click and all associated metadata
redir
: REQUIRED encoded redirect URL. Will decode and 302 to this URL.cid
: ObjectID of creative objectpid
: ObjectID of placement object
Conversion endpoint, called by tracker pixel.
- Logs conversion and all associated metadata
tagid
: REQUIRED ObjectID of tracking tag objectvalue
: Cart value or any arbitrary value associated with conversionadvid
: ObjectID of advertiser object, owner of this tag
Key dependency is Redis v2.8 or greater. To install & run redis (current version 3.0.1), run:
$ ./setup_redis.sh
To set up a new machine (Debian or Ubuntu) for the first time, run:
$ ./setup_ubuntu.sh
Once your machine is all setup and Redis is running, you can deploy:
$ git pull
$ ./deploy_adserver.sh