Content Selection Framework - Re: Target Groups?

This is Interesting: Free IT Magazines  
Home > Archive > Content Selection Framework > February 2004 > Re: Target Groups?





You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

Author Re: Target Groups?
Andy Xu[MSFT]

2004-02-27, 2:36 pm

Hi, Owen,

My understanding is you have an expression which is something like "TargetingContext.Keywords" contains "GIL_signup" and you want to show the advertisement which requires this target expression, correct?

If that's the case, you need to do the following steps
1) use bizdesk "Profiles" --> "Profile Definition Designer" to add a "keywords" property to Targeting context
2) use bizdesk "Campaigns" module to create a target group to contain this expression and remember to set the targeting action to "require" in the target group.
3) use bizdesk, edit the advertisement to target the target group we created in step 2
4) in your runtime site, add that keyword to Targeting context and set ContentSelector's targeting context before calling GetContent. refer to the following code snippet (in which i always add that keyword. you
probably want to do it under certain circumstance based on your need)

/**************** code snippet *************************/
Dim cso As ContentSelector
cso = CommerceContext.Current.TargetingSystem.SelectionContexts(ctxt).GetSelector()
cso.ItemsRequested = 1

Dim targetProfile As Profile
targetProfile = CommerceContext.Current.TargetingSystem.TargetingContextProfile

targetProfile("Keywords").Value = "GIL_signup"

cso.Profiles.Add("targetingContext", targetProfile)

cso.GetContent()
/*************** end of code snippet *******************/

HTH,
-- Andy

--------------------
From: "Owen Mortensen" <ojm.NO_SPAM@acm.org>
References: <OjNFYI$wDHA.3224@tk2msftngp13.phx.gbl>
Subject: Re: Target Groups?
Date: Tue, 16 Dec 2003 11:20:19 -0700
Lines: 28
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.2800.1158
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1165
Message-ID: <etBxFFAxDHA.2440@TK2MSFTNGP12.phx.gbl>
Newsgroups: microsoft.public.commerceserver.campaigns_csf
NNTP-Posting-Host: 207.182.37.201
Path: cpmsftngxa07.phx.gbl!cpmsftngxa06.phx.gbl!TK2MSFTNGP08.phx.gbl!TK2MSFTNGP12.phx.gbl
Xref: cpmsftngxa07.phx.gbl microsoft.public.commerceserver.campaigns_csf:2434
X-Tomcat-NG: microsoft.public.commerceserver.campaigns_csf

OK, the target group has information that says a certain expression must be
true. The expression has XML in it that evaluates to the string
"GIL_signup" under context.keywords. This was a "required" tag in the old
SiteServer Adserver stuff. How do I use dot-net to say that this page has
those keywords in the selection framework?

Thanks,
Owen

"Owen Mortensen" <ojm.NO_SPAM@acm.org> wrote in message
news:OjNFYI$wDHA.3224@tk2msftngp13.phx.gbl...
> I've just imported all our ad campaigns from SiteServer3.0. However, none
> of the ads are being displayed.
>
> I think my problem is that I do not understand how to use the "Target
> groups:" to target the ads. I have one ad, for example, that transferred
> from SiteServer3.0 with a Target group of ":140,R". How do I use this in
> the page display code to get the ad to display?
>
> Oh, yes. I'm using CommerceServer2002 on Windows Server 2003 and dot-net.
>
> Thanks,
> Owen
> nospam....
>
>





--

This posting is provided "AS IS" with no warranties, and confers no rights. Use of included script samples are subject to the terms specified at http://www.microsoft.com/info/cpyright.htm
Sponsored Links






Free braindumps | Software forum | Database administration forum

Copyright 2003 - 2008 webservertalk.com