diff --git a/demos/vanilla/nocookies/targeting/ctx_segments.html.tpl b/demos/vanilla/nocookies/targeting/ctx_segments.html.tpl
index 2d357a87..3bfd06fe 100644
--- a/demos/vanilla/nocookies/targeting/ctx_segments.html.tpl
+++ b/demos/vanilla/nocookies/targeting/ctx_segments.html.tpl
@@ -222,14 +222,18 @@ loadGAM(optable.instance.ctxTargetingKeyValues({ iab_ct_3_1: "ctx_iab" }));No contextual classifications were returned for this URL.
";
}
@@ -245,7 +249,7 @@ loadGAM(optable.instance.ctxTargetingKeyValues({ iab_ct_3_1: "ctx_iab" })); 0) {
+ var keywordRows = keywords
+ .map(function (keyword) {
+ return (
+ "| " +
+ escapeHtml(keyword.keyword) +
+ " | " +
+ escapeHtml(keyword.prominence) +
+ " |
"
+ );
+ })
+ .join("");
+
+ html +=
+ "Keywords
" +
+ '| Keyword | Prominence (rank) |
' +
+ keywordRows +
+ "
";
+ }
+
+ return html;
}
document.getElementById("ctx-button").addEventListener("click", function () {
diff --git a/demos/vanilla/targeting/ctx_segments.html.tpl b/demos/vanilla/targeting/ctx_segments.html.tpl
index 8f364e52..7f19472b 100644
--- a/demos/vanilla/targeting/ctx_segments.html.tpl
+++ b/demos/vanilla/targeting/ctx_segments.html.tpl
@@ -219,14 +219,18 @@ loadGAM(optable.instance.ctxTargetingKeyValues({ iab_ct_3_1: "ctx_iab" }));No contextual classifications were returned for this URL.";
}
@@ -242,7 +246,7 @@ loadGAM(optable.instance.ctxTargetingKeyValues({ iab_ct_3_1: "ctx_iab" })); 0) {
+ var keywordRows = keywords
+ .map(function (keyword) {
+ return (
+ "| " +
+ escapeHtml(keyword.keyword) +
+ " | " +
+ escapeHtml(keyword.prominence) +
+ " |
"
+ );
+ })
+ .join("");
+
+ html +=
+ "Keywords
" +
+ '| Keyword | Prominence (rank) |
' +
+ keywordRows +
+ "
";
+ }
+
+ return html;
}
document.getElementById("ctx-button").addEventListener("click", function () {