Advertising Optimizer Tokens
Maps an incoming URL parameter name to a tracking token, so posted data lands in the right field.
GET /token_matchers
Authorization Requiredhttps://[your-subdomain].trackdrive.com/api/v1/token_matchers
List records.
Lists an offer's optimizer token matchers, which map inbound URL parameters (url_param_key) to Trackdrive tracking tokens (token_key). Filterable by offer_id, owner_id, and owner_type.
Params
| Param name | Description |
|---|---|
|
offer_id Optional |
Filter for records that belong to this Offer.
|
|
owner_id Optional |
The ID for the record that owns this record.
|
|
owner_type Optional |
The type of record that owns this record.
|
|
ids Optional |
Return records matching these ids.
|
|
page Optional |
Return the next page of results.
|
|
per_page Optional |
How many results to return per page. The default is 25.
|
|
created_at_to Optional |
Date formatted like 2016-01-01 12:25:15 -0500
|
|
created_at_from Optional |
Date formatted like 2016-01-01 12:25:15 -0500
|
|
fulltext Optional |
Search for any record that matches this text
|
|
time_zone Optional |
Date ranges will be parsed using this time zone.
|
|
columns Optional |
Specify the columns you would like returned by the API for a given resource.
Limiting the columns can significantly increase API response time since only the requested data will be processed.
columns=uuid,number,created_at
Must be any combination of:
|
|
root Optional |
Pass
|
GET /token_matchers/new
Authorization Requiredhttps://[your-subdomain].trackdrive.com/api/v1/token_matchers/new
Build record with defaults.
Builds a token matcher with default attributes without saving it.
Params
| Param name | Description |
|---|---|
|
offer_id Optional |
Assign the record to this Offer.
|
|
owner_id Optional |
The ID for the record that owns this record.
|
|
owner_type Optional |
The type of record that owns this record.
|
|
token_key Optional |
The internal token name where values are stored.
|
|
url_param_key Optional |
This URL key will be assigned to a Trackdrive Token.
|
|
sortable_order Optional Blank value allowed |
The order in which records will be sorted. Values are sorted in ascending order; smaller values are listed first.
|
|
token_id Optional Blank value allowed |
Link directly to an existing Token by its id instead of matching by token name.
|
POST /token_matchers
Authorization Requiredhttps://[your-subdomain].trackdrive.com/api/v1/token_matchers
Create record.
Creates a token matcher that maps a URL parameter to a Trackdrive token, so values passed in that parameter are captured for tracking and optimization.
Params
| Param name | Description |
|---|---|
|
offer_id Optional |
Assign the record to this Offer.
|
|
owner_id Optional |
The ID for the record that owns this record.
|
|
owner_type Optional |
The type of record that owns this record.
|
|
token_key Required |
The internal token name where values are stored.
|
|
url_param_key Required |
This URL key will be assigned to a Trackdrive Token.
|
|
sortable_order Optional Blank value allowed |
The order in which records will be sorted. Values are sorted in ascending order; smaller values are listed first.
|
|
token_id Optional Blank value allowed |
Link directly to an existing Token by its id instead of matching by token name.
|
GET /token_matchers/:id
Authorization Requiredhttps://[your-subdomain].trackdrive.com/api/v1/token_matchers/:id
Get record by id.
Retrieves a token matcher by id.
PUT /token_matchers/:id
Authorization Requiredhttps://[your-subdomain].trackdrive.com/api/v1/token_matchers/:id
Update record by id.
Updates an existing token matcher's token_key, url_param_key, or sort order.
Params
| Param name | Description |
|---|---|
|
offer_id Optional Blank value allowed |
Assign the record to this Offer.
|
|
owner_id Optional Blank value allowed |
The ID for the record that owns this record.
|
|
owner_type Optional Blank value allowed |
The type of record that owns this record.
|
|
token_key Optional |
The internal token name where values are stored.
|
|
url_param_key Optional |
This URL key will be assigned to a Trackdrive Token.
|
|
sortable_order Optional Blank value allowed |
The order in which records will be sorted. Values are sorted in ascending order; smaller values are listed first.
|
|
token_id Optional Blank value allowed |
Link directly to an existing Token by its id instead of matching by token name.
|
DELETE /token_matchers/:id
Authorization Requiredhttps://[your-subdomain].trackdrive.com/api/v1/token_matchers/:id
Destroy record by id.
Deletes a token matcher by id.