Submit a Ticket My Tickets
Welcome
Login  Sign up

[Addedit] GeoTargets (V1) - Admin

WSDL Page:  http://<your_domain_here>/api/1/addedit.asmx?op=GeoTargets

 

Parameter Summary:

api_key / STRING = Admin API Key {See get.asmx > GetAPIKey} 

offer_contract_id / INT (unsignedByte)= Offer contract ID {See  export.asmx > Offers}

set_targeting_to_geo / BOOL = Set targeting method to Geo?

add_edit_option/ ENUMERATION = The "Edit Option" defines how the countries passed will interact with this offer contract ["add","remove","replace"]

countries / STRING =  2 letter country code. Pass comma separated lists.["US,AU"]

 

Parameter Types:

api_key - ID

offer_contract_id - ID

set_targeting_to_geo - BOOL

add_edit_option - ASSIGNABLE

countries - ASSIGNABLE

 

Sample GET Call:

https://demo.cakemarketing.com/api/1/addedit.asmx/GeoTargets?api_key=ZLC1R79aMixBBnGfjCHm1sT8J88bPo&offer_contract_id=349&set_targeting_to_geo=TRUE&add_edit_option=add&countries=AF%2CAR%2CAU

 

Sample XML Response:

<geo_targets_addedit_response>
  <success>true</success>
  <message>Countries Added</message>
  <row_count>0</row_count>
</geo_targets_addedit_response>

Did you find it helpful? Yes No

Send feedback
Sorry we couldn't be helpful. Help us improve this article with your feedback.