Android ATS Mobile SDK Test Mode
You can simulate the actual flow of the library without setting up on the console side and creating network requests from the library itself to the backend.
Activate Test Mode
To activate test mode, set LRAtsConfiguration
's isTestMode param value to true during initialization of the library.
Kotlin:
LRAtsManager.initialize(LRAtsConfiguration("40b867f9-93cc-4687-a2c7-d02bed91aaee", true), object : LRCompletionHandlerCallback { override fun invoke(success: Boolean, error: LRError?) { if (success) { // SDK ready for use } else { // SDK failed to initialize } } })
Java:
LRAtsManager.INSTANCE.initialize(new LRAtsConfiguration("40b867f9-93cc-4687-a2c7-d02bed91aaee", true), new LRCompletionHandlerCallback() { @Override public void invoke(boolean success, @Nullable LRError lrError) { if (success) { // SDK ready for use } else { // SDK failed to initialize } } });
Test Configuration
In test mode, the library uses following the test configuration:
{ "pId": 1, "preferredATS": "regular", "geoTargeting": { "ccpa": { "allCountries": false, "allStates": true, "countries": [ "US" ], "states": [] }, "gdpr": { "allCountries": false, "allStates": false, "countries": [ "AT", "BE", "BG", "RS", "ME", "BA" ], "states": [] } }, "isLoggingEnabled": true, "envelope": { "expirationTime": 420000, "minimumRefreshTime": 60000 }, "atsEnabledCountries": [ "AT", "NL", "RS", "BG", "US", "ME", "BA" ] }
Envelope Flow
In order to get envelopes, you can use the getEnvelope
API. The returned envelope will be a random string in the same format as envelopes in real use cases.
ATS On-Device Flow
Warning
ATS On-device is currently available in closed beta. Functionalities related to this product will not work out-of-the-box during this phase.
If you want to be part of the closed beta release, contact your LiveRamp representative to get ATS On-device enabled.
You can test the ATS On-Device flow by calling the getDealIDs API as with a real use case. After the call, the passed identifiers will be checked and a list of matching Deal IDs will be returned.
The sample emails below are used to test the Deal IDs generation process. If the test mode was successfully set up, you should be able to find these emails in campaign(data set)
:
kWMaa3@oi.neh
FfQPcoVq@wm.ea
SIQyC0zPXbG@kef.eb
SyMM@nbjo.qbmw
Xsg3mMsTW@twak.tzr
ff19HuNLrt@srap.egcc
q7KJ51@vj.rzt
CVmy@izqe.hkc
NqQZ8IEvDhfv@acp.dbc
Q4Gz3AdN1axPyL@xhk.hq
Fm2CKiy@yi.xn
toQC3c@am.kx
BQfJ@bmmm.ikhc