Update the settings for a geo
HTTP method
Endpoint
PUT
/v1/offers/{offer_id}/geo/{geo_id}
Path parameters
Parameter
Description
offer_id
The unique id for the offer.
geo_id
The unique id for the geo.
Request body parameters
Field
Type
Description
Nullable
target
To push the identification of the target, you must write the following field.
No
country
string
Country to be targeted. When the country is identified as the exclusion (type=2), the city is not optional
No
city
array
This parameter has been deprecated. [Deprecated]
type
integer
An identifier included or excluded. Type: 1 include ; 2 exclude
regions
Regions selection in targeted country
type
integer
An identifier included or excluded. Type: 1 include ; 2 exclude
region_ids
array
the unique id for the region
cities
City selection in targeted country
type
integer
An identifier included or excluded. Type: 1 include ; 2 exclude
city_ids
array
the unique id for the city
Response body parameters
Field
Type
Description
id
integer
offer_id
integer
This parameter has been deprecated. [Deprecated]
country
string
Country to be targeted
country_code
string
Country code.
city
array
This parameter has been deprecated. [Deprecated]
type
integer
An identifier included or excluded.
regions
array
Regions in targeted country
type
integer
An identifier included or excluded.
regions
array
Regions in targeted country
region_id
integer
the unique id for the region
region_name
string
the name of the region
cities
City in targeted Region
type
integer
An identifier included or excluded.
regions
array
Regions in targeted country
region_id
integer
the unique id for the region
city_id
integer
the unique id for the city
city_name
string
the name of the
Example request
Request PUT https://{networkname}.api.offerslook.com/v1/offers/3147/geo/28574
Request PUT http://{networkname}.api.offerslook.com/v1/offers/3147/geo/28574
Example response
Last updated