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@

The request's structure is:


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 -H "x-lpm-country: us"

You may also use headers for controlling state and city:

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