awaitSetAppstackAttributionParams

suspend fun Purchases.awaitSetAppstackAttributionParams(data: Map<String, String>): <Error class: unknown class>

Sets attribution data from Appstack's attribution params, then syncs attributes and fetches offerings so that Appstack-based targeting is applied before the coroutine returns.

Note: Offerings retrieval is rate limited to 5 calls per minute. If the rate limit is reached, cached offerings will be returned instead.

Pass the map received from AppstackAttributionSdk.getAttributionParams() directly to this method. The SDK will extract relevant attribution information and set the appropriate attributes. Note that this method will never unset any attributes. To unset an attribute, call the individual setter with a null value.

Coroutine friendly version of Purchases.setAppstackAttributionParams.

Return

Offerings targeted with Appstack attribution data.

Parameters

data

The attribution params map from AppstackAttributionSdk.getAttributionParams().

Throws

PurchasesException

with a PurchasesError if there's an error syncing attributes or fetching offerings.