<?xml version="1.0" encoding="utf-8"?>
<wsdl:definitions xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/" xmlns:tm="http://microsoft.com/wsdl/mime/textMatching/" xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/" xmlns:mime="http://schemas.xmlsoap.org/wsdl/mime/" xmlns:tns="http://api.linktrust.com/" xmlns:s="http://www.w3.org/2001/XMLSchema" xmlns:soap12="http://schemas.xmlsoap.org/wsdl/soap12/" xmlns:http="http://schemas.xmlsoap.org/wsdl/http/" targetNamespace="http://api.linktrust.com/" xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/">
  <wsdl:types>
    <s:schema elementFormDefault="qualified" targetNamespace="http://api.linktrust.com/">
      <s:element name="GetCampaignTotalsBySubID">
        <s:complexType>
          <s:sequence>
            <s:element minOccurs="0" maxOccurs="1" name="key" type="s:string" />
            <s:element minOccurs="0" maxOccurs="1" name="password" type="s:string" />
            <s:element minOccurs="1" maxOccurs="1" name="campaignID" type="s:int" />
            <s:element minOccurs="1" maxOccurs="1" name="affiliateID" type="s:int" />
            <s:element minOccurs="0" maxOccurs="1" name="dateFrom" type="s:string" />
            <s:element minOccurs="0" maxOccurs="1" name="dateTo" type="s:string" />
          </s:sequence>
        </s:complexType>
      </s:element>
      <s:element name="GetCampaignTotalsBySubIDResponse">
        <s:complexType>
          <s:sequence>
            <s:element minOccurs="0" maxOccurs="1" name="GetCampaignTotalsBySubIDResult" type="tns:ArrayOfDailyStats" />
          </s:sequence>
        </s:complexType>
      </s:element>
      <s:complexType name="ArrayOfDailyStats">
        <s:sequence>
          <s:element minOccurs="0" maxOccurs="unbounded" name="DailyStats" nillable="true" type="tns:DailyStats" />
        </s:sequence>
      </s:complexType>
      <s:complexType name="DailyStats">
        <s:sequence>
          <s:element minOccurs="0" maxOccurs="1" name="Date" type="s:string" />
          <s:element minOccurs="1" maxOccurs="1" name="CID" type="s:int" />
          <s:element minOccurs="0" maxOccurs="1" name="SID" type="s:string" />
          <s:element minOccurs="1" maxOccurs="1" name="AFID" type="s:int" />
          <s:element minOccurs="1" maxOccurs="1" name="DID" type="s:int" />
          <s:element minOccurs="0" maxOccurs="1" name="CampaignName" type="s:string" />
          <s:element minOccurs="0" maxOccurs="1" name="MerchantName" type="s:string" />
          <s:element minOccurs="1" maxOccurs="1" name="MerchantUnitPrice" type="s:decimal" />
          <s:element minOccurs="1" maxOccurs="1" name="AffiliatePayout" type="s:decimal" />
          <s:element minOccurs="1" maxOccurs="1" name="Impressions" type="s:long" />
          <s:element minOccurs="1" maxOccurs="1" name="Clicks" type="s:long" />
          <s:element minOccurs="1" maxOccurs="1" name="GrossReceived" type="s:long" />
          <s:element minOccurs="1" maxOccurs="1" name="Qualified" type="s:long" />
          <s:element minOccurs="1" maxOccurs="1" name="Approved" type="s:long" />
          <s:element minOccurs="1" maxOccurs="1" name="TotalRevenue" type="s:decimal" />
          <s:element minOccurs="1" maxOccurs="1" name="TotalCommission" type="s:decimal" />
        </s:sequence>
      </s:complexType>
      <s:element name="GetCampaignTotals">
        <s:complexType>
          <s:sequence>
            <s:element minOccurs="0" maxOccurs="1" name="key" type="s:string" />
            <s:element minOccurs="0" maxOccurs="1" name="password" type="s:string" />
            <s:element minOccurs="1" maxOccurs="1" name="campaignID" type="s:int" />
            <s:element minOccurs="1" maxOccurs="1" name="affiliateID" type="s:int" />
            <s:element minOccurs="0" maxOccurs="1" name="dateFrom" type="s:string" />
            <s:element minOccurs="0" maxOccurs="1" name="dateTo" type="s:string" />
          </s:sequence>
        </s:complexType>
      </s:element>
      <s:element name="GetCampaignTotalsResponse">
        <s:complexType>
          <s:sequence>
            <s:element minOccurs="0" maxOccurs="1" name="GetCampaignTotalsResult" type="tns:DailyStats" />
          </s:sequence>
        </s:complexType>
      </s:element>
      <s:element name="GetChannelSummary">
        <s:complexType>
          <s:sequence>
            <s:element minOccurs="0" maxOccurs="1" name="key" type="s:string" />
            <s:element minOccurs="0" maxOccurs="1" name="password" type="s:string" />
            <s:element minOccurs="1" maxOccurs="1" name="campaignID" type="s:int" />
            <s:element minOccurs="1" maxOccurs="1" name="affiliateID" type="s:int" />
            <s:element minOccurs="0" maxOccurs="1" name="dateFrom" type="s:string" />
            <s:element minOccurs="0" maxOccurs="1" name="dateTo" type="s:string" />
          </s:sequence>
        </s:complexType>
      </s:element>
      <s:element name="GetChannelSummaryResponse">
        <s:complexType>
          <s:sequence>
            <s:element minOccurs="0" maxOccurs="1" name="GetChannelSummaryResult" type="tns:ChannelSummary" />
          </s:sequence>
        </s:complexType>
      </s:element>
      <s:complexType name="ChannelSummary">
        <s:sequence>
          <s:element minOccurs="0" maxOccurs="1" name="Channels" type="tns:ArrayOfChannel" />
        </s:sequence>
      </s:complexType>
      <s:complexType name="ArrayOfChannel">
        <s:sequence>
          <s:element minOccurs="0" maxOccurs="unbounded" name="Channel" nillable="true" type="tns:Channel" />
        </s:sequence>
      </s:complexType>
      <s:complexType name="Channel">
        <s:sequence>
          <s:element minOccurs="1" maxOccurs="1" name="ID" type="s:int" />
          <s:element minOccurs="0" maxOccurs="1" name="Name" type="s:string" />
          <s:element minOccurs="1" maxOccurs="1" name="Filtered" type="s:int" />
          <s:element minOccurs="1" maxOccurs="1" name="Accepted" type="s:int" />
          <s:element minOccurs="1" maxOccurs="1" name="Attempted" type="s:int" />
          <s:element minOccurs="0" maxOccurs="1" name="TotalRevenue" type="s:string" />
          <s:element minOccurs="0" maxOccurs="1" name="TotalCommission" type="s:string" />
        </s:sequence>
      </s:complexType>
      <s:element name="ArrayOfDailyStats" nillable="true" type="tns:ArrayOfDailyStats" />
      <s:element name="DailyStats" nillable="true" type="tns:DailyStats" />
      <s:element name="ChannelSummary" nillable="true" type="tns:ChannelSummary" />
    </s:schema>
  </wsdl:types>
  <wsdl:message name="GetCampaignTotalsBySubIDSoapIn">
    <wsdl:part name="parameters" element="tns:GetCampaignTotalsBySubID" />
  </wsdl:message>
  <wsdl:message name="GetCampaignTotalsBySubIDSoapOut">
    <wsdl:part name="parameters" element="tns:GetCampaignTotalsBySubIDResponse" />
  </wsdl:message>
  <wsdl:message name="GetCampaignTotalsSoapIn">
    <wsdl:part name="parameters" element="tns:GetCampaignTotals" />
  </wsdl:message>
  <wsdl:message name="GetCampaignTotalsSoapOut">
    <wsdl:part name="parameters" element="tns:GetCampaignTotalsResponse" />
  </wsdl:message>
  <wsdl:message name="GetChannelSummarySoapIn">
    <wsdl:part name="parameters" element="tns:GetChannelSummary" />
  </wsdl:message>
  <wsdl:message name="GetChannelSummarySoapOut">
    <wsdl:part name="parameters" element="tns:GetChannelSummaryResponse" />
  </wsdl:message>
  <wsdl:message name="GetCampaignTotalsBySubIDHttpGetIn">
    <wsdl:part name="key" type="s:string" />
    <wsdl:part name="password" type="s:string" />
    <wsdl:part name="campaignID" type="s:string" />
    <wsdl:part name="affiliateID" type="s:string" />
    <wsdl:part name="dateFrom" type="s:string" />
    <wsdl:part name="dateTo" type="s:string" />
  </wsdl:message>
  <wsdl:message name="GetCampaignTotalsBySubIDHttpGetOut">
    <wsdl:part name="Body" element="tns:ArrayOfDailyStats" />
  </wsdl:message>
  <wsdl:message name="GetCampaignTotalsHttpGetIn">
    <wsdl:part name="key" type="s:string" />
    <wsdl:part name="password" type="s:string" />
    <wsdl:part name="campaignID" type="s:string" />
    <wsdl:part name="affiliateID" type="s:string" />
    <wsdl:part name="dateFrom" type="s:string" />
    <wsdl:part name="dateTo" type="s:string" />
  </wsdl:message>
  <wsdl:message name="GetCampaignTotalsHttpGetOut">
    <wsdl:part name="Body" element="tns:DailyStats" />
  </wsdl:message>
  <wsdl:message name="GetChannelSummaryHttpGetIn">
    <wsdl:part name="key" type="s:string" />
    <wsdl:part name="password" type="s:string" />
    <wsdl:part name="campaignID" type="s:string" />
    <wsdl:part name="affiliateID" type="s:string" />
    <wsdl:part name="dateFrom" type="s:string" />
    <wsdl:part name="dateTo" type="s:string" />
  </wsdl:message>
  <wsdl:message name="GetChannelSummaryHttpGetOut">
    <wsdl:part name="Body" element="tns:ChannelSummary" />
  </wsdl:message>
  <wsdl:portType name="Partner_x0020_StatsSoap">
    <wsdl:operation name="GetCampaignTotalsBySubID">
      <wsdl:documentation xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/">Returns campaign totals broken out by Sub ID for a given campaign during the specified date range.</wsdl:documentation>
      <wsdl:input message="tns:GetCampaignTotalsBySubIDSoapIn" />
      <wsdl:output message="tns:GetCampaignTotalsBySubIDSoapOut" />
    </wsdl:operation>
    <wsdl:operation name="GetCampaignTotals">
      <wsdl:documentation xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/">Returns campaign totals for a given campaign during the specified date range.</wsdl:documentation>
      <wsdl:input message="tns:GetCampaignTotalsSoapIn" />
      <wsdl:output message="tns:GetCampaignTotalsSoapOut" />
    </wsdl:operation>
    <wsdl:operation name="GetChannelSummary">
      <wsdl:documentation xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/">Returns channel summary totals for a given campaign during the specified date range. Set affiliateID to 0 to include all affiliates.</wsdl:documentation>
      <wsdl:input message="tns:GetChannelSummarySoapIn" />
      <wsdl:output message="tns:GetChannelSummarySoapOut" />
    </wsdl:operation>
  </wsdl:portType>
  <wsdl:portType name="Partner_x0020_StatsHttpGet">
    <wsdl:operation name="GetCampaignTotalsBySubID">
      <wsdl:documentation xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/">Returns campaign totals broken out by Sub ID for a given campaign during the specified date range.</wsdl:documentation>
      <wsdl:input message="tns:GetCampaignTotalsBySubIDHttpGetIn" />
      <wsdl:output message="tns:GetCampaignTotalsBySubIDHttpGetOut" />
    </wsdl:operation>
    <wsdl:operation name="GetCampaignTotals">
      <wsdl:documentation xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/">Returns campaign totals for a given campaign during the specified date range.</wsdl:documentation>
      <wsdl:input message="tns:GetCampaignTotalsHttpGetIn" />
      <wsdl:output message="tns:GetCampaignTotalsHttpGetOut" />
    </wsdl:operation>
    <wsdl:operation name="GetChannelSummary">
      <wsdl:documentation xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/">Returns channel summary totals for a given campaign during the specified date range. Set affiliateID to 0 to include all affiliates.</wsdl:documentation>
      <wsdl:input message="tns:GetChannelSummaryHttpGetIn" />
      <wsdl:output message="tns:GetChannelSummaryHttpGetOut" />
    </wsdl:operation>
  </wsdl:portType>
  <wsdl:binding name="Partner_x0020_StatsSoap" type="tns:Partner_x0020_StatsSoap">
    <soap:binding transport="http://schemas.xmlsoap.org/soap/http" />
    <wsdl:operation name="GetCampaignTotalsBySubID">
      <soap:operation soapAction="http://api.linktrust.com/GetCampaignTotalsBySubID" style="document" />
      <wsdl:input>
        <soap:body use="literal" />
      </wsdl:input>
      <wsdl:output>
        <soap:body use="literal" />
      </wsdl:output>
    </wsdl:operation>
    <wsdl:operation name="GetCampaignTotals">
      <soap:operation soapAction="http://api.linktrust.com/GetCampaignTotals" style="document" />
      <wsdl:input>
        <soap:body use="literal" />
      </wsdl:input>
      <wsdl:output>
        <soap:body use="literal" />
      </wsdl:output>
    </wsdl:operation>
    <wsdl:operation name="GetChannelSummary">
      <soap:operation soapAction="http://api.linktrust.com/GetChannelSummary" style="document" />
      <wsdl:input>
        <soap:body use="literal" />
      </wsdl:input>
      <wsdl:output>
        <soap:body use="literal" />
      </wsdl:output>
    </wsdl:operation>
  </wsdl:binding>
  <wsdl:binding name="Partner_x0020_StatsSoap12" type="tns:Partner_x0020_StatsSoap">
    <soap12:binding transport="http://schemas.xmlsoap.org/soap/http" />
    <wsdl:operation name="GetCampaignTotalsBySubID">
      <soap12:operation soapAction="http://api.linktrust.com/GetCampaignTotalsBySubID" style="document" />
      <wsdl:input>
        <soap12:body use="literal" />
      </wsdl:input>
      <wsdl:output>
        <soap12:body use="literal" />
      </wsdl:output>
    </wsdl:operation>
    <wsdl:operation name="GetCampaignTotals">
      <soap12:operation soapAction="http://api.linktrust.com/GetCampaignTotals" style="document" />
      <wsdl:input>
        <soap12:body use="literal" />
      </wsdl:input>
      <wsdl:output>
        <soap12:body use="literal" />
      </wsdl:output>
    </wsdl:operation>
    <wsdl:operation name="GetChannelSummary">
      <soap12:operation soapAction="http://api.linktrust.com/GetChannelSummary" style="document" />
      <wsdl:input>
        <soap12:body use="literal" />
      </wsdl:input>
      <wsdl:output>
        <soap12:body use="literal" />
      </wsdl:output>
    </wsdl:operation>
  </wsdl:binding>
  <wsdl:binding name="Partner_x0020_StatsHttpGet" type="tns:Partner_x0020_StatsHttpGet">
    <http:binding verb="GET" />
    <wsdl:operation name="GetCampaignTotalsBySubID">
      <http:operation location="/GetCampaignTotalsBySubID" />
      <wsdl:input>
        <http:urlEncoded />
      </wsdl:input>
      <wsdl:output>
        <mime:mimeXml part="Body" />
      </wsdl:output>
    </wsdl:operation>
    <wsdl:operation name="GetCampaignTotals">
      <http:operation location="/GetCampaignTotals" />
      <wsdl:input>
        <http:urlEncoded />
      </wsdl:input>
      <wsdl:output>
        <mime:mimeXml part="Body" />
      </wsdl:output>
    </wsdl:operation>
    <wsdl:operation name="GetChannelSummary">
      <http:operation location="/GetChannelSummary" />
      <wsdl:input>
        <http:urlEncoded />
      </wsdl:input>
      <wsdl:output>
        <mime:mimeXml part="Body" />
      </wsdl:output>
    </wsdl:operation>
  </wsdl:binding>
  <wsdl:service name="Partner_x0020_Stats">
    <wsdl:port name="Partner_x0020_StatsSoap" binding="tns:Partner_x0020_StatsSoap">
      <soap:address location="http://api.linktrust.com/2.0/PartnerStats.asmx" />
    </wsdl:port>
    <wsdl:port name="Partner_x0020_StatsSoap12" binding="tns:Partner_x0020_StatsSoap12">
      <soap12:address location="http://api.linktrust.com/2.0/PartnerStats.asmx" />
    </wsdl:port>
    <wsdl:port name="Partner_x0020_StatsHttpGet" binding="tns:Partner_x0020_StatsHttpGet">
      <http:address location="http://api.linktrust.com/2.0/PartnerStats.asmx" />
    </wsdl:port>
  </wsdl:service>
</wsdl:definitions>