@encorekit/web-sdk) presents targeted offers in your web app. A
complete integration is three calls:
New to the SDK? Start with the Web Quickstart. This
section is the per-method contract reference.
Initialization
configure()
Initialize with your publishable key; set logLevel
User identity
identify()
Attach your stable user id (replaces the auto-generated anonymous UUID)
setUserAttributes()
Merge user attributes for offer targeting
reset()
Clear local SDK state on logout; generates a fresh anonymous id
Offer presentation
show()
Present the offer carousel; resolves a ShowResult carrying the claim payload
placement()
Named placements with per-presentation use case, copy, and appearance
isClaimEnabled
Turn off the claim call to action while still showing the offer
onStrictUnlockVerified()
Strict mode only: fires when the advertiser postback confirms a claim
Errors
EncoreError, error codes, and the never-rejects contract