Duplicate Ad Unit Detected. Here’s How To Fix It

The same div ID is loading more than once in a single page load.

  • Device detection codes are possibly missing from the source code (if ON-page = Ad Manager or DFP tags are defined on page)
  • Device was probably not set in the PubGuru Header Bidding configuration (if OFF-page = tags are hosted in a secure MonetizeMore file)

Troubleshooting:

OFF-page:

Step 1: Log into tools.monetizemore.com

Step 2: Open the relevant PubGuru Header Bidding configuration

Step 3: Re-check “Slot” field to find any unnecessary duplicates

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

ad unit mobile device

ad unit desktop device

Step 5: Open the site, right click > view page source

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

ad unit code

Step 7: If you see any duplicates, remove them.

 

ON-page:

Step 1: Open the page, right click > view page source

Step 2: CTRL+F “defineslot” to locate 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 device:

device code

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

highlighted 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: If you see any duplicates, remove them.

Back to Notification Center