PUT api/Content/v3/GetSponsorshipAdvertisement
Request Information
URI Parameters
None.
Body Parameters
AdvertisementRequest| Name | Description | Type | Additional information |
|---|---|---|---|
| CustomerId | integer |
None. |
|
| Page | integer |
None. |
|
| Type | integer |
None. |
|
| UniqueId | globally unique identifier |
None. |
|
| UserUniqueId | integer |
None. |
|
| AdvertiseIds | Collection of integer |
None. |
|
| SectionId | integer |
None. |
|
| LanguageId | integer |
None. |
Request Formats
application/json, text/json
Sample:
{
"CustomerId": 1,
"Page": 2,
"Type": 3,
"UniqueId": "37e1c888-fdc5-49bb-b325-9fcf107ef256",
"UserUniqueId": 5,
"AdvertiseIds": [
1,
2
],
"SectionId": 6,
"LanguageId": 7
}
application/xml, text/xml
Sample:
<AdvertisementRequest xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/">
<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>
<LanguageId>7</LanguageId>
<Page>2</Page>
<SectionId>6</SectionId>
<Type>3</Type>
<UniqueId>37e1c888-fdc5-49bb-b325-9fcf107ef256</UniqueId>
<UserUniqueId>5</UserUniqueId>
</AdvertisementRequest>
application/x-www-form-urlencoded
Sample:
Sample not available.
Response Information
Resource Description
AdvertisementResponse| Name | 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": "aa1c9db5-2774-4f2f-82ee-2b5d6bd1a3a6",
"AdType": 6
}
}
application/xml, text/xml
Sample:
<AdvertisementResponse xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/">
<Advertise>
<AdType>6</AdType>
<Id>1</Id>
<Image>sample string 4</Image>
<RedirectURL>sample string 3</RedirectURL>
<Title>sample string 2</Title>
<Token>aa1c9db5-2774-4f2f-82ee-2b5d6bd1a3a6</Token>
</Advertise>
</AdvertisementResponse>