首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >InMobi iOS Ads定位精度的确定

InMobi iOS Ads定位精度的确定
EN

Stack Overflow用户
提问于 2014-06-05 09:45:55
回答 1查看 139关注 0票数 0

我正在使用InMobi SDK为iOS提供一些本地广告。在他们的文档中,他们有以下内容,用于设置广告的位置,以提供更相关的数据。

它应该包含纬度、经度和精度,用逗号隔开。如果需要将请求考虑到地理目标,则需要此参数。如果正确的精度值不可用,则精度值应为"0“。这里,精度是所提供的长时间数据的径向精度.有关如何确定准确度值的更多信息在这里列出。 degrees

为了获得用户位置,我使用核心位置和kCLLocationAccuracyBest参数。如何根据这个参数计算/知道如何发送InMobi的定位精度?

InMobi医生参考文献- id=12&id=29129146&parentid=22884296

EN

回答 1

Stack Overflow用户

回答已采纳

发布于 2014-06-05 10:59:51

https://www.inmobi.com/support/art/26555436/22465648/api-2-0-integration-guidelines/#geo

accu (整数)是来自父对象(JSON) geo的参数。

ie:

代码语言:javascript
复制
//when using CoreLocation to fetch the coordinate
CLLocationManager *mgr = [[CLLocationManager alloc] init];
CLLocation *loc = mgr.location;
[InMobi setLocationWithLatitude:loc.coordinate.latitude longitude:loc.coordinate.longitude accuracy:loc.horizontalAccuracy];
[locationMgr startUpdatingLocation];

代码语言:javascript
复制
InMobi setLocationWithLatitude:self.delegate.location.coordinate.latitude
longitude:self.delegate.location.coordinate.longitude
accuracy:self.delegate.location.horizontalAccuracy
票数 0
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/24056852

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档