1. A method comprising: defining an environment in a document; defining at least one targeting criterion for the environment; and storing in the document a request code that is configured to request content for placement in the environment based on the targeting criterion; wherein the environment in the document and the at least one targeting criterion are defined by a publisher of the document.