Modern consumer product branding with respect to e.g. food mostly dates to when self-service supermarkets put in an appearance. So mostly 20th Century. Although certainly there were sales adjacent and promotional activities long before that that are pretty much marketing, at least if you squint a bit.