Skip to content

Commit 7d7c7c3

Browse files
authored
Merge pull request #6637 from segmentio/bcaudillo-patch-8
Kochava - Removed sections referencing iAD
2 parents ca4a13c + 41a3f00 commit 7d7c7c3

File tree

1 file changed

+1
-49
lines changed
  • src/connections/destinations/catalog/kochava

1 file changed

+1
-49
lines changed

src/connections/destinations/catalog/kochava/index.md

Lines changed: 1 addition & 49 deletions
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ Kochava is able to accommodate any post-install track event that is passed into
3434

3535
`context.device.type` (has value of 'ios' or 'android'), `context.device.advertising_id` (IDFA on iOS and adID on Android) **and** `context.device.id` are required in all calls to Kochava.
3636

37-
To automatically collect `context.device.advertising_id`, on Android you must include the Google Mobile Ads component of Google Play services as [described here](https://developers.google.com/android/guides/setup#add_google_play_services_to_your_project){:target="_blank"}, and on iOS you must include the iAd framework.
37+
To automatically collect `context.device.advertising_id`, on Android you must include the Google Mobile Ads component of Google Play services as described in the [Google Play services setup documentation](https://developers.google.com/android/guides/setup#add_google_play_services_to_your_project){:target="_blank"}. On iOS, you must include the [AdSupport and Ad Tracking Transparency frameworks](/docs/connections/sources/catalog/libraries/mobile/ios/#ad-tracking-and-idfa).
3838

3939
If making calls outside of Segment's iOS or Android library (eg post-install events sent from a server-side library), you'll need to ensure that you collect and send `context.device.type`, `context.device.advertising_id` **and** `context.device.id`.
4040

@@ -62,55 +62,7 @@ Analytics.track(
6262

6363
To create a Kochava-Certified Postback that will send campaign information to Segment after attributing an `Application Installed` event, follow [Kochava's Postback set up documentation](https://support.kochava.com/campaign-management/create-a-kochava-certified-postback){:target="_blank"}.
6464

65-
### Apple Search Ads
6665

67-
To get iAD attribution data into Kochava, you must include the [analytics-ios-iads-attribution](https://github.com/segmentio/analytics-ios-iads-attribution){:target="_blank"} dependency and version 3.6.0 or higher of the [Analytics SDK](https://github.com/segmentio/analytics-ios){:target="_blank"}.
68-
69-
To install it, simply add the following line to your Podfile:
70-
71-
```
72-
pod "Analytics"
73-
pod "Analytics-iAds-Attribution"
74-
```
75-
Then import the header and initialize the configuration:
76-
77-
```
78-
#import <Analytics-iAds-Attribution/SEGADTracker.h>
79-
80-
// Initialize the configuration as you would normally.
81-
SEGAnalyticsConfiguration *configuration = [SEGAnalyticsConfiguration configurationWithWriteKey:@"YOUR_WRITE_KEY"];
82-
...
83-
84-
// Configure the client with the iAD middleware to attach iAd properties.
85-
configuration.middlewares = @[ [SEGADTracker middleware] ];
86-
87-
[SEGAnalytics setupWithConfiguration:configuration];
88-
```
89-
90-
When it is able to retrieve iAd information, it will augment all `track` events. The attribution information is transformed to Segment context this way:
91-
92-
```objc
93-
[analytics track:@"Application Installed",
94-
properties: nil,
95-
options: @{
96-
@"context" : @{
97-
@"campaign" : @{
98-
@"provider" : @"Apple",
99-
@"click_date" : attributionInfo[@"iad-click-date"],
100-
@"conversion_date" : attributionInfo[@"iad-conversion-date"],
101-
@"source" : @"iAd",
102-
@"name" : attributionInfo[@"iad-campaign-name"],
103-
@"content" : attributionInfo[@"iad-keyword"],
104-
@"ad_creative" : attributionInfo[@"iad-org-name"],
105-
@"ad_group" : attributionInfo[@"iad-adgroup-name"],
106-
@"id" : attributionInfo[@"iad-campaign-id"],
107-
@"ad_group_id" : attributionInfo[@"iad-adgroup-id"]
108-
}
109-
}
110-
}];
111-
```
112-
113-
Because this information in passed through the context object, this will not be received by other downstream integrations, unless explicitly mapped. Kochava is currently the only integration which supports Apple Search Ads.
11466

11567
{% include content/personas.md %}
11668

0 commit comments

Comments
 (0)