advance payment vs earnest money

advance payment

noun
  • The part of a contractually due sum that is paid or received in advance for a good, service or social security payment. 

earnest money

noun
  • Money paid as a deposit to show intent to buy or to reserve an item to be purchased; especially, money accompanying an offer to buy real estate. 

How often have the words advance payment and earnest money occurred in a corpus of books? (source: Google Ngram Viewer )