adjust-icon

Batch.com SDK 연동

다음 중 하나의 메서드를 통해 Adjust SDK와 Batch.com 이벤트를 연동할 수 있습니다.

시작에 앞서

본 기능을 사용하려면 우선 Adjust iOS SDK를 다운로드하고 설정해야 합니다.

Batch.com SDK와 Adjust를 연동하려면, Batch.com SDK로 어트리뷰션을 전송해야 합니다. 해당 정보를 Adjust 서버로부터 응답을 받은 후에 전송해야 합니다. 이를 위해 어트리뷰션 콜백 설정 가이드의 단계를 수행합니다.

예시

콜백 메서드는 다음과 같이 설정할 수 있습니다:

- (void)adjustAttributionChanged:(ADJAttribution *)attribution {
// initiate Batch user editor to set new attributes
BatchUserDataEditor *editor = [BatchUser editor];
if (attribution.network != nil)
[editor setAttribute:attribution.network forKey:@"adjust_network"];
if (attribution.campaign != nil)
[editor setAttribute:attribution.campaign forKey:@"adjust_campaign"];
if (attribution.adgroup != nil)
[editor setAttribute:attribution.adgroup forKey:@"adjust_adgroup"];
if (attribution.creative != nil)
[editor setAttribute:attribution.creative forKey:@"adjust_creative"];
// send new attributes to Batch servers
[editor save];
}