Closed m6246 closed 7 years ago
@m6246 How this is related to AdMob?
Hi Ratson, is is used for targeting purposes.
While there is native code to set it from the config, it seems impossible to hand it over from the javascript side.
Also, the docs don't mention the location option https://ratson.github.io/cordova-plugin-admob-free/function/index.html#static-function-setOptions https://ratson.github.io/cordova-plugin-admob-free/typedef/index.html#static-typedef-BannerConfig
I'm not into iOS programming so not sure what is needed there, but I guess being able to provide the javascript config with a config.location = {lat, long} would enable both native backends to construct native location objects?
Actually.. I just found about this, doh
So this basically answers my question. Still worth adding to the docs though ;)
Documentation added, see https://ratson.github.io/cordova-plugin-admob-free/typedef/index.html#static-typedef-BaseConfig
How would one provide config.location? I'm not sure about iOS but for Android this is a native object (https://developer.android.com/reference/android/location/Location.html)