Response

The TargetDeliveryResponse returned by TargetClient.GetOffers() has the following structure:

NameTypeDescription
RequestTargetDeliveryRequest​Target Delivery API request
ResponseDeliveryResponse​Target Delivery API* response
StatusHttpStatusCodeResponse HTTP status code
MessagestringResponse status message or error message
LocationsLocationsTarget location names, including global mbox name and mboxes/views for which only remote decisioning is available
GetCookiesDictionaryReturns a dictionary of session metadata for this user. This needs to be passed in next Target request for this user.
VisitorStateIDictionaryVisitor 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:

NameTypeDescription
NamestringCookie name
ValuestringCookie value
MaxAgeintThe 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)

Target


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.

Register

Connect with Experience League at Summit!

Get front-row access to top sessions, hands-on activities, and networking—wherever you are!

Learn more