PUT api/Content/v2/GetSponsorshipAdvertisement
Request Information
URI Parameters
None.
Body Parameters
AdvertisementRequestName | Description | Type | Additional information |
---|---|---|---|
CustomerId | integer |
None. |
|
Section | integer |
None. |
|
Type | integer |
None. |
|
UniqueId | globally unique identifier |
None. |
|
UserUniqueId | integer |
None. |
|
AdvertiseIds | Collection of integer |
None. |
Request Formats
application/json, text/json
Sample:
{ "CustomerId": 1, "Section": 2, "Type": 3, "UniqueId": "ad349136-2527-4d70-8953-53af1855b583", "UserUniqueId": 5, "AdvertiseIds": [ 1, 2 ] }
application/xml, text/xml
Sample:
<AdvertisementRequest xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Tsunami.Model"> <AdvertiseIds xmlns:d2p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays"> <d2p1:long>1</d2p1:long> <d2p1:long>2</d2p1:long> </AdvertiseIds> <CustomerId>1</CustomerId> <Section>2</Section> <Type>3</Type> <UniqueId>ad349136-2527-4d70-8953-53af1855b583</UniqueId> <UserUniqueId>5</UserUniqueId> </AdvertisementRequest>
application/x-www-form-urlencoded
Sample:
Sample not available.
Response Information
Resource Description
AdvertisementResponseName | Description | Type | Additional information |
---|---|---|---|
Advertise | APIAdvertisement |
None. |
Response Formats
application/json, text/json
Sample:
{ "Advertise": { "Id": 1, "Title": "sample string 2", "RedirectURL": "sample string 3", "Image": "sample string 4", "Token": "b071f413-8406-4aef-b938-fa4118e37167", "AdType": 6 } }
application/xml, text/xml
Sample:
<AdvertisementResponse xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Tsunami.Model"> <Advertise> <AdType>6</AdType> <Id>1</Id> <Image>sample string 4</Image> <RedirectURL>sample string 3</RedirectURL> <Title>sample string 2</Title> <Token>b071f413-8406-4aef-b938-fa4118e37167</Token> </Advertise> </AdvertisementResponse>