01What ad checks look for
- Placement. The ad appears on the sites and in the countries the campaign paid for.
- Creative. The right version, language and price show in each market.
- Cloaking. The landing page a user reaches is the one that was approved, not something swapped in for real visitors.
- Fraud. Impressions are not being faked on pages nobody sees.
Ad systems and bad actors both decide what to serve from the visitor’s IP. A check from a server address often gets a clean, generic answer. A check from a home address in the target city gets what real people get.
02Which network to use
03A check from three cities
Load the page once per market with a headless browser, and hold one IP per check so the ad request and the landing page come from the same visitor:
import { chromium } from "playwright";
const markets = [
["us", "newyork", "newyork"],
["us", "california", "losangeles"],
["gb", "england", "london"],
];
const browser = await chromium.launch();
for (const [country, state, city] of markets) {
const context = await browser.newContext({
proxy: {
server: "http://gw.fullstackproxy.com:47631",
username: `USERNAME-country-${country}-state-${state}-city-${city}-session-ad${city}-lifetime-30`,
password: "PASSWORD",
},
});
const page = await context.newPage();
await page.goto("https://publisher.example/article");
await page.screenshot({ path: `${city}.png`, fullPage: true });
await context.close();
}
await browser.close();