coop182/jquery.dfp.js

Ad Block detection is broken in chrome

Opened this issue · 1 comments

Here is an example: http://s3.amazonaws.com/dfp-test-block/index.html?google_console=1&networkID=15572793&adunitID=Leader&dimensions=728x90

Within the last week or so something has changed (I assume in DFP somewhere) and its triggering the adblock code in jquery dfp even if no adblocker is installed. The "afterAdBlocked" callback fires even if the ad loads. It appears to possibly be a race condition? This only seems to be happening in chrome. I used browserstack to try several different older versions of chrome and it happens in everyone one I tried, so I don't think its a chrome version thing.

I found the issue, will provide a pull request