Patent attributes
An online system generates dynamically optimized content items composed of creatives selected from a set of creatives provided by a content provider according to a set of rules associated with the creatives. Creatives include the title, image, video, descriptive text and other different types of components. The online system also receives rules describing one or more actions that can be performed on each of the creatives and under what condition for the assembly of the content item. For a target user of the content item, the online system applies the rules to remove creatives that violate the rules. Each creative that satisfies the rules is analyzed and ranked based on the likelihood that the target user will interact with a content item that includes that particular creative. For a different user, a different sponsored content item having different creatives chosen from the same set of creatives is generated.