With nearly two months before Election Day on Nov. 6, estimated spending on television ads promoting coal and more oil and gas drilling or criticizing clean energy has exceeded $153 million this year, according to an analysis by The New York Times of 138 ads on energy issues broadcast this year by the presidential campaigns, political parties, energy companies, trade associations and third-party spenders.

That tally is nearly four times the $41 million spent by clean-energy advocates, the Obama campaign and Democratic groups to defend the president’s energy record or raise concerns about global warming and air pollution. The Times rated presidential campaign and national policy ads by whether they promoted fossil fuels or pushed clean energy and conservation, regardless of their sponsors, using ad and spending data compiled by Kantar Media, a company that tracks television advertising.

The lopsided nature of the energy messages this year contrasts sharply with 2008. Back then, global warming was a top public concern, and green ads greatly outnumbered those for fossil fuels, $152 million to $109 million, according to the analysis by The Times, which looked at 184 energy-related ads. In 2008, Chevron, one of the nation’s leading oil companies, trumpeted its investments in geothermal power, and Mr. McCain spent millions of dollars on ads featuring solar panels and wind farms as part of a solution to global warming.

But climate change legislation died in Congress, Republicans gained a majority in the House, and pocketbook issues like the price of gasoline began dominating public discussion. After imposing a yearlong oil and gas drilling moratorium in the Gulf of Mexico in response to the disastrous BP spill in 2010, President Obama recast himself as favoring an “all of the above” energy strategy, allowing the industry to drill offshore as deep as ever and moving to open up new regions like Alaska’s Arctic waters.

The shift left many fossil fuel critics disillusioned and unwilling to do much to support the president. “It’s hard to think of any environmental activist who is enthused about anything Obama does these days,” said Brendan Cummings, senior counsel for the Center for Biological Diversity, which challenges the industry on drilling plans. “Obama’s explicit embrace of fossil fuels and implicit embrace of all the environmental degradation that entails are almost indistinguishable from the policies of the Bush administration.”