POST api/advertising/advertisers/{advertiserId}/actions

This method will record user action when interracting with a specific advertiser

Request Information

URI Parameters

NameDescriptionTypeAdditional information
advertiserId

Id of the specific advertiser

integer

Required

Body Parameters

Data description for the event/action

AdvertisingActionBindingModel
NameDescriptionTypeAdditional information
IsClickthrough

boolean

None.

IsDataRequest

boolean

None.

IsPurchase

boolean

None.

UserAffiliateCode

string

None.

Request Formats

application/json, text/json

Sample:
{
  "isClickthrough": true,
  "isDataRequest": true,
  "isPurchase": true,
  "userAffiliateCode": "sample string 4"
}

text/html

Sample:
{"isClickthrough":true,"isDataRequest":true,"isPurchase":true,"userAffiliateCode":"sample string 4"}

application/xml, text/xml

Sample:
<AdvertisingActionBindingModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Ptd.Model.WebModels.Advertising">
  <IsClickthrough>true</IsClickthrough>
  <IsDataRequest>true</IsDataRequest>
  <IsPurchase>true</IsPurchase>
  <UserAffiliateCode>sample string 4</UserAffiliateCode>
</AdvertisingActionBindingModel>

application/x-www-form-urlencoded

Sample:

Failed to generate the sample for media type 'application/x-www-form-urlencoded'. Cannot use formatter 'JQueryMvcFormUrlEncodedFormatter' to write type 'AdvertisingActionBindingModel'.

Response Information

Resource Description

Ok

IHttpActionResult

None.

Response Formats

application/json, text/json, text/html, application/xml, text/xml

Sample:

Sample not available.