PUT api/Content/v2/GetAdvertisements
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": "fcdd63a7-8bc0-4e7a-9cc7-4c30cd6c015f",
"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>fcdd63a7-8bc0-4e7a-9cc7-4c30cd6c015f</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": "7ac75ea9-689e-43a2-ae78-bcc1982e0ea5",
"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>7ac75ea9-689e-43a2-ae78-bcc1982e0ea5</Token>
</Advertise>
</AdvertisementResponse>