Here's how to navigate the $140B shift to transaction-based advertising.