Portal Template Setup

This support page is for setup of Allwebco Portal model templates only. If you are adding Google AdSense to a different template style please click here.

NOTE: Before you add any ads to your Allwebco template be sure to review the policies at Google AdSense, and any policies for any other ad or affiliate vendor. Allwebco is not affiliated with Google and is not responsible for any violation of these rules as a result of template user's "modifications to the "Portal" template model.


1. Setup a Google AdSense account:
Click here to go to the Google AdSense account setup and login page.



2. Portal LT "light" models only:
Login to your Google AdSense account and generate a 120 x 600 skyscraper ad under "AdSense for Content". You can use either text only or text and images or image only ads. Copy this code, and paste the code into each HTML page in your template in the "PLACE AD UNIT SKYSCRAPER 120 X 600 ADS" area. Test your pages. You do not need to do any other steps on this page.

NOTE: Some light portal models will use a 468 x 60 banner for the ads. Some use a 120 x 600 skyscraper ad. See the notes in your template pages for the correct ads to generate.



Full Portal Non-LT, Models:

2. Finding your Google AdSense pub number:
This number can be found in your Google AdSense account login under the "My Account" and then "Account Settings" tab. Or, you can generate any type of ad to find this code. This number will look similar to "pub-123456789123" and will be the "google_ad_client" variable.


3. Replacing the ads option A:
This is for a quick search and replace of the Google pub number. In each template HTML page find and replace "pub-0000000000000000" with your "pub-??????????????" number. If you do this type of edit be sure to login the next day after uploading and check that your ads are generating clicks in your Google AdSense account login. If not, you may need to do the setup option below.


3. Replacing the ads option B:
Generate new ads in your Google account and paste this code in the correct spots in each template HTML page. See the notes in each HTML page source code and click the visual below to see proper ad placement.


Ad limits:
As far as we can ascertain, you can place only 3 ads on a page and 3 link units. If you attempt to place more than 3 ads the page will still display only 3 of them.

Place ads only on HTML pages:
Place your ads only in top level HTML pages. Do not place AdSense ads in .js files or in IFrame pages.



4. AdSense search setup:
Be sure to edit the template "search.js" with your pub number. This will be in the "var clientID" area near the top of the "search.js". Replace the "pub-0000000000000000" with your pub number. Click here for variable editing help. This will allow the search in the template header to generate pay per click ads as well.


5. AdSense results setup:
The AdSense search results shows a graphic in the header on the Google site. To have no image show here, edit the "var showlogo" variable to "no" in the "search.js".

To show your own logo and link this logo to your site. Create a 750 x 50 pixels logo. Place this image in your template picts folder. Upload this image to your hosting area. Edit this line in your search.js with your logo location:

var logoURL     = "http://allwebcodesign.com/picts/google_alllogo.jpg"

Edit this line with your logo link:

var logoLINK = "http://allwebcodesign.com"


Using a site search instead:
For a non-AdSense site search on your website, delete or rename the template "search.js". Then, in the "SITE-GOOGLE-search.js" edit the "var searchdomain" variable with your website domain name. Rename the "SITE-GOOGLE-search.js" to "search.js" and test your pages. The search should now search your website only.


Troubleshooting problems:
  • If you are adding Google ads and they are not displaying, you may have placed too many of one type of ad on a page. Try adding a different ad type to the page. As far as we can ascertain, you can place only 3 ads on a page and 3 link units.
  • If your ads are not working, try generating a new ad in your Google AdSense account and replace the template ad code with your generated ad.
  • Place your ads only in top level HTML pages. Do not place AdSense ads in .js files or in IFrame pages.
  • If you place an ad in a template "sidebar.htm" (not recommended) be sure to check your Google account to make sure the ads are working and generating clicks.
  • You may need to check Google support, or contact Google for any other problems with your AdSense account. Allwebco is not affiliated with Google.


Allwebco Template Support


Allwebco Website Template Support


See Also...
Portal Templates



See Also...
Scripts & Add-ons



Google AdSense Templates
Complete websites with built in scripts.
AllwebcoDesign.com
Web Template Support
AdSense Ready Templates
Web templates for Google AdSense.
AllwebcoDesign.com
Web Template Support
Allwebco Web Templates
Complete websites with built in scripts.
AllwebcoDesign.com
Web Template Support
Shopping Cart Templates
Professional templates with built-in Paypal.
AllwebcoDesign.com