Automattic/Ad-Code-Manager — pull request #85 by rinatkhaziev (2014-01-27 03:43:41+00:00)
Title: Prevent  polution if ad code is getting rendered inside a loop:

Most of conditionals are getting checked against global , getting matched ad code inside the loop might result in wrong ad code matched. Calling wp_reset_postdata() before trying to match the ad code.