seorilabs/foam-party/godot-admob-banner
Claude Code and agent skill by seorilabs/foam-party
- community
Checking that the SKILL.md file is still in the repository.
Provides instructions to implement, load, and destroy banner ads (AdView) using custom or adaptive sizes in GDScript and C#. Use when integrating banner ads.
Install
npx vskill@latest install seorilabs/foam-party/godot-admob-bannerSKILL.md
The same SKILL.md was published earlier as poingstudios/godot-admob-plugin/godot-admob-banner.
Godot AdMob - Banner Ads
Assists with implementing, displaying, and destroying banner ads using the AdView and AdSize classes in Godot 4.x.
Banner Ads Workflow
- Define and Instantiate AdView: Create an
AdViewwith your Ad Unit ID, selectedAdSize, and screenAdPosition. - Configure AdListener: Set up an
AdListenerto respond to events such ason_ad_loaded,on_ad_failed_to_load, etc. - Load the Ad: Call
ad_view.load_ad(AdRequest.new()). - Crucial: Destroy the Ad: Call
ad_view.destroy()inside_exit_tree()or when changing scenes to free memory.
Code Examples
=== "GDScript"
```gdscript var ad_view: AdView
func load_banner_ad() -> void: var ad_unit_id := "ca-app-pub-3940256099942544/6300978111" # Test ID var ad_size := AdSize.get_current_orientation_anchored_adaptive_banner_ad_size(AdSize.FULL_WIDTH) var ad_position := AdPosition.BOTTOM
ad_view = AdView.new(ad_unit_id, ad_size, ad_position)
var listener := AdListener.new() listener.on_ad_loaded = func() -> void: print("Banner loaded successfully.") listener.on_ad_failed_to_load = func(error: LoadAdError) -> void: print("Banner failed to load: ", error.message)
ad_view.ad_listener = listener
# To request a collapsible banner: # var request := AdRequest.new() # request.extras = {"collapsible": "bottom"} # ad_view.load_ad(request)
ad_view.load_ad(AdRequest.new())
func _exit_tree() -> void: if ad_view: ad_view.destroy() ad_view = null ```
=== "C#"
```csharp using Godot; using PoingStudios.AdMob.Api; using PoingStudios.AdMob.Api.Listeners; using PoingStudios.AdMob.Api.Core;
private AdView _adView;
public void LoadBannerAd() { string adUnitId = "ca-app-pub-3940256099942544/6300978111"; // Test ID var adSize = AdSize.GetCurrentOrientationAnchoredAdaptiveBannerAdSize(AdSize.FullWidth); var adPosition = AdPosition.Bottom;
_adView = new AdView(adUnitId, adSize, adPosition);
var listener = new AdListener(); listener.OnAdLoaded = () => GD.Print("Banner loaded successfully."); listener.OnAdFailedToLoad = (error) => GD.Print($"Banner failed to load: {error.Message}");
_adView.AdListener = listener; _adView.LoadAd(new AdRequest()); }
public override void _ExitTree() { if (_adView != null) { _adView.Destroy(); _adView = null; } } ```
Security
- Security scanPassed, 95 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-banner/SKILL.md
Popularity
- 7-day trend score
- 5
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/foam-party/godot-admob-banner)