Set up session parameters

If you register a callback URL in the Adjust dashboard, Adjust sends a GET request to your callback URL when the SDK measures a session.

You can configure callback parameters to your servers. Once you configure parameters on an event, the SDK appends them to your callback URL. You can use this information to analyze your users' in-app behavior with your BI system.

Note:
The Adjust SDK merges session callback parameters with event callback parameters. Event callback parameters take priority over session callback parameters. This means that if you add a parameter key to both an event and a session, the SDK sends the event parameter.

Add callback parameters to your event by calling the addSessionCallbackParameter method with string key-value arguments. You can add multiple parameters by calling this method multiple times.

C#
Adjust.addSessionCallbackParameter("key", "value");

You can remove specific session callback parameters if they are no longer required. To do this, pass the parameter key to the removeSessionCallbackParameter method.

C#
Adjust.removeSessionCallbackParameter("key");

You can remove all session parameters if they are no longer required. To do this, call the resetSessionCallbackParameters method.

C#
Adjust.resetSessionCallbackParameters();

Session partner parameters

You can send extra information to your network partners by adding partner parameters.

Adjust sends partner parameters to external partners you have set up. This information is useful for more granular analysis and retargeting purposes. The backend forwards these parameters once you have set them up and enabled them for a partner.

Note:
Partner parameters do not appear in raw data by default. You can add the {partner_parameters} placeholder to receive them as a single string.

Add partner parameters to your event by calling the addSessionPartnerParameter method with string key-value arguments. You can add multiple parameters by calling this method multiple times.

C#
Adjust.addSessionPartnerParameter("key", "value");

You can remove specific session callback parameters if they are no longer required. To do this, pass the parameter key to the removeSessionPartnerParameter method.

C#
Adjust.removeSessionPartnerParameter("key");

You can remove all session partner parameters if they are no longer required. To do this, call the resetSessionPartnerParameters method.

C#
Adjust.resetSessionPartnerParameters();

Delay start

Note:
You can delay the startup of the SDK by up to 10 seconds.

The Adjust SDK starts as soon as your app opens. If you want to send data that is not available at launch in session parameters, you can delay the start of the SDK. To do this, pass the delay time in seconds to the setDelayStart method on your config object.

C#
AdjustConfig adjustConfig = new AdjustConfig("{YourAppToken}", AdjustEnvironment.Sandbox);
//...
adjustConfig.setDelayStart(5.5);
//...
Adjust.start(adjustConfig);

After this time has elapsed, the SDK sends the information to the Adjust backend. You can send the information before the timeout by calling the sendFirstPackages method.

C#
Adjust.sendFirstPackages();