Replace the Target SDK with the Optimize SDK
Learn how to replace the Adobe Target SDKs with the Optimize SDKs in your mobile implementation. A basic replacement consists of the following steps:
- Update dependencies in your Podfile or
build.gradle
file - Update imports
- Update application code
INFO
Within the Adobe Experience Platform Mobile SDK ecosystem, extensions are implemented by SDKs imported into your applications which may have different names:
- Target SDK implements the Adobe Target extension
- Optimize SDK implements the Offer Decisioning and Target extension
Update dependencies
Android exanple
tabs | |||
---|---|---|---|
Optimize SDK |
|
||
Target SDK |
|
iOS example
tabs | |||
---|---|---|---|
Optimize SDK |
|
||
Target SDK |
|
Update imports and code
Android example
tabs | |||
---|---|---|---|
Optimize SDK |
Java initialization code after migrating
|
||
Target SDK |
Java initialization code before migrating
|
iOS
tabs | |||
---|---|---|---|
Optimize SDK |
Swift initialization code after migrating
|
||
Target SDK |
Swift initialization code before migrating
|
API comparison
Many Target extension APIs have an equivalent approach using the Offer Decisioning and Target extension outlined in the table below. For more details about the functions, refer to the API reference.
Target extension
Offer Decisioning and Target extension
Notes
When using
getPropositions
API, no remote call is made to fetch non-cached scopes in the SDK.In addition,
generateDisplayInteractionXdm
Offer method can be used to generate the XDM for item display. Subsequently, Edge network SDK’s sendEvent API can be used to attach additional XDM, free-form data and send an Experience Event to the remote.In addition,
generateTapInteractionXdm
Offer method can be used to generate the XDM for item tap. Subsequently, Edge network SDK’s sendEvent API can be used to attach additional XDM, free-form data and send an Experience Event to the remote.n/a
Use removeIdentity API from Identity for Edge Network extension for the SDK to stop sending the visitor identifier to the Edge network. For more details, see the removeIdentity API documentation.
Note: Mobile Core’s
Note: Mobile Core’s
resetIdentities
API clears all stored identities in the SDK, including the Experience Cloud ID (ECID) and it should be sparingly used!n/a
state:store
response handle carries session-related information. Edge network extension helps manage it by attaching non-expired state store items to subsequent requests.n/a
state:store
response handle carries session-related information. Edge network extension helps manage it by attaching non-expired state store items to subsequent requests.n/a
Use updateIdentities API from Identity for Edge Network extension to supply the third party ID value. Then, configure the third party ID namespace in the datastream. For more details, see the Target Third Party Id mobile documentation.
n/a
Use updateIdentities API from Identity for Edge Network extension to supply the third party ID value. Then, configure the third party ID namespace in the datastream. For more details, see the Target Third Party Id mobile documentation.
n/a
locationHint:result
response handle carries the Target location hint information. It is assumed Target edge will be co-located with Experience Edge.Edge network extension uses the EdgeNetwork location hint to determine the Edge network cluster to send requests to. To share Edge network location hint across SDKs (hybrid apps), use
getLocationHint
and setLocationHint
APIs from Edge Network extension. For more details, see the getLocationHint
API documentation.n/a
locationHint:result response handle carries the Target location hint information. It is assumed Target edge will be co-located with Experience Edge.
Edge network extension uses the EdgeNetwork location hint to determine the Edge network cluster to send requests to. To share Edge network location hint across SDKs (hybrid apps), use
Edge network extension uses the EdgeNetwork location hint to determine the Edge network cluster to send requests to. To share Edge network location hint across SDKs (hybrid apps), use
getLocationHint
and setLocationHint
APIs from Edge Network extension. For more details, see the getLocationHint
API documentation.Next, learn how to request and render activities to the page.
NOTE
We are committed to helping you be successful with your mobile Target migration from the Target extension to the Offer Decisioning and Target extension. If you run into obstacles with your migration or feel like there is critical information missing in this guide, please let us know by posting in this Community discussion.
recommendation-more-help
23093022-70e6-46bf-81c6-76f79c282c9c