engremran07/gsmvault/ads-consent-gating

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.

Consent-gated ad serving: GDPR compliance. Use when: checking consent before serving personalized ads, implementing consent-aware ad loading, GDPR ad compliance.

Install

npx vskill@latest install engremran07/gsmvault/ads-consent-gating

SKILL.md

The same SKILL.md was published earlier as engremran07/gsmvault/ads-consent-gating.

Consent-Gated Ad Serving

When to Use

  • Checking user consent before serving personalized ads
  • Loading ads conditionally based on ads consent scope
  • GDPR/ePrivacy directive compliance for ad networks
  • Falling back to contextual (non-personalized) ads when consent denied

Rules

  • apps.consent manages consent scopes: functional, analytics, seo, ads
  • Ads consent scope = ads — check before loading any ad network scripts
  • If consent denied: serve contextual ads only (no tracking, no cookies)
  • If consent granted: load full personalized ad network scripts
  • Use @consent_required("ads") decorator on ad-serving API endpoints
  • Consent check happens BEFORE network script injection in templates

Patterns

Template-Level Consent Check
html
{# templates/base/base.html — conditional ad network loading #}
{% load consent_tags %}
{% if consent_granted "ads" %}
{# Full personalized ad scripts #}
{% for network in active_networks %}
{{ network.header_script|safe }}
{% endfor %}
{% else %}
{# Contextual-only fallback #}
<script>window.__AD_MODE__ = 'contextual';</script>
{% endif %}
Service-Level Consent Check
python
# apps/ads/services/rotation.py
from apps.consent.utils import check_consent
def select_ad_for_placement(*, request, placement: AdPlacement):
"""Select ad respecting consent status."""
has_ads_consent = check_consent(request, "ads")
if has_ads_consent:
# Full personalized rotation with targeting
return get_targeted_creative(placement=placement, request=request)
else:
# Contextual only — no user data, no cookies
return get_contextual_creative(placement=placement)
API Endpoint with Consent Guard
python
# apps/ads/api.py
from apps.consent.decorators import consent_required
@consent_required("ads")
def serve_personalized_ad(request, slot_id: str):
"""Only serves personalized ads if consent granted."""
...

Anti-Patterns

  • Loading ad network scripts before checking consent — GDPR violation
  • Ignoring consent for "first-party" ads — still requires consent if tracking
  • No contextual fallback — losing revenue when consent is denied
  • Checking consent client-side only — must verify server-side too

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-consent-gating/badge)](https://verified-skill.com/skills/engremran07/gsmvault/ads-consent-gating)

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