Skip to content

Instantly share code, notes, and snippets.

@fraszczakszymon
Created January 16, 2017 08:47
Show Gist options
  • Save fraszczakszymon/32c72a56a2191117fc4b74e02044383b to your computer and use it in GitHub Desktop.
Save fraszczakszymon/32c72a56a2191117fc4b74e02044383b to your computer and use it in GitHub Desktop.
{
"name": "DEV AX VUAP BFAB template",
"description": "Part of Fan Takeover ad product, AdEng development version, please don't edit, create your own copy, if needed.",
"variables": [
{
"mimeTypes": [],
"label": "Image",
"uniqueName": "Image",
"isRequired": true,
"variableType": "ASSET"
},
{
"isTrackingUrl": false,
"urlType": "STANDARD_HTTP",
"label": "Click-through URL",
"uniqueName": "ClickthroughURL",
"isRequired": true,
"variableType": "URL"
},
{
"isTrackingUrl": true,
"urlType": "IMPRESSION_TRACKER",
"label": "Impression Tracker 1",
"uniqueName": "ImpressionTracker1",
"isRequired": false,
"variableType": "URL"
},
{
"isTrackingUrl": true,
"urlType": "IMPRESSION_TRACKER",
"label": "Impression Tracker 2",
"uniqueName": "ImpressionTracker2",
"isRequired": false,
"variableType": "URL"
},
{
"isTrackingUrl": true,
"urlType": "IMPRESSION_TRACKER",
"label": "Impression Tracker 3",
"uniqueName": "ImpressionTracker3",
"isRequired": false,
"variableType": "URL"
},
{
"choices": [
{
"label": "button",
"value": "button"
},
{
"label": "background",
"value": "background"
}
],
"allowOtherChoice": false,
"defaultValue": "button",
"label": "Video trigger",
"uniqueName": "Videotrigger",
"isRequired": true,
"variableType": "LIST"
},
{
"defaultValue": "1280/720",
"label": "Video aspect ratio",
"uniqueName": "Videoaspectratio",
"description": "For video ad with 1280px width and 720px height the value should be 1280/720 ? 1.77.",
"isRequired": true,
"variableType": "STRING"
},
{
"defaultValue": "1440/585",
"label": "BFAB aspect ratio",
"uniqueName": "BFABaspectratio",
"isRequired": true,
"variableType": "STRING"
},
{
"choices": [
{
"label": "porvata",
"value": "porvata"
},
{
"label": "playwire",
"value": "playwire"
}
],
"allowOtherChoice": false,
"defaultValue": "porvata",
"label": "Player",
"uniqueName": "Player",
"isRequired": false,
"variableType": "LIST"
},
{
"defaultValue": 0,
"sampleValue": 0,
"label": "Playwire publisher ID",
"uniqueName": "PlaywirepublisherID",
"isRequired": false,
"variableType": "LONG"
},
{
"defaultValue": 0,
"sampleValue": 0,
"label": "Playwire video ID",
"uniqueName": "PlaywirevideoID",
"isRequired": false,
"variableType": "LONG"
},
{
"choices": [
{
"label": "false",
"value": "false"
},
{
"label": "true",
"value": "true"
}
],
"allowOtherChoice": false,
"defaultValue": "false",
"label": "Autoplay",
"uniqueName": "Autoplay",
"isRequired": false,
"variableType": "LIST"
}
],
"formatter": "<script>\n AdEngine_adType='forced_success';\n</script>\n\n<style>\n .button-trigger.oasis #button, .button-trigger.fandom_desktop #button {\n cursor: pointer;\n position: absolute;\n right: 7.430%;\n top: 25.64%;\n width: 35%;\n height: 48.72%;\n }\n\n .button-trigger.mercury #button, .button-trigger.fandom_mobile #button {\n cursor: pointer;\n position: absolute;\n left: 20%;\n top: 50%;\n width: 60%;\n height: 40%;\n }\n\n .background-trigger #button {\n cursor: pointer;\n position: absolute;\n left: 5%;\n top: 30%;\n width: 40%;\n height: 40%;\n }\n\n #adContainer { \n width: 100%;\n height: auto;\n position: relative;\n }\n \n #adContainer a {\n width: 100%;\n height: 100%;\n }\n</style>\n\n<div id=\"adContainer\" class=\"[%Videotrigger%]-trigger %%PATTERN:skin%%\">\n <a href=\"%%CLICK_URL_ESC%%[%ClickthroughURL%]\" target=\"_blank\">\n <img id=\"background\" src=\"[%Image%]\" width=\"100%\" height=\"auto\" />\n <div id=\"button\"></div>\n </a>\n</div>\n\n<script>\n var videoTriggerId = '[%Videotrigger%]' === 'button' ? 'button' : 'background';\n\n top.loadCustomAd && top.loadCustomAd({\n aspectRatio: [%BFABaspectratio%],\n type: 'bfab',\n slotName: '%%PATTERN:pos%%',\n src: '%%PATTERN:src%%',\n backgroundColor: '#000',\n uap: '%eaid!',\n videoAspectRatio: [%Videoaspectratio%],\n videoTriggerElement: document.getElementById(videoTriggerId),\n player: '[%Player%]',\n publisherId: [%PlaywirepublisherID%],\n videoId: [%PlaywirevideoID%],\n autoPlay: '[%Autoplay%]' === 'true'\n });\n\n document.getElementById('adContainer').addEventListener('click', function (event) {\n if (event.target.id === videoTriggerId) {\n event.preventDefault();\n }\n });\n</script>\n\n<img width=\"1\" height=\"1\" border=\"0\" src=\"[%ImpressionTracker1%]\" style=\"display: none;\">\n<img width=\"1\" height=\"1\" border=\"0\" src=\"[%ImpressionTracker2%]\" style=\"display: none;\">\n<img width=\"1\" height=\"1\" border=\"0\" src=\"[%ImpressionTracker3%]\" style=\"display: none;\">\n\n<noscript class=\"MOAT-wikiadfp866051287149?moatClientLevel1=%eadv!&amp;moatClientLevel2=%ebuy!&amp;moatClientLevel3=%eaid!&amp;moatClientLevel4=%ecid!&amp;moatClientSlicer1=%esid!&amp;moatClientSlicer2=%epid!\"></noscript>\n<script src=\"https://z.moatads.com/wikiadfp866051287149/moatad.js#moatClientLevel1=%eadv!&moatClientLevel2=%ebuy!&moatClientLevel3=%eaid!&moatClientLevel4=%ecid!&moatClientSlicer1=%esid!&moatClientSlicer2=%epid!\" type=\"text/javascript\"></script>\n<!-- Last updated: 2016-12-20 14:41 -->\n",
"type": "USER_DEFINED",
"isInterstitial": false,
"isNativeEligible": false,
"isNativeVideoEligible": false,
"isNative360ImageEligible": false,
"isSafeFrameCompatible": false
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment