Skip to content

Commit a86058f

Browse files
author
Ray Yang
committed
add paidMediaCreative namespace and not using asset reference
1 parent 2664a14 commit a86058f

File tree

4 files changed

+256
-248
lines changed

4 files changed

+256
-248
lines changed
Lines changed: 33 additions & 31 deletions
Original file line numberDiff line numberDiff line change
@@ -1,34 +1,36 @@
11
{
2-
"xdm:creativeID": "creative-12345",
3-
"xdm:creativeType": "image",
4-
"xdm:title": "Summer Sale - 50% Off",
5-
"xdm:body": "Don't miss our biggest sale of the season. Shop now and save big on all summer items.",
6-
"xdm:callToAction": "Shop Now",
7-
"xdm:destinationURL": "https://example.com/summer-sale?utm_source=facebook&utm_campaign=summer2025",
8-
"xdm:displayURL": "https://example.com/summer-sale",
9-
"xdm:trackingURLs": [
10-
{
11-
"xdm:eventType": "impression",
12-
"xdm:url": "https://tracking.example.com/imp?id=12345"
13-
},
14-
{
15-
"xdm:eventType": "click",
16-
"xdm:url": "https://tracking.example.com/click?id=12345"
17-
}
18-
],
19-
"xdm:assets": [
20-
{
21-
"xdm:assetID": "asset-001",
22-
"xdm:assetType": "image",
23-
"xdm:name": "summer-sale-hero.jpg",
24-
"xdm:url": "https://cdn.example.com/images/summer-sale-hero.jpg",
25-
"xdm:thumbnailURL": "https://cdn.example.com/images/summer-sale-hero-thumb.jpg",
26-
"xdm:dimensions": {
27-
"xdm:width": 1200,
28-
"xdm:height": 628
2+
"xdm:paidMediaCreative": {
3+
"xdm:creativeID": "creative-12345",
4+
"xdm:creativeType": "image",
5+
"xdm:title": "Summer Sale - 50% Off",
6+
"xdm:body": "Don't miss our biggest sale of the season. Shop now and save big on all summer items.",
7+
"xdm:callToAction": "Shop Now",
8+
"xdm:destinationURL": "https://example.com/summer-sale?utm_source=facebook&utm_campaign=summer2025",
9+
"xdm:displayURL": "https://example.com/summer-sale",
10+
"xdm:trackingURLs": [
11+
{
12+
"xdm:eventType": "impression",
13+
"xdm:url": "https://tracking.example.com/imp?id=12345"
2914
},
30-
"xdm:fileSize": 245760,
31-
"xdm:hash": "a3f5c8d9e2b1f4a6c7d8e9f0a1b2c3d4"
32-
}
33-
]
15+
{
16+
"xdm:eventType": "click",
17+
"xdm:url": "https://tracking.example.com/click?id=12345"
18+
}
19+
],
20+
"xdm:assets": [
21+
{
22+
"xdm:assetID": "asset-001",
23+
"xdm:assetType": "image",
24+
"xdm:name": "summer-sale-hero.jpg",
25+
"xdm:url": "https://cdn.example.com/images/summer-sale-hero.jpg",
26+
"xdm:thumbnailURL": "https://cdn.example.com/images/summer-sale-hero-thumb.jpg",
27+
"xdm:dimensions": {
28+
"xdm:width": 1200,
29+
"xdm:height": 628
30+
},
31+
"xdm:fileSize": 245760,
32+
"xdm:hash": "a3f5c8d9e2b1f4a6c7d8e9f0a1b2c3d4"
33+
}
34+
]
35+
}
3436
}
Lines changed: 24 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -1,24 +1,26 @@
11
{
2-
"xdm:creativeID": "creative-67890",
3-
"xdm:creativeType": "video",
4-
"xdm:title": "New Product Launch",
5-
"xdm:body": "Introducing our revolutionary new product. Watch the video to learn more.",
6-
"xdm:callToAction": "Learn More",
7-
"xdm:destinationURL": "https://example.com/new-product",
8-
"xdm:assets": [
9-
{
10-
"xdm:assetID": "asset-video-001",
11-
"xdm:assetType": "video",
12-
"xdm:name": "product-launch-video.mp4",
13-
"xdm:url": "https://cdn.example.com/videos/product-launch.mp4",
14-
"xdm:thumbnailURL": "https://cdn.example.com/videos/product-launch-thumb.jpg",
15-
"xdm:dimensions": {
16-
"xdm:width": 1920,
17-
"xdm:height": 1080
18-
},
19-
"xdm:fileSize": 15728640,
20-
"xdm:duration": 30.5,
21-
"xdm:hash": "b4e6d9f1a2c3e5d7f8a9b0c1d2e3f4a5"
22-
}
23-
]
2+
"xdm:paidMediaCreative": {
3+
"xdm:creativeID": "creative-67890",
4+
"xdm:creativeType": "video",
5+
"xdm:title": "New Product Launch",
6+
"xdm:body": "Introducing our revolutionary new product. Watch the video to learn more.",
7+
"xdm:callToAction": "Learn More",
8+
"xdm:destinationURL": "https://example.com/new-product",
9+
"xdm:assets": [
10+
{
11+
"xdm:assetID": "asset-video-001",
12+
"xdm:assetType": "video",
13+
"xdm:name": "product-launch-video.mp4",
14+
"xdm:url": "https://cdn.example.com/videos/product-launch.mp4",
15+
"xdm:thumbnailURL": "https://cdn.example.com/videos/product-launch-thumb.jpg",
16+
"xdm:dimensions": {
17+
"xdm:width": 1920,
18+
"xdm:height": 1080
19+
},
20+
"xdm:fileSize": 15728640,
21+
"xdm:duration": 30.5,
22+
"xdm:hash": "b4e6d9f1a2c3e5d7f8a9b0c1d2e3f4a5"
23+
}
24+
]
25+
}
2426
}
Lines changed: 41 additions & 39 deletions
Original file line numberDiff line numberDiff line change
@@ -1,43 +1,45 @@
11
{
2-
"xdm:creativeID": "creative-carousel-001",
3-
"xdm:creativeType": "carousel",
4-
"xdm:title": "Explore Our Collection",
5-
"xdm:body": "Swipe through our latest products and find your favorites.",
6-
"xdm:callToAction": "View Collection",
7-
"xdm:destinationURL": "https://example.com/collection",
8-
"xdm:assets": [
9-
{
10-
"xdm:assetID": "asset-carousel-001",
11-
"xdm:assetType": "image",
12-
"xdm:name": "product-1.jpg",
13-
"xdm:url": "https://cdn.example.com/carousel/product-1.jpg",
14-
"xdm:dimensions": {
15-
"xdm:width": 1080,
16-
"xdm:height": 1080
2+
"xdm:paidMediaCreative": {
3+
"xdm:creativeID": "creative-carousel-001",
4+
"xdm:creativeType": "carousel",
5+
"xdm:title": "Explore Our Collection",
6+
"xdm:body": "Swipe through our latest products and find your favorites.",
7+
"xdm:callToAction": "View Collection",
8+
"xdm:destinationURL": "https://example.com/collection",
9+
"xdm:assets": [
10+
{
11+
"xdm:assetID": "asset-carousel-001",
12+
"xdm:assetType": "image",
13+
"xdm:name": "product-1.jpg",
14+
"xdm:url": "https://cdn.example.com/carousel/product-1.jpg",
15+
"xdm:dimensions": {
16+
"xdm:width": 1080,
17+
"xdm:height": 1080
18+
},
19+
"xdm:fileSize": 180224
1720
},
18-
"xdm:fileSize": 180224
19-
},
20-
{
21-
"xdm:assetID": "asset-carousel-002",
22-
"xdm:assetType": "image",
23-
"xdm:name": "product-2.jpg",
24-
"xdm:url": "https://cdn.example.com/carousel/product-2.jpg",
25-
"xdm:dimensions": {
26-
"xdm:width": 1080,
27-
"xdm:height": 1080
21+
{
22+
"xdm:assetID": "asset-carousel-002",
23+
"xdm:assetType": "image",
24+
"xdm:name": "product-2.jpg",
25+
"xdm:url": "https://cdn.example.com/carousel/product-2.jpg",
26+
"xdm:dimensions": {
27+
"xdm:width": 1080,
28+
"xdm:height": 1080
29+
},
30+
"xdm:fileSize": 195584
2831
},
29-
"xdm:fileSize": 195584
30-
},
31-
{
32-
"xdm:assetID": "asset-carousel-003",
33-
"xdm:assetType": "image",
34-
"xdm:name": "product-3.jpg",
35-
"xdm:url": "https://cdn.example.com/carousel/product-3.jpg",
36-
"xdm:dimensions": {
37-
"xdm:width": 1080,
38-
"xdm:height": 1080
39-
},
40-
"xdm:fileSize": 172032
41-
}
42-
]
32+
{
33+
"xdm:assetID": "asset-carousel-003",
34+
"xdm:assetType": "image",
35+
"xdm:name": "product-3.jpg",
36+
"xdm:url": "https://cdn.example.com/carousel/product-3.jpg",
37+
"xdm:dimensions": {
38+
"xdm:width": 1080,
39+
"xdm:height": 1080
40+
},
41+
"xdm:fileSize": 172032
42+
}
43+
]
44+
}
4345
}

0 commit comments

Comments
 (0)