admanagekit-mcp-server 1.2.0 → 1.2.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/content/README.md +18 -9
- package/content/docs/AD_LOADING_STRATEGIES.md +34 -3
- package/content/docs/APP_PURCHASE_GUIDE.md +18 -0
- package/content/docs/COMPOSE_INTEGRATION.md +79 -5
- package/content/docs/NATIVE_AD_PRELOADING.md +5 -2
- package/content/docs/NATIVE_TEMPLATE_VIEW.md +7 -3
- package/content/docs/release-notes/RELEASE_NOTES_v4.4.1.md +110 -0
- package/content/docs/release-notes/RELEASE_NOTES_v4.4.2.md +121 -0
- package/content/docs/release-notes/RELEASE_NOTES_v4.4.3.md +121 -0
- package/content/wiki/Ad-Loading-Strategies.md +26 -8
- package/content/wiki/App-Open-Ads.md +5 -5
- package/content/wiki/Banner-Ads.md +4 -4
- package/content/wiki/Billing-Integration.md +20 -2
- package/content/wiki/Configuration.md +25 -1
- package/content/wiki/Home.md +70 -18
- package/content/wiki/Interstitial-Ads.md +9 -6
- package/content/wiki/Jetpack-Compose.md +26 -5
- package/content/wiki/Multi-Provider-Waterfall.md +4 -4
- package/content/wiki/NativeAdManager.md +38 -9
- package/content/wiki/Yandex-Integration.md +3 -3
- package/package.json +1 -1
|
@@ -1,26 +1,26 @@
|
|
|
1
|
-
# Native Ads - AdManageKit
|
|
1
|
+
# Native Ads - AdManageKit v4.4.3
|
|
2
2
|
|
|
3
3
|
## Overview
|
|
4
4
|
|
|
5
5
|
AdManageKit provides comprehensive native ad support with caching, multiple formats, and the new `NativeTemplateView` (v2.6.0+). Native ads blend seamlessly with your app's content while maximizing engagement.
|
|
6
6
|
|
|
7
|
-
**Library Version**:
|
|
7
|
+
**Library Version**: v4.4.3
|
|
8
8
|
|
|
9
9
|
## Features
|
|
10
10
|
|
|
11
|
-
- **Multiple Formats**: Small, Medium, Large, and
|
|
11
|
+
- **Multiple Formats**: Small, Medium, Large, and 38 template styles
|
|
12
12
|
- **Smart Caching**: Per-unit caching with 1-hour expiration
|
|
13
|
-
- **Loading Strategies**: ON_DEMAND, ONLY_CACHE, HYBRID
|
|
13
|
+
- **Loading Strategies**: ON_DEMAND, ONLY_CACHE, HYBRID, FRESH_WITH_CACHE_FALLBACK
|
|
14
14
|
- **Shimmer Loading**: Beautiful loading placeholders
|
|
15
|
-
- **NativeTemplateView**: Unified component with
|
|
15
|
+
- **NativeTemplateView**: Unified component with 38 templates (v2.6.0+)
|
|
16
16
|
- **Video Support**: All templates support video ads
|
|
17
17
|
|
|
18
18
|
## Installation
|
|
19
19
|
|
|
20
20
|
```groovy
|
|
21
21
|
dependencies {
|
|
22
|
-
implementation 'com.github.i2hammad.AdManageKit:ad-manage-kit:
|
|
23
|
-
implementation 'com.github.i2hammad.AdManageKit:ad-manage-kit-core:
|
|
22
|
+
implementation 'com.github.i2hammad.AdManageKit:ad-manage-kit:v4.4.3'
|
|
23
|
+
implementation 'com.github.i2hammad.AdManageKit:ad-manage-kit-core:v4.4.3'
|
|
24
24
|
}
|
|
25
25
|
```
|
|
26
26
|
|
|
@@ -36,7 +36,7 @@ dependencies {
|
|
|
36
36
|
|
|
37
37
|
### NativeTemplateView (v2.6.0+)
|
|
38
38
|
|
|
39
|
-
|
|
39
|
+
38 template styles in one unified component. A selection:
|
|
40
40
|
|
|
41
41
|
| Template | Best For |
|
|
42
42
|
|----------|----------|
|
|
@@ -49,6 +49,34 @@ dependencies {
|
|
|
49
49
|
| `video_small/medium/large` | Video content |
|
|
50
50
|
| `video_square/vertical/fullscreen` | Social feeds |
|
|
51
51
|
| `featured`, `grid_card`, `overlay_dark`, `story_style` | Various layouts |
|
|
52
|
+
| `app_store`, `social_feed`, `gradient_card`, `spotlight` | Themed placements |
|
|
53
|
+
| `flat_*` family (10 styles) | Flat/minimal design systems |
|
|
54
|
+
|
|
55
|
+
See [`attrs.xml`](https://github.com/i2hammad/AdManageKit/blob/main/AdManageKit/src/main/res/values/attrs.xml) for the full `adTemplate` enum.
|
|
56
|
+
|
|
57
|
+
### Custom Templates (v4.3.0+)
|
|
58
|
+
|
|
59
|
+
If none of the 38 presets fit, supply your own layout. The root must be a Next-Gen SDK `NativeAdView` reusing the standard asset ids (`ad_headline`, `ad_body`, `ad_call_to_action`, `ad_app_icon`, `ad_advertiser`, `ad_media`).
|
|
60
|
+
|
|
61
|
+
```kotlin
|
|
62
|
+
nativeTemplateView.setCustomTemplate(
|
|
63
|
+
layoutResId = R.layout.my_native_ad,
|
|
64
|
+
shimmerResId = R.layout.my_shimmer, // optional
|
|
65
|
+
sizeHint = NativeAdSize.MEDIUM // optional, default MEDIUM
|
|
66
|
+
)
|
|
67
|
+
```
|
|
68
|
+
|
|
69
|
+
Or in XML via `app:customAdLayout` / `app:customAdShimmerLayout`, or `customLayoutResId` on `NativeTemplateCompose`.
|
|
70
|
+
|
|
71
|
+
### Media Aspect Ratio (v4.3.3+)
|
|
72
|
+
|
|
73
|
+
Every native request carries a media aspect-ratio hint matched to the template's `MediaView` slot. Override it globally with `AdManageKitConfig.defaultNativeMediaAspect`, or per view:
|
|
74
|
+
|
|
75
|
+
```kotlin
|
|
76
|
+
nativeTemplateView.setMediaAspect(NativeMediaAspect.LANDSCAPE)
|
|
77
|
+
```
|
|
78
|
+
|
|
79
|
+
Values: `UNSPECIFIED`, `ANY` (default), `LANDSCAPE`, `PORTRAIT`, `SQUARE`.
|
|
52
80
|
|
|
53
81
|
## Usage
|
|
54
82
|
|
|
@@ -142,6 +170,7 @@ val cachedAd = NativeAdManager.getCachedNativeAd("ad-unit-id")
|
|
|
142
170
|
| ON_DEMAND | Show shimmer, fetch fresh ad |
|
|
143
171
|
| ONLY_CACHE | Show cached or hide container |
|
|
144
172
|
| HYBRID | Show cached if ready, fetch with shimmer otherwise |
|
|
173
|
+
| FRESH_WITH_CACHE_FALLBACK | Fetch fresh, fall back to cache if the load fails |
|
|
145
174
|
|
|
146
175
|
```kotlin
|
|
147
176
|
// Global strategy
|
|
@@ -201,7 +230,7 @@ Load → Check cache →
|
|
|
201
230
|
|
|
202
231
|
## Best Practices
|
|
203
232
|
|
|
204
|
-
1. **Use NativeTemplateView** - Unified API with
|
|
233
|
+
1. **Use NativeTemplateView** - Unified API with 38 templates
|
|
205
234
|
2. **Enable Caching** - Improves load times and reduces requests
|
|
206
235
|
3. **Use HYBRID Strategy** - Best balance for most cases
|
|
207
236
|
4. **Clear on Destroy** - Call `clearAllCachedAds()` in `onDestroy()`
|
|
@@ -10,9 +10,9 @@ The `admanagekit-yandex` module provides Yandex Ads SDK providers for the multi-
|
|
|
10
10
|
|
|
11
11
|
```groovy
|
|
12
12
|
dependencies {
|
|
13
|
-
implementation "com.github.i2hammad.AdManageKit:ad-manage-kit:
|
|
14
|
-
implementation "com.github.i2hammad.AdManageKit:ad-manage-kit-core:
|
|
15
|
-
implementation "com.github.i2hammad.AdManageKit:ad-manage-kit-yandex:
|
|
13
|
+
implementation "com.github.i2hammad.AdManageKit:ad-manage-kit:v4.4.3"
|
|
14
|
+
implementation "com.github.i2hammad.AdManageKit:ad-manage-kit-core:v4.4.3"
|
|
15
|
+
implementation "com.github.i2hammad.AdManageKit:ad-manage-kit-yandex:v4.4.3"
|
|
16
16
|
}
|
|
17
17
|
```
|
|
18
18
|
|