How to Put Your AdSense Code in Facebook
Things You'll Need
- AdSense account
- Facebook Developer account
AdSense Code Set Up
Go to adsense.google.com and log in to your Google AdSense account.
Generate your AdSense code in your account by clicking the "New Ad Unit" button from the "My Ads" tab.
Customize the appearance and settings for your ad display. Click the "Save and Get Code" button when finished.
Select the code snippet and copy it into the computer's memory buffer.
Upload the file to your Web hosting server. Copy or record the full Web address to the uploaded HTML file. You will use this hyperlink later in the Facebook app as the "Canvas URL."
Facebook App Setup
Go to developers.facebook.com, log in to your account and then click the "Set Up New App" option in the top right corner.
Type a Facebook application name and accept Facebook's terms and conditions.
Confirm your Facebook Developer account via credit card or mobile phone.
Fill out the required information necessary to create the app and click the "Save Changes" button when finished.
Click on the "Facebook Integration" tab and add the required details for "Canvas Page," "Canvas URL" and "Canvas Type." When finished, click "Save Changes" button. The "Canvas URL" is the Web address that points directly to the file you uploaded to your hosting server.
Click on the "View App Profile Page" option located on the left side of the screen. On the next screen, click the "Add to my page" link on the left column. A pop-up dialog box will appear.
Choose which page or pages you would like to add the Facebook app to and then click the "Close" button. Your AdSense ads should now display as a tab on the Facebook page you selected.
Tips & Warnings