Online advertising is triggered when users do searches using keywords that a company has purchased. Ads look like organic search results, but they appear more prominently on a search engine results page (SERP) than they would have organically.
When you search for “best smartphone” on Google, the first few results marked with “Ad” are examples of paid search ads. Companies bid on keywords like “best smartphone” to display their ads at the top search results. If you click on one of these ads, the advertiser pays Google a certain amount for that click.