Last Updated on
July 15, 2022
Publishers should call the addDataUseConsent API from the Chartboost SDK and pass in the appropriate value for whether consent exists, does not exist, or is unknown. Publishers are required as part of Terms of Service to obtain the consent from their users before Chartboost will process any personal data and pass it to the Chartboost SDK via the above method. This method should be called before startWithAppId.
Learn more about privacy methods here and Behavioral Targeting here.
This helps smoothen video playback during orientation changes.
startWithAppId must always be called during hard and soft bootups within the first few seconds of your app launching, regardless of any other actions or user interaction within your app.
Publishers should call the addDataUseConsent API from the Chartboost SDK and pass in the appropriate value for whether consent exists, does not exist, or is unknown. Publishers are required as part of Terms of Service to obtain the consent from their users before Chartboost will process any personal data and pass it to the Chartboost SDK via the above method. This method should be called before startWithAppId.
Chartboost App ID is a unique App identifier in our systems, therefore it is required to use a different Chartboost App ID per each app.
Create interstitial object without mediation object:
Create interstitial with mediation object:
Cache interstitial:
Show interstitial:
Do not call showInterstitial directly after cacheInterstitial for the same location, or the SDK will fail silently.
Prefetched videos (in total) only take up 30-50MB, even when you are using mediation.
Create rewarded object without mediation object:
Create rewarded with mediation object:
Cache rewarded:
Show rewarded:
We strongly recommend that you cache your interstitials before showing them. Learn more about caching
Prefetched videos (in total) only take up 30-50MB, even when you are using mediation.
Create banner object without mediation object:
Create banner object with mediation :
Attach banner to the holder. Banner object is extending FrameLayout and needs to be attached to the view to be displayed at the screen.
Cache banner:
Show banner:
If you wish to remove the banner from view, use:
Banner ads are not supported for Amazon integrations.
To make the banner ad show, first create it (detailed here), and then call the delegate method.
w00t! You just integrated the Chartboost SDK into your app!
Now you can start a campaign
Last Updated on July 12, 2022