Skip to content

Simula x Character AI: React Native Ad SDK

Native ads, interstitial playables, and rewarded mini-games for React Native apps integrated with Character AI.

Quick Start

1. Provider Setup

Wrap your application with SimulaProvider to initialize the SDK:

jsx
function App() {
  return (
    <SimulaProvider
      apiKey="SIMULA_xxx"
      primaryUserID="xxxxx"    // Optional: Hashed Character AI user ID, highly recommended for better ad targeting
      hasPrivacyConsent={true} // Optional: When false, suppresses collection of PII
      devMode={false}          // Optional: When true, serves test ads and enables debug logging
    >
      {/* Your application components */}
    </SimulaProvider>
  );
}

2. Add Components

Add components where you want ads or games to appear.