Alphabet Inc.’s Google runs the world’s largest advertising business, selling space atop its search results. Google is also among the biggest buyers of those ads, promoting products from its music service to its app store.

These days, Google often pushes its growing list of hardware products, from Pixel phones to Nest smart thermostats, in the top ad spot above its search results.

A...