# CacheRewardAdChartboost

## Description

Caches a fullscreen reward video advert for display later using Chartboost. Before calling this function you must have set your ad account details with SetChartboostDetails. Both iOS and Android use caching to preload ads before displaying them. If an ad has already been cached then this will do nothing. Unlike AdMob, reward videos will not automatically start caching with Chartboost unless you call this command. This is because Chartboost uses the same details for both interstitials and reward videos so AGK can't know in advance which you are using. Since video ads can use a lot of mobile data their caching process will not be started automatically. You only need to call this once, after a reward video ad has been displayed a new one will be cached automatically. Failure to load an ad may be because the ad provider has run out of ads to show to users in a particular country. You can check if an ad is waiting to be displayed with GetRewardAdLoadedChartboost.

## Definition

CacheRewardAdChartboost()

void agk::CacheRewardAdChartboost()