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.
@@ -1,26 +1,26 @@
1
- # Native Ads - AdManageKit v2.8.0
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**: v2.8.0
7
+ **Library Version**: v4.4.3
8
8
 
9
9
  ## Features
10
10
 
11
- - **Multiple Formats**: Small, Medium, Large, and 17+ template styles
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 17 templates (v2.6.0+)
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:v2.8.0'
23
- implementation 'com.github.i2hammad.AdManageKit:ad-manage-kit-core:v2.8.0'
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
- 17 template styles in one unified component:
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 17 templates
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:VERSION"
14
- implementation "com.github.i2hammad.AdManageKit:ad-manage-kit-core:VERSION"
15
- implementation "com.github.i2hammad.AdManageKit:ad-manage-kit-yandex:VERSION"
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
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "admanagekit-mcp-server",
3
- "version": "1.2.0",
3
+ "version": "1.2.2",
4
4
  "description": "MCP server for AdManageKit Android library - documentation lookup and code generation",
5
5
  "main": "dist/index.js",
6
6
  "bin": {