I have not seen an example of this yet but think that as long as the book is relevant to the question i.e. "Can you share puppy-training ideas that have worked for you?" and they are offering the sale of a puppy training guide then it's okay.
Otherwise, I think it's rude and I'm pretty sure that if it weren't relevant (maybe even if it is) then it would be considered spam.