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);

Announcements

Get hands-on with agentic AI.

Explore how AI agents work together through real examples and hands-on practice. Join your local User Group to design an agent workflow with your peers and leave with a practical framework you can apply to your own work.

Find an event

Ask AI

Not sure where to start?
Ask me anything about Adobe products.

Type your question or pick a suggestion below.

Use of this AI chatbot is subject to Adobe's Privacy Policy. Don't share sensitive data. AI responses are not your Content, may be inaccurate, and any offers provided are non-binding. Generative AI Terms.

Ask AI