Link the project - cleveradssolutions/CAS-Android GitHub Wiki

:zap: Before you start
Make sure you have correctly setup project settings.


[!NOTE]
The CAS Gradle Plugin will automatically link your project with CAS system. Skip this page if your project uses the CAS Gradle plugin.

To link your project with the mediation settings, you need to have a registered account and an application in the CAS system.

If you haven't created an CAS account and registered the app yet, now's a great time to do so. If you just want to experiment or test the SDK, you can skip link your project.

  1. Sign In https://cas.ai.
  2. Select the Applications section on the right panel.
  3. Click the plus(+) button and follow the instructions on the form. It may take up to 30 minutes to register the app in the CAS system.
  4. After the registration completed, click the Action button in the row of your application

dashboardcasapps

Add CAS settings resources

CAS uses a mediation configuration caching system to handle unexpected situations.

  1. Click Download CAS settings button.
  2. A cas_settings[settings_id].json file will be downloaded.
  3. Move your config file into the module (app-level) /src/res/raw/ directory of your app.

What do you need to know about this config file?

  • The CAS config file contains unique, but non-secret identifiers for your project.
  • The configuration file is updated frequently, so we recommend that you regularly download the latest file for each new release.
  • Please do not change the name of the file. Make sure the config file name is not appended with additional characters, like (2).
  • The [settings_id] is the internal unique identifier of the resource.
  • If you have multiple CAS manager IDs in your project, you must associate each CAS ID with a registered app in the CAS console so that each app can have its own cas_settings[settings_id].json file.

๐Ÿ”— Done! Whatโ€™s Next?