Get Code
CODE here
1. Copy and Paste the Publisher Code
Select the language of publisher code (eg PHP, JSP) which works best for your site. Next, copy the entire code snippet from the box below and paste it into your site's source. Paste the code wherever you'd like the ad to appear.
2. Configure Your Code
Cookie support has been added to the publisher code. When properly installed, we can better identify repeat visitors to your site. As a result, we can better optimize ad serving for your site and maximize your revenue potential.
If you are using the PHP or Perl version of the publisher code, you need to move the admob_setcookie() function near the top of your page before any output has been written to the page. You only need to move the "admob_setcookie();" line. The remainder of the publisher code can appear elsewhere on the page.
If you are using a different language of the code, no modification is necessary.
3. Test Your Installation
By default, the publisher code is set to test mode. When you make requests to our servers in this mode, we will return the "AdMob Test Ad". If you are not receiving test ads, please check your installation of the code.
4. Activate Ad Serving
When you are ready to request live ads, set the "TEST_MODE" variable to "false". Next, load a page where you have installed the publisher code. If you have installed the code properly, your site will be activated. You will also receive an email confirming that your site has been activated. AdMob ads will then be available to your site.
If you have any questions, please feel free to contact support@admob.com.