Repro - Mobile Analytics for growth
日本語
Sign Up Back to Dashboard
  • System Requirements
  • Dashboard Guide
  • Development Guide
    • Signup
    • iOS/Android SDK
      • Get Started
      • Session Lifecycle
      • User ID
      • Device ID
      • User Profile
      • Event Tracking
      • Push Notification
      • NewsFeed
      • In-App Message
      • Silver Egg Recommendation Messages
      • Remote Config
      • WebView
      • Opt-out feature
      • Settings regarding the collection of advertiser IDs
      • Registering an user device into a specific audience with the help of a QR code
      • Set attribution data from Adjust to Repro
        • Set as user profile
        • Set as event property
      • Set attribution data from AppsFlyer to Repro
      • Log Level
      • Verification Method
    • Web
    • Audience API
    • Audience Import(β)
    • Push API
    • User Profile API
    • User Profile Bulk Import
    • NewsFeed API
    • Deletion Targeted User Registration API
    • Booster installation guide
    • Mail(β)
  • Release Notes
  • FAQ

Set attribution data from Adjust to Repro¶

Set as user profile¶

You can set Adjust's attribution data as User Profile.

Implement the attribution callback (iOS / Android) and set the attribution data to User Profile.

- (void)adjustAttributionChanged:(ADJAttribution *)attribution {
  if (attribution.network != nil) {
    [Repro setStringUserProfile:attribution.network forKey:@"[Adjust]Network"];
  }
  if (attribution.campaign != nil) {
    [Repro setStringUserProfile:attribution.campaign forKey:@"[Adjust]Campaign"];
  }
  if (attribution.adgroup != nil) {
    [Repro setStringUserProfile:attribution.adgroup forKey:@"[Adjust]Adgroup"];
  }
  if (attribution.creative != nil) {
    [Repro setStringUserProfile:attribution.creative forKey:@"[Adjust]Creative"];
  }
}
func adjustAttributionChanged(_ attribution: ADJAttribution!) {
  if attribution.network != nil {
    Repro.setUserProfile(stringValue: attribution.network, forKey: "[Adjust]Network");
  }
  if attribution.campaign != nil {
    Repro.setUserProfile(stringValue: attribution.campaign, forKey: "[Adjust]Campaign");
  }
  if attribution.adgroup != nil {
    Repro.setUserProfile(stringValue: attribution.adgroup, forKey: "[Adjust]Adgroup");
  }
  if attribution.creative != nil {
    Repro.setUserProfile(stringValue: attribution.creative, forKey: "[Adjust]Creative");
  }
}
AdjustConfig config = new AdjustConfig(this, appToken, environment);
config.setOnAttributionChangedListener(new OnAttributionChangedListener() {
  @Override
  public void onAttributionChanged(AdjustAttribution attribution) {
    if (attribution.network != null) {
      Repro.setStringUserProfile("[Adjust]Network", attribution.network);
    }
    if (attribution.campaign != null) {
      Repro.setStringUserProfile("[Adjust]Campaign", attribution.campaign);
    }
    if (attribution.adgroup != null) {
      Repro.setStringUserProfile("[Adjust]Adgroup", attribution.adgroup);
    }
    if (attribution.creative != null) {
      Repro.setStringUserProfile("[Adjust]Creative", attribution.creative);
    }
  }
});
val config = AdjustConfig(this, appToken, environment)

config.setOnAttributionChangedListener { attribution ->
  if (attribution.network != null) {
    Repro.track("[Adjust]Network", attribution.network)
  }
  if (attribution.campaign != null) {
    Repro.track("[Adjust]Campaign", attribution.campaign)
  }
  if (attribution.adgroup != null) {
    Repro.track("[Adjust]Adgroup", attribution.adgroup)
  }
  if (attribution.creative != null) {
    Repro.track("[Adjust]Creative", attribution.creative)
  }
}

Set as event property¶

You can set Adjust's attribution data as Event Tracking.

Implement the attribution callback (iOS / Android) and set the attribution data as a custom event property of Event Tracking.

- (void)adjustAttributionChanged:(ADJAttribution *)attribution {
    [Repro track:@"AdjustAttribution" properties:@{
      @"network":  attribution.network,
      @"campaign": attribution.campaign,
      @"adgroup":  attribution.adgroup,
      @"adid":     attribution.adid
    }];

}
func adjustAttributionChanged(_ attribution: ADJAttribution!) {
  Repro.track(event: "AdjustAttribution", properties:[
    "network":  attribution.network,
    "campaign": attribution.campaign,
    "adgroup":  attribution.adgroup,
    "adid":     attribution.adid
  ])
}
AdjustConfig config = new AdjustConfig(this, appToken, environment);
config.setOnAttributionChangedListener(new OnAttributionChangedListener() {
  @Override
  public void onAttributionChanged(AdjustAttribution attribution) {
    Repro.track("AdjustAttribution", new HashMap<String, Object>() {{
      put("network", attribution.network);
      put("campaign", attribution.campaign);
      put("adgroup", attribution.adgroup);
      put("adid", attribution.adgroup);
    }});
  }
});
val config = AdjustConfig(this, appToken, environment)
config.setOnAttributionChangedListener { attribution ->
  Repro.track("AdjustAttribution", mapOf(
      "network" to attribution.network,
      "campaign" to attribution.campaign,
      "adgroup" to attribution.adgroup,
      "adid" to attribution.adid
    )
  )
}
  • « Registering an user device into a specific audience with the help of a QR code
  • Set attribution data from AppsFlyer to Repro »

About Us Careers Terms of Service Privacy Policy Cookie Policy

© 2022 Repro Inc.