Comments/Troubleshooting
The Ad Rotator component is very straightforward and can be a real time saver. Aside from making sure your rotator schedule file is set up correctly, there's little to using the Ad Rotator.
If you don't want the user to be able to click on the ad (for
instance, if it is an informational ad only, not meant to lead to an
URL), set the Clickable property of the component to
False, rather than handling it with the URL or in
the redirection file. This property's value is
True by default.
The only problems I've experienced with the use of this component stemmed from incorrect syntax in the schedule file or from the Ad Rotator DLL (adrot.dll ) not having been registered on the web server. The component is, however, automatically registered when you install IIS, so you have to explicitly remove it for it not to work.
Finally, it can be beneficial to instantiate an AdRotator object at the session level. You also can create an ad object at the application level, but doing so gives you less flexibility on a person-by-person basis.
Figure 13.1 illustrates how the Ad Rotator works.

Figure 13.1. The Ad Rotator component, rotator schedule file, and redirection file
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access