GET associations({associationId})/Advertisements({itemId})

this method gets a Advertisement

Request Information

Parameters

NameDescriptionAdditional information
associationId
association identifier

Define this parameter in the request URI.

itemId
item identifier

Define this parameter in the request URI.

Response Information

a Advertisement

Response body formats

application/json, text/json

Sample:
{
  "Id": 1,
  "ImageSource": "sample string 2",
  "Width": 1,
  "Height": 1,
  "ByteSize": 1,
  "URL": "sample string 3",
  "AltText": "sample string 4",
  "Comments": "sample string 5",
  "MemberId": 1,
  "Disabled": true,
  "EndDate": "2024-11-21T13:05:17.8449928-06:00",
  "StartDate": "2024-11-21T13:05:17.8449928-06:00",
  "Priority": 1,
  "Context": [
    {
      "Context": 1,
      "ContextName": null,
      "CategoryId": 1,
      "ContextDescription": "sample string 2"
    },
    {
      "Context": 1,
      "ContextName": null,
      "CategoryId": 1,
      "ContextDescription": "sample string 2"
    },
    {
      "Context": 1,
      "ContextName": null,
      "CategoryId": 1,
      "ContextDescription": "sample string 2"
    }
  ]
}

application/xml, text/xml

Sample:
<AdvertismentResource xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/MicroNet_Web_API.Classes.Resources">
  <AltText>sample string 4</AltText>
  <ByteSize>1</ByteSize>
  <Comments>sample string 5</Comments>
  <Context>
    <AdvertisementContextResource>
      <CategoryId>1</CategoryId>
      <Context>1</Context>
      <ContextDescription>sample string 2</ContextDescription>
    </AdvertisementContextResource>
    <AdvertisementContextResource>
      <CategoryId>1</CategoryId>
      <Context>1</Context>
      <ContextDescription>sample string 2</ContextDescription>
    </AdvertisementContextResource>
    <AdvertisementContextResource>
      <CategoryId>1</CategoryId>
      <Context>1</Context>
      <ContextDescription>sample string 2</ContextDescription>
    </AdvertisementContextResource>
  </Context>
  <Disabled>true</Disabled>
  <EndDate>2024-11-21T13:05:17.8449928-06:00</EndDate>
  <Height>1</Height>
  <Id>1</Id>
  <ImageSource>sample string 2</ImageSource>
  <MemberId>1</MemberId>
  <Priority>1</Priority>
  <StartDate>2024-11-21T13:05:17.8449928-06:00</StartDate>
  <URL>sample string 3</URL>
  <Width>1</Width>
</AdvertismentResource>