How to control targeting dynamically?

Support Account
Support Account
  • Updated

You don't have to specify the country, state or city targeting in advance using Targeting tab in the UI. It is possible to pass extra targeting options dynamically along with the request.

curl -x lum-country-br@127.0.0.1:24001 http://lumtest.com/myip.json

The request's structure is:

curl -x lum-country-{COUNTRY-ISO-CODE}@{IP}:{PORT}{DESTINATION-URL}

The other option for controlling targeting dynamically is by including a special header.

"x-lpm-country: {COUNTRY_CODE}"

Example request could look like this:

curl --proxy http://127.0.0.1:24000 -H "x-lpm-country: us" http://lumtest.com/myip.json

You may also use headers for controlling state and city:

  • State: "x-lpm-state: [STATE_CODE]"
  • City: "x-lpm-city: [CITY_NAME]"
Share this

Was this article helpful?

0 out of 0 found this helpful