Response
The TargetDeliveryResponse
returned by TargetClient.GetOffers()
has the following structure:
Name | Type | Description |
---|---|---|
Request | TargetDeliveryRequest | Target Delivery API request |
Response | DeliveryResponse | Target Delivery API* response |
Status | HttpStatusCode | Response HTTP status code |
Message | string | Response status message or error message |
Locations | Locations | Target location names, including global mbox name and mboxes/views for which only remote decisioning is available |
GetCookies | Dictionary | Returns a dictionary of session metadata for this user. This needs to be passed in next Target request for this user. |
VisitorState | IDictionary | Visitor state to be set on client side for Visitor API Javascript library initialization |
The TargetCookie
object used for saving data for user session has the following structure:
Name | Type | Description |
---|---|---|
Name | string | Cookie name |
Value | string | Cookie value |
MaxAge | int | The MaxAge option is a convenience for setting Expires relative to the current time in seconds |
You don’t have to worry about expiring the cookies. Target handles MaxAge
inside the SDK.
Example
.NET
var targetClientConfig = new TargetClientConfig.Builder("acmeClient", "ABCDEF012345677890ABCDEF0@AdobeOrg")
.Build();
var targetClient = TargetClient.Create(targetClientConfig);
var mboxRequests = new List<MboxRequest> { new (index: 1, name: "a1-serverside-ab") };
var targetDeliveryRequest = new TargetDeliveryRequest.Builder()
.SetExecute(new ExecuteRequest(mboxes: mboxRequests))
.Build();
var targetResponse = targetClient.GetOffers(targetDeliveryRequest);
Previous pageInitialize the .NET SDK
Next pageGet Attributes (.NET)
Personalization & Experiementation Excellence with Recommendations and AI
Adobe Customer Success Webinars
Tuesday, Mar 4, 4:00 PM UTC
Adobe Target innovations, including GenAI, and best practices on AI-powered personalization and experimentation at scale.
RegisterAdobe Target at Summit
Register for these developer sessions:
- Put the Customer at the Center and Build Relationships That Last a Lifetime (attend online)
- A Tax Transformation: How H&R Block and Adobe MarTech Improved Engagement
- AI-Powered Personalization: Prudential's Secret to a 135% Engagement Boost
- Unlocking Digital Growth: Marriott’s Success with Adobe Experience Manager
- How to Scale and Transform Your Organization to Omnichannel Communications
Connect with Experience League at Summit!
Get front-row access to top sessions, hands-on activities, and networking—wherever you are!
Learn more