prostrate oneself to vs try to get on the good side of

prostrate oneself to

try to get on the good side of

How often have the words prostrate oneself to and try to get on the good side of occurred in a corpus of books? (source: Google Ngram Viewer )