Since the action took place at a particular, finished point in the past, “two years ago” is used, and the sentence is in the passive voice. This is because the book is the receiver of the action, not the doer, and “two years ago” is the past time marker, requiring the simple past passive voice, “was/were” + past participle.