Google DFP ads don't always display - google-dfp

I'm using Google DFP to display ads on several Joomla web sites. Periodically, a page will load and none of the ads will display. Refreshing the page will get the ads back. It doesn't always happen and I have not found a way to replicate the issue. Some times it happens clicking around on a site, other times when loading a URL directly.
The only constant is that when the problem occurs, none of the ads on the page will display and refreshing the page always makes the ads display.
Any ideas?

Related

Adsense ads not showing in chrome only

I'm using iframe from another domain to show adsense ads on my main domain.
Adsense ad not showing in chrome , but working fine on another browsers. problem only in chrome. I changed domain, there ads working. so maybe chrome have some issue with my main domain.
Thanks
I think Adsense does not allow placing ads in iFrames, That is why the ads are not appearing due to violation.
This is from Google
Yes, it does violate our policies. Firstly, you’re not allowed to
place ads in a frame within another page. Secondly, you’re not allowed
to put ads in your software, e.g., if you control both a page with ads
and an app that loads that page, we will take action against it

Images not loading on Facebook chatbot

I developed a Facebook chatbot for displaying a carousel of images based on what the user entered in the chat. The images are hosted on my own website and belong to me. Initially, the carousel was loading the images properly from my website but since yesterday when the query is sent the following error message appears-
Attachment Unavailable - This attachment may have been removed or the person who shared it may not have permission to it wit...
This message is coming even after I have whitelisted my domain to my Facebook page as explained here
What is further unusual is that the images get loaded when I refresh my chat window or use the Messenger app on Android. I am guessing on refresh it loads from the cached in the browser and hence it is able to load.
I am not sure what is causing this issue. Any help or suggestion would be great. Thanks
This is currently happening for many Chatbot Apps it seems. Hopefully they fix it soon. It is already reported to facebook: https://developers.facebook.com/bugs/643964919115135

How can I test Google ads on my site

I am developing a website where I want to show Google ads. How can I test ads on my site? Additionally:
Does Google allow me to test ads?
Does it think my tests are fake impressions?
Can I get blocked by Adsense?
here is site link http://www.geeksweblogs.com/
Google may not like it, but in its TOS it says you are allowed to test your ads, although I would recommend you not to refresh the site thousands of times. Instead, I would first remove the AdSense tags and use some divs with fixed width & height and a background color (or a background image which looks like a Google ad) to test it excessively. If you have tested your layouts, remove the test divs and re-add your Google AdSense code. Now you can test it an additional few times to be 100% sure that all works. You can surely reload the page 10-20 times. Remember to just view the ads for testing but never ever click on your own ads – Google doesn't like that.

How to make a loading gif for facebook tab iframe app

Q1. It seems facebook is killing all animated gif's is this true?
If someone has figured out how to display loading gifs on facebook apps, please tell me what the best way to do the following is:
I have a UK-based server serving an iframe in a facebook tab. It takes ages for the page to load because facebook is pulling the page from its servers in US.
My idea is to serve a free-ly hosted, fast loading page that loads the facebook loading gif and loads my iframe from the UK in the background. Once the iframe is loaded, the onload() event will fire and remove the loading gif... pretty standard.
Q2. Will this work?
Q3. If so what free hosted servers are peered with facebook's servers?
Cheers.
Update the Facebook app setting to point to a page on your local servers that loads quickly that will do two things. Display a GIF, and also redirect to the slower servers using JavaScript. That way the user will see the GIF until the browser can render the new page. No need to change Facebook or it's servers. :)

How to get targeted adsense ads on Facebook app page requiring authentication

I have a Facebook iframe application that I am monetizing via Google Adsense. On pages that do not require Facebook authentication, the ads are served fine and reflect the content on the page. Pages that require a Facebook session have the ads rendered fine, but they are very generic. They only reflect the user's geography and not the page content (for example, Groupon ads for the user's city, and ads for random things like photo uploading services).
I would like to get Adsense to render targeted ads based on the page content. There is plenty of good content on the pages in question. They are not "content-free" pages like pure logon pages.
I am using an approach similar to the one in the accepted answer for this other question: google adsense in facebook application . My Adsense javascript is in a separate file that gets loaded into an iframe in my canvas page, which is in turn loaded into Facebook as an iframe (like any other Facebook iframe app). The file with the Adsense code has a bunch of relevant content to provide Adsense with the context for targeting the ads. This content is not visible to the user as I set the iframe to have no scrollbars and a limited height.
Is the problem that the Adsense bot (user agent Mediapartners-Google) gets blocked by the Facebook logon and can't indexing the page?
Or is the problem that when the user accesses the page, Facebook tacks on a very long querystring, resulting in Adsense treating it as a different page for every user? Then again, this has no impact on the iframe URL.
The solution recommended in that other stack overflow question calls for loading the file with the Adsense code and keywords using a frameset rather than an iframe. Would this really make a difference?
I am aware of the potential conflict with Adsense terms which prohibits loading Adsense via an iframe. For a Facebook app there really is no other way to do it, and since the app iframe has legitimate content for ad targeting and is "owned" by the publisher (me) it seems consistent with the spirit if not the letter of the Adsense terms of use.
I have toyed with the idea of changing my pages that require a Facebook session to be open, and just disable all controls and present a Facebook login button to users who visit those pages and are not logged into Facebook already. I would use the Javascript client library to manage the login and enabling of controls so the page does not refresh, so hopefully Adsense will read the content and delivery relevant targeted ads. This is a significant change to those pages however, so if there is a simpler solution I'd like to avoid this work.
Well I did nothing but wait a week or so and the ads started to get context-tuned and relevant, using the approach of putting the ads in an iframe that has masked-off context content (setting the iframe height and width to just show the ads, no scroll bars or border) that matches my app's subject.
I'm not sure why it took a week for Google to tune into the context and produce targeted ads on this page, but I won't look the gift horse in the mouth I guess.