Duplicate unit[unit] for [mobile]

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 device detection codes are set to properly load the ads based on the device:

defineslot code

Step 4: Check each line of ad units defined in your header tag and ensure that the ad unit is only defined once per device.

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

div ID

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

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

Step 8: Advise the publisher to remove the duplicate div ID if it exists.

OFF-page:

Step 1: Open PubGuru’s Header Bidding feature and the relevant HB configuration.

Step 2: Ensure each ad unit defined in the configuration has the right device set (desktop/mobile).

ad unit code

ad unit

Step 3: If you see an ad unit added more than once with the same exact device selected (duplicate), keep one or properly set the device drop-down, whichever is applicable.

Step 4: Open the publisher site, 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: Using a mobile emulator, refresh the page to load mobile.

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

Step 8: Advise the publisher to remove the duplicate div ID if it exists.

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