We constantly publish updates to our documentation, which may not yet be available in your language. For the most current information, use the English version.
If you are using CocoaPods, you can add the following line to your Podfile:
pod 'Adjust/Criteo'
Carthage
If you are using Carthage, you can add following line to your Cartfile:
github "adjust/ios_sdk" "criteo"
Install from source
You can also integrate adjust with Criteo events by following these steps:
Locate the plugin/Criteo folder inside the downloaded archive from our releases page.
Drag the ADJCriteo.h and ADJCriteo.m files into the Adjust folder inside your project.
In the dialog choose options for adding these files. Make sure to check the checkbox to Copy items if needed and select the radio button to Create groups.
Android
Maven
If you are using Maven, add the following dependency to your build.gradle file:
You can attach a hashed email to every Criteo event. To do this, call the injectHashedEmailIntoCriteoEvents method. The SDK will send a hashed email with every Criteo event for the duration of the app lifecycle. This means it will need to be set again when the app is re-launched. You can remove the hashed email by setting the injectHashedEmailIntoCriteoEvents value to nil.
You can attach a check-in and check-out date to every Criteo event. To do this, call the injectViewSearchDatesIntoCriteoEvent method. The SDK will send the dates with every Criteo event for the duration of the app lifecycle. This means you will need to set them again when the app is re-launched.
You can remove the search dates by setting the injectViewSearchDatesIntoCriteoEvent values to nil.
You can attach a partner ID to every Criteo event. To do this, call the injectPartnerIdIntoCriteoEvents method. The SDK will send the partner ID with every Criteo for the duration of the app lifecycle. This means you will need to set it again when the app is re-launched.
You can remove the partner ID by setting the injectPartnerIdIntoCriteoEvents value to null.
You can attach a customer ID to every Criteo event. To do this, call the injectCustomerIdIntoCriteoEvents method. The SDK will send the customer ID with every Criteo event for the duration of the app lifecycle. This means you will need to set them again when the app is re-launched.
You can remove the customer ID by setting the injectCustomerIdIntoCriteoEvents value to nil.
You can attach the user segment to every Criteo event. To do this, call the injectUserSegmentIntoCriteoEvents method. The SDK will send the user segment with every Criteo event for the duration of the app lifecycle. This means you will need to set it again when the app is re-launched.
You can remove the user segment by setting the injectUserSegmentIntoCriteoEvents value to nil.