as a diplomat he was ambassador in austria and spain