SWsoft SiteBuilder Integration API v3.2 Reference

SystemWebService.GetAdvertisingSettingsBySite Method 

 [This is preliminary documentation and subject to change.]

Get the advertising settings for a specified site and language. If a site is anonymous or no settings are specified by the site owner, then the settings of the reseller of site/user will be returned. If no reseller is specified for the site, then the default system-wide settings will be returned.

[C#]
public AdvertisingSettingsValue GetAdvertisingSettingsBySite(
   string siteId,
   string languageCode
);

Parameters

siteId
Site ID
languageCode
Language code

Return Value

Value object of requested advertising settings

Example SOAP 1.1

Request
POST /ServiceFacade/version_3_2/SystemWebService.asmx HTTP/1.1
Host: sitebuilder.swsoft.com
Content-Type: text/xml; charset=utf-8
Content-Length: length
SOAPAction: "http://swsoft.com/SiteBuilder/SystemService/v_3_2/GetAdvertisingSettingsBySite"

<?xml version="1.0" encoding="utf-8"?>
<soap:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/">
  <soap:Header>
    <CredentialsSoapHeader xmlns="http://swsoft.com/SiteBuilder/SystemService/v_3_2">
      <Login>string</Login>
      <Password>string</Password>
    </CredentialsSoapHeader>
  </soap:Header>
  <soap:Body>
    <GetAdvertisingSettingsBySite xmlns="http://swsoft.com/SiteBuilder/SystemService/v_3_2">
      <siteId>string</siteId>
      <languageCode>string</languageCode>
    </GetAdvertisingSettingsBySite>
  </soap:Body>
</soap:Envelope>
Response
HTTP/1.1 200 OK
Content-Type: text/xml; charset=utf-8
Content-Length: length

<?xml version="1.0" encoding="utf-8"?>
<soap:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/">
  <soap:Body>
    <GetAdvertisingSettingsBySiteResponse xmlns="http://swsoft.com/SiteBuilder/SystemService/v_3_2">
      <GetAdvertisingSettingsBySiteResult>
        <HostingBannerMsg>string</HostingBannerMsg>
        <PublishScreenHelpMsg>string</PublishScreenHelpMsg>
        <PublishScreenMsg>string</PublishScreenMsg>
        <PublishToAnyFtp>boolean</PublishToAnyFtp>
      </GetAdvertisingSettingsBySiteResult>
    </GetAdvertisingSettingsBySiteResponse>
  </soap:Body>
</soap:Envelope>

See Also

SystemWebService Web Service | Web services