Apple used to forbid marketing notifications, but they relaxed their policy a while ago.
What's really needed is system-wide notification channels, a hard requirement on app developers that marketing notifications go into the marketing channel, per-channel notification permissions, and a global off-switch for marketing channel notifications.
Apple needs to break this shitty business model. There's no incentive for Apple to keep allowing it.
They relaxed their policy because they themselves were doing it and it seemed too hypocritical even for them