Listed players
SST2.44▼ -7.58%TIG40.00▲ +3.90%TEAD0.56▲ +3.77%PERI8.50▼ -2.97%TBLA3.23▼ -2.71%INUV0.57▼ -1.74%AV10.06▼ -1.59%GOOGL343.50▲ +1.56%SNAP5.58▼ -1.24%PINS19.26▼ -1.03%MSFT517.53▲ +0.92%PPLI41.28▲ +0.81%IOS32.24▲ +0.44%META728.08▲ +0.30%GDDY97.21▲ +0.24%DV13.49▲ 0.00%MCHX1.29▲ 0.00%
Ticker byClearTrust

Lesson 2 of 8 · 8 min read · intermediate

This lesson counts towards the ClearTrust Search Arbitrage Fundamentals certificate. Enrol with your email to record your progress and scores.Get certified, free

AdSense for Search (AFS) and Custom Search Ads

How Google's search ads for partners work: the CSA code, its key parameters, the three allowed query sources and the rules that keep a feed alive.

AdSense for Search, AFS, is Google's umbrella for letting partners earn from search ads on their own pages. It is the root of the Google feed. Every other Google search product for publishers, including RSOC, sits on top of an AFS contract.

Two things with one name

The name causes confusion because it covers two products.

Self-serve search engine

  • Any AdSense publisher can add a Google-powered search box to a site
  • Google supplies both the results and the ads
  • Little customisation
  • Not what arbitrage runs on

Custom Search Ads (CSA)

  • For partners with their own results page
  • Google supplies only the ads; the partner supplies the page
  • Requires a contract and an account manager
  • The basis of search feeds and RSOC

When practitioners say "an AFS feed", they mean Custom Search Ads: Google's script requests ads for a query and draws them into a container on the partner's page.

How the CSA code works

The integration is client-side. Google's JavaScript runs in the visitor's browser, so Google sees the real device, browser and page. This is a deliberate design: it lets Google measure and police the traffic directly. The page passes a set of page-level options and one or more ad blocks.

Selected Custom Search Ads parameters, summarised from Google's developer reference.
ParameterWhat it doesNotes
pubIdIdentifies the partner accountThe part of the client ID after "partner-"
queryThe search term to match ads againstMust be exactly what the user chose, unencoded
styleIdApplies an approved visual styleSee Style ID; styles are created in the account
channelTags the request for reportingSee Channel ID; several can be joined with "+"
adtestMarks test requestsWhen on, no revenue is generated; used during development
hlLanguage of the adsDefaults to English
adsafeFiltering level for ad contentDefaults to the strictest setting
numberAds requested in a blockUnit-level option
resultsPageBaseUrlWhere a related-search click should landRequired for related search units
relatedSearchTargetingWhether related searches are for a search page or a content page"query" or "content"

The heart of AFS policy: where did the query come from?

Advertisers buying search ads are paying for a person's own stated need. So the AFS program policies centre on one question: did a real user choose this query? Google's policy page accepts three sources only.

  1. Typed by the userEntered and submitted in a search box monetisation, with no editing, modification or filtering by the publisher. Search boxes may not be pre-filled, and links that carry pre-filled terms are not allowed.
  2. A compliant product-integrated featureSearch access built into a product, under a separate and detailed Google policy. This is the narrow route that applies to things like browser extension search monetisation.
  3. An alternative search queryA suggested term the user clicks, such as related searches. Google's policy says such terms must aim to suggest the most relevant queries and must not be designed to trigger particular ads or inflate clicks.

Anything else is out. A page that silently inserts a commercial keyword the user never chose is using forced keywords, which is a form of keyword stuffing and a quick way to lose a feed.

Other rules practitioners trip over

  • No incentives. Users may not be paid or rewarded for searching or viewing ads. See incentivised click.
  • No tampering. The code may not be modified, and results may not be framed.
  • Not inside software. The standard policy bars placing the code in toolbars or extensions; those need the product-integrated route.
  • Related search on results pages is limited to two units per page, with rules on position and labelling, and fewer than three terms will not display.
  • Site approval. Google introduced site-level approval for AFS in March 2024, according to trade press reports, so each domain must be approved before it can serve.

Three ways a search feed appears

1/8
Overview◉Visitorarrives three ways▤Site search boxvisitor types a query⇆AFS resultsresults page with ads▤Article pagevisitor reads content▦Related searchesRSOC block of topics⇆Results pageads for chosen topic⌂Parked domainno content at all⇆Keyword linksAFD ad page★Advertisersame pool of bidders
1
One ad pool, three doors

A search feed lends a search engine’s advertisers to another website. Google has offered it in three main shapes. They differ in one thing: how the visitor’s interest (the search intent) is established before ads appear.

  1. One ad pool, three doors: A search feed lends a search engine’s advertisers to another website. Google has offered it in three main shapes. They differ in one thing: how the visitor’s interest (the search intent) is established before ads appear.
  2. Door 1: the visitor types a query: With AdSense for Search, a site has its own search box. The visitor types what they want and the results page carries search ads, drawn by Custom Search Ads code. Like a shop assistant answering the question you asked.
  3. One step from query to ad: Because the visitor wrote the query themselves, intent is clear and one ad click pays. Rules are strict about where the query came from: a query the visitor never typed or chose is not a real search.
  4. Door 2: the visitor reads first: With Related Search on Content, the visitor lands on an article. A labelled block suggests searches related to what the page is about. The page must have real content; the block is an add-on, not the whole page.
  5. Two clicks: topic, then ad: Tapping a suggested term opens a results page with ads for it; clicking an ad is what pays. This two-click flow is the format most paid-traffic arbitrage uses today, because the visitor’s own tap confirms the interest.
  6. Door 3: a domain with nothing on it: A parked domain is a web address with no real site. With AdSense for Domains, someone who mistyped an address or followed an old link saw a page of keyword links and ads guessed from the domain name alone.
  7. The door Google closed: Intent here was weakest: the visitor never asked for anything. Google Ads opted advertisers out of parked domains by default during 2025 (flipping the usual advertiser opt-out) and removed them from its search partner network on 10 February 2026.
  8. The clearer the intent, the safer the feed: Typed query, chosen topic, guessed topic: advertisers pay for intent, and the formats that prove it survive. That is why policy keeps pushing arbitrage toward real content and a genuine choice by the visitor.

Results pages in the two-step funnel

In modern arbitrage the AFS results page is usually the second screen. The visitor chose a term on an article page, and lands here to see ads. The classic alternative is a keyword lander, a page of keyword links with no article, which was the standard design for Yahoo and Bing feeds and for parked domains. Google's direction since 2022 has been clear: content first, ads on the second screen.

What Google watches

Because the code runs in the browser, Google collects its own signals about every request and click. Clicks it judges invalid are not charged to advertisers and are not paid to the partner. Clicks that are valid but convert poorly for advertisers are discounted, a mechanism Google calls smart pricing. Neither is negotiable, and neither is fully visible to the partner. All a publisher sees is RPC drifting down.

Key takeaways

  • AFS is the contract layer for Google search feeds; Custom Search Ads is the code that renders the ads.
  • The integration is client-side, so Google observes the traffic directly.
  • Queries may come only from a user typing, a compliant product-integrated feature, or a clicked alternative query.
  • Pre-filled search boxes, forced keywords, incentives and code tampering all breach policy.
  • Invalid clicks are removed and weak-converting clicks are discounted, both at Google's discretion.

Questions people ask

What is AdSense for Search (AFS)?

AdSense for Search is Google's programme that lets publishers earn from Google search ads on their own sites. In its partner form, called Custom Search Ads, the publisher runs its own results page and Google's script fills it with ads matched to the user's query. It requires a contract with Google and is the foundation of Google search feeds and RSOC.

What is the difference between AFS and CSA?

AFS is the programme and the contract. CSA, Custom Search Ads, is the specific implementation in which a partner supplies its own search results page and Google supplies only the ads through a JavaScript integration. In arbitrage, people use the two terms almost interchangeably, but CSA is the technical product running on the page.

Can you pre-fill the search box on an AFS page?

No. Google's AFS policies say a query must be entered and submitted directly by the user without modification, and that search boxes may not be pre-populated with terms. Queries may otherwise come only from a compliant product-integrated feature or from a suggested term, such as a related search, that the user actively clicked.

How much does AdSense for Search pay?

Google disclosed in 2010 that standard AdSense for Search partners received 51 percent of the revenue Google recognised. Contracted partners negotiate their own confidential terms, and publishers working through a feed provider receive a share of the provider's share. Actual earnings also depend on invalid-click deductions and on how well the traffic converts for advertisers.

Previous: What is a search feed?Next: Related Search on Content (RSOC)