The GPT ad unit is defined on page but the corresponding div or body tag is missing. Here’s how to fix it.

This post was most recently updated on May 8th, 2022

There are 3 sections where an ad unit div or body tag should be implemented:

1: GPT ad unit code

The GPT ad unit is defined on page but the corresponding div or body tag is missing. Here’s how to fix it. MonitizeMore

2: Source code within <head> </head> or PubGuru Header Bidding configuration.

The GPT ad unit is defined on page but the corresponding div or body tag is missing. Here’s how to fix it. MonitizeMore

3: Source code, within the <body> </body>, where the ad is supposed to show.

The GPT ad unit is defined on page but the corresponding div or body tag is missing. Here’s how to fix it. MonitizeMore

Troubleshooting

Step 1: Log into tools.monetizemore.com > PubGuru Header Bidding> Configurations

Step 2: Search for the relevant configuration

Step 3: Check the slot field in the configuration to make sure it’s correct

The GPT ad unit is defined on page but the corresponding div or body tag is missing. Here’s how to fix it. MonitizeMore

Step 4: The slot field should be your ad unit code

The GPT ad unit is defined on page but the corresponding div or body tag is missing. Here’s how to fix it. MonitizeMore

Step 5: Audit Div IDs/Slot IDs in the source code (Open the website > Right-click > View Page Source)

The GPT ad unit is defined on page but the corresponding div or body tag is missing. Here’s how to fix it. MonitizeMore

Step 6: CTRL+F / CMD+F the slot ID/div ID

Off-page setup: You should see at least 1 result on the body.

The GPT ad unit is defined on page but the corresponding div or body tag is missing. Here’s how to fix it. MonitizeMore

On-page setup: CTRL+F / CMD+F ‘defineslot’, to locate the header tags.

The GPT ad unit is defined on page but the corresponding div or body tag is missing. Here’s how to fix it. MonitizeMore

… then CTRL+F / CMD+F slot ID/div ID
If you see in your results that you have 3 matches (1 on the header, 2 on the body) then that means that the div id is set up properly.

The GPT ad unit is defined on page but the corresponding div or body tag is missing. Here’s how to fix it. MonitizeMore

Step 7: If it’s missing on the page, verify if this unit should be part of the ad map. If not, remove it from the header bidding configuration. If yes, the code should be added to the page.

 

Need more help? Send us an email at support@monetizemore.com or log in to PubGuru App and use the Chat widget for immediate support.

Stop letting RPM drops stress you out

Let our AdOps Experts do the hard work. Sign up today and unlock your revenue potential.

Maximize my Ad Revenue

It’s your turn to take the ad monetization game to the next level

  • No credit card required
  • No DNS transfer
  • Cancel any time

Get started