Businesses invest in online advertising to reach customers who are actively searching for their products or services.