hide an empty div in google DFP

whenever a Google DFP (DoubleClick for Publishers) ad doesn’t deliver a banner (i.e. not enough inventory, not in the geographic location that you set up) you’ll have an empty blank space instead

to avoid this you’ll have to make a little change in the code

in the first piece of code, the one placed in head, insert this line

before

One thought on “hide an empty div in google DFP”

  1. Hey there! I’ve been reading your site for a while now and finally got
    the bravery to go ahead and give you a shout out from Lubbock Texas!
    Just wanted to mention keep up the fantastic work!

Leave a Reply

Your email address will not be published. Required fields are marked *