The principle is an auction: the advertiser sets what they are willing to pay, and Google ranks ads according to the bid and quality. Payment is most often per click.
Its main formats are Search, Shopping, Display, video, Demand Gen and Performance Max.