Commerce Foundation Advertisement
An Commerce Server 2009 advertisement is the formatted display template of a displayable Commerce Server advertisement or discount. It is equivalent to the content that ContentSelector.GetContent() returns.
Model
This commerce entity can be modified, as required. This model, taken from the out-of-the-box site, is provided as an example.
<CommerceEntity name="Advertisement">
<DisplayName value="Advertisement"/>
<Description value="Represents the formatted display template of a displayable Commerce Server Advertisement or Discount."/>
<Properties>
<Property name="Id" dataType="String">
<DisplayName value="Id"/>
<Description value="Unique ID of the Commerce Server Advertisement or Discount used to generate this content." />
</Property>
<Property name="Content" dataType="String">
<DisplayName value="Content"/>
<Description value="Contains the formatted display content of a Commerce Server Advertisement or Discount." />
</Property>
<Property name="ContextName" dataType="String">
<DisplayName value="Context Name"/>
<Description value="The name of Commerce Server cache from which the advertisement was retrieved."/>
</Property>
</Properties>
</CommerceEntity>
Properties
Property |
Type |
Description |
---|---|---|
Content |
String |
Contains the formatted display content of a Commerce Server advertisement or discount. |
ContextName |
String |
Name of Commerce Server cache from which the advertisement was retrieved. |
Id |
String |
Unique ID of the Commerce Server Advertisement or Discount used to format this advertisement. |
Relationships
None.
Supported Operations
The Advertisement commerce entity supports the following operations:
Commerce Foundation ContentSelector CommerceQuery
See Also
Other Resources
Developing with the Commerce Foundation Marketing System