engremran07/gsmvault/ads-network-integration

Claude Code and agent skill by engremran07/gsmvault

Trust tier 3
  • community
Source check pending

Checking that the SKILL.md file is still in the repository.

Ad network integration: 18 network types, provider config. Use when: adding new ad networks, configuring AdNetwork models, waterfall priority setup.

Install

npx vskill@latest install engremran07/gsmvault/ads-network-integration

SKILL.md

The same SKILL.md was published earlier as engremran07/gsmvault/ads-network-integration.

Ad Network Integration

When to Use

  • Adding a new ad network provider (AdSense, Media.net, Ezoic, etc.)
  • Configuring AdNetwork model instances with credentials
  • Setting up waterfall priority across multiple networks
  • Injecting network-specific <head> or <body> scripts

Rules

  • All ad networks live in apps.ads.models.AdNetwork — 18 NETWORK_TYPES
  • Credentials stored in model fields (api_key, api_secret, publisher_id) — never in code
  • Priority field controls waterfall order: higher number = tried first
  • Each network declares capabilities: supports_display, supports_native, supports_video, supports_rewarded
  • Network scripts injected via header_script / body_script — sanitized with sanitize_ad_code()

Patterns

Creating a Network Provider
python
# apps/ads/services.py
from apps.ads.models import AdNetwork
def register_network(
*, name: str, network_type: str, publisher_id: str, priority: int = 10
) -> AdNetwork:
return AdNetwork.objects.create(
name=name,
network_type=network_type,
publisher_id=publisher_id,
priority=priority,
is_enabled=False, # Always start disabled
)
Waterfall Selection
python
def get_active_networks(*, ad_format: str = "display") -> QuerySet[AdNetwork]:
"""Return enabled networks supporting the requested format, ordered by priority."""
filters = {"is_enabled": True, "is_deleted": False}
if ad_format == "video":
filters["supports_video"] = True
elif ad_format == "native":
filters["supports_native"] = True
elif ad_format == "rewarded":
filters["supports_rewarded"] = True
return AdNetwork.objects.filter(**filters).order_by("-priority")
Injecting Network Scripts in Templates
html
{# templates/base/base.html — inside <head> #}
{% for network in active_networks %}
{% if network.header_script %}
{{ network.header_script|safe }}
{% endif %}
{% endfor %}

Anti-Patterns

  • Hardcoding network IDs or publisher keys in templates or settings
  • Enabling a network before verifying credentials with last_sync_at
  • Ignoring revenue_share_percent when comparing network performance
  • Importing ad network config in non-ads apps — use EventBus

Quality Gate

powershell
& .\.venv\Scripts\python.exe -m ruff check . --fix
& .\.venv\Scripts\python.exe -m ruff format .
& .\.venv\Scripts\python.exe manage.py check --settings=app.settings_dev

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

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
vskill VERIFIED badge
[![vskill VERIFIED](https://verified-skill.com/api/v1/skills/engremran07/gsmvault/ads-network-integration/badge)](https://verified-skill.com/skills/engremran07/gsmvault/ads-network-integration)

Something wrong with this skill or its page? Tell us.