Google DFP is rendering div for empty third party ad tags - google-dfp

I am using Google DFP Small Bussiness for ad serving and
everything whas fine until I upgraded from GAM tags
to GPT tags.
The issue is as follows
I have a standard 300x250 Ad unit
I create a normal line items and add this ad unt to it
I upload third party ad code (from ad network). Sometimes this
code will display the banner and sometime it wont.
Now with old GAM tags if third party ad is empty the GAM tag
will not render anything.
But with new GPT tag will render the div with 300px width and
250px height.
Is there any way to solve this issue.
Thx

You are looking for the collapseEmptyDiv's method.
https://support.google.com/dfp_premium/answer/3072674?hl=en

Related

Interstitial ads with Google ad manager

Since Google ad manager (former dfp) does no longer support synchronous tags, how should I run interstitial (or expandable) ads?
I've tried a template from richmediagallery (Manzoni Intro Fullscreen) but it does not work even if I set it up with defineOutOfPageSlot. The iframe, inside which the ad is displayed, is always 1x1px, and it never exapnds to full screen. The template works only when displayed stand alone and not from dfp.
Enabler.requestFullscreenExpand() inside the ad has no effect on the parenting iframe.
How do I force iframe to expand?

Ionic 3 | Set Admob Banner Position inside specified DIV

I'm working on ionic 3 app ( similar to news feeds ) and wanted to show AdMob in it. It is working and it is showing at the bottom of the screen. But I wanted to show it in a Div ( basically I wanted to show it between news feeds ). Is it possible?
If not, is it possible to use Google Adsense inside ionic 3? Where I can place the Adsense tag wherever I wanted inside the HTML.
And is it permissible to use Google Adsense inside ionic 3 ?
Im guessing that you use this AdMob Free NPM Module.
With this module you can specify banner Ads only on top or bottom of your WebView. There is no possible way to specify a DIV as position.
However you could go with the AdSense Method.
I recommend this NG2 Adsense Module. It also has a live Demo here.
With this module you can place Ads in your News Feed just like this for example:
<ng-adsense
[adClient]="'ca-pub-7640562161899788'"
[adSlot]="7259870550"
[display]="'inline-block'"
[width]="320"
[height]="108">
</ng-adsense>

Implement Adsense Matched Content with DFP

I want to implement the Adsense Matched Content in a website using DFP, but I don't know which type of Ad Unit I need to create.
The Matched Content tag is responsive, and I don't know which fixed size I need to create.
Any ideas?
Thanks!

Prevent smaller ad creative from showing in larger ad slot

I'm having a 300x250 size creative show in a 300x600 ad slot.
The header call defines only one size, 300x600 like so:
googletag.defineSlot('/1030735/website_300x600', [300, 600], 'website_300x600').addService(googletag.pubads());
And the ad unit itself in dfp is setup with only one size, 300x600.
However, I get some network ads come in through the ad unit that are 300x250, and it's happening more often than the correct 300x600 size.
How can I force it to show only a 300x600 size ad on the unit?
I thought that having only one ad unit size is the way to do it?
This is happening probably because the third-party adNetwork who serves to you the banners that you have places in your creative of 300x600 is returning sometimes 300x600 banners and sometimes 300x250. Since you have configured your creative as a 300x600 creative, DFP it's not smart enough to detect it.
If this is the scenario, you have to options:
To contact to your third party adServer to limit the campaigns to the size you need: 300x600.
To add to the line item and the implied creatives the size of 300x250, this way DFP should be able to detect when it's one size or the other.

Double-click ad unit lookup for div failed (DFP error)?

Just added double-click DFP ads to a friend's site. Realized that only one of four ads are appearing. Although the status of all 4 ads are "active", 3 are not appearing.
I ran the DFP debugger and got this output:
Ad unit lookup for div div-gpt-ad-1327994622973-0 failed.
Div div-gpt-ad-1327994622973-0 is not mapped to a known ad unit.
It doesn't appear to be a javascript issue, but the code for these ads was taken directly from the "generated tags" and these units are active. This occurs in multiple browsers.
Could this be a caching issue? How can a cache buster be implemented for ads only? Thanks.
Google doesn't seem to have extensive documentation on the causes, but when you have more than one DFP ad on the same page, you MUST modify the code in your <head> and avoid using the individual code generator with each ad unit because it will alter the ad IDs each time.
Easy Steps
under inventory select "generate tags" under the left column nav
you will now see a list of ad units
select ALL ad units and generate all at once
copy the head code into the head area of the page
copy the body code for each ad into the proper area of the page.
Important Notes
Include all ads in both <body> and <head>
Generate all ad tags at once, not individually