As CTV and retail media reshape digital advertising, PubMatic and The Trade Desk battle macro and competitive pressures for investor favor.