Non Adsens TAG don't show

Posted in: Newspaper
Post count: 8

Hello,

We try to inject code into an ad slot. The Criteo Tag (Non adsens) in the “ARTICLE INLINE AD” slot.

The ad does not appear on the site (Empty and white space, like you can see in the screenshot) and can not be found on the source code of the pages in which it should appear.

We tried to inject the tag directly before the </ body> tag. The ad showed at the end of the page, why we think the problem comes from the theme.

SIte: https://observalgerie.com

Here is the code (placement Article Inline Ad):

<!– BEGIN 1257343 – obervalgerie – FR – CDB – PCK – In article sur desk –>

<div id=”criteo_1257343″>
<script type=”text/javascript”>
var passback2 = function(){

//– Create the script
var script = document.createElement(‘script’);
script.src = “https://pagead2.googlesyndication.com/pagead/js/adsbygoogle.js&#8221;;

//– Creating the ins
var ins = document.createElement(‘ins’);
ins.className = “adsbygoogle”;
ins.setAttribute(‘data-ad-client’,’ca-pub-5637083728650188′);
ins.setAttribute(‘data-ad-slot’,’9804936550′); //set adslot
ins.setAttribute(‘data-ad-format’,’fluid’); //set ad-format
ins.setAttribute(‘data-ad-layout’,’in-article’); //set ad-layout
ins.style.display = ‘block’;
ins.style.textAlign = ‘center’;

//– Getting to the parent element
var parent = document.getElementById(‘criteo_1257343’); //set slotid

//– Append the script and the ins to the DOM

parent.appendChild(ins);
parent.appendChild(script);
(adsbygoogle=window.adsbygoogle || []).push({});
}
Criteo.events.push(function() {
Criteo.Passback.RenderAd(‘criteo_1257343’, passback2);
});
</script>
</div>
<!– END CRITEO TAG –>

Post count: 20688

Hi,

Does it appear in other theme panel ad spots? Are the other ads you have on the website the same or similar as this one? I see there are many ads that display, only the inline ad seems to be empty.

Also there seem to be many 400 errors regarding the doubleclick ads
https://www.screencast.com/t/aKoKdE0AQU
Try to place that ad in a different spot, or switch ads around. Also try some suggestions mentioned in this guide
https://code.tutsplus.com/tutorials/introduction-to-google-dfp-debugging-ad-delivery–cms-25045

Viewing 2 posts - 1 through 2 (of 2 total)
The forum ‘Newspaper’ is closed to new topics and replies.