Please make sure to visit Your AdSense Page where you can find personalized information about your account to help you succeed with AdSense.

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.

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 see the Search engine option, 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?
Your AdSense page

Introducing AdSense Page: a new resource in which you can find personalized information and new opportunities in your account to help to succeed with AdSense.

Clear search
Close search
Google apps
Main menu