McDonald’s advertising business is expanding, following Walmart and Amazon’s lead in a proven strategy for revenue growth.