Skip to content

Commit 60cc62f

Browse files
Merge pull request #594 from JeromeMartinez/Ads
Use another web advertiser, update
2 parents 6773175 + cbb989b commit 60cc62f

1 file changed

Lines changed: 19 additions & 13 deletions

File tree

app/Resources/views/base.html.twig

Lines changed: 19 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,25 @@
88
<head>
99
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
1010
{% if ads %}
11-
<link rel="preload" as="script" href="https://vertex-cdn.relevant-digital.com/static/tags/692817b31f4d475762e8cd3c.js" />
11+
<script async src='https://securepubads.g.doubleclick.net/tag/js/gpt.js'></script>
12+
<script async src="https://vertex-cdn.relevant-digital.com/static/tags/69272294e5bf2fc30d50f89e.js"></script>
13+
<script>
14+
function loadAds() {
15+
window.relevantDigital = window.relevantDigital || {};
16+
relevantDigital.cmd = relevantDigital.cmd || [];
17+
relevantDigital.cmd.push(function () {
18+
relevantDigital.loadPrebid({
19+
configId: '69272d28f64d523c9b50f90d',
20+
manageAdserver: true,
21+
collapseEmptyDivs: true,
22+
collapseBeforeAdFetch: false,
23+
allowedDivIds: null,
24+
noSlotReload: true,
25+
noGpt: true
26+
});
27+
});
28+
};
29+
</script>
1230
{% endif %}
1331
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
1432
<meta name="viewport" content="width=device-width, initial-scale=1" />
@@ -133,18 +151,6 @@
133151
{{ include('@App/socialShare.html.twig') }}
134152
{% block javascripts %}{% endblock %}
135153
{% if ads %}
136-
<script async src="https://vertex-cdn.relevant-digital.com/static/tags/692817b31f4d475762e8cd3c.js"></script>
137-
<script>
138-
function loadAds(ids) {
139-
window.relevantDigital = window.relevantDigital || {}; relevantDigital.cmd = relevantDigital.cmd || []; relevantDigital.cmd.push(function () {
140-
relevantDigital.loadPrebid({ configId: '6928818d359be190f5e8cd9f', manageAdserver: true, collapseEmptyDivs: true, collapseBeforeAdFetch: false,
141-
allowedDivIds: null,
142-
noSlotReload: true,
143-
noGpt: true
144-
});
145-
});
146-
};
147-
</script>
148154
<script>
149155
loadAds();
150156
</script>

0 commit comments

Comments
 (0)