AD0-E409 · Question #66
A client notices that JSON Offers are not being applied after adobe.target.applyOffer() is called. The Adobe Experience Cloud Debugger confirms the client is qualified for the Activity. How should…
The correct answer is B. Filter the actions array provided to adobe.target.getOffer() for all actions that have a setJson. When adobe.target.getOffer() succeeds, its callback receives an actions array - each element representing a type of operation Target wants to perform. For JSON Offers specifically, the relevant action type is setJson, so you must filter that array for objects whose type equals…
Question
A client notices that JSON Offers are not being applied after adobe.target.applyOffer() is called. The Adobe Experience Cloud Debugger confirms the client is qualified for the Activity. How should an Adobe Target Architect explain the process of reading a JSON Offer from an Adobe Target request (mbox)?
Options
- AFilter the actions array passed to adobe.target.getOffer() for all actions that contain a setContent
- BFilter the actions array provided to adobe.target.getOffer() for all actions that have a setJson
- CUse the adobe.target.event.REQUEST_SUCCEEDED event to read the JSON Offer from the
- DUse a Data Provider to read the JSON Offer passed as an attribute to the provider method.
How the community answered
(41 responses)- A17% (7)
- B71% (29)
- C7% (3)
- D5% (2)
Explanation
When adobe.target.getOffer() succeeds, its callback receives an actions array - each element representing a type of operation Target wants to perform. For JSON Offers specifically, the relevant action type is setJson, so you must filter that array for objects whose type equals setJson to extract the JSON payload programmatically; applyOffer() won't auto-render JSON the way it renders HTML, which is why the offer appears "not applied."
Option A is wrong because setContent is the action type for HTML offers (it injects markup into the DOM) - filtering for it on a JSON Offer response returns nothing useful.
Option C is wrong because REQUEST_SUCCEEDED is a lifecycle event useful for observability, not the prescribed mechanism for reading offer content from the actions payload.
Option D is wrong because Data Providers flow inward - they supply third-party data to Target before a request fires (e.g., for audience qualification), not outward to read offer responses.
Memory tip: Match the offer type to the action type - HTML offer → setContent, JSON offer → setJson. If you remember that pairing, you'll never confuse A and B on the exam.
Topics
Community Discussion
No community discussion yet for this question.