This shouldn't surprise you: Google ranks them by the money IT stands to make, which includes the probability you'll click on it.
Relevance presumably increases p(click).
"advertiser's ability to pay" has no bearing on things. If the advertiser does not pass credit checks, it doesn't even enter the auction.