Debugger is a program used to inspect and debug executable files.
In our case, the debug mode is needed to check the adstructor inventory on a specific site.
Important: before installing adstructor with banner and teaser functionality, be sure to check it through debug.
Sometimes AdBlock can block debug. Therefore, turn it off before testing
How to activate it? #
Add the ?__ipc_debugger=true
parameter to the site page address in the browser and press Enter.
Go to the console through “Inspect” by right-clicking on the site page.
Copy the script code in the “Connection” of the Ad inventory settings.
Return to the console and paste the code into the empty field. Click Enter.
The page will display a window with debug settings. Select Use Mock Server and Live Reload options. Roll down the window.
Update the website page. Paste the adstructor code into the console again and press Enter. The page should display all types of ads that you have marked in the Ad inventory settings.
What’s next? #
It may happen that not all types of ads will be displayed on the main page of the site.
Go to the internal page. In a browser, add the ?__ipc_debugger=true
parameter to the site URL. Click Enter.
Go to the console and paste the script code into the field. Click Enter.
Circles with a green exclamation mark will appear on the page next to the ad units. They show the place where the adstructor can insert an ad.
You will also see ad blocks, where the red block represents the container, and the pink block represents the ad itself.
An icon with an exclamation mark without a container can be displayed on the page. This happens when the adstructor has found an ad slot, but there aren’t enough ads to show.
The adstructor may make invalid changes to the page and insert banners/teasers, breaking the content. Please use one of the following solutions: mark places for ads manually or make changes to the site layout. Adstructor parses the container div heights to insert ads. You can set the Minimum height of container in the inventory settings.
If the adstructor inserts an ad, for example, inside an article block (between the image and the headline), make sure the “card” is wrapped in a <div>
container. Sometimes this behavior can be a layout feature. When the “news card” in the code is not completely wrapped in a <div>
, the Minimum height of container setting will not help. In this case, make the markup manually or correct the layout.