google-dfp

DFP issue: No ad to show

白昼怎懂夜的黑 提交于 2019-12-06 05:27:26
问题 My app provide three ads in UIScrollView (via DoubleClick for Publisher). I used old version of AdMob SDK for iOS and everything works correctly. I decided to download new version because there were some problems with AppStore. Once I added new version, I'm getting error: Error Domain=com.google.ads Code=1 "Request Error: No ad to show." UserInfo=0x14e88e60 {NSLocalizedDescription=Request Error: No ad to show., NSLocalizedFailureReason=Request Error: No ad to show.} Ads have custom size of

GPT - Non key value ads showing in key valuse ad slots

邮差的信 提交于 2019-12-06 05:26:25
I have set up Ad Units and Key Values in DFP. I have built the site with the following code based on Google's tutorials: <html lang="en"> <head> <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.getElementsByTagName("script")[0]; node.parentNode.insertBefore(gads, node); })(); <

Facebook Audience Network with dfp mediation network

流过昼夜 提交于 2019-12-05 03:47:05
问题 App It already uses dfp to get ads from admob as described in DFP Android Guides. Now I want to get ads from facebook audience network through dfp. I follow the guide here and add FacebookAdapter.jar and AudienceNetwork.jar into my app. DFP In my line item, I set type price priority and use sdk mediation ad with facebook audience network. Condition However, when the app runs, I see the following message just like someone else reported here. W/FacebookAdapter(18649): The input ad size is not

DFP issue: No ad to show

ⅰ亾dé卋堺 提交于 2019-12-04 10:58:12
My app provide three ads in UIScrollView (via DoubleClick for Publisher). I used old version of AdMob SDK for iOS and everything works correctly. I decided to download new version because there were some problems with AppStore. Once I added new version, I'm getting error: Error Domain=com.google.ads Code=1 "Request Error: No ad to show." UserInfo=0x14e88e60 {NSLocalizedDescription=Request Error: No ad to show., NSLocalizedFailureReason=Request Error: No ad to show.} Ads have custom size of creatives (320x125). UIScrollView where it's been added is 960x125 and It's placed as header of

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

可紊 提交于 2019-12-03 12:48:27
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 ImageView and video with MediaView , but I have found that the MediaView is not resizing the view's height

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

99封情书 提交于 2019-12-03 11:21:42
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 = googletag.cmd || []; (function () { var gads = document.createElement('script'); gads.async = true; gads.type =

Add DFP DoubleClick inside a Facebook Instant article

岁酱吖の 提交于 2019-12-03 09:41:46
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 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 can be found below: <figure class="op-ad"><iframe height=“250" style="border:0;margin:0;padding:0;" width=

Asynchronous google ads versus Synchronous

主宰稳场 提交于 2019-12-03 09:28:14
问题 I'm using google DFP. If I use synchronous ads from google, my site loads slowly as it needs to load the ad at the same time it loads the website, and if an ad takes long to respond, then the load of the page gets paused. If I use asynchronous ads, this is not a problem since the page will load wether or not ads are loaded. In other words, it makes the site load faster. The thing is, using asynchronous ads creates a div with fixed width and height no matter if there are ads displaying or not.

DFP post-rendering callback

[亡魂溺海] 提交于 2019-12-03 03:42:04
问题 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? 回答1: 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

Asynchronous google ads versus Synchronous

旧街凉风 提交于 2019-12-03 00:58:34
I'm using google DFP. If I use synchronous ads from google, my site loads slowly as it needs to load the ad at the same time it loads the website, and if an ad takes long to respond, then the load of the page gets paused. If I use asynchronous ads, this is not a problem since the page will load wether or not ads are loaded. In other words, it makes the site load faster. The thing is, using asynchronous ads creates a div with fixed width and height no matter if there are ads displaying or not. So usually this creates a lot of blank space on my site, since not all ads position are being used.