admesh-ui-sdk 1.0.51 → 1.1.0

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.
@@ -2,6 +2,33 @@
2
2
 
3
3
  Complete guide for integrating AdMesh UI components into your application.
4
4
 
5
+ ## Visitor country
6
+
7
+ Browser and extension calls send `X-AdMesh-Transport: browser`. AdMesh detects
8
+ the visitor's country at the API from a recognized Cloudflare proxy or a bounded
9
+ public-IP lookup. A saved `location.countryCode` is only a hint; fresh browser
10
+ detection takes precedence. Missing or invalid country never defaults to US,
11
+ and language/locale does not determine country.
12
+
13
+ Server execution sends `X-AdMesh-Transport: server`. Supply the visitor country
14
+ your backend detected when receiving the browser request as
15
+ `location: { countryCode: 'IN' }`. The Node and Python Weave SDKs use their `geo` option for
16
+ this value. AdMesh does not geolocate your server as though it were the visitor.
17
+ These values are recorded as `platform_reported`, not independently verified.
18
+ Flutter calls identify browser or native-device transport automatically.
19
+
20
+ Country remains unknown when detection fails or a proxy chain cannot be
21
+ recognized. Unknown visitors are excluded from country-restricted Brand Agents;
22
+ explicit Global targeting remains eligible. IP location estimates the network's
23
+ country and can reflect a VPN or corporate gateway rather than physical location.
24
+
25
+ The API records `country`, `country_source`, and `country_resolution` in query,
26
+ auction, and recommendation records. SDK upgrades must be released together
27
+ with the backend country resolver. Do not configure ASGI to blindly trust
28
+ forwarded headers from arbitrary public clients. The resolver recognizes direct
29
+ Cloudflare connections and Cloud Run ingress whose last forwarded hop is
30
+ Cloudflare; other proxy chains require verification before enabling detection.
31
+
5
32
  ## 🚀 Getting Started
6
33
 
7
34
  ### Step 1: Install the Package