Skip to content
This repository has been archived by the owner on May 10, 2024. It is now read-only.

Commit

Permalink
Removing 3 digit campaign id criteria request
Browse files Browse the repository at this point in the history
  • Loading branch information
soner-yuksel committed Oct 25, 2023
1 parent dfa5a44 commit 950e9c9
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions App/iOS/Delegates/SceneDelegate.swift
Original file line number Diff line number Diff line change
Expand Up @@ -565,10 +565,6 @@ extension BrowserViewController {
var referralCode = "BRV\(UserReferralProgram.getReferralCode() ?? "001")"

if fetchError == nil, attributionData?.attribution == true, let campaignId = attributionData?.campaignId {
var campaignId = String(campaignId)
// Only use the first 3
campaignId = String(campaignId.prefix(3))

// Adding ASA User refcode prefix to indicate
// Apple Ads Attribution is true
referralCode = "ASA\(String(campaignId))"
Expand Down

0 comments on commit 950e9c9

Please sign in to comment.