google-dfp

Difference between AdMob and DFP networks?

醉酒当歌 提交于 2019-12-02 23:27:04
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. AdMob is an ad network. You as a publisher can earn money by displaying ads delivered from the network. You'll be paid from AdMob without any direct contact to the advertising companies. DfP is an ad server offered as a cloud solution. You can set up an instance yourself but it's empty. It contains no ads. You'll need to go out, acquire ad campaigns from

DFP post-rendering callback

假如想象 提交于 2019-12-02 17:58:49
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 callback after either of these events? The GPT API now has a callback that is triggered after each slot is filled. For example: googletag.pubads().addEventListener('slotRenderEnded', function(event) { console.log('Creative with id: ' + event.creativeId + ' is rendered to slot of size: ' + event.size[0] + 'x' + event.size[1]); }); See https://developers

Applying CSS within an iFrame

一个人想着一个人 提交于 2019-12-02 08:54:58
问题 I'm trying to change the width of my ad image from pixels to percentages. I'm using Google DoubleClick or "DFP". It automatically puts your ad image inside an iframe, making it very hard to change the actual dimensions of the image. So, the way I've gone about changing the images width from pixels to percentage is, I made a div (that is 90% of the webpage) wrapped around the image ad and then set the image's width to 100% so when the wrappers width changes on browser width resize, the image

Google DFP ads in email behaving strangely

本小妞迷上赌 提交于 2019-11-30 07:10:32
I am trying out serving DFP ads in email. I'm following the guidelines here . I have an ad unit set up just for email I have a line item targeting that ad unit with just an image creative The line item doesn't have any targeting restrictions or anything like that The ad will show up in the email, at least the first time. The strange thing that I'm seeing is, after the first click, clicking on the ad again will often bring me to a blank page rather than the click-through page of the creative. Also, when I reopen the message, occasionally the image will not load. The code in the email looks like

Google DFP: Pass UTM_Source to DFP with javascript (without accessing the DFP Admin)

霸气de小男生 提交于 2019-11-29 17:23:17
I'm looking for a way to grab the utm_source value from a URL with javascript and pass it to Google DFP, which doesn't involve configuring anything in the DFP Admin (such as key-value targeting) as we don't have access to the admin panel for the specific site we are working with. Would appreciate any tips / javascript code. Use setTargetting. You will need to access the Inventory tab in DFP's dashboard to create the utm code keys ( Key-values link ) <script> function getParameterByName(name, url) { if (!url) url = window.location.href; name = name.replace(/[\[\]]/g, "\\$&"); var regex = new

Google DFP: Pass UTM_Source to DFP with javascript (without accessing the DFP Admin)

拜拜、爱过 提交于 2019-11-28 11:48:59
问题 I'm looking for a way to grab the utm_source value from a URL with javascript and pass it to Google DFP, which doesn't involve configuring anything in the DFP Admin (such as key-value targeting) as we don't have access to the admin panel for the specific site we are working with. Would appreciate any tips / javascript code. 回答1: Use setTargetting. You will need to access the Inventory tab in DFP's dashboard to create the utm code keys (Key-values link) <script> function getParameterByName

Google DFP - Resize SafeFrame custom creative outer Iframe container from inside (expand ad)

戏子无情 提交于 2019-11-27 09:09:55
i'm searching for solution, that can expand SafeFrame custom ad from inside of custom creative in Google DFP, is that possible somehow? There are 2 possible solutions: 1) using SafeFrame API pros: u can use it "out of the box" you can use it on any website, no custom code on website is needed it's safe to use cons: it's limited to fill just visible area of website need to wait, until ad unit is visible to the user 2) code your own API with window.postMessage() javascript method cons: you need to add custom code to your website it's a possible threat, if you use some 3th party creatives pros:

Google DFP - Resize SafeFrame custom creative outer Iframe container from inside (expand ad)

ⅰ亾dé卋堺 提交于 2019-11-26 14:32:40
问题 i'm searching for solution, that can expand SafeFrame custom ad from inside of custom creative in Google DFP, is that possible somehow? 回答1: There are 2 possible solutions: 1) using SafeFrame API pros: u can use it "out of the box" you can use it on any website, no custom code on website is needed it's safe to use cons: it's limited to fill just visible area of website need to wait, until ad unit is visible to the user 2) code your own API with window.postMessage() javascript method cons: you