First, it's useful to talk about why this community strongly dislikes undisclosed self-promotion. We hate off-topic commercial spam (weight loss pills, etc.) for obvious reasons, because it's pure trash that belongs nowhere. Undisclosed self-promotion of products that in some way target on-topic questions are more of a problem because they are untrustworthy. The author of a commercial product is clearly biased, and anyone reading their answer deserves to know this and take it into account.
The above forms the basis of how we act on self-promotion, along with judgments about intent. There have been significant debates about how much self-promotion is too much, even when proper disclosure is provided. If someone's sole intent is to promote their product or project, even proper disclosure may not protect their answers. However, there are ways that people can mention their own work without it becoming a problem.
With that in mind, I can address how I approach people who have been flagged for spam or self-promotion. I do split these into two groups, based on whether I think there is any chance they can change their behavior.
The factors you list above play into this: do they have any other non-promotional contributions, is this a commercial product they're promoting, is the product anywhere near relevant, and so on. Someone advertising weight loss pills or rock crushing equipment isn't worth any more thought, destroy the posts, destroy the accounts, see if there are any others spamming from that location, and move on. Nothing we say will change them in the least.
On the other side are people promoting open source libraries that do target the question asked. I've talked about this in detail, but I have an open source library I actually built to address common questions I saw being asked here. As a result, I'm sympathetic towards people who have built something they're proud of but who are maybe a little overzealous in their advocacy of it. I tend to reach out to people like that and try to nudge them in the right direction (proper disclosure, more detail in answers than just a link, specifically answering the question asked, etc.). Destruction of posts and accounts for this is pretty rare.
Then there are the people in between those two. Someone providing undisclosed self-promotional content for a commercial product that does address a specific question tends to be handled more often like a true spammer. This is where we take a hard look at their other contributions. Are their only posts on the site ones that promote a product? Do they speak in glowing advertising copy about the wonders of this product? Do they intentionally hide their affiliation with the product or masquerade as a third party? That's likely to result in post and account destruction, because they know what they're doing.
If there's any chance at all that I think someone could listen to reason and stop the self-promotion and stick to more productive contributions, I'll warn first and probably delete the offending posts. If someone has been warned and they continue to self-promote in an unacceptable manner, they shouldn't be surprised to find their account suspended or removed.
Moderators have a lot of context that normal members don't, so I recognize that it can be harder to judge whether something should be flagged and how. In general, be wary of new users posting glowing recommendations for commercial products to old questions. If someone is only posting links to a product, blog, or YouTube channel, and nothing else, that's probably bad. If a member with 5000 reputation who has been around for three years posts a couple of links to a commercial product, they're probably not a spammer.
If in doubt, custom flags that explain the details of an odd situation are generally appreciated. Even if you're wrong, I try to mark these as helpful when I see them.