Google has said that it will not allow ads to appear alongside content that denies the reality of climate change.