No, they don't have the right to show them. They don't own my computer and my display, what's show on my display is entirely up to me and my browser that I own and control.
However they have every right to choose what data they send my way, including their main content.
I agree to absolutely nothing. I consent to absolutely nothing. That they insist on showing me their noise puts them in malware category and they should be treated as such.