Skip to content

Referrer

Affise.getReferrerUrl(callback: ReferrerCallback)
// src/index.ts:169-171

ReferrerCallback = (value: string) => void (src/referrer/ReferrerCallback.ts:1). Maps to AffiseApiMethod.GET_REFERRER_URL_CALLBACK = "get_referrer_url_callback" (src/native/AffiseApiMethod.ts:29).

Affise.getReferrerUrl((referrer) => {
// handle referrer
});
Affise.getReferrerUrlValue(key: ReferrerKey, callback: ReferrerCallback)
// src/index.ts:176-178

Maps to AffiseApiMethod.GET_REFERRER_URL_VALUE_CALLBACK = "get_referrer_url_value_callback" (src/native/AffiseApiMethod.ts:30).

From src/referrer/ReferrerKey.ts:1-37 (37 entries):

  • AD_ID = "ad_id"
  • CAMPAIGN_ID = "campaign_id"
  • CLICK_ID = "clickid"
  • AFFISE_AD = "affise_ad"
  • AFFISE_AD_ID
  • AFFISE_AD_TYPE
  • AFFISE_ADSET
  • AFFISE_ADSET_ID
  • AFFISE_AFFC_ID
  • AFFISE_CHANNEL
  • AFFISE_CLICK_LOOK_BACK = "affise_click_lookback"
  • AFFISE_COST_CURRENCY
  • AFFISE_COST_MODEL
  • AFFISE_COST_VALUE
  • AFFISE_DEEPLINK
  • AFFISE_KEYWORDS
  • AFFISE_MEDIA_TYPE
  • AFFISE_MODEL
  • AFFISE_OS
  • AFFISE_PARTNER
  • AFFISE_REF
  • AFFISE_SITE_ID = "affise_siteid"
  • AFFISE_SUB_SITE_ID = "affise_sub_siteid"
  • AFFC
  • PID
  • SUB_1, SUB_2, SUB_3, SUB_4, SUB_5
  • AFFISE_SUB_1, AFFISE_SUB_2, AFFISE_SUB_3, AFFISE_SUB_4, AFFISE_SUB_5

The same enum is used as the lookup key for deferred deeplinks.