Skip to content

Commit d7e3c69

Browse files
Location precision details. (prebid#6351)
1 parent 0fd5da3 commit d7e3c69

2 files changed

Lines changed: 20 additions & 0 deletions

File tree

prebid-mobile/pbm-api/android/pbm-targeting-android.md

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -795,6 +795,25 @@ Parameters:
795795
| latitude | required | double | The device latitude. | 40.71 |
796796
| longitude | required | double | The device longitude. | 74.01 |
797797
798+
### setLocationDecimalPrecision()
799+
800+
Sets the decimal precision for location coordinates (latitude/longitude) in geo-targeting. This helps control the precision of location data sent in ad requests for privacy purposes.
801+
802+
Signature:
803+
804+
```kotlin
805+
void setLocationDecimalPrecision(Int? precision)
806+
```
807+
808+
Parameters:
809+
810+
{: .table .table-bordered .table-striped }
811+
| Parameter | Scope | Type | Description | Example |
812+
| --- | --- | --- | --- | --- |
813+
| precision | optional | integer | Number of decimal places to keep, or null for no limit. Values outside the 0-6 range will be clamped to valid range. Default is `null`| 2 |
814+
815+
Related function: getLocationDecimalPrecision().
816+
798817
---
799818
800819
## Arbitrary OpenRTB

prebid-mobile/pbm-api/ios/pbm-targeting-ios.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -541,6 +541,7 @@ Note that several of the properties noted here are also mentioned above for othe
541541
| subjectToGDPR | discouraged | boolean | ? | Defines whether this request is in-scope for European privacy regulations. See [above](/prebid-mobile/pbm-api/ios/pbm-targeting-ios#gdpr--tcf-eu) for more information. | `true` |
542542
| gdprConsentString | discouraged | string | both | See the [GDPR settings](/prebid-mobile/pbm-api/ios/pbm-targeting-ios#gdpr--tcf-eu) section above. | |
543543
| purposeConsents | discouraged | string | both | See the [GDPR settings](/prebid-mobile/pbm-api/ios/pbm-targeting-ios#gdpr--tcf-eu) section above. | |
544+
| locationPrecision | optional | NSNumber | both | Number of decimal places to use when rounding latitude/longitude for device geolocation. Default is nil. (full precision) | `NSNumber(value: 2)` |
544545

545546
### Targeting Class Methods
546547

0 commit comments

Comments
 (0)