Duplicate IDs for div. Follow these steps to fix it

Device detection codes are possibly missing from the publisher’s source code (if on-page) or not properly set in the configuration device drop-down (if off-page). As a result, more than one div is detected in a single page load.

ON-page:

Step 1: On your webpage, right-click ‘view page source’.

Step 2: Use CTRL+F and search for “defineslot” to locate the DFP header tags.

Step 3: If the publisher is using a separate set of ads on mobile vs desktop, check that the device detection codes are set to properly load the ads based on the device:

device mobile code

Step 4: Search the div ID’s. You should only see each body tag or div deployed once.

div code

Step 5: Using a mobile emulator, refresh the page to load mobile.

Step 6: View page source again and hunt down the duplicate ID.

Step 7: Advise the publisher to remove the duplicate div ID.

OFF-page:

Step 1: Open the configuration.

Step 2: Check the“Slot” field to find any unnecessary duplicates.

Step 3: If an ad unit is added twice (i.e. responsive setup), ensure each ad unit defined in the configuration has the right device set (desktop/mobile).

ad unit code for mobile

ad unit code

Step 4: Open the publisher site, and on your webpage, right-click ‘view page source’.

Step 5: Search the div ID’s. You should only see each body tag or div deployed once.

div id

Step 6: If you see any duplicates, have the publisher remove them.

If everything is fixed and you still see the configtest error, please report this to our support team with this notification title in the subject line and they’ll help you troubleshoot the issue.

Back to the Notification Center home page