Patent attributes
An entity such as a social networking system generates a dynamically customized user-specific advertisement using an advertisement template and user information. A request is received for an advertisement to display to a user, and the social networking system retrieves an advertisement template that includes one or more functions. The social networking system also retrieves user information to evaluate a value of a function contained in the advertisement. The user information is provided by both a first and second party (e.g., the advertiser and the social networking system), where the meaning of the information provided by each party is obscured from the other party. The template and the value of each function are used to generate a dynamically customized user-specific advertisement for display to the user, where both parties have provided user information that is obscured in some manner from the other party, allowing for a more personalized advertisement.