In this particular case Martijn has explained why the moderators reviewing this post think that it's fairly clear that the post was in fact asked in good faith, and that it was not spam masquerading as a programming question.
But there are unscrupulous users that go around asking questions that are designed to look, on a surface level, like they're someone not affiliated with the product asking an actual programming question, when in fact they are affiliated with the product and are just using the "question" as an excuse to get the name of their product out there or to throw in some links for SEO juice.
If you come across one of these cases, where you think someone is really trying to be sneaky, and isn't actually asking their question in good faith, it's probably worth a custom mod flag. There are two reasons here. First, if you think this, you probably want to include more information in your flag than just "this is spam". You're going to want to add why you think they're affiliated with the product (perhaps their name or something on their profile indicates they work for the company and didn't properly disclose it), maybe there are other similar posts from that user (or other suspicious looking users) that are giving you the impression that you're looking at an ad campaign, rather than a real person's question. This will all be very helpful for a mod in determining if the post is actually spam.
Using a custom mod flag will also help a mod determine if you're flagging 1) in good faith and 2) with a proper understanding of the rules. If you flag a post, and use a custom flag to say, "this is spam because it's linking to another website" and the post doesn't have any signs of spam other than a link to the website, your flag is likely getting declined, because you're demonstrating a lack of understanding of what spam is. But if you flag the post saying, "I think this person is affiliated with the product because of XXX," or "I think that this person isn't asking in good faith, and that this is actually spam, because all of their posts seem to find some weird way of putting a link to some product in there even though it doesn't make sense for the question," your flag almost certainly will be marked as helpful even if further investigation shows that the posts aren't spam. If you are clearly flagging in good faith, because you suspect wrongdoing, but can't confirm or deny it without private information available to mods, they'll be happy for the flag and will mark it as helpful to encourage you to continue casting such flags.
Use the actual spam flag for spam that's blatant. Spam that isn't even trying to be a real question, or an answer to the question it's posted under, and that is obvious at a glance that it's only an advertisement.