{"_id":"@advergic-ads/react-native-sdk","_rev":"8-ea9296aad025fd71be9176327d92ac28","name":"@advergic-ads/react-native-sdk","dist-tags":{"latest":"1.0.6"},"versions":{"1.0.0":{"name":"@advergic-ads/react-native-sdk","version":"1.0.0","keywords":["react-native","advergic","advertising","ads","banner","interstitial","rewarded","mobile-ads","admob","prebid"],"author":{"name":"Advergic","email":"hello@advergic.com"},"license":"MIT","_id":"@advergic-ads/react-native-sdk@1.0.0","maintainers":[{"name":"maavuz","email":"maavuzsaif@gmail.com"},{"name":"testadv","email":"haider@advergic.com"}],"homepage":"https://advergic.com","bugs":{"url":"https://github.com/advergic/react-native-sdk/issues"},"dist":{"shasum":"7d18ae82334bda435f56808c4464c8d5bbd0e67b","tarball":"https://registry.npmjs.org/@advergic-ads/react-native-sdk/-/react-native-sdk-1.0.0.tgz","fileCount":29,"integrity":"sha512-BnJ0N809VdR5oEXhcLwKH8nRdn9EV/aTp7/CXKpZMYsgchadSUqEQd5x9mHqFdTMm9HUiKOyu01Lo4cn1WTOjw==","signatures":[{"sig":"MEQCIAzlmzHq8Dd4Wjq/qA6kPczsnzn5O/UpLUtGLsiql/UXAiA5pwcJB2KT9Jo2nOZ5k1pSyx2qX7QbXSrYMDMKM1yxTA==","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":2870138},"main":"index.js","types":"index.d.ts","engines":{"node":">=18.0.0"},"gitHead":"0d435e5c8323372fc7d6531a132c0046d2b79e1b","scripts":{"install":"node install.js"},"_npmUser":{"name":"testadv","email":"haider@advergic.com"},"repository":{"url":"git+https://github.com/advergic/react-native-sdk.git","type":"git"},"_npmVersion":"10.8.3","description":"Advergic React Native SDK - Integrate Prebid header bidding and mobile advertising into your React Native apps","directories":{},"_nodeVersion":"22.9.0","dependencies":{"react-native-safe-area-context":"^4.12.0"},"_hasShrinkwrap":false,"devDependencies":{"@types/react-native":"^0.73.0"},"peerDependencies":{"react-native":"^0.85.3"},"_npmOperationalInternal":{"tmp":"tmp/react-native-sdk_1.0.0_1782819049802_0.006803000969089812","host":"s3://npm-registry-packages-npm-production"}},"1.0.1":{"name":"@advergic-ads/react-native-sdk","version":"1.0.1","keywords":["react-native","advergic","advertising","ads","banner","interstitial","rewarded","mobile-ads","admob","prebid"],"author":{"name":"Advergic","email":"hello@advergic.com"},"license":"MIT","_id":"@advergic-ads/react-native-sdk@1.0.1","maintainers":[{"name":"maavuz","email":"maavuzsaif@gmail.com"},{"name":"testadv","email":"haider@advergic.com"}],"homepage":"https://advergic.com","bugs":{"url":"https://github.com/advergic/react-native-sdk/issues"},"dist":{"shasum":"b339f2fc7310d17aa23d1cc20d8a8c1d4d38ec6a","tarball":"https://registry.npmjs.org/@advergic-ads/react-native-sdk/-/react-native-sdk-1.0.1.tgz","fileCount":29,"integrity":"sha512-uqTiw9deTLotsABsuOhLESNv3CkkvGM1Nzybfl7BTNquasIxljBZBZqrdI/RJN4kCxCOOT7BBL4MDb80UwOGrA==","signatures":[{"sig":"MEUCIE96o94BRy2Z8d7N8Hcix4YGbP9xeulZLEz5Ok11O4j8AiEAnx/OQFwaVs57f0tGBF5PuGIIoe4u+vdfr6QlnOp9XZE=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":2870138},"main":"index.js","types":"index.d.ts","engines":{"node":">=18.0.0"},"gitHead":"0d435e5c8323372fc7d6531a132c0046d2b79e1b","scripts":{"install":"node install.js"},"_npmUser":{"name":"testadv","email":"haider@advergic.com"},"repository":{"url":"git+https://github.com/advergic/react-native-sdk.git","type":"git"},"_npmVersion":"10.8.3","description":"Advergic React Native SDK - Integrate Prebid header bidding and mobile advertising into your React Native apps","directories":{},"_nodeVersion":"22.9.0","dependencies":{"react-native-safe-area-context":"^4.12.0"},"_hasShrinkwrap":false,"devDependencies":{"@types/react-native":"^0.73.0"},"peerDependencies":{"react-native":"^0.85.3"},"_npmOperationalInternal":{"tmp":"tmp/react-native-sdk_1.0.1_1782820476184_0.16160760347360625","host":"s3://npm-registry-packages-npm-production"}},"1.0.2":{"name":"@advergic-ads/react-native-sdk","version":"1.0.2","keywords":["react-native","advergic","advertising","ads","banner","interstitial","rewarded","mobile-ads","admob","prebid"],"author":{"name":"Advergic","email":"hello@advergic.com"},"license":"MIT","_id":"@advergic-ads/react-native-sdk@1.0.2","maintainers":[{"name":"maavuz","email":"maavuzsaif@gmail.com"},{"name":"testadv","email":"haider@advergic.com"}],"homepage":"https://advergic.com","bugs":{"url":"https://github.com/advergic/react-native-sdk/issues"},"dist":{"shasum":"9e50798dc06b2ba69b44755609e8421abab8bb6f","tarball":"https://registry.npmjs.org/@advergic-ads/react-native-sdk/-/react-native-sdk-1.0.2.tgz","fileCount":29,"integrity":"sha512-AyMlhFtBCpgn8Xj4xXlBHH0EpAIOAL5takpi9LOiIowTA1WKmeM826aTSGO024pXqO7lrywh0gjZKJsC77rVow==","signatures":[{"sig":"MEYCIQDeWTb3mTUYAhhMvevw1DhCV0pyrUXnarBXGNQHxVIorgIhAIEcoXT0x9QSuUjvKgMQihFHVQzzP2EwR9sqJcRmustY","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":2870322},"main":"index.js","types":"index.d.ts","engines":{"node":">=18.0.0"},"gitHead":"6239ed2a8b5b8b7f599687bcc7b5074222b3caf9","scripts":{"install":"node install.js"},"_npmUser":{"name":"testadv","email":"haider@advergic.com"},"repository":{"url":"git+https://github.com/advergic/react-native-sdk.git","type":"git"},"_npmVersion":"10.8.3","description":"Advergic React Native SDK - Integrate Prebid header bidding and mobile advertising into your React Native apps","directories":{},"_nodeVersion":"22.9.0","dependencies":{"react-native-safe-area-context":"^4.12.0"},"_hasShrinkwrap":false,"devDependencies":{"@types/react-native":"^0.73.0"},"peerDependencies":{"react-native":"^0.85.3"},"_npmOperationalInternal":{"tmp":"tmp/react-native-sdk_1.0.2_1782824222297_0.9316595992725909","host":"s3://npm-registry-packages-npm-production"}},"1.0.3":{"name":"@advergic-ads/react-native-sdk","version":"1.0.3","keywords":["react-native","advergic","advertising","ads","banner","interstitial","rewarded","mobile-ads","admob","prebid"],"author":{"name":"Advergic","email":"hello@advergic.com"},"license":"MIT","_id":"@advergic-ads/react-native-sdk@1.0.3","maintainers":[{"name":"maavuz","email":"maavuzsaif@gmail.com"},{"name":"testadv","email":"haider@advergic.com"}],"homepage":"https://advergic.com","bugs":{"url":"https://github.com/advergic/react-native-sdk/issues"},"dist":{"shasum":"f5b8f74868ba02b3a4389d48ddb1203037cd75ea","tarball":"https://registry.npmjs.org/@advergic-ads/react-native-sdk/-/react-native-sdk-1.0.3.tgz","fileCount":29,"integrity":"sha512-u2Ft2FY3eKWsX6SbTihfnaCUEILaMpwjgLdn60YJfDAiQLulJxb1gIuhcY0bWzXiZLnaLMlwqoLgW1oqDElSeQ==","signatures":[{"sig":"MEQCIFyxSKXKRFCelGwLph8oCrMBpZ/jlXC657V1rUQ58fHKAiA+WfHsIGS+kgqaySabrTXdDcQ8Sb91bgTxz7k5+/752Q==","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":2870698},"main":"index.js","types":"index.d.ts","engines":{"node":">=18.0.0"},"gitHead":"0b880e0bf4799fd1af4442d3cfa1ea0e77fcc2c7","scripts":{"install":"node install.js"},"_npmUser":{"name":"testadv","email":"haider@advergic.com"},"repository":{"url":"git+https://github.com/advergic/react-native-sdk.git","type":"git"},"_npmVersion":"10.8.3","description":"Advergic React Native SDK - Integrate Prebid header bidding and mobile advertising into your React Native apps","directories":{},"_nodeVersion":"22.9.0","dependencies":{"react-native-safe-area-context":"^4.12.0"},"_hasShrinkwrap":false,"devDependencies":{"@types/react-native":"^0.73.0"},"peerDependencies":{"react-native":"^0.85.3"},"_npmOperationalInternal":{"tmp":"tmp/react-native-sdk_1.0.3_1782831771782_0.16163977809361874","host":"s3://npm-registry-packages-npm-production"}},"1.0.4":{"name":"@advergic-ads/react-native-sdk","version":"1.0.4","keywords":["react-native","advergic","advertising","ads","banner","interstitial","rewarded","mobile-ads","admob","prebid"],"author":{"name":"Advergic","email":"hello@advergic.com"},"license":"MIT","_id":"@advergic-ads/react-native-sdk@1.0.4","maintainers":[{"name":"maavuz","email":"maavuzsaif@gmail.com"},{"name":"testadv","email":"haider@advergic.com"}],"homepage":"https://advergic.com","bugs":{"url":"https://github.com/advergic/react-native-sdk/issues"},"dist":{"shasum":"5891be8454536eecb65e39b8ee3ee0a7227a8be0","tarball":"https://registry.npmjs.org/@advergic-ads/react-native-sdk/-/react-native-sdk-1.0.4.tgz","fileCount":29,"integrity":"sha512-IT74FRQySd3YVlteIiNuymEyAw6ml10p5myaDS2v6tJ+zQM7huwPRA0wDpdIpMlcBYDWH/VWBytQ28xiINs5pw==","signatures":[{"sig":"MEQCIC/TgMe0PHKJeDCZLi92Av+AcUsMw2l8wq50Vsj3jD1qAiB8EFFL/U6yGeXeMpHWWkATEO2llWsImenCtVidASV+hw==","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":2870699},"main":"index.js","types":"index.d.ts","engines":{"node":">=18.0.0"},"gitHead":"0b880e0bf4799fd1af4442d3cfa1ea0e77fcc2c7","scripts":{"install":"node install.js"},"_npmUser":{"name":"testadv","email":"haider@advergic.com"},"repository":{"url":"git+https://github.com/advergic/react-native-sdk.git","type":"git"},"_npmVersion":"10.8.3","description":"Advergic React Native SDK - Integrate Prebid header bidding and mobile advertising into your React Native apps","directories":{},"_nodeVersion":"22.9.0","dependencies":{"react-native-safe-area-context":"^4.12.0"},"_hasShrinkwrap":false,"devDependencies":{"@types/react-native":"^0.73.0"},"peerDependencies":{"react-native":">=0.85.3"},"_npmOperationalInternal":{"tmp":"tmp/react-native-sdk_1.0.4_1782834254473_0.42493389295353245","host":"s3://npm-registry-packages-npm-production"}},"1.0.5":{"name":"@advergic-ads/react-native-sdk","version":"1.0.5","keywords":["react-native","advergic","advertising","ads","banner","interstitial","rewarded","mobile-ads","admob","prebid"],"author":{"name":"Advergic","email":"hello@advergic.com"},"license":"MIT","_id":"@advergic-ads/react-native-sdk@1.0.5","maintainers":[{"name":"maavuz","email":"maavuzsaif@gmail.com"},{"name":"testadv","email":"haider@advergic.com"}],"homepage":"https://advergic.com","bugs":{"url":"https://github.com/advergic/react-native-sdk/issues"},"dist":{"shasum":"27beb040e80a3979f18c370adb13705d1a6c5d85","tarball":"https://registry.npmjs.org/@advergic-ads/react-native-sdk/-/react-native-sdk-1.0.5.tgz","fileCount":29,"integrity":"sha512-wITBBXBmeMCMNK/MGMR7PaOJUG5pZIkDHFErRuJHLrGsvUve65Mf/xObalhFDYoWEggiAvfpiVISpCCYE5UTpA==","signatures":[{"sig":"MEUCIQD6wDygr0wzaC2VW1aUcJ52/SmyQ1FGMcKMaUeAKbq/1gIgDW+wlT9qiOzyrtqNdEAQZ+4kIjKv9kkE3nEGoltaxL8=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":2870669},"main":"index.js","types":"index.d.ts","engines":{"node":">=18.0.0"},"gitHead":"f60f74eaf7b0065e160a4bcb10c12bf8cd7aea77","scripts":{"install":"node install.js"},"_npmUser":{"name":"testadv","email":"haider@advergic.com"},"repository":{"url":"git+https://github.com/advergic/react-native-sdk.git","type":"git"},"_npmVersion":"10.8.3","description":"Advergic React Native SDK - Integrate Prebid header bidding and mobile advertising into your React Native apps","directories":{},"_nodeVersion":"22.9.0","_hasShrinkwrap":false,"devDependencies":{"@types/react-native":"^0.73.0"},"peerDependencies":{"react-native":">=0.71.0"},"_npmOperationalInternal":{"tmp":"tmp/react-native-sdk_1.0.5_1782888323143_0.008543318100601827","host":"s3://npm-registry-packages-npm-production"}},"1.0.6":{"name":"@advergic-ads/react-native-sdk","version":"1.0.6","description":"Advergic React Native SDK - Integrate Prebid header bidding and mobile advertising into your React Native apps","main":"index.js","types":"index.d.ts","scripts":{"install":"node install.js"},"keywords":["react-native","advergic","advertising","ads","banner","interstitial","rewarded","mobile-ads","admob","prebid"],"author":{"name":"Advergic","email":"hello@advergic.com"},"license":"MIT","homepage":"https://advergic.com","repository":{"type":"git","url":"git+https://github.com/advergic/react-native-sdk.git"},"bugs":{"url":"https://github.com/advergic/react-native-sdk/issues"},"peerDependencies":{"react-native":">=0.71.0"},"devDependencies":{"@types/react-native":"^0.73.0"},"engines":{"node":">=18.0.0"},"_id":"@advergic-ads/react-native-sdk@1.0.6","gitHead":"9a1a13bf99581d95617213027cb428734be0ac76","_nodeVersion":"22.9.0","_npmVersion":"10.8.3","dist":{"integrity":"sha512-9mQy8C5DblwflXknUdEK1bs1ZtOeUajjMdauuJFy7vFQkFbjR+S7U2Nz8/w6GefCXaMeXvV00ibSI06L+eoagw==","shasum":"215d1f5889d17a375d25a701e97c9266573ec3fe","tarball":"https://registry.npmjs.org/@advergic-ads/react-native-sdk/-/react-native-sdk-1.0.6.tgz","fileCount":29,"unpackedSize":2869862,"signatures":[{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEUCIQDKYeB/TKPxQz7k1Vm3LXKE+RSO1/3oGOXLzYfBZkXcKgIgJrH0Ttp4OfZtrb2VIc27r8Ngj12BXNc9qWWVNRyYoMo="}]},"_npmUser":{"name":"testadv","email":"haider@advergic.com"},"directories":{},"maintainers":[{"name":"maavuz","email":"maavuzsaif@gmail.com"},{"name":"testadv","email":"haider@advergic.com"},{"name":"haideryzi","email":"haiderzamanusafxay@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/react-native-sdk_1.0.6_1782901176076_0.89013272973315"},"_hasShrinkwrap":false}},"time":{"created":"2026-06-30T11:30:49.595Z","modified":"2026-07-01T10:19:36.480Z","1.0.0":"2026-06-30T11:30:50.021Z","1.0.1":"2026-06-30T11:54:36.403Z","1.0.2":"2026-06-30T12:57:02.481Z","1.0.3":"2026-06-30T15:02:51.998Z","1.0.4":"2026-06-30T15:44:14.720Z","1.0.5":"2026-07-01T06:45:23.439Z","1.0.6":"2026-07-01T10:19:36.320Z"},"bugs":{"url":"https://github.com/advergic/react-native-sdk/issues"},"author":{"name":"Advergic","email":"hello@advergic.com"},"license":"MIT","homepage":"https://advergic.com","keywords":["react-native","advergic","advertising","ads","banner","interstitial","rewarded","mobile-ads","admob","prebid"],"repository":{"type":"git","url":"git+https://github.com/advergic/react-native-sdk.git"},"description":"Advergic React Native SDK - Integrate Prebid header bidding and mobile advertising into your React Native apps","maintainers":[{"name":"maavuz","email":"maavuzsaif@gmail.com"},{"name":"testadv","email":"haider@advergic.com"},{"name":"haideryzi","email":"haiderzamanusafxay@gmail.com"}],"readme":"# Getting Started with Advergic React Native SDK\n\nWelcome! This guide will help you integrate mobile advertising into your React Native app in just a few minutes.\n\n## 📋 Prerequisites\n\n- **React Native**: 0.71 or higher (works on both the old and new architecture)\n- **Node.js**: 18.0 or higher\n- **Android**: API 24+ (Android 7.0) for Android apps\n- **iOS**: 15.0+ for iOS apps\n- **API Key**: Get one from [app.advergic.com](https://app.advergic.com)\n\n## 🚀 5-Minute Setup\n\n### Step 1: Install the SDK\n\n```bash\nnpm install @advergic-ads/react-native-sdk\n```\n\nor with Yarn:\n\n```bash\nyarn add @advergic-ads/react-native-sdk\n```\n\n### Step 2: Android Setup (One Line!)\n\nAdd your Google Ads Application ID to `android/app/src/main/AndroidManifest.xml`:\n\n```xml\n<application>\n  <meta-data\n    android:name=\"com.google.android.gms.ads.APPLICATION_ID\"\n    android:value=\"ca-app-pub-xxxxxxxxxxxxxxxx~yyyyyyyyyy\" />\n</application>\n```\n\nGet your ID from [AdMob Console](https://admob.google.com).\n\n**That's it!** React Native auto-linking handles the rest.\n\n### Step 3: iOS Setup\n\nThe React Native module is auto-linked, but the native `AdvergicSDK` is **not**\npublished on the CocoaPods trunk — it ships from Advergic's own podspec. Add\nthat one line to your `Podfile` (alongside the iOS 15.0 deployment target),\nthen install:\n\n```ruby\n# ios/Podfile\nplatform :ios, '15.0'\n\ntarget 'YourApp' do\n  # ...existing config (use_react_native! etc.)...\n\n  # Required: makes the native Advergic iOS SDK resolvable by CocoaPods.\n  pod 'AdvergicSDK', :podspec => 'https://app.advergic.com/ios/sdk/AdvergicSDK.podspec'\nend\n```\n\n```bash\ncd ios && pod install && cd ..\n```\n\nOnce that line is present, CocoaPods resolves `AdvergicReactNative` (auto-linked)\nand its `AdvergicSDK` dependency, and pulls in Google Mobile Ads automatically.\nPrebid is bundled inside the `AdvergicSDK` framework.\n\n> **Why the extra line?** CocoaPods can only resolve a pod's dependencies from\n> the trunk or from sources declared in *your* `Podfile`. Since `AdvergicSDK` is\n> distributed via a hosted podspec rather than the trunk, the consuming app must\n> point CocoaPods at it. The hosted URL always serves the latest SDK version.\n\n> **Note:** iOS supports banner, interstitial, rewarded, and app-open ads.\n> Native ads are currently Android-only.\n\n### Step 4: Initialize in Your App\n\n```tsx\nimport React, { useEffect } from \"react\";\nimport Advergic from \"@advergic-ads/react-native-sdk\";\n\nexport default function App() {\n  useEffect(() => {\n    // Initialize the SDK on app launch\n    Advergic.initialize(\"YOUR_API_KEY\").then((initialized) => {\n      if (initialized) {\n        console.log(\"✓ Advergic SDK ready!\");\n      }\n    });\n  }, []);\n\n  return (\n    // Your app content\n  );\n}\n```\n\n### Step 5: Add Your First Banner Ad\n\n```tsx\nimport { AdvergicBannerAd } from \"@advergic-ads/react-native-sdk\";\n\nexport default function Home() {\n  return (\n    <View>\n      {/* Your content */}\n      \n      <AdvergicBannerAd\n        adUnitId=\"/23315275002/home_banner_320x50_ad_unit_id\"\n        style={{ width: 320, height: 50, alignSelf: \"center\" }}\n        onAdLoaded={() => console.log(\"Ad loaded!\")}\n        onAdFailedToLoad={(error) => console.error(\"Ad failed:\", error)}\n      />\n    </View>\n  );\n}\n```\n\nThat's it! You now have banner ads running. 🎉\n\n---\n\n## 📦 Ad Formats\n\nThe SDK supports 4 ad formats:\n\n### 1. **Banner Ads** ✓ Easiest\n\nRectangular ads that display inline with your content.\n\n```tsx\n<AdvergicBannerAd\n  adUnitId=\"/YOUR_NETWORK_ID/YOUR_BANNER_AD_UNIT\"\n  style={{ width: 320, height: 50 }}\n/>\n```\n\n**Common sizes:**\n- `320x50` — Standard mobile banner\n- `300x250` — Medium rectangle\n- `320x100` — Large banner\n- `300x600` — Half page\n\n### 2. **Interstitial Ads** — Full Screen\n\nFull-screen ads shown between content (e.g., between game levels, after article read).\n\n```tsx\nimport Advergic from \"@advergic-ads/react-native-sdk\";\n\n// Show when appropriate\nAdvergic.showInterstitialAd(\"/YOUR_NETWORK_ID/YOUR_INTERSTITIAL_AD_UNIT\");\n\n// Listen for close\nAdvergic.onInterstitialAdClosed(() => {\n  console.log(\"User closed the ad\");\n});\n```\n\n### 3. **Rewarded Ads** — Earn Points\n\nVideo ads that reward users for watching (unlock premium, earn coins, etc.).\n\n```tsx\n// Show when user wants premium content\nAdvergic.showRewardedAd(\"/YOUR_NETWORK_ID/YOUR_REWARDED_AD_UNIT\");\n\n// Listen for reward grant\nAdvergic.onRewardedAdUserEarnedReward(() => {\n  unlockPremiumContent();\n});\n```\n\n### 4. **Native Ads** — Custom Design\n\nGet ad data and render it your own way.\n\n```tsx\nconst nativeAd = await Advergic.loadNativeAd(\"/YOUR_NETWORK_ID/YOUR_NATIVE_AD_UNIT\");\n\nreturn (\n  <View>\n    <Image source={{ uri: nativeAd.mainImage }} />\n    <Text>{nativeAd.title}</Text>\n    <Button title={nativeAd.callToAction} />\n  </View>\n);\n```\n\n---\n\n## 📱 Your First Complete App\n\nHere's a minimal app with both banner and interstitial ads:\n\n```tsx\nimport React, { useEffect, useState } from \"react\";\nimport { View, Text, Button, StyleSheet, ScrollView } from \"react-native\";\nimport Advergic, { AdvergicBannerAd } from \"@advergic-ads/react-native-sdk\";\n\nconst API_KEY = \"YOUR_API_KEY\";\n\nexport default function App() {\n  const [initialized, setInitialized] = useState(false);\n\n  useEffect(() => {\n    // Initialize SDK\n    Advergic.initialize(API_KEY).then(setInitialized);\n\n    // Listen for interstitial close\n    const sub = Advergic.onInterstitialAdClosed(() => {\n      console.log(\"Interstitial closed\");\n    });\n\n    return () => sub.remove();\n  }, []);\n\n  const showInterstitial = () => {\n    if (initialized) {\n      Advergic.showInterstitialAd(\n        \"/23315275002/start_game_interstitial_ad_unit_id\"\n      );\n    }\n  };\n\n  return (\n    <ScrollView style={styles.container}>\n      <Text style={styles.title}>My App</Text>\n\n      {/* Top banner ad */}\n      <AdvergicBannerAd\n        adUnitId=\"/23315275002/home_banner_320x50_ad_unit_id\"\n        style={{ width: 320, height: 50, alignSelf: \"center\" }}\n      />\n\n      {/* App content */}\n      <Text style={styles.text}>Welcome to your app!</Text>\n\n      <Button\n        title=\"Show Interstitial Ad\"\n        onPress={showInterstitial}\n        disabled={!initialized}\n      />\n\n      {/* Bottom banner ad */}\n      <AdvergicBannerAd\n        adUnitId=\"/23315275002/home_screen_top_banner_video_300x250_ad_unit_id\"\n        style={{ width: 300, height: 250, alignSelf: \"center\", marginVertical: 20 }}\n      />\n    </ScrollView>\n  );\n}\n\nconst styles = StyleSheet.create({\n  container: { flex: 1, padding: 20, backgroundColor: \"#f5f5f5\" },\n  title: { fontSize: 28, fontWeight: \"bold\", marginBottom: 20 },\n  text: { fontSize: 16, marginBottom: 20, color: \"#333\" },\n});\n```\n\n---\n\n## 🔑 Getting Your API Key & Ad Unit IDs\n\n1. Sign up at [app.advergic.com](https://app.advergic.com)\n2. Create a new app\n3. Copy your **API Key** (use in `Advergic.initialize()`)\n4. Go to **Inventory → Ad Units** to create ad units\n5. Copy the **Ad Unit IDs** and use them in your components\n\n---\n\n## 🐛 Troubleshooting\n\n### \"Banner is blank\"\n- Ensure `Advergic.initialize()` is called before rendering banners\n- Check that the app has internet access\n- Verify the ad unit ID is correct\n- Add `onAdFailedToLoad` callback to see error details\n\n### \"Interstitial doesn't show\"\n- Make sure you're using the correct ad unit ID (should be an interstitial, not banner)\n- Call `showInterstitialAd()` after the app is initialized\n- Some devices may not have ads available; add error handling\n\n### \"Module not found\" on Android\n- Run `npm install` again\n- Try `npm start -- --reset-cache` to clear React Native cache\n- Delete `node_modules` and reinstall if still broken\n\n### Debug Mode\n\nEnable verbose logging in Android logcat:\n\n```bash\nadb logcat | grep -E \"Advergic|Banner\"\n```\n\n---\n\n## 📚 Next Steps\n\n- **Read the full docs**: [README.md](./README.md)\n- **Check examples**: [examples/dramafy/](./examples/dramafy/)\n- **API Reference**: [README.md → API Reference](./README.md#api-reference)\n- **Troubleshooting**: [README.md → Troubleshooting](./README.md#troubleshooting)\n\n---\n\n## 💡 Tips\n\n✅ **Do:**\n- Use fixed pixel dimensions for banner size (not percentages)\n- Initialize SDK early in your app lifecycle\n- Test with your own app before going live\n- Monitor fill rates in the dashboard\n\n❌ **Don't:**\n- Change ad unit IDs frequently (disrupts analytics)\n- Show multiple ads simultaneously in the same location\n- Initialize the SDK multiple times\n\n---\n\n## 🤝 Need Help?\n\n- **Email**: hello@advergic.com\n","readmeFilename":"README.md"}