I am in no way an expert in this area. All I know is that the TOSes of ad networks are usually vague but very strict in this area, because of fears of abuse. You should probably talk to your account manager to get an exception / clearance prior to releasing code that dynamically refreshes ads via javascript.