# 現在のユーザーの場所に基づいて、社内広告を提供する方法はありますか？

**URL:** <https://meta.discourse.org/t/is-there-a-way-to-serve-in-house-ads-based-on-the-current-users-location/280263>\
**Category:** Development\
**Tags:** rest-api\
**Created:** [2023 年 9 月 27 日午前 6:39 UTC](https://meta.discourse.org/t/is-there-a-way-to-serve-in-house-ads-based-on-the-current-users-location/280263 "2023-09-27T06:39:32Z")\
**Posts on this page:** 1\
**Showing post:** 6

<div class="post-metadata">

**Author:** ![hyphalos](https://avatars.discourse-cdn.com/v4/letter/h/3ab097/32.png) [@hyphalos](https://meta.discourse.org/u/hyphalos)\
**Post date:** [2023 年 9 月 29 日午前 4:00 UTC](https://meta.discourse.org/t/is-there-a-way-to-serve-in-house-ads-based-on-the-current-users-location/280263/6 "2023-09-29T04:00:50Z")

</div>

こんにちは、@Canapin さん。

MaxMind のライセンスを無料で取得でき、API `https://your-discourse.com/admin/users/ip-info.json?ip={user_ip} .` が正常に動作しました。ありがとうございます！

追加の質問があります。IP を取得して上記の API を呼び出すにはユーザー ID が必要ですが、匿名ユーザーについてはどうでしょうか？彼らにも広告を配信したい場合、ユーザー ID がない場合はどうなりますか？それでも可能でしょうか、それともこれはサインインしているユーザー専用ですか？

---

_[View the full topic](https://meta.discourse.org/t/is-there-a-way-to-serve-in-house-ads-based-on-the-current-users-location/280263)._
