seorilabs/match-picture-app/godot-admob-interstitial
Claude Code and agent skill by seorilabs/match-picture-app
- community
Checking that the SKILL.md file is still in the repository.
Provides instructions to implement, load, show, and destroy interstitial ads (full-screen image/text ads) in GDScript and C#. Use when integrating interstitial ads.
Install
npx vskill@latest install seorilabs/match-picture-app/godot-admob-interstitialSKILL.md
The same SKILL.md was published earlier as kylemcmullin/godotmobiletemplate/godot-admob-interstitial.
Godot AdMob - Interstitial Ads
Assists with implementing full-screen interstitial ads using the InterstitialAdLoader and InterstitialAd classes in Godot 4.x.
Interstitial Ads Workflow
- Instantiate InterstitialAdLoader: Set up a loader instance.
- Configure InterstitialAdLoadCallback: Define success (
on_ad_loaded) and failure callbacks. - Load the Ad: Call
interstitial_ad_loader.load()passing the Ad Unit ID,AdRequest, and load callback. - Handle Loaded Ad: Save the loaded
InterstitialAdinstance in success callback. - Configure FullScreenContentCallback: Listen to show, click, dismiss, and fail-to-show events.
- Show the Ad: Call
interstitial_ad.show()to display the ad. - Crucial: Destroy the Ad: Call
interstitial_ad.destroy()inside the dismissed or show failure callback to free native memory.
Code Examples
=== "GDScript"
```gdscript var interstitial_ad: InterstitialAd var interstitial_loader := InterstitialAdLoader.new()
func load_interstitial() -> void: var ad_unit_id := "ca-app-pub-3940256099942544/1033173712" # Test ID var callback := InterstitialAdLoadCallback.new()
callback.on_ad_loaded = func(ad: InterstitialAd) -> void: interstitial_ad = ad print("Interstitial loaded. Ready to show.") setup_interstitial_callbacks()
callback.on_ad_failed_to_load = func(error: LoadAdError) -> void: print("Interstitial failed to load: ", error.message)
interstitial_loader.load(ad_unit_id, AdRequest.new(), callback)
func setup_interstitial_callbacks() -> void: if not interstitial_ad: return var callbacks := FullScreenContentCallback.new() callbacks.on_ad_showed_full_screen_content = func() -> void: print("Interstitial showed.") callbacks.on_ad_dismissed_full_screen_content = func() -> void: print("Interstitial dismissed.") interstitial_ad.destroy() interstitial_ad = null callbacks.on_ad_failed_to_show_full_screen_content = func(error: AdError) -> void: print("Interstitial failed to show: ", error.message) interstitial_ad.destroy() interstitial_ad = null
interstitial_ad.full_screen_content_callback = callbacks
func show_interstitial() -> void: if interstitial_ad: interstitial_ad.show() else: print("Interstitial not loaded yet.") ```
=== "C#"
```csharp using Godot; using PoingStudios.AdMob.Api; using PoingStudios.AdMob.Api.Listeners; using PoingStudios.AdMob.Api.Core;
private InterstitialAd _interstitialAd; private InterstitialAdLoader _interstitialLoader = new InterstitialAdLoader();
public void LoadInterstitial() { string adUnitId = "ca-app-pub-3940256099942544/1033173712"; // Test ID var callback = new InterstitialAdLoadCallback();
callback.OnAdLoaded = (InterstitialAd ad) => { _interstitialAd = ad; GD.Print("Interstitial loaded. Ready to show."); SetupInterstitialCallbacks(); }; callback.OnAdFailedToLoad = (error) => { GD.Print($"Interstitial failed to load: {error.Message}"); };
_interstitialLoader.Load(adUnitId, new AdRequest(), callback); }
private void SetupInterstitialCallbacks() { if (_interstitialAd == null) return;
var callbacks = new FullScreenContentCallback(); callbacks.OnAdShowedFullScreenContent = () => GD.Print("Interstitial showed."); callbacks.OnAdDismissedFullScreenContent = () => { GD.Print("Interstitial dismissed."); _interstitialAd.Destroy(); _interstitialAd = null; }; callbacks.OnAdFailedToShowFullScreenContent = (error) => { GD.Print($"Interstitial failed to show: {error.Message}"); _interstitialAd.Destroy(); _interstitialAd = null; };
_interstitialAd.FullScreenContentCallback = callbacks; }
public void ShowInterstitial() { if (_interstitialAd != null) { _interstitialAd.Show(); } } ```
Security
- Security scanPassed, 90 of 100Pattern checks on the skill's files.
- Model reviewPassed
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryCheckinggodot/addons/admob/skills/godot-admob-interstitial/SKILL.md
Popularity
- 7-day trend score
- 0
Not refreshed yet.
Works with
Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.
- Claude Code
- Cursor
- GitHub Copilot
- Windsurf
- Codex
- Gemini CLI
- Cline
- Amp
- Roo Code
- Goose
- Continue
- Kilo Code
- Junie
- Trae
- OpenHands
- Qwen Code
- AI Agent
- Tabnine Chat
- Sourcegraph Cody
- Amazon Q
- Firebase Genkit
- Sweep
- Devin
- Phind
- Mentat
- Claude Desktop
- Aider
- GPT Pilot
- Plandex
- bolt.new
- v0
- Replit Agent
- Anse
- TypingMind
- BetterChatGPT
- LibreChat
- Warp AI
- Pieces
- Fig AI
Embed badge
[](https://verified-skill.com/skills/seorilabs/match-picture-app/godot-admob-interstitial)