我正在使用InMobi SDK为iOS提供一些本地广告。在他们的文档中,他们有以下内容,用于设置广告的位置,以提供更相关的数据。
它应该包含纬度、经度和精度,用逗号隔开。如果需要将请求考虑到地理目标,则需要此参数。如果正确的精度值不可用,则精度值应为"0“。这里,精度是所提供的长时间数据的径向精度.有关如何确定准确度值的更多信息在这里列出。 degrees
为了获得用户位置,我使用核心位置和kCLLocationAccuracyBest参数。如何根据这个参数计算/知道如何发送InMobi的定位精度?
InMobi医生参考文献- id=12&id=29129146&parentid=22884296
发布于 2014-06-05 10:59:51
https://www.inmobi.com/support/art/26555436/22465648/api-2-0-integration-guidelines/#geo
accu (整数)是来自父对象(JSON) geo的参数。
ie:
//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];或
InMobi setLocationWithLatitude:self.delegate.location.coordinate.latitude
longitude:self.delegate.location.coordinate.longitude
accuracy:self.delegate.location.horizontalAccuracyhttps://stackoverflow.com/questions/24056852
复制相似问题