"Environmental impact assessment of online advertising"
sciencedirect.com/science/arti…
The paper (from 2018) estimates that online advertising has a carbon footprint of 60Mton CO2e. This compares to a total footprint of all ICT of about 1.3Gton CO2e, so about 5%.