The Google parent company and search giant faces an online ad market that’s on edge due to concerns about how Trump’s tariffs will affect the economy and business spending.