| David Lott [MSFT] 2006-07-31, 1:20 pm |
| Hi Ukeu,
Are you adding the profile to the ContentSelector object --
Profiles.Add("UserObject", profile)
Generally you can debug content selection by setting TraceMode = true,
calling GetContent(), then iterating through
the TraceMessages collections.
Thanks,
David Lott
Microsoft
This posting is provided "AS IS" with no warranties, and confers no rights.
You assume all risk for your use. © 2006 Microsoft Corporation. All rights
reserved.
Use of included script samples are subject to the terms specified at
http://www.microsoft.com/info/cpyright.htm
--------------------
From: "ukeu" <sairaj282@gmail.com>
Newsgroups: microsoft.public.commerceserver.general
Subject: Creating Campaign Ads
Date: Wed, 28 Jun 2006 06:15:48 -0400
Based on a target expression i would like to display an ad on my web site.
If the user is logged in i get the user profile.Then i use the following
piece of code:
ContentSelector csoAd =
ctx.TargetingSystem.SelectionContexts["advertising"].GetSelector();
But when i do csoAd.GetContent(), i am not able to fetch the ad
details.csoAd.Getcontent().Count is shown as zero.
Please help in solving this ?? Anything to be done in web.config ??
|