google-dfp

registering to events with google publisher tag

霸气de小男生 提交于 2020-01-14 07:54:05
问题 according to the documentation at https://developers.google.com/doubleclick-gpt/reference#googletag.events.SlotRenderEndedEvent there should be a way to register to an event that a tag was rendered: Class googletag.events.SlotRenderEndedEvent This event is fired when a slot on the page has finished rendering. but when i inspected the dfp object i don't see any event namespace any idea how to register to this event? 回答1: To register the event, use the following code: <script type='text

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

孤街醉人 提交于 2020-01-01 04:38:05
问题 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 ads will require MediaView to render the video or main image asset. Ad units not compliant by this date will stop serving ads, which could impact your ad revenue. I tried this out in my Android app, removing the separate handling of images with

Changing Ad Size Based on Browser Width in DFP

我与影子孤独终老i 提交于 2019-12-31 04:20:29
问题 In DFP Small Business / DoubleClick, I generated the following ad tag for an ad unit with three different sizes along with one creative for each specified sizes. So there are three different sizes for the ad unit and when you hit refresh the ad changes into one of my three specified ad sizes. This works fine, but its not what I want the ads to do, I want the ads to do this: I want the ads to change sizes based on browser width, so for example, if the viewers browser width is greater than

DFP responsive ads

☆樱花仙子☆ 提交于 2019-12-25 08:00:01
问题 I have so problem to run responsive DFP ads in my website. I read all the google specs but still cant figure it out. <script type='text/javascript'> var googletag = googletag || {}; googletag.cmd = googletag.cmd || []; (function() { var gads = document.createElement('script'); gads.async = true; gads.type = 'text/javascript'; var useSSL = 'https:' == document.location.protocol; gads.src = (useSSL ? 'https:' : 'http:') + '//www.googletagservices.com/tag/js/gpt.js'; var node = document

How to detect loading state of a Google Doubleclick for Publishers DFP Ad?

↘锁芯ラ 提交于 2019-12-24 09:48:27
问题 We have a series of DFP ads on a page that get refreshed automatically using the javascript refresh() call each time a user clicks each thumbnail icon on a gallery viewer: googletag.pubads().refresh(); The problem is that if a user clicks through the gallery quickly, the ads keep refreshing for every click so that eventually blank ads can occur as the system is unable to keep up with the user clicks. Hence I'd like to only call refresh only if the ad has completely finished loading. Is there

Looking for a sample doubleclick ad serve logs for BigQuery analysis [closed]

心不动则不痛 提交于 2019-12-21 20:47:27
问题 Closed . This question needs to be more focused. It is not currently accepting answers. Want to improve this question? Update the question so it focuses on one problem only by editing this post. Closed 2 years ago . I'm building a BigQuery application and am looking for a sample data set from Double Click for Publishers. Specifically, ad serve logs in CSV for a sample period including Clicks, Impressions, and ActiveViews. Has anyone come across a sample along these lines? I've looked through

google dfp pubads().refresh() not working as expected

╄→гoц情女王★ 提交于 2019-12-21 03:42:46
问题 I'm using some of the new features in Google DFP and can't get a single add to refresh on it's own. I can refresh all ads on the page but I can't get just one to refresh by itself. I've been trying the following code to get one add to refresh without luck: var slot1 = googletag.display('/6900315/myad2', [300, 250], 'div-2'); googletag.pubads().refresh([slot1]); Any help would be appreciated! Full source: <script type='text/javascript'> var googletag = googletag || {}; googletag.cmd =

Add DFP DoubleClick inside a Facebook Instant article

与世无争的帅哥 提交于 2019-12-21 03:08:41
问题 How can I add an DFP ad inside a Facebook Instant article? I use the DoubleClick service. I need to know an example of what should I add inside the 'figure': <figure class="op-ad"> <!-- Use this for your ads --> <iframe src="https://www.adserver.com/ss;adtype=banner320x50" height="50" width="320"></iframe> </figure> Thanks 回答1: I recommend using Doubleclick's GPT tag but with the caveat of placing the whole ad tag within the iFrame (as opposed to making calls to the head element). An example

Ajax website - Google DFP Small Business and Adsense [closed]

泪湿孤枕 提交于 2019-12-20 17:26:08
问题 Closed. This question is off-topic. It is not currently accepting answers. Want to improve this question? Update the question so it's on-topic for Stack Overflow. Closed 10 months ago . I am building an ajax based website . For Ajax based websites looks like DFP is a good solution for earning money . Also in DFP you can enable Adsense to show the ads ( you can refer below links) . http://support.google.com/dfp_sb/bin/answer.py?hl=en&answer=1670087 http://support.google.com/dfp_sb/bin/answer

Ajax website - Google DFP Small Business and Adsense [closed]

余生颓废 提交于 2019-12-20 17:25:32
问题 Closed. This question is off-topic. It is not currently accepting answers. Want to improve this question? Update the question so it's on-topic for Stack Overflow. Closed 10 months ago . I am building an ajax based website . For Ajax based websites looks like DFP is a good solution for earning money . Also in DFP you can enable Adsense to show the ads ( you can refer below links) . http://support.google.com/dfp_sb/bin/answer.py?hl=en&answer=1670087 http://support.google.com/dfp_sb/bin/answer