Ad units

Add a search engine to your site

You can add a Google-powered search engine to your site that shows ads with search results. To add a search engine, you first generate the search box code in your AdSense account and then copy and paste that code into the HTML of your pages.

Create a search engine

  1. Sign in to your AdSense account.
  2. Click Ads and then Overview.
  3. Click By ad unit.
  4. Click Search engine.
    Note: If you don't see the Search engine option, you're not currently eligible. Please check again in the future.
  5. Give your search engine a name.
  6. Choose whether you want your search engine to search the entire web, or only specific sites you list.
  7. Click Create.
  8. Copy and paste the code in between the <body> and <body/> tags of your pages where you want the search box to appear.
  9. Click Done.

Track the performance of your search engine

You can track earnings made through searches on your site by setting up a custom channel for your search engine. Learn more about custom channels.

Advanced features

If you'd like more customization options for your search engine, you can access the advanced features provided by Programmable Search Engine. For example, you can use these options to change the look and feel of your search engine. Learn more about Advanced Programmable Search Engine features.

Note: If you use the advanced features, you may need to update the code on your site with new code you generate in Programmable Search Engine.
Was this helpful?
How can we improve it?

Need more help?

Sign in for additional support options to quickly solve your issue