Testing Ads
Testing ads in your project is straightforward. Google provides official test Ad Unit IDs for every ad format. By using these IDs in your Load functions, you can safely test all ad types without risking policy violations or accidental impressions.
Test ads behave exactly like real ads: they load, trigger events, show fullscreens, and return rewards. This allows you to validate your integration before switching to your production Ad Unit IDs.
Always keep test IDs active during development to avoid invalid traffic.
Google Official Test Ad Units
Below is a table with all supported ad formats and their official Google test IDs.
| Ad Format | Test Ad Unit ID |
|---|---|
| Banner | ca-app-pub-3940256099942544/9214589741 |
| Interstitial | ca-app-pub-3940256099942544/1033173712 |
| Rewarded | ca-app-pub-3940256099942544/5224354917 |
| Rewarded Interstitial | ca-app-pub-3940256099942544/5354046379 |
| App Open | ca-app-pub-3940256099942544/9257395921 |
These IDs can be safely used in both Blueprint and C++ examples.
To switch to production ads, simply replace the test IDs with your real Ad Unit IDs from the AdMob console right before the release build.