Skip to content

Instantly share code, notes, and snippets.

@jpotts
Last active June 30, 2016 01:59
Embed
What would you like to do?
Example content service object and response
{
"id": "someid",
"name": "globalNavSpecialOffersPromo",
"description": "",
"crDate": 1452112197971,
"modDate": 1457469890414,
"pubDate": 1457469840000,
"metadata": {
"pageId": [
"air-flight-some-other-page",
"air-flight-yet-another-page",
"air-flight-status"
],
"placementId": [
"globalNavSpecialOffersPromo"
],
"geoCode": [
"all"
],
"origin": [
"all"
],
"destination": [
"all"
],
"loginState": [
"all"
],
"isDefault": false,
"isBootstrapped": false,
"source": "templatedata/ads/global_nav_promo/data/globalNavSpecialOffersPromo",
"segment": [
""
],
"permutationFilter": [
""
]
},
"contentItem": {
"lang": "en",
"content": {
"displayType": "promotion-ad",
"adText": [{
"block": true,
"font": "font-22",
"value": "<strong>Subscribe</strong>"
}, {
"block": false,
"font": "font-32",
"url": "/html/email/click_n_save_signup.html?clk=GSUBNAV-OFFERS-AD1-CNS",
"ariaLabel": "Click 'N Save",
"newWindow": false,
"value": "<strong>Click &lsquo;N Save<sup>&reg;</sup></strong>"
}, {
"block": true,
"font": "font-13",
"value": "Get our biggest deals on flights, hotel stays, car rentals, vacation packages, and more."
}],
"callToAction": {
"newWindow": false,
"elementType": "cta-button",
"linkType": "tertiary",
"linkSize": "large",
"value": "Sign up and save",
"ariaLabel": "Sign up to Click 'N Save.",
"url": "/html/email/click_n_save_signup.html?clk=GSUBNAV-OFFERS-AD1-CNS"
},
"background": {
"color": "neutral-gray2"
}
},
"type": "promotion-ad"
},
"translations": []
}
{
"success": true,
"errors": [],
"results": {
"globalNavSpecialOffersPromo": {
"lang": "en",
"content": {
"displayType": "promotion-ad",
"adText": [{
"block": true,
"font": "font-22",
"value": "<strong>Subscribe</strong>"
}, {
"block": false,
"font": "font-32",
"url": "/html/email/click_n_save_signup.html?clk=GSUBNAV-OFFERS-AD1-CNS",
"ariaLabel": "Click 'N Save",
"newWindow": false,
"value": "<strong>Click &lsquo;N Save<sup>&reg;</sup></strong>"
}, {
"block": true,
"font": "font-13",
"value": "Get our biggest deals on flights, hotel stays, car rentals, vacation packages, and more."
}],
"callToAction": {
"newWindow": false,
"elementType": "cta - button ",
"linkType": "tertiary",
"linkSize": "large",
"value": "Sign up and save",
"ariaLabel": "Sign up to Click 'N Save.",
"url": "/html/email/click_n_save_signup.html?clk=GSUBNAV-OFFERS-AD1-CNS"
},
"background": {
"color": "neutral - gray2"
}
},
"type": "promotion - ad"
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment