-
Notifications
You must be signed in to change notification settings - Fork 114
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add com.google.tag-manager.server-side/view_promotion/jsonschema/1-0-0 (
close #1386)
- Loading branch information
Showing
1 changed file
with
142 additions
and
0 deletions.
There are no files selected for viewing
142 changes: 142 additions & 0 deletions
142
schemas/com.google.tag-manager.server-side/view_promotion/jsonschema/1-0-0
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,142 @@ | ||
{ | ||
"$schema": "http://iglucentral.com/schemas/com.snowplowanalytics.self-desc/schema/jsonschema/1-0-0#", | ||
"self": { | ||
"vendor": "com.google.tag-manager.server-side", | ||
"name": "view_promotion", | ||
"version": "1-0-0", | ||
"format": "jsonschema" | ||
}, | ||
"description": "This event signifies an promotion was viewed from a list.", | ||
"type": "object", | ||
"properties": { | ||
"creative_name": { | ||
"description": "The name of the promotional creative. Ignored if set at the item-level.", | ||
"type": ["string", "null"], | ||
"maxLength": 4096 | ||
}, | ||
"creative_slot": { | ||
"description": "The name of the promotional creative slot associated with the event. Ignored if set at the item-level.", | ||
"type": ["string", "null"], | ||
"maxLength": 4096 | ||
}, | ||
"promotion_id": { | ||
"description": "The ID of the promotion associated with the event. Ignored if set at the item-level.", | ||
"type": ["string", "null"], | ||
"maxLength": 4096 | ||
}, | ||
"promotion_name": { | ||
"description": "The name of the promotion associated with the event. Ignored if set at the item-level.", | ||
"type": ["string", "null"], | ||
"maxLength": 4096 | ||
}, | ||
"items": { | ||
"description": "The items for the event.", | ||
"type": "array", | ||
"items": { | ||
"description": "An item object.", | ||
"type": "object", | ||
"properties": { | ||
"item_id": { | ||
"description": "The ID of the item.", | ||
"type": ["string", "null"], | ||
"maxLength": 500 | ||
}, | ||
"item_name": { | ||
"description": "The name of the item.", | ||
"type": ["string", "null"], | ||
"maxLength": 500 | ||
}, | ||
"affiliation": { | ||
"description": "A product affiliation to designate a supplying company or brick and mortar store location", | ||
"type": ["string", "null"], | ||
"maxLength": 4096 | ||
}, | ||
"coupon": { | ||
"description": "The coupon name or code associated with the item.", | ||
"type": ["string", "null"], | ||
"maxLength": 4096 | ||
}, | ||
"currency": { | ||
"description": "The currency, in 3-letter ISO 4217 format.", | ||
"type": ["string", "null"], | ||
"minLength": 3, | ||
"maxLength": 3 | ||
}, | ||
"discount": { | ||
"description": "The monetary discount value associated with the item.", | ||
"type": ["number", "null"], | ||
"minimum": 0 | ||
}, | ||
"index": { | ||
"description": "The index of the item in a list.", | ||
"type": ["integer", "null"], | ||
"minimum": 0 | ||
}, | ||
"item_brand": { | ||
"description": "The brand of the item.", | ||
"type": ["string", "null"], | ||
"maxLength": 4096 | ||
}, | ||
"item_category": { | ||
"description": "The category of the item.", | ||
"type": ["string", "null"], | ||
"maxLength": 4096 | ||
}, | ||
"item_category2": { | ||
"description": "The second category hierarchy or additional taxonomy for the item.", | ||
"type": ["string", "null"], | ||
"maxLength": 4096 | ||
}, | ||
"item_category3": { | ||
"description": "The third category hierarchy or additional taxonomy for the item.", | ||
"type": ["string", "null"], | ||
"maxLength": 4096 | ||
}, | ||
"item_category4": { | ||
"description": "The fourth category hierarchy or additional taxonomy for the item.", | ||
"type": ["string", "null"], | ||
"maxLength": 4096 | ||
}, | ||
"item_category5": { | ||
"description": "The fifth category hierarchy or additional taxonomy for the item.", | ||
"type": ["string", "null"], | ||
"maxLength": 4096 | ||
}, | ||
"item_list_id": { | ||
"description": "The ID of the list in which the item was presented to the user.", | ||
"type": ["string", "null"], | ||
"maxLength": 4096 | ||
}, | ||
"item_list_name": { | ||
"description": "The name of the list in which the item was presented to the user.", | ||
"type": ["string", "null"], | ||
"maxLength": 4096 | ||
}, | ||
"item_variant": { | ||
"description": "The item variant or unique code or description for additional item details or options.", | ||
"type": ["string", "null"], | ||
"maxLength": 4096 | ||
}, | ||
"location_id": { | ||
"description": "The location associated with the item.", | ||
"type": ["string", "null"], | ||
"maxLength": 4096 | ||
}, | ||
"price": { | ||
"description": "The monetary price of the item, in units of the specified currency parameter.", | ||
"type": ["number", "null"], | ||
"minimum": 0 | ||
}, | ||
"quantity": { | ||
"description": "Item quantity.", | ||
"type": ["integer", "null"], | ||
"minimum": 0 | ||
} | ||
}, | ||
"additionalProperties": false | ||
} | ||
} | ||
}, | ||
"required": ["items"], | ||
"additionalProperties": false | ||
} |