Questions tagged [google-dfp]

Google's DoubleClick for Publishers API

From http://code.google.com/apis/dfp/

Google's DoubleClick for Publishers (DFP) API lets developers build applications that interact directly with Google's next-generation display advertising platform. With these applications, publishers and third parties can manage inventory, create orders, pull reports, and more.

557 questions
36
votes
1 answer

Difference between AdMob and DFP networks?

I am trying to display banner as well as Interstitial ads on my iOS application. But now I am confused on ad networks. How the AdMob is different from DFP and which one is better to serve ads. Can anybody give some help ? Thanks in advance.
christijk
  • 1,445
  • 16
  • 25
29
votes
6 answers

DFP post-rendering callback

I need to trigger some JavaScript after DFP has finished rendering all the ads on the page - or at least when it has triggered collapseEmptyDivs (which hides ad units that contain no line items). Is anyone aware of a way to get DFP to trigger a…
Sp4cecat
  • 961
  • 1
  • 8
  • 18
22
votes
1 answer

Google DFP in SPA (Angular, Vue) - how to destroy ad and all it's references to avoid memory leak

I tried to use google's DFP in both Vue.js and Angular SPA but it seems to be causing a memory leak. In Angular here you can see the proof of concept https://github.com/jbojcic1/angular-dfp-memory-leak-proof-of-concept. For ads, I am using ngx-dfp…
jbojcic
  • 837
  • 1
  • 10
  • 23
21
votes
3 answers

How to properly write a DFP out of page ad unit?

I am developing a javascript-rendered mobile web interstitial. The layout is fully responsive, hence it will take 100% of the provided screen\iframe. I now wish to display the interstitial through DFP. At first I created a sized ad unit (320x480)…
18
votes
5 answers

Google Ads MediaView not correctly resizing height to wrap_content when displaying image

I got an email from AdMob today saying: Change to native ads policy: Native ads will require MediaView to render the video or main image asset. In an effort to help you deliver a better ad experience more easily, beginning October 29th, native…
Sarah
  • 183
  • 1
  • 8
16
votes
5 answers

How to check Google publisher tag ad slot is empty or not?

I am using Google publisher tags to fetch the ads. How to check whether I am getting an ad or any empty ad for an specific ad slot. I am using the below code. googletag.defineSlot("/1234/travel", [[300,250],[300x600]], "div-gpt-ad-123456789-0")) …
user2254912
  • 169
  • 1
  • 1
  • 3
13
votes
2 answers

DoubleClick for publishers: Displaying responsive ads

Here is my current code. // Head