Link the project - cleveradssolutions/CAS-ReactNative GitHub Wiki
:zap: Before you start
Make sure you have correctly setup project settings.
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.
- Sign In https://cleveradssolutions.com.
- Select the Applications section on the right panel.
- 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.
- After the registration completed, click the Action button in the row of your application
Add CAS settings resources
CAS uses a mediation configuration caching system to handle unexpected situations.
- Click Download CAS settings button.
- A
cas_settings[settings_id].json
file will be downloaded. - (Android) Move your config file into the module (app-level)
/src/res/raw/
directory of your app. - (iOS) If you don't used
casconfig.rb
file, you need to includecas_settings[settings_id].json
to your XCode project (do not forget aboutCopy if needed
flag when adding file via XCode)
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?
- Read about Advanced integration to add more ad networks.
- Follow additional steps to integrate some ad networks if used: