-
Notifications
You must be signed in to change notification settings - Fork 320
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Extracted the advertising-timed schemas out of advertising.schema.json
- Loading branch information
1 parent
b686ffc
commit d614976
Showing
8 changed files
with
161 additions
and
60 deletions.
There are no files selected for viewing
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
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,5 @@ | ||
{ | ||
"@id": "https://data.adobe.io/entities/adbreak/2394509340-30453470347", | ||
"xdm:podName": "My Pod", | ||
"xdm:podOffset": 3 | ||
} |
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,45 @@ | ||
{ | ||
"meta:license": [ | ||
"Copyright 2018 Adobe Systems Incorporated. All rights reserved.", | ||
"This work is licensed under a Creative Commons Attribution 4.0 International (CC BY 4.0) license", | ||
"you may not use this file except in compliance with the License. You may obtain a copy", | ||
"of the License at https://creativecommons.org/licenses/by/4.0/" | ||
], | ||
"$id": "https://ns.adobe.com/xdm/context/advertising-break", | ||
"$schema": "http://json-schema.org/draft-06/schema#", | ||
"title": "Ad Break", | ||
"type": "object", | ||
"description": "Details about how a timed advertising is being inserted into a timed media.", | ||
"meta:extensible": true, | ||
"definitions": { | ||
"adBreak": { | ||
"properties": { | ||
"@id": { | ||
"title": "Ad Break ID", | ||
"type": "string", | ||
"description": "Identifier of the ad break." | ||
}, | ||
"xdm:podName": { | ||
"title": "Ad Break Name", | ||
"type": "string", | ||
"description": "The friendly name of the ad break." | ||
}, | ||
"xdm:podOffset": { | ||
"title": "Ad Break Offset", | ||
"type": "integer", | ||
"description": "The offset, in seconds, of the ad break from the start of the primary content." | ||
} | ||
}, | ||
"required": [ | ||
"@id", | ||
"xdm:podOffset" | ||
] | ||
} | ||
}, | ||
"allOf": [ | ||
{ | ||
"$ref": "#/definitions/adBreak" | ||
} | ||
], | ||
"meta:status": "experimental" | ||
} |
5 changes: 5 additions & 0 deletions
5
schemas/context/advertising-timed-asset-reference.example.1.json
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,5 @@ | ||
{ | ||
"@id": "https://data.adobe.io/entities/asser-reference/23423", | ||
"xdm:name": "Acme offer 21", | ||
"xdm:duration": 23 | ||
} |
45 changes: 45 additions & 0 deletions
45
schemas/context/advertising-timed-asset-reference.schema.json
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,45 @@ | ||
{ | ||
"meta:license": [ | ||
"Copyright 2018 Adobe Systems Incorporated. All rights reserved.", | ||
"This work is licensed under a Creative Commons Attribution 4.0 International (CC BY 4.0) license", | ||
"you may not use this file except in compliance with the License. You may obtain a copy", | ||
"of the License at https://creativecommons.org/licenses/by/4.0/" | ||
], | ||
"$id": "https://ns.adobe.com/xdm/context/advertising-timed-asset-reference", | ||
"$schema": "http://json-schema.org/draft-06/schema#", | ||
"title": "Ad Asset Reference", | ||
"type": "object", | ||
"description": "Asset information about the ad captured by the experience event.", | ||
"meta:extensible": true, | ||
"definitions": { | ||
"adAssetReference": { | ||
"properties": { | ||
"@id": { | ||
"title": "Ad ID", | ||
"type": "string", | ||
"description": "Identifier of the ad asset." | ||
}, | ||
"xdm:name": { | ||
"title": "Ad Name", | ||
"type": "string", | ||
"description": "The friendly (human-readable) name of the ad asset." | ||
}, | ||
"xdm:duration": { | ||
"title": "Ad Length/Duration", | ||
"type": "integer", | ||
"description": "Length of ad asset in seconds." | ||
} | ||
}, | ||
"required": [ | ||
"@id", | ||
"xdm:duration" | ||
] | ||
} | ||
}, | ||
"allOf": [ | ||
{ | ||
"$ref": "#/definitions/adAssetReference" | ||
} | ||
], | ||
"meta:status": "experimental" | ||
} |
9 changes: 9 additions & 0 deletions
9
schemas/context/advertising-timed-asset-view-details.example.1.json
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,9 @@ | ||
{ | ||
"xdm:playerName": "Acme Ad Player", | ||
"xdm:podPosition": 12, | ||
"xdm:adBreak": { | ||
"@id": "https://data.adobe.io/entities/adbreak/2394509340-30453470347", | ||
"xdm:podName": "My Pod", | ||
"xdm:podOffset": 3 | ||
} | ||
} |
49 changes: 49 additions & 0 deletions
49
schemas/context/advertising-timed-asset-view-details.schema.json
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,49 @@ | ||
{ | ||
"meta:license": [ | ||
"Copyright 2018 Adobe Systems Incorporated. All rights reserved.", | ||
"This work is licensed under a Creative Commons Attribution 4.0 International (CC BY 4.0) license", | ||
"you may not use this file except in compliance with the License. You may obtain a copy", | ||
"of the License at https://creativecommons.org/licenses/by/4.0/" | ||
], | ||
"$id": "https://ns.adobe.com/xdm/context/advertising-timed-asset-view-details", | ||
"$schema": "http://json-schema.org/draft-06/schema#", | ||
"title": "Ad Asset View Details", | ||
"type": "object", | ||
"description": "View details for the ad playback captured by the experience event.", | ||
"meta:extensible": true, | ||
"definitions": { | ||
"adAssetViewDetails": { | ||
"properties": { | ||
"xdm:playerName": { | ||
"title": "Ad Player Name", | ||
"type": "string", | ||
"description": "The name of the player responsible for rendering the ad." | ||
}, | ||
"xdm:podPosition": { | ||
"title": "Ad Position in Pod", | ||
"type": "integer", | ||
"description": "The position (index) of the ad inside the parent ad break. The first ad has index 0, the second 1, and so on." | ||
}, | ||
"xdm:adBreak": { | ||
"title": "Ad Break", | ||
"description": "Details about how a timed advertising is being inserted into a timed media.", | ||
"$ref": "https://ns.adobe.com/xdm/context/advertising-break" | ||
}, | ||
"required": [ | ||
"@id", | ||
"xdm:podOffset" | ||
] | ||
} | ||
}, | ||
"required": [ | ||
"xdm:podPosition" | ||
] | ||
} | ||
}, | ||
"allOf": [ | ||
{ | ||
"$ref": "#/definitions/adAssetViewDetails" | ||
} | ||
], | ||
"meta:status": "experimental" | ||
} |
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