Network API
1. Geo information structure changes
Notice:city will be deprecated and add two array regions and cities.
When you set up offers or when the affiliates use API to pull out offers, in the case that the Offer Geo Targeting has been limited only to country, this update will have no influence to your API setting. When you set up offers or when the affiliates use API to pull out offers, in the case that the Offer Geo Targeting has been limited to state/province or to city, then you should update the API setting accordingly.
Field | Type | Description |
target | To push the identification of the target, you must write the following field. | |
country | string | Country to be targeted. When the country is identified as the exclusion (type=2), the city is not optional |
city | array | This parameter has been deprecated. [Deprecated] |
type | integer | An identifier included or excluded. Type: 1 include ; 2 exclude |
region | 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 |
Example request
Example response
Last updated