1.1.1 Summary

Set offer GEO targeting information.

1.1.2 Request

Request Method: POST

Parameter Description Type Data Range
key Network API Key;

      POST Parameters:
Parameter Description Type Data Range
id Offer ID
geo_targeting Enable/Disable GEO Targeting for the Offer。
The subsequent param is not required if disable it
int 1: enable
0: disable
type Include Country or Exclude Country Int 1: include
0: exclude
countries[] Country-Region string array:
Each Country-Region string has three parts to make up a string, which includes country, including/excluding and region list and seperates with a colon. If the region list contains multiple regions, use semicolon to separate them.
“US:1:TX;CA” means allowing the traffic from region Texas, California in Unitied States;
“CA:0:BS;SK” means excluding the traffic from region BS, SK in Canada.
Array Please refer to Dictionary for country and region codes.
enforce Enforce to Enable/Disable GEO Rule:
Set 1, out of GEO traffic will be directed to redirect target(redirected offer or redirected offer group);
Set 0, out of GEO traffic can still reach this Offer
Int 1: ON
0: OFF
redirect_type Redirect to GEO group or offer:
1: to GEO Group
0: to Offer
Int 1
redirect_target_id GEO Group ID  or Offer ID  redirecting to Int  

1.1.3 Response

HTTP Status Object Description Error Code
202   Success 0
400 Parameter Invalid Parameter 63XX
Content Format: JSON
Response sample:  Same as “getOfferById” API.

1.1.4 Example

Sample Request URL:
Response sample: Same as “getOfferById” API.