Get the newsletter
Google · AI / ML · Filed Aug 5, 2026 · USPTO published Dec 3, 2026 · This week's release

Google Files Patent for AI That Repaints Ad Backgrounds Around Your Search and Location

Google's filing describes an AI that takes a stock product photo and repaints everything behind the product to fit your search, your location and even the weather. A truck ad for a Colorado shopper could show the truck on a snowy mountain road.

A network that connects a person's phone to AI servers, allowing the system to customize ad images before displaying them on a web page. Drawing from patent filing US 2026/0387478 A1.
A network that connects a person's phone to AI servers, allowing the system to customize ad images before displaying them on a web page.All 4 drawings ↓
Publication number
US 2026/0387478 A1(US20260387478A1)
USPTO patent title:
Using Generative Artificial Intelligence to Edit Images Based on Contextual Data
Applicant
Google LLC
Filed · Published
Aug 5, 2026 · Dec 3, 2026
Inventors
Pradyumna Narayana, Garima Pruthi
Status when we published
Waiting for an examiner
Document
20 claims
US classification
382/156
Parent application
Continuation of 18/815,790 (filed Aug 26, 2024)(18815790)

What Google's background-swapping ad idea does

Imagine you search for trucks that can handle Colorado winters. Instead of the same stock photo every other shopper sees, the truck in your ad is shown on a snowy mountain road.

That is what this Google filing describes. When you search, the system picks an ad, then pulls up a product photo the advertiser supplied. One AI writing tool drafts a short set of instructions for a second AI that edits pictures. It builds those instructions from your searches, roughly where you are, and details from the ad. The product stays put while the background gets repainted to fit.

The filing says the goal is to spare advertisers from making and storing thousands of versions of the same photo. The image is created on the spot, within the fraction of a second a page has to load. Before it goes out, the system also checks its own work and fixes problems like stray text or a product sitting off center.

From the filing · CLAIM 1
… generating, using a language model, an image editing prompt for editing the image based on (i) digital component data related to the digital component and (ii) query data comprising the one or more queries and contextual data that characterizes a context in which the one or more queries are received from the client device …

Translation: An AI language model writes instructions to change the ad picture based on what you searched and where you are.

How the language model briefs the image editor

The claims cover a chain of steps. A system receives one or more search queries from your device and picks a "digital component" (the filing's term for a unit of content, with ads as the main example). It grabs a stored image of the product, then asks a language model (an AI that writes text) to draft an image editing prompt, which is a written instruction for a picture-editing AI. That instruction draws on details about the ad plus your queries and contextual data, such as your location or interests. An image editing model then produces the edited picture, which becomes the finished ad sent to you.

The filing describes some optional extras. A foreground segmentation network (software that separates the product from its background) can mask out the old background so only that part is regenerated. The system can also pull out the main ideas from your queries and from the ad, keep the ones that match ("snow" and "winter"), and drop the ones that clash.

Several dependent claims add quality checks before the ad is sent:

  • Fixing a product that is too small, off center, or rendered twice
  • Using text recognition to find and remove stray words in the picture
  • Comparing the ideas in the new image against the query and ad, and regenerating if they do not match
  • Cropping away odd marks along the image border

Why your search could change the ad you see

If this ever reaches Google's ad products, the picture next to your search results could be made for you in the moment. Search for waterproof backpacks and the backpack could sit under rain clouds. Search from New York in December and the scene could lean toward Christmas. Both are examples from the filing. A patent is not a product, so nothing here says when or whether it ships.

For advertisers, the filing's pitch is practical: they would not need to produce and store a separate photo for every place and moment, which also cuts the data sent around. For you, the open question is quality. Image AI makes odd mistakes, which is why the filing spends so much effort on checks for stray text, off-center products and scenes that do not match your search. It also says location can be kept coarse, such as a state or region.

Google's 99th filing we've tracked since May in the AI photo editing race follows auto-cropping for vertical video and multi-angle video compression.

Source: US 2026/0387478 A1 at the USPTO (PDF). Full patent text and figures are in the official publication.

Get our take in your Top Stories

Liked this breakdown? Add Patentlyze as a preferred source on Google, and our plain-English take shows up more often in your Top Stories the next time Google patent news breaks.

There are more where this came from

We read the new patents from Big Tech, carmakers and more and send you the ones worth knowing. Plain English, free, every week.

The drawings · 4 sheets

4 drawing sheets from US 2026/0387478 A1 · click any drawing to enlarge

How ad servers and AI connect to your phone, drawing sheet 1 from US 2026/0387478 A1
Sheet 1 How ad servers and AI connect to your phone
Generating custom backgrounds by isolating a product image, drawing sheet 2 from US 2026/0387478 A1
Sheet 2 Generating custom backgrounds by isolating a product image
Steps for tailoring an ad image to your query, drawing sheet 3 from US 2026/0387478 A1
Sheet 3 Steps for tailoring an ad image to your query
Computer hardware that powers the background editing system, drawing sheet 4 from US 2026/0387478 A1
Sheet 4 Computer hardware that powers the background editing system
Patent filing page

Watchlists this filing belongs to

All watchlists →
Reader comments

No comments yet

Start the discussion

Real name or a handle, either is fine. Comments are read by a person before they appear, so allow a little time. Keep it about the filing.