Tag Archives: adsense
Hi,
recently i was needed to add some like and tweet button to a site. i supposed will be a 5 minuted task, but i discovered something really weird, that for some reason, the button not only was screwing up the load of the adsense ads, but also, sometimes the ads appeared inside the iframe of the buttons. looking for a solution on the web, i found something for the facebook like button and i applied something seamless for the twitter button.
Facebook Like Button
the steps to solve this are the following:
1)go to this page and create an application: https://developers.facebook.com/setup/
2) paste this code where you want the like button and edit with the correct paths and the appID you generated before
<!-- like button -->
<script src="http://connect.facebook.net/en_US/all.js#xfbml=1"></script><fb:like layout="button_count" width="100"></fb:like>
<div id="fb-root"></div>
<script>
window.fbAsyncInit = function() {
FB.init({
appId : 'XXXXXXXXXXXX', // ID generated for WEBSITE provided above.
xfbml : true, // parse XFBML
channelUrl : 'http://www.YOUR_SITE_NAME.com/facebook/channel.html' // new file custom channel
});
};
(function() {
var e = document.createElement('script');
e.src = document.location.protocol + '//connect.facebook.net/en_US/all.js';
e.async = true;
document.getElementById('fb-root').appendChild(e);
}());
</script>
<!-- like button -->
3)create the channel.html file on the path of your server and paste this only line:
<script src="http://connect.facebook.net/en_US/all.js"></script>
and that’s it, now you have a like button and will not screw up your adsense ads
Tweet Button
for the tweet button, the solution is more simple, i basically pasted the code inside a file and called it from a iframe. is not the most cleanest way, i know, but is the only thing i figured out to solve it.
i hope this help you in some way
Regards,
Shadow.
Related Post
Hi,
i support the ads type of revenue, more if part of that revenue go to the developer (like kongregate do) but should have a guy who check something like this:
really, this type of invasive ads dont let you use the site ! if you dont want to hire a guy, at least put a link to report the ads and then you can check it later and remove it.
more attention please
Regards,
Shadow.
Related Post
Hi,
i readed in several games and blog what google it’s interested in put her adsense in games. he buyed several companys and i thinked we, the mortals developers and publisher we going to wait to put that ads in the games but i was wrong.
the last news about this it’s mochiads one of the largest ad network for games has sign a deal with google to integrate his ads to the network. more details of this from mochiads:
FAQs
Sweet! Do I have to do anything to enable the Google ads in my games?
Nope. You’re all set as long as you have MochiAds running in your games. Same code, more ads!What types of Google ads will show up in my games?
This is a new initiative, so we’ll be testing a variety of ad types from video ads to image ads and maybe even some text ads. As we make more progress with the relationship, we’ll get a better sense of what works best in your games.Where in my games will these ads run?
They can run anywhere that video ads can run. They will not, however, run in your Peel Away (leaderboard) ads.Will Google ads show up in my US traffic?
Right now, Google ads will only show in your non-US (i.e., international) traffic, in the countries that AdSense for Games is present. For your US traffic, MochiAds will run as usual.Will MochiAds run less often in my games?
Nope. MochiAds will still run as usual. The AdSense ads will supplement them for your international traffic.Where do I go if I have any questions about the Google ads running in my games?
Contact us directly at support (at) mochiads (dot) com.
if it going to be more revenue for publishers (and mainly developers) it’s great initiative
edit: i just realized what you can apply to google game ads directly, whiteout mochiads going here. the requirement are a little high but you can also integrate with PC and Java games.
Regards,
Shadow.
156-215 and 1Y0-456 professionals write many exams like 642-642 and 642-825 before they finally settle down for 642-845 and 70-646.







