This is really something you would need to report to the ad provider. If ad code is added and is then breaking anchors, I would almost be tempted to say even to report this as a bug in the browser, to be honest. The reality is, an anchor is simply a location in which the page is told to go to when that anchor point is added to the URL. So if its not doing so, the browser ultimately is what is supposed to do this