Поделиться через


HouseAdWeight Property

For the latest version of Commerce Server 2007 Help, see the Microsoft Web site.

Gets or sets the weight of a house ad.

Namespace:  Microsoft.CommerceServer.Marketing
Assembly:  Microsoft.CommerceServer.Marketing.CrossTierTypes (in Microsoft.CommerceServer.Marketing.CrossTierTypes.dll)

Syntax

'Declaration
Public Property HouseAdWeight As Integer
'Usage
Dim instance As Advertisement
Dim value As Integer

value = instance.HouseAdWeight

instance.HouseAdWeight = value
public int HouseAdWeight { get; set; }
public:
property int HouseAdWeight {
    int get ();
    void set (int value);
}
public function get HouseAdWeight () : int
public function set HouseAdWeight (value : int)

Property Value

Type: System..::.Int32
The weight of a house ad. Default value is 0.

Exceptions

Exception Condition
EntityStateException

This Advertisement is a paid ad.

MinimumValueValidationException

The value was less than 0.

Remarks

The weight of a house ad. This value has no meaning for a Paid ad. If the AdvertisementType is Paid, this property is 0. The weight of an individual advertisement is relative to the weight of all the other advertisements. To determine when discount campaign items are displayed you use Priority, not weight.

Weight is a means of determining how frequently an ad is displayed, relative to all of the campaign items for a given customer. In a campaign, weight only applies to ads that are goaled at the campaign level.

Permissions

See Also

Reference

Advertisement Class

Advertisement Members

Microsoft.CommerceServer.Marketing Namespace