Ad units

Add an AdSense 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.

Note: This feature is only available to eligible accounts created before May 17, 2022.

On this page

Create a search engine

  1. Sign in to your AdSense account.
  2. Click Ads.
  3. Click By ad unit.
  4. Click Search engine.
    Note: If you don't have the Search engine option, then you're not eligible.
  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. If you want to earn through showing search ads, turn on Make money from ads placed into the search results.
  8. Click Create.
  9. Copy and paste the code in between the <body> and <body/> tags of your pages where you want the search box to appear.
  10. 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?
true
Unlock your revenue with personalized tips today!

Visit the Optimization tips for AdSense page to see personalized suggestions to maximize your revenue.

Unlock now