Talk About Network

Google


Register and Login
Nick
Password
Register create new account Sign up is FREE and you can post replies, new topics, bookmark posts and more!
Recover lost password


Software > Commerce Server Campaigns csf > Getting Ad Disp...
Latest [ Topics | Posts ] Archive Post A New Topic Post a Reply
<< Topic < Post Post 1 of 2 Topic 224 of 313
Post > Topic >>

Getting Ad Display fields

by "=?Utf-8?B?ci5ubw==?=" <rno@[EMAIL PROTECTED] > Aug 26, 2005 at 07:48 AM

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
 




 2 Posts in Topic:
Getting Ad Display fields
"=?Utf-8?B?ci5ubw==?  2005-08-26 07:48:15 
RE: Getting Ad Display fields
dlott@[EMAIL PROTECTED]   2005-08-26 19:45:04 

Post A Reply:
  Go here to Signup

AddThis Feed Button


About - Advertising - Contact - Frequently Asked Questions - Privacy Policy - Terms of Use - Signup

Contact
tan12V112 Sun Nov 23 6:44:46 CST 2008.