To display the data from the database in the Ad Rotator control, add a data source control to the page, configure the connection string for the data source control to point to your database, and set the Ad Rotator control's Data Source ID property to the ID of the data source control.
In cases where you have a need to configure Ad Rotator ads programmatically, use the Ad Created event.
Defines a keyword that can be used when using keyword filtering.
If specified, only those ads with a keyword matching the keyword filter will be displayed.
The Ad Created event takes two parameters; one an object, and the other an instance of Ad Created Event Args.
The Ad Created Event Args is a reference to the ad that is being created.
The frequency of a particular ad displaying on a page can be configured using the Impressions property and ads can be filtered using keyword filtering.