It parses your content and tries to show ads that are thematically relevant to it. So it could be said that it's based on keywords but the ones mentioned in your content, not the meta keywords.