POST /api/v2/web-api/attribution/

Add custom attribution

Adds marketing custom attribution data to a profile.

Request body

statusstringrequired

Indicates if the attribution is organic or non-organic.

One of: "organic", "non_organic", "unknown"

attribution_user_idstring

ID assigned to the user by the attribution source.

channelstring

Marketing channel name.

campaignstring

Marketing campaign name.

ad_groupstring

Attribution ad group.

ad_setstring

Attribution ad set.

creativestring

Attribution creative keyword.

customer_user_idstring

User ID you use in your app to identify the user if you do. For example, it can be your user UUID, email, or any other ID. Null if you didn't set it. Either customer_user_id or profile_id is required.

profile_idstring

An identifier of a user in Adapty. You can find it in the Adapty ID field of the profile in the Adapty Dashboard. Either customer_user_id or profile_id is required.

Responses

The attribution is successfully added to the profile. The response body is blank.

Schema
object

Empty response body

Bad Request

Schema
errorsarray of object
sourcestring
errorsarray of string
error_codestring
status_codeinteger

Unauthorized

Schema
errorsarray of object
sourcestring
errorsarray of string
error_codestring
status_codeinteger

Not Found

Schema
errorsarray of object
sourcestring
errorsarray of string
error_codestring
status_codeinteger