hostingrakyat/campus/godot-admob-native-overlay
Claude Code and agent skill by hostingrakyat/campus
- community
Checking that the SKILL.md file is still in the repository.
Provides instructions to implement, load, show, and destroy Native Overlay ads (customized/native-looking Control node template overlays) in GDScript and C#. Use when integrating native overlay ads.
Install
npx vskill@latest install hostingrakyat/campus/godot-admob-native-overlaySKILL.md
The same SKILL.md was published earlier as poingstudios/godot-admob-plugin/godot-admob-native-overlay.
Godot AdMob - Native Overlay Ads
Assists with implementing Native Overlay ads (rendering Google AdMob assets directly inside custom layout templates using Control nodes) in Godot 4.x.
Native Overlay Workflow
- Define and Instantiate NativeAdLayout: Select a layout template (
smallormedium) and configure the styles. - Instantiate NativeAdLoader: Create the loader using your Ad Unit ID and layout.
- Configure NativeAdLoadCallback: Define success (
on_ad_loaded) and failure callbacks. - Load the Ad: Call
native_ad_loader.load()passing anAdRequestand load callback. - Configure FullScreenContentCallback: Connect events to handle ad dismissal or click.
- Crucial: Destroy the Ad: Call
native_ad.destroy()inside_exit_tree()or when changing scenes to free native memory.
Code Examples
=== "GDScript"
```gdscript var native_ad: NativeAd var native_loader: NativeAdLoader
func load_native_ad() -> void: var ad_unit_id := "ca-app-pub-3940256099942544/2247696110" # Test ID
# Configure visual template layout var layout := NativeAdLayout.new() layout.template_type = NativeAdLayout.TemplateType.SMALL
# Optional styling (custom colors/backgrounds) # layout.style = ...
native_loader = NativeAdLoader.new(ad_unit_id, layout)
var callback := NativeAdLoadCallback.new() callback.on_ad_loaded = func(ad: NativeAd) -> void: native_ad = ad print("Native ad loaded successfully.") setup_native_callbacks()
callback.on_ad_failed_to_load = func(error: LoadAdError) -> void: print("Native ad failed to load: ", error.message)
native_loader.load(AdRequest.new(), callback)
func setup_native_callbacks() -> void: if not native_ad: return var callbacks := FullScreenContentCallback.new() callbacks.on_ad_dismissed_full_screen_content = func() -> void: print("Native ad dismissed.") native_ad.destroy() native_ad = null
native_ad.full_screen_content_callback = callbacks
func _exit_tree() -> void: if native_ad: native_ad.destroy() native_ad = null ```
=== "C#"
```csharp using Godot; using PoingStudios.AdMob.Api; using PoingStudios.AdMob.Api.Listeners; using PoingStudios.AdMob.Api.Core;
private NativeAd _nativeAd; private NativeAdLoader _nativeLoader;
public void LoadNativeAd() { string adUnitId = "ca-app-pub-3940256099942544/2247696110"; // Test ID
var layout = new NativeAdLayout(); layout.TemplateType = NativeAdLayout.TemplateTypeSmall;
_nativeLoader = new NativeAdLoader(adUnitId, layout);
var callback = new NativeAdLoadCallback(); callback.OnAdLoaded = (NativeAd ad) => { _nativeAd = ad; GD.Print("Native ad loaded successfully."); SetupNativeCallbacks(); }; callback.OnAdFailedToLoad = (error) => { GD.Print($"Native ad failed to load: {error.Message}"); };
_nativeLoader.Load(new AdRequest(), callback); }
private void SetupNativeCallbacks() { if (_nativeAd == null) return;
var callbacks = new FullScreenContentCallback(); callbacks.OnAdDismissedFullScreenContent = () => { GD.Print("Native ad dismissed."); _nativeAd.Destroy(); _nativeAd = null; };
_nativeAd.FullScreenContentCallback = callbacks; }
public override void _ExitTree() { if (_nativeAd != null) { _nativeAd.Destroy(); _nativeAd = null; } } ```
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 repositoryCheckinggame/addons/admob/skills/godot-admob-native-overlay/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/hostingrakyat/campus/godot-admob-native-overlay)