Get information about a specific offer’s geo
HTTP method
Endpoint
GET
/aff/v1/offers/{offer_id}/geo

Path parameters

Parameter
Description
offer_id
The unique id for the offer.

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
Regions in targeted country
type
integer
An identifier included or excluded.
region_id
array
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.
region_id
integer
the unique id for the region
city_ids
array
the unique id for the city
city_name
string
the name of the

Example request

Example response

1
{
2
"code": 0,
3
"message": "Success",
4
"data": {
5
"offer_geo": {
6
"type": 1,
7
"target": [
8
{
9
"country": "United Kingdom",
10
"country_code": "UK",
11
"id": 515054,
12
"city": null,
13
"type": null,
14
"offer_id": null,
15
"regions": [],
16
"cities": []
17
},
18
{
19
"country": "China",
20
"country_code": "CN",
21
"id": 541594,
22
"city": null,
23
"type": null,
24
"offer_id": null,
25
"regions": [
26
{
27
"type": 1,
28
"region_id": 633,
29
"region_name": "Anhui Sheng"
30
},
31
{
32
"type": 1,
33
"region_id": 635,
34
"region_name": "Beijing Shi"
35
},
36
{
37
"type": 1,
38
"region_id": 641,
39
"region_name": "Guangxi Zhuangzu Zizhiqu"
40
}
41
],
42
"cities": [
43
{
44
"type": 1,
45
"region_id": 633,
46
"city_id": 97648,
47
"city_name": "Anqing"
48
},
49
{
50
"type": 1,
51
"region_id": 633,
52
"city_id": 97649,
53
"city_name": "Baiyin"
54
},
55
{
56
"type": 1,
57
"region_id": 633,
58
"city_id": 97651,
59
"city_name": "Bozhou"
60
},
61
{
62
"type": 1,
63
"region_id": 633,
64
"city_id": 97658,
65
"city_name": "Diaoshi Township"
66
},
67
{
68
"type": 2,
69
"region_id": 635,
70
"city_id": 97739,
71
"city_name": "Beijing"
72
}
73
]
74
}
75
]
76
}
77
}
78
}
Copied!
Last modified 1yr ago