He was not “offered”.
Yes, in effect he was. The Kerry camp informally made it clear to him that they would love to have him, and McCain “pre-declined”.