uniapp-ad
$
npx mdskill add partme-ai/full-stack-skills/uniapp-adIntegrates uni-ad monetization into uni-app applications for banner, interstitial, rewarded video, and native ads with event handling.
- Helps add ad monetization and configure ad types like banner or rewarded video in uni-app projects.
- Depends on uni-ad API and includes examples for different ad types and integration scenarios.
- Decides based on user requests for specific ad types, loading relevant examples and API references.
- Presents results through example files, guides, and API documentation for step-by-step integration.
SKILL.md
.github/skills/uniapp-adView on GitHub ↗
--- name: uniapp-ad description: "Integrates uni-ad monetization into uni-app applications including banner, interstitial, rewarded video, and native ad types with event handling and placement configuration. Use when the user needs to add ad monetization, configure ad types, handle ad load/show/close/error events, or optimize ad revenue in a uni-app project." license: Complete terms in LICENSE.txt --- ## When to use this skill Use this skill whenever the user wants to: - Integrate ads into uni-app - Implement ad monetization - Configure different ad types (banner, interstitial, rewarded video, etc.) - Handle ad events (load, show, close, error) - Optimize ad revenue - Set up ad placement and timing - Handle ad policies and compliance ## How to use this skill To integrate ads: 1. **Identify the ad type** from the user's request: - Banner ads → Use banner examples - Interstitial ads → Use interstitial examples - Rewarded video → Use rewarded video examples - Native ads → Use native ad examples 2. **Load the appropriate example file** from the `examples/` directory: - `examples/guide/` - Ad integration guide - `examples/ad-types/` - Different ad type examples - `examples/integration/` - Integration examples 3. **Load the appropriate API reference** from the `api/` directory: - `api/ad-api.md` - uni-ad API reference 4. **Follow the specific instructions** in those files for integration ## Examples and Templates ### Examples Located in `examples/`: - **guide/** - Ad integration guide and setup - **ad-types/** - Different ad type examples (banner, interstitial, rewarded video, etc.) - **integration/** - Integration examples and best practices ### API Reference Located in `api/`: - **ad-api.md** - Complete uni-ad API reference ## Best Practices 1. **User experience**: Don't interrupt user experience with excessive ads 2. **Ad placement**: Place ads strategically for maximum revenue 3. **Loading**: Handle ad loading states properly 4. **Error handling**: Implement proper error handling for ad failures 5. **Compliance**: Follow ad policies and regulations ## Resources - **Official Documentation**: https://uniapp.dcloud.net.cn/uni-ad/ ## Keywords uni-ad, 广告变现, banner广告, 激励视频, 插屏广告, ad monetization, ad integration
More from partme-ai/full-stack-skills
- adobe-xd"Guides creation of UI/UX designs, interactive prototypes, reusable components, and design specs in Adobe XD. Use when the user asks about Adobe XD artboards, prototype links, repeat grids, component states, design tokens export, or developer handoff."
- angular"Provides comprehensive guidance for Angular framework including components, modules, services, dependency injection, routing, forms, and TypeScript integration. Use when the user asks about Angular, needs to create Angular applications, implement Angular components, or work with Angular features."
- ansible"Provides comprehensive guidance for Ansible automation including playbooks, roles, inventory, and module usage. Use when the user asks about Ansible, needs to automate IT tasks, create Ansible playbooks, or manage infrastructure with Ansible."
- ant-design-mini"Builds mini-program UIs with Ant Design Mini components for Alipay and WeChat mini-programs. Covers Button, Form, List, Modal, Tabs, NavBar, and 60+ components with theme customization and CSS variable theming. Use when the user needs to create mini-program interfaces with Ant Design Mini, configure themes, or implement mini-program-specific UI patterns."
- ant-design-mobile"Builds React mobile UIs with Ant Design Mobile (antd-mobile) components including Button, Form, List, Modal, Picker, Tabs, PullToRefresh, InfiniteScroll, and 50+ mobile-optimized components. Use when the user needs to create mobile-first React interfaces, implement mobile navigation, forms, or data display with Ant Design Mobile."
- ant-design-react"Builds enterprise React UIs with Ant Design (antd) including 60+ components (Button, Form, Table, Select, Modal, Message), design tokens, TypeScript support, and ConfigProvider theming. Use when the user needs to create React applications with Ant Design, build forms with validation, display data tables, or customize the Ant Design theme."
- ant-design-vueProvides comprehensive guidance for Ant Design Vue (AntDV) component library for Vue 3. Covers installation, usage, API reference, templates, and all component categories. Use when building enterprise-class UI with Vue 3 and Ant Design.
- api-doc-generator"Generate API documentation by scanning Controller classes, extracting endpoint URLs, HTTP methods, parameters, and response structures, then producing standardized docs from templates. Use when the user explicitly mentions generating API documentation, creating API docs, scanning interfaces, or documenting REST APIs. Do not trigger for generic documentation requests without explicit API mention."
- appium"Provides comprehensive guidance for Appium mobile testing including mobile app automation, element location, gestures, and cross-platform testing. Use when the user asks about Appium, needs to test mobile applications, automate mobile apps, or write Appium test scripts."
- ascii-ansi-colorizer"Add an ANSI color layer to existing ASCII/plain-text output (gradient/rainbow/highlights) with alignment-safe rules and a required no-color fallback. Use when the user wants to colorize terminal output, add rainbow effects to CLI text, or style ASCII art with ANSI colors."