Hi experts !
Today I am trying to get property fields values of an "Ad campaign". Here
is
a piece of my code:
---------
CommerceContext csContext = CommerceContext.Current;
csContext.TargetingSystem.TargetingContextProfile["PageGroup"].Value =
pZone;
Profile userProfile = CommerceContext.Current.UserProfile;
ContentSelector cso =
csContext.TargetingSystem.SelectionContexts["MyAdvertising"].GetSelector();
cso.Profiles.Add("targetingContext",
csContext.TargetingSystem.TargetingContextProfile);
cso.Profiles.Add("User", userProfile);
cso.TraceMode = true;
cso.ItemsRequested = 4;
cso.Size = "Banner";
StringCollection content = cso.GetContent();
....
---------
So now I want to get input fields values from Bizdesk in "Ad Display"
section: HtmlText and AlternateText and a custom field I have created in
the
DB.
I was thinking using this:
ContentItemCollection cic = cso.SelectedContentItems;
... and find what I am looking for. Then It gives me a
ContentItemCollection
which I can enumerate, but then and finally I find a key named "values"
that
returns a COM object. This is where I am stuck.
Anybody can help me ? am I looking in the good place.
Thanks !
r.no