Skip to main content

Google adsense on Facebook application



Google has recently loosened its AdSense Terms of Service so publishers can run other contextual targeted ads along with Google AdSense, but the change may be because Google wants to run their ads in publishing vehicles alongside other advertisements (like the ads running within Facebook).

Steve Rubel thinks that Google AdSense ads will soon be coming to the Facebook applications Google has been slowly rolling out, especially after the quote from Eric Schmidt in AdAge :

“How will those developers get paid for those services? We would like to have our ads in those applications.”

Would you like to see Google AdSense in Facebook Apps with the current FB applications publishing?

First you should have a face book application with hosting service.

Second you should have a google adsense account if you don't have one go to google and create one.

Create adsense ads that you want to embed in your FB application(s).

Put your adsense code in empty html page and add some keywords inside this page, this page will include your adsense script and some keywords to direct traffic.


embed the previous page in another page that includes the below frameset to disable scroll bar:

<frameset border="0" frameborder="0" framespacing="0" rows="100%,*">
<frame src="Google-code.htm" noresize scrolling="no">
</frameset>

embed this page in facebook using iframe.

< fb:iframe src=http://www.yourwebsite.info/fbads/google-frame.html id="fbad-header" name="fbads-header" marginwidth="10" marginheight="10" scrolling="no" frameborder="0" height="105" width="740" />

Your Done.


For video tutorial press here

Comments

Popular posts from this blog

Coldfusion Facebook Graph API publish to your wall and your friends walls

In this tutorial we will learn by full coldfusion Graph API code example how to publish on your wall and your friends walls. This application uses new oauth authentication method.

The code is divided into four files: we will first start with a file called index.cfm:

<cfoutput>    
    <!--- Your FB application IDS --->
      <cfset api_key = ""/>
    <cfset secret_key = ""/>
    <cfset appID = ""/>
<!--- create a connection to the fb graph cfc --->
    <cfset graphCFC = createObject("component", "graph").init(#appID#, #api_key#, #secret_key#) />
    <!--- If user is authenticated or his access token is set create a cookie --->     <cfif not isdefined("cookie.access_token") and isdefined("url.access_token")>
        <cfset cookie.access_token=url.access_token>
    </cfif> <!--- If the user is authenticated and access token is set, then make the action…

Error: Write to Disk Access Denied - Troubleshooting - BitTorrent

I have downloaded Bit Torrent software and when trying to download I got an error after few seconds saying:

Error: Write to Disk Access Denied
Solving this problem is so simple:
Shut down BitTorrent program.
Go to Start and in the small search box on top of windows start button start typing Bittorrent and the program will show, right click with the mouse on the icon and Run as Administrator.
All ur problems are sorted out now and you can enjoy downloading...
Good Luck.

Implementation of Facebook Graph API in Coldfusion

Facebook has launched a new FB API called Graph that simplifies FB applications development, the new Graph API allows website owners to create Single Sign On (SSO) with Facebook and allow websites owners to be able to import a lot of users information but after their permissions.


The code below written in Coldfusion gives an example on how to Create FB login/logout button and then how to retrieve the created cookie, and use it for further development:

  <body>
  <cfoutput>
<!--- Your FB application IDS --->
    <cfset api_key = "XXXXXXXXXXXXX"/>
    <cfset secret_key = "XXXXXXXXXXXXXX"/>
    <cfset appID = "XXXXXXXXXXXXXX"/>
<!--- Facebook login/logout button --->
    <p><fb:login-button perms="email,user_birthday" autologoutlink="true"></fb:login-button></p>
    <!--- Facebook login/logout button that publishes to your wall--->
    <p><fb:like></fb:like…