POST api/advertising/advertisers/{advertiserId}/actions
This method will record user action when interracting with a specific advertiser
Request Information
URI Parameters
| Name | Description | Type | Additional information |
|---|---|---|---|
| advertiserId |
Id of the specific advertiser |
integer |
Required |
Body Parameters
Data description for the event/action
AdvertisingActionBindingModel| Name | Description | Type | Additional 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:
Response Information
Resource Description
Ok
IHttpActionResultNone.
Response Formats
application/json, text/json, text/html, application/xml, text/xml
Sample:
Sample not available.