Skip to content

Commit ac2c061

Browse files
Merge pull request #590 from JeromeMartinez/Ads
Use another web advertiser
2 parents d0c78ab + 1fd9919 commit ac2c061

File tree

3 files changed

+21
-13
lines changed

3 files changed

+21
-13
lines changed

app/Resources/views/base.html.twig

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,7 @@
8787
{% endfor %}
8888

8989
{% if ads %}
90-
{{ include('@App/adSlot.html.twig', { adSlotId: 5930355910 }, with_context = false) }}
90+
{{ include('@App/adSlot.html.twig', { adSlotId: 'desktop-1fixedfooter-ros' }, with_context = false) }}
9191
{% endif %}
9292

9393
{% block body %}{% endblock %}
@@ -98,7 +98,7 @@
9898
<div class="clearfix"></div>
9999
{% if ads %}
100100
<div class="container">
101-
{{ include('@App/adSlot.html.twig', { adSlotId: 8744221512 }, with_context = false) }}
101+
{{ include('@App/adSlot.html.twig', { adSlotId: 'desktop-2fixedfooter-ros' }, with_context = false) }}
102102
</div>
103103
{% endif %}
104104
<footer id="footer">
@@ -128,7 +128,7 @@
128128
{{ include('@App/socialShare.html.twig') }}
129129
{% block javascripts %}{% endblock %}
130130
{% if ads %}
131-
<script async src="//pagead2.googlesyndication.com/pagead/js/adsbygoogle.js"></script>
131+
<script async src="//htlbid.com/v3/mediaarea.net/htlbid.js"></script>
132132
{% endif %}
133133
</body>
134134
</html>
Lines changed: 12 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,12 @@
1-
<div>
2-
<ins class="adsbygoogle"
3-
style="display:block;"
4-
data-ad-client="ca-pub-8386011224798635"
5-
data-ad-slot="{{ adSlotId }}"
6-
data-ad-format="horizontal"></ins>
7-
<script>
8-
(adsbygoogle = window.adsbygoogle || []).push({});
9-
</script>
10-
</div>
1+
<div id="ad_{{ adSlotId }}"></div>
2+
<script>
3+
window.tude = window.tude || { cmd: [] };
4+
tude.cmd.push(function() {
5+
tude.refreshAdsViaDivMappings([
6+
{
7+
divId: 'ad_{{ adSlotId }}',
8+
baseDivId: '{{ adSlotId }}',
9+
}
10+
]);
11+
});
12+
</script>

web/ads.txt

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -644,4 +644,10 @@ visiblemeasures.com, 1041, DIRECT #yieldmo
644644
krushmedia.com, AJxF6R537a9M6CaTvK, RESELLER
645645
consumable.com, 2001460, DIRECT, aefcd3d2f45b5070
646646

647+
onetag.com, 94b85023dc71f00, DIRECT
648+
appnexus.com, 13099, RESELLER
649+
pubmatic.com, 161593, RESELLER, 5d62403b186f2ace
650+
rubiconproject.com, 11006, RESELLER, 0bfd66d529a55807
651+
video.unrulymedia.com, 586616193, RESELLER
652+
647653
google.com, pub-7849269530484133, DIRECT, f08c47fec0942fa0

0 commit comments

Comments
 (0)