IPredictorServiceSiteAdmin::GenerateSegmentList

Ee784722.c++_off(en-US,CS.10).gifEe784722.vb_on(en-US,CS.10).gif

Use this method to generate a list of the members of a segment.

Definition

HRESULT IPredictorServiceSiteAdmin::GenerateSegmentList(BSTRsLMConn,BSTRsTableName,BSTRsModelName,BSTRsSegmentNamedoublefpMinProbability

);

Parameters

sLMConn

[in] A BSTR that specifies the connection information for the ListManager object.

sTableName

[in] A BSTR that specifies the name of the table to store the list of segment members.

sModelName

[in] A BSTR that specifies the name of the segment model to use.

sSegmentName

[in] A BSTR that specifies the name of the segment to export.

fpMinProbability

[in] A double that specifies the minimum probability associated with a segment member for that member to be exported. The valid range is between 0 and 1.

Return Values

This method returns an HRESULT indicating whether or not it completed successfully. See the following Error Values section for more details.

Error Values

This method returns S_OK (0x00000000) to indicate success and standard COM HRESULT error values to indicate failure. For more information about standard COM errors, see Standard COM Errors. Additional information may be available using the global Err object, which can be accessed using the API function GetErrorInfo. In particular, the GetDescription method of the IErrorInfo interface may return a text description of the error.

Remarks

This method is provided for use by the ListManager object and should not be called independently. The CreateFromSegment method of the ListManager object calls this method and creates the list. For more information, see IListManager::CreateFromSegment.

Passing an empty string for the model name results in an empty list.

If the segment name, sSegmentName, does not exist or is the name of a segment group, an empty list is generated. No error is returned for this case.

Connect to the Data Warehouse using the Init method before calling the GenerateSegmentList method.

A segment model classifies groups of users into segments of users with similar user properties. Similar segments are further grouped into higher order collections of segments.

Each user is assigned a probability of membership to each segment. The sum of the probabilities for all segments equals one for the user. If the probability of membership in a particular segment for the user is greater than fpMinProbability, the user will be included in the export list.

All members (individual cases) of the specified segment level with an associated probability greater than the value specified in the fpMinProbability attribute are stored in the named table, and then exported into the List Manager.

For more information about memory ownership issues related to COM property and method parameters, see Managing COM Parameter Memory.

See Also

PredictorServiceAdmin Object

PredictorServiceSiteAdmin Object

PredModelBuilder Object


All rights reserved.