IP Data for Advertising and Marketing, From Bid to Report

Maaz ur Rehman
By Maaz ur Rehman IP Security & Threat Intelligence Engineer
Posted on December 1, 2026 | 20 min read
IP Data for Advertising and Marketing, From Bid to Report
Back to All Guides

IP data for advertising is what an ad stack can learn from the IP address on each request: where its network sits, down to the US TV market (DMA); whether it belongs to a bot, a VPN, or a data center; which company or network holds it; its local time; and, read with the user agent, the device. Most ad decisions need only two or three of these, and each one has a limit on how precise it can be.

Two requests show why the limits matter. An IPGeolocation.io lookup on 128.6.0.1 places it in Piscataway, New Jersey, inside the New York DMA (501), on Rutgers University's network, with no risk signals: the request is eligible for a campaign targeting the New York TV market. A lookup on 2.56.189.177 returns a DMA too (Dallas, 623), along with VPN and proxy flags that make the DMA meaningless for whoever is behind it. Most of the work is telling those two cases apart, whether the address arrives in a bid request, on a landing page, or in a log file. For a refresher on where the location itself comes from, see how IP geolocation works.


TL;DR

IP data for advertising does three jobs well: it places a request at the country, region, or DMA level; it flags traffic that needs separate handling, such as declared crawlers, proxies, and data-center hosts; and it names the network or company behind an address. It doesn't identify a person, and city-level location holds only when the lookup's accuracy radius is small.

  • Target a city only when the accuracy radius is under about 15 km and the confidence isn't low; otherwise widen to the DMA or the region.
  • Use IP signals to decide how precisely to target a request and which events need review. Exclude declared crawlers and known invalid traffic from audience metrics. A VPN, relay, or corporate gateway can make a visitor's location uncertain while the impression stays eligible for measurement.
  • A truncated address keeps range-level data, such as the network and often the city, but can lose flags that belong to one address: a VPN exit lost its VPN flag when truncated.
  • Google's EU user consent policy covers IP addresses used for ads measurement and personalization, and Google said it would begin IP-based ads measurement and personalization in the EEA, the UK, and Switzerland in August 2026.

Where IP data enters an ad request

When a page or app asks for an ad, the exchange or SSP builds a bid request, and the OpenRTB 2.6 specification gives the IP address two fields in its device object: ip, the "IPv4 address closest to device", and ipv6. The same object holds a geo object for location. When that location came from an IP lookup, the exchange sets geo.type to 2 and can identify the lookup service, by code, in geo.ipservice.

One geo field trips up planners. geo.metro is a Google metro code, which the specification itself calls "similar to but not exactly Nielsen DMAs", so a campaign planned in Nielsen DMAs needs a DMA code from a lookup instead.

Many exchanges truncate the address before buyers see it, zeroing the last octet of an IPv4 address or cutting IPv6 to its first 48 bits. Truncation keeps what's assigned to the range and can lose what's assigned to a single address, as three pairs of lookups show. The data-center host 107.161.145.197 and its truncated form 107.161.145.0 return the same city (Philadelphia), DMA (504), and hosting network. The privacy relay exit 172.225.7.129 sits in Philadelphia, but 172.225.7.0 sits in New York, DMA 501, still flagged as a relay, because neighboring relay addresses are placed in different cities. And the VPN exit 2.56.189.177 keeps Dallas and DMA 623 when truncated to 2.56.189.0, but loses its VPN and proxy flags, because those flags belong to that one address. If you only ever see truncated addresses, trust the network and the rough location, and don't read a missing flag as a clean result.

Before choosing how to locate a bid request, check the source and precision of device.geo: its type says where the location came from and its accuracy how far to trust it, and the specification doesn't require device.ip at all. On Google's Authorized Buyers inventory, Google recommends the supplied lat, lon, and accuracy fields for custom geographic lookups and advises against using device.ip, because the address may be truncated or redacted. When a full address is available and you're permitted to use it, a separate lookup adds what geo doesn't carry: a US DMA code, network ownership, and security signals.

Speed decides where the lookup runs. An auction leaves too little time for a network call on every bid request, so a bidder runs the same logic against a local copy of the data, such as the MMDB files of our location and security databases, and keeps API calls for landing pages, analytics, and log enrichment. Wherever it runs, the lookup needs the visitor's address and not your CDN's or load balancer's; the guide to reading the visitor's real IP address behind a proxy or CDN covers which header to trust in each setup.

Diagram: an ad request flows from page to exchange to bid request to DSP to report, with IP data added twice.
The exchange and the DSP can each look up the address; the bid request carries the result.

How precise IP geotargeting is, level by level

IP geotargeting looks up the address when the request arrives and matches the result against the campaign's locations. The result is where the network sits, usually close to the person and sometimes not, so each campaign has to target at a level the lookup supports.

Level Good For Watch For
Country Consent flow, licensing, currency VPN exits abroad
Region or state Regional offers and reports Border areas
DMA (US only) TV-market campaigns and tests Empty outside the US
City City campaigns A large radius or low confidence
ZIP or postal code Reports and analysis Too narrow to target by IP
A specific spot Nothing from IP data Needs device location

Country is the level IP data gets right most often, and every consent and licensing decision needs it. Region and DMA usually hold up on fixed broadband and office connections, where addresses stay put. City is where the accuracy fields matter: an IPGeolocation.io response can carry location.accuracy_radius, in kilometers, and location.confidence, rated high, medium, or low. Our rule of thumb is to target a city only when the radius is under about 15 km and the confidence isn't low, and to widen to the DMA or region otherwise. Tune that cutoff against a ground truth you already hold, such as the shipping or billing addresses on orders.

The Rutgers address passes that test. Its lookup returns ZIP 08854, state US-NJ, and DMA 501, the New York market, with a radius of about 11 km and medium confidence. The request matches both a New Jersey campaign and a New York TV-market campaign, because TV markets don't follow state borders. The ZIP code belongs in reports, where errors average out across many visits; used as a single target, every misplaced lookup becomes a wasted impression.

Mobile connections are where precision drops. Carriers route traffic through regional gateways, so a phone's address can sit far from the phone. No IP data provider can see past a carrier's gateway; what a lookup can do is say how sure it is, and the radius and confidence fields are how IPGeolocation.io says it. Our help article on why an IP location can look wrong walks through each case.

Ladder of location levels from country to a specific spot, beside an 11 km IP radius and a geofence a few hundred meters wide.
Target at the level the lookup's radius supports; a geofence needs the device's own location.

1. DMA targeting from an IP address

TV plans and many market tests are drawn in Nielsen DMAs, so a campaign that pairs TV with digital needs the same geography on both sides. A lookup returns the Nielsen DMA code in location.dma_code for US addresses and leaves the field empty elsewhere. Our tutorial on how to get a DMA code from an IP address has the request, the response, and code that counts visits by market.


2. Why IP data can't draw a geofence

A geofence around a store or a stadium is a few hundred meters across, and checking whether a device is inside it takes the device's own GPS or Wi-Fi location, shared with the user's permission. The Piscataway radius of about 11 km is close enough for a city and far too wide for a store. The comparison of IP geolocation vs GPS and browser location covers when to use each and how to combine them.


Five kinds of address that mislead targeting and reports

Some addresses return a perfectly good location that says little about the person behind the request. Five kinds turn up again and again, and each needs its own treatment in targeting and in reports. A flag describes the address, not the impression, so targeting uses only the location it can trust, and reports set declared crawlers apart and send uncertain signals to review.

Address Type In Targeting In Reports
Data-center host Ignore city and DMA Review
Declared crawler Don't target, don't block Report apart
VPN exit Ignore city and DMA Eligible, location unknown
Corporate gateway Ignore city and company Eligible, location unknown
Privacy relay Keep, at region level Eligible, region only

Data-center traffic is the one case with an industry rule behind it, and the rule is narrower than dropping every server. The Media Rating Council's invalid traffic standard counts only known invalid data-center traffic as general invalid traffic (GIVT), the kind routine list-based filtering should catch, and asks measurement vendors to start with addresses from the three largest hosting companies: Amazon AWS, Google, and Microsoft. It leaves out routing artifacts of legitimate users and legitimate browsing from virtual machines, and the last three rows of the table are routing of that kind: people who reach you through hosting networks. So a hosting flag on its own sends an event to review, and the event leaves your measured impressions only when a known-invalid list or other evidence from the event supports it. The location needs the same care. 107.161.145.197 resolves to Philadelphia, DMA 504, on LightWave Networks' hosting network with is_cloud_provider true, so its city and DMA describe a server room, not whoever is using it.

Ad verification crawlers are visitors you want, as long as nobody counts them. They fetch landing pages and placements to check what an advertiser is paying for, so blocking one can break those checks. Our data marks 66.249.87.1, on Google's network, with bot_type ad_verification, bot_operator_name Google, and is_known_good_bot true. The MRC standard encourages reporting known, declared crawlers as their own subset of GIVT, and that's what we'd do: let them through, keep them out of audiences and human counts, and report them apart. Bot activity without a declaration (is_bot true and is_known_good_bot false) goes to review: the flag says what the address has been seen doing, and a shared address can carry people too. The full list of bot_type values is in the security fields reference.

Treat a VPN flag as a missing location, not as invalid traffic. A VPN exit sits wherever the VPN company rents servers, so its city and DMA are right for the address and tell you nothing about the user, who could be in another state or another country. Ignore the location for targeting, and keep the event eligible for measurement with its location recorded as unknown; VPN detection false positives covers the customers a blanket block turns away. Proxies are a different matter. The MRC standard lists invalid proxy traffic, from intermediaries that exist to manipulate traffic counts, as sophisticated invalid traffic (SIVT), and the Dallas address from the opening shows how the two overlap. Besides is_vpn, with vpn_provider_names "SurfShark VPN", it carries is_proxy and is_residential_proxy, and a threat score of 80, inside the high-risk band of our 0 to 100 scale. A visit like that goes to your invalid-traffic review: the flags alone don't show that this visit was manipulated, but they're reason enough to check it before it counts. The guide to how to read each risk signal explains every flag.

Corporate gateways put a whole workforce behind a few addresses. 87.58.66.106 is one: it resolves to Dubai, on Zscaler's network, with is_corporate_gateway true and the gateway type secure_web_gateway. The employees behind it can be wherever their company operates, and the company field names Zscaler rather than their employer, so neither the city nor the company is usable for targeting. The flag doesn't mark the visit as anonymous (is_anonymous stays false, and the gateway flag alone doesn't raise the threat score), which is why these visits stay eligible for measurement. Blocking the address would block everyone whose traffic leaves through it.

The relay exit at 172.225.7.129 shares the data-center host's city and DMA (Philadelphia, 504) and sits on Akamai's network, but it carries traffic from people's devices. Our data flags it with is_relay and relay_provider_name "Apple Relay", and marks it anonymous (is_anonymous true). We'd keep relay visits eligible for targeting and measurement, no finer than the region, because the exit is shared and, as the truncation test showed, neighboring relay addresses can sit in different cities. Our explainer on how iCloud Private Relay and Cloudflare WARP hide an address shows what each service changes.

Five IP lookups compared: a data center, a declared crawler, a VPN exit with proxy flags, a corporate gateway, and a privacy relay.
A flag describes the address, not the impression: crawlers are reported apart, hosting and proxy signals go to review, and VPN, gateway, and relay visits stay eligible.

IP targeting: what an address can and can't identify

IP targeting means serving ads to the households or companies behind a list of addresses, usually matched from postal or company records. Geotargeting only needs to know where a network sits; IP targeting assumes that one address stands for one household or one company over time, and the address supports that assumption far less often.

Home IP addresses change hands and get shared. Internet providers reassign them, mobile carriers put many subscribers behind one public address, and an IPv6 household holds a whole block of addresses rather than one. VPNs and privacy relays move the visible address somewhere else entirely. A household list starts drifting as soon as providers reassign its addresses, and the same limits apply on connected TV, where household matching by IP is common. Our position: treat a household match as a hint that needs consent and frequent refreshing, never as an identity.

Company targeting holds up better, on company networks. 17.0.0.10 returns Apple Inc., type BUSINESS, domain apple.com, because that range is Apple's own. An employee working from home shows up under their internet provider instead (91.128.103.196, on a Stockholm provider's network, returns Tele2 Sverige AB, type ISP), and behind a corporate gateway the company field names the security vendor. We'd count a visit toward a company only when the lookup shows no IP risk and its company type is BUSINESS, EDUCATION, or GOVERNMENT with a domain. The network's ASN organization can name someone else again, for reasons the guide on why the company and the ASN organization can differ explains, and the guide to identify website visitors by company builds the full rule.


Personalization, dayparting, and device context

For marketing teams, IP geolocation keeps working after the click, on the advertiser's own pages. Landing pages can switch language, offers, and currency by country, with a manual switch for travelers: see how to redirect visitors to localized pages and show prices in the visitor's local currency.

Dayparting runs on the visitor's clock, not the server's. A lookup's time_zone object carries the zone name and current_time, so a scheduler can send at 7 p.m. local time in both New York and Dallas, one hour apart on the server's clock. For VPN and gateway visits the time zone is the exit's, so treat it as unknown.

Device context comes from the user agent. A bid request already carries the device type in OpenRTB's device.devicetype; on your own pages and in logs there's no bid request, so the lookup can parse the visitor's User-Agent string instead. Its device types include "TV" and "Set-top box", the same ones the User Agent API returns, which separates connected-TV traffic from desktop and mobile in one report. Martech teams that work in a tag manager can push these fields into the data layer; here's how to add IP geolocation to Google Tag Manager.


One lookup per visit, in code

This script turns one lookup into the targeting, filtering, and timing decisions above, for a landing page, an analytics pipeline, or a log job; a bidder runs the same logic against a local database. It uses the official IPGeolocation.io Python library, which installs as ipgeolocationio (Python 3.10 or later) and imports as ipgeolocation, and it reads the key from IPGEOLOCATION_API_KEY.

import logging
import os
import sys

from ipgeolocation import (
    IpGeolocationClient,
    IpGeolocationClientConfig,
    IpGeolocationException,
    LocationConfidence,
    LookupIpGeolocationRequest,
)

log = logging.getLogger("ad_ip")

# One lookup per visit: location with DMA code and accuracy radius, security
# data, and the device parsed from the visitor's User-Agent string.
# These include modules need a paid-plan key (a free key gets HTTP 401). On paid
# plans, dma_code, geo_accuracy, and user_agent add no credits; security adds 2.
INCLUDE = ["dma_code", "geo_accuracy", "security", "user_agent"]
CITY_MAX_RADIUS_KM = 15.0  # example cutoff; tune it against order addresses you hold
LOCATED = ("city", "dma", "region", "country")


def target_level(location):
    """Return the narrowest location level this lookup supports."""
    if location is None or not location.country_code2:
        return "none"
    try:
        radius = float(location.accuracy_radius or "inf")
    except ValueError:
        radius = float("inf")
    confident = location.confidence in (LocationConfidence.HIGH, LocationConfidence.MEDIUM)
    if confident and radius <= CITY_MAX_RADIUS_KM:
        return "city"
    if location.dma_code:
        return "dma"  # US only; the field is empty elsewhere
    return "region" if location.state_code else "country"


def classify(data):
    """Decide how precisely to target one request and how to treat it in reports."""
    sec, loc = data.security, data.location
    if sec is None:
        # No security object came back: target on location, but the risk is unknown.
        return {"targeting": target_level(loc), "reports": "unknown"}
    if sec.is_bot and sec.is_known_good_bot:
        # Declared crawler (ad verification, search): let it in, keep it out of
        # audiences and human metrics, and report it separately.
        return {"targeting": "exclude", "reports": "crawler"}
    if sec.is_bot:
        # Bot activity seen on this address; a shared address can carry people too.
        return {"targeting": "none", "reports": "review (bot)"}
    if sec.is_proxy or sec.is_residential_proxy or sec.is_tor:
        # Possible invalid proxy traffic, which the flag alone doesn't prove.
        return {"targeting": "none", "reports": "review (proxy)"}
    if sec.is_corporate_gateway or sec.is_vpn:
        # The location (and, behind a gateway, the company) belongs to the exit.
        return {"targeting": "none", "reports": "eligible, location unknown"}
    if sec.is_relay:
        # Privacy relay exits are shared: target no finer than the region.
        level = target_level(loc)
        return {"targeting": "region" if level in ("city", "dma") else level,
                "reports": "eligible, region only"}
    if sec.is_cloud_provider or (data.asn is not None and data.asn.type == "HOSTING"):
        # A server's location. Exclude the event only when a known-invalid list
        # or other evidence from the event supports it.
        return {"targeting": "none", "reports": "review (hosting)"}
    # All flags false can also mean we hold no security data for this address.
    return {"targeting": target_level(loc), "reports": "no IP risk detected"}


def ad_profile(client, ip, user_agent):
    """Look up one visit's IP and return the fields an ad decision uses."""
    try:
        response = client.lookup_ip_geolocation(
            LookupIpGeolocationRequest(ip=ip, include=INCLUDE, user_agent=user_agent)
        )
    except IpGeolocationException as error:
        # Serve the ad untargeted rather than fail the request.
        log.warning("IP lookup failed: %s", type(error).__name__)
        return {"targeting": "none", "reports": "unknown"}
    data = response.data
    decision = classify(data)
    targeting = decision["targeting"]
    loc = data.location
    # Keep location fields only where the decision trusts the location.
    dma_ok = loc is not None and targeting in ("city", "dma")
    decision["dma"] = (loc.dma_code or None) if dma_ok else None
    tz_ok = data.time_zone is not None and targeting in LOCATED
    decision["time_zone"] = data.time_zone.name if tz_ok else None
    device = data.user_agent.device if data.user_agent is not None else None
    decision["device"] = device.type if device is not None else None
    return decision


if __name__ == "__main__":
    api_key = os.environ.get("IPGEOLOCATION_API_KEY")
    if not api_key:
        sys.exit("Set IPGEOLOCATION_API_KEY to a paid-plan key first.")
    tv = ("Mozilla/5.0 (SMART-TV; Linux; Tizen 7.0) AppleWebKit/537.36 "
          "(KHTML, like Gecko) 94.0.4606.31/7.0 TV Safari/537.36")
    desktop = ("Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 "
               "(KHTML, like Gecko) Chrome/142.0.0.0 Safari/537.36")
    visits = [("128.6.0.1", tv), ("172.225.7.129", desktop), ("2.56.189.177", desktop)]
    config = IpGeolocationClientConfig(api_key=api_key, connect_timeout=2, read_timeout=3)
    with IpGeolocationClient(config) as client:
        for ip, ua in visits:
            print(ip, ad_profile(client, ip, ua))

Each decision carries two labels. targeting is the narrowest level to target (city, dma, region, or country), none to serve the ad without location targeting, or exclude to keep a declared crawler out of audiences. reports says what the lookup supports, not whether the impression is valid: no IP risk detected when no relevant flag is set; eligible, location unknown or eligible, region only for VPN, gateway, and relay visits, which go through your normal measurement checks; crawler for declared crawlers to report apart; review with the signal behind it (bot, proxy, or hosting); and unknown when the lookup failed or returned no security data. The first label is worded "no IP risk detected" on purpose: when we hold no security data for an address, every flag comes back false, so a clean lookup doesn't prove a person. The order of the checks matters, because relays, gateways, and many VPN exits sit on hosting networks; testing them after the hosting rule would send every relay visit to review. For the three sample visits, the script prints:

128.6.0.1 {'targeting': 'city', 'reports': 'no IP risk detected', 'dma': '501', 'time_zone': 'America/New_York', 'device': 'TV'}
172.225.7.129 {'targeting': 'region', 'reports': 'eligible, region only', 'dma': None, 'time_zone': 'America/New_York', 'device': 'Desktop'}
2.56.189.177 {'targeting': 'none', 'reports': 'review (proxy)', 'dma': None, 'time_zone': None, 'device': 'Desktop'}

The Dallas visit from the opening loses its DMA and time zone and goes to review, while the relay visit keeps its time zone but not its DMA, because it's targeted only at the region. If every call logs UnauthorizedException, check the key; the comment at the top of the script says which keys the include modules accept. Cache each result for a day, keyed by a hash of the address, because the data refreshes daily, and keep the decision rather than the raw address in long-term storage. The IP Geolocation API documentation lists every field and the bulk endpoint for log enrichment.


Measurement and attribution with IP data

Before counting impressions, clicks, or conversions by DMA or region, report declared crawlers separately and exclude traffic you know is invalid, from an industry list or from evidence in the events themselves. Send bot, proxy, and hosting signals to review rather than dropping them on the address alone, and keep VPN, gateway, and relay visits in the count with their location marked as uncertain. Otherwise a crawler that checks every placement shows up in the numbers as a market that responds to your ads, or a filter on hosting networks quietly removes people who browse through a relay or a cloud desktop.

Market tests need the same filters on both sides. A matched-market test compares DMAs that saw a campaign with DMAs that didn't, and because IP data is rebuilt daily, store the DMA with each event when it happens instead of looking it up again at analysis time. Then a rebuild halfway through the test can't move past visits from one market to another.

Attribution is where the line on identity matters most. Matching a conversion to an ad view by IP address, with or without the user agent, treats the address as a person-level identifier, with all the drift described in the IP targeting section and the consent rules in the next one. We'd use IP data in attribution to place conversions on the map and to filter invalid traffic out of them, and leave the matching itself to identifiers people agreed to share.


Privacy law in Europe and California can treat an IP address as personal data, so using it for ads takes the same care as any other identifier. The visitor identification guide sets out what the GDPR and the CCPA say about IP addresses, with links to the legal texts.

Google's rules for its own ad products spell this out. Its EU user consent policy says the consent obligations apply to using IP addresses for ads personalization or ads measurement in the EEA and the UK, recommends telling users in the consent banner when you use IP addresses that way, and says Google would begin launching IP-based ads measurement and personalization in the EEA, the UK, and Switzerland in August 2026. The policy's EEA is the EU plus Iceland, Liechtenstein, and Norway.

Who acts on consent depends on where you sit. A publisher or an advertiser shows the banner. A DSP or SSP never sees it: it reads the signals the bid request carries, which in OpenRTB are the regs.gdpr flag, the regs.gpp string, and the TCF consent string in user.consent, and decides from them whether IP-based processing is allowed for that request.

Three practices hold up under most rules. Decide the consent flow from the country code (location.country_code2) and the list of countries your rules cover; we'd keep any lookup before consent to that country check and store nothing from it, and your counsel decides whether even that is allowed in your setup. Store derived fields, such as country, DMA, and the targeting decision, rather than the raw address. And keep raw addresses only in short-lived logs. For the addresses you send IPGeolocation.io, see what happens to the IP addresses you send us and our GDPR compliance page. This is general information, not legal advice.


IP data for ad tech from IPGeolocation.io

IPGeolocation.io returns every field in this guide from one call to the IP Geolocation API. One request can carry seven kinds of data: geolocation down to the ZIP code and the US DMA, with an accuracy radius and confidence; security data that flags VPNs, proxies, residential proxies, Tor exits, privacy relays, cloud hosts, corporate gateways, and bots by type and operator, with a threat score from 0 to 100; ASN details; the company behind the address, with its type and domain; abuse contact data; the time zone; and the parsed user agent. That's the most complete picture of an address one request can return, so a filter, a landing page, and a report can all work from the same answer.

Our location data comes from our own pipeline, with active measurement from our own measurement points around the world, and the API serves a fresh build every day; here's how we measure accuracy. The risk signals come from honeypots, VPN and proxy enumeration, blocklists, and behavioral analysis, and the Proxy & VPN Detection API serves them on their own when a pipeline needs only the security view.

For bidders and log pipelines, the same data ships as CSV and MMDB files: the IP to Location database carries the DMA code, accuracy radius, and confidence; the IP to Company database carries company name, type, and domain; and the Security Pro databases carry the security flags. The API's bulk endpoint takes up to 50,000 addresses per request for batch jobs. On landing pages and lead forms, Real-Time Proxy & VPN Detection runs live tests on the session in the browser and, when they find the real address behind a VPN or proxy, reports that address's country. Plans and credits are on the pricing page.

FAQ

IP targeting is serving ads to the households or companies behind specific IP addresses, usually matched from postal or company records. Addresses get reassigned, many devices can share one, and VPNs and relays hide the real one, so IP data works better for rough location and network context than for reaching a particular person.

Yes, as one signal among several. A bid request can carry the device's IP address in OpenRTB's device.ip field, often truncated and sometimes removed, alongside a location the exchange supplies in device.geo. Buyers locate the request from either one, and a full address also feeds traffic-quality checks; apps with location permission can add more precise device location.

It can be, with care. In the EU, the UK, and California, an IP address can count as personal data, so using it for ad personalization or measurement needs a lawful basis and often the user's consent; Google's EU user consent policy applies its consent rules to IP-based ads measurement and personalization. This isn't legal advice.

They can be. European and California privacy law treat an IP address as personal data when it can be linked to a person or household. Storing derived fields, such as country and DMA, instead of the raw address reduces what an ad system holds.

Geotargeting shows ads to people in an area such as a country, region, DMA, or city, and IP data can support it. Geofencing draws a boundary around one place, often a few hundred meters across, and needs the device's own GPS or Wi-Fi location with the user's permission; an IP lookup's accuracy radius is measured in kilometers.

It's reliable at the country level, and usually at the region and DMA level on fixed connections; at the city level it holds only when the lookup's accuracy radius is small, and it never reaches a street or a household. An IPGeolocation.io lookup returns accuracy_radius in kilometers and a confidence of high, medium, or low, so a platform can choose the level for each request.

The DMA code needs a paid plan, but it adds no credits: a lookup with include=dma_code costs 1 credit, the same as one without it. The free Developer plan gives 1,000 credits a day, paid plans start at $19 a month for 150,000 credits, and a free trial of a paid plan is available through support; the pricing page compares them.

Related Guides

What Is RDAP? The Protocol Replacing WHOIS for IP Data
What Is RDAP? The Protocol Replacing WHOIS for IP Data

RDAP is the successor to WHOIS for IP address and ASN registration data. Follow one real lookup from IANA's bootstrap data to a registry record, see what changes from WHOIS, and learn which conclusions the record supports.

Posted on December 2, 2026
Read More: What Is RDAP? The Protocol Replacing WHOIS for IP Data
Geolocation Compliance: Enforce Territories Despite VPNs
Geolocation Compliance: Enforce Territories Despite VPNs

A territory check can end in three answers: in territory, out of territory, or unknown. Here's how to sort VPN, proxy, Tor, relay, and corporate gateway traffic into them, how strict to be under a licensing deal versus a law, and how to prove what you decided.

Posted on December 1, 2026
By Abdul Mateen
Read More: Geolocation Compliance: Enforce Territories Despite VPNs
IPv4 vs IPv6: The Key Differences and What They Change
IPv4 vs IPv6: The Key Differences and What They Change

IPv4 addresses are 32 bits long and IPv6 addresses are 128 bits. See every other difference in one table, which IPv6 myths to drop, and what changes when your code, logs, and rate limits meet IPv6 traffic.

Posted on November 29, 2026
Read More: IPv4 vs IPv6: The Key Differences and What They Change
When Should You Use Real-Time Proxy & VPN Detection vs IP Reputation?
When Should You Use Real-Time Proxy & VPN Detection vs IP Reputation?

An IP reputation lookup tells you what an address has done; Real-Time Proxy & VPN Detection tells you whether this session is anonymized right now. Which check to run at each step, from signup to payouts, and what to do when the two disagree.

Posted on November 29, 2026
Read More: When Should You Use Real-Time Proxy & VPN Detection vs IP Reputation?
Residential vs Business IP Addresses: How to Tell Them Apart
Residential vs Business IP Addresses: How to Tell Them Apart

A website can't see your internet plan, only who an IP address is registered to and which network carries it. Here's how company type, ASN type, and proxy flags tell home, office, and server traffic apart, and where they mislead.

Posted on November 28, 2026
Read More: Residential vs Business IP Addresses: How to Tell Them Apart
Public vs Private IP Addresses: Differences and Ranges
Public vs Private IP Addresses: Differences and Ranges

Private IP addresses come from three ranges: 10.0.0.0/8, 172.16.0.0/12, and 192.168.0.0/16. See how they differ from public addresses, why 100.64.0.0/10 isn't private, and how to check any IP by eye, in code, or with a lookup.

Posted on November 28, 2026
Read More: Public vs Private IP Addresses: Differences and Ranges

Subscribe to Our Newsletter

Get the latest in geolocation tech, straight to your inbox.