Can Google ads on a web page access the html of the page?
- Google code can. Like any JavaScript code on your page. We can assume that Google does not allow its advertisers to do something similar.
Can he enter scripts on the page?
- Again, JavaScript code can do this. How can you write document.write and script tags ... but suppose Google forbids their advertisers from doing this.
Does https matter or not?
- No. That at the protocol level, I suppose Google serves everything through TLS, anyway it doesn't matter.
edit . I mean, the way that traffic is sent to the user's computer (encrypted using TLS or not) does not affect what the script may or may not execute. Well, in some browsers there may be restrictions when there is mixed content
source share