I've always assumed when I see an ad for Google Chrome in the sponsored section in Google web search that it is money coming out of Google Chrome's marketing budget. So, it should technically count as revenue for Google web search.
Which is why I think corporate taxes on profit is silly. Taxes should be based on revenue, not on profit. That you choose to reinvest all of your profits back into the company should be immaterial. If a corporation has 1% of its revenue as profit vs another corporation has 25% of revenue as profit is not our problem.