Help Center Manage Your Account AdSpeed API

Website

Documentation for API methods to manage one or multiple websites.

API Version

1.2.6 (build 20161107). This page was updated on Fri, 11 Nov 16 11:33:48 -0500. Since the API method and response format can change from one version to another, you should check this page for updates.

API Methods - Website

AS.Websites.getCounts

Returns the number of active, deleted and total websites for this publisher or ad network
Parameters
  • None
Sample Request
Sample Response
<Websites total="1" active="1" deleted="0"/>

AS.Websites.getList

Returns the list of websites for this publisher or ad network
Parameters
  • perpage Optional, default value is "10"
    The number of items per page. Maximum value is 100.
  • page Optional, default value is "1"
    The page number
Sample Request
Sample Response
<Websites total="1" page="1" numpage="1" perpage="4">
  <Website id="89" name="Site Partner A" status="active"/>
</Websites>

AS.Website.getInfo

Returns the list of linked zones, ads and users for this website
Parameters
  • site Required
    The website ID
  • token Required
    The authentication MD5 hash generated from concatenating [Site ID][Site Name]
Sample Request
Sample Response
<Error code="222793444">
  <Message>Invalid entity owner. Please read the API documentation for details.</Message>
</Error>

AS.Website.getStats

Returns the stats for this website. Limit 50 calls/day.
Parameters
  • site Required
    The website ID
  • token Required
    The authentication MD5 hash generated from concatenating [Site ID][Site Name]
  • metric Required
    The time period can be "hourly", "daily", "weekly", "monthly"
Sample Request
Sample Response
<StatRows generated="[Time Stamp]" title="[Entity Name]">
  <StatRow>
    <Monthly>January 2014</Monthly>
    <Unique_Impression>3,156</Unique_Impression>
    <Gross_Impression>6,565</Gross_Impression>
    <Unique_over_Gross_Impression>48.07%</Unique_over_Gross_Impression>
  </StatRow>
  <StatRow>More Rows...</StatRow>
  <StatRow>
    <Monthly>Total</Monthly>
    <Unique_Impression>57,417</Unique_Impression>
    <Gross_Impression>114,979</Gross_Impression>
    <Unique_over_Gross_Impression>49.94%</Unique_over_Gross_Impression>
  </StatRow>
  <StatRow>
    <Monthly>Average</Monthly>
    <Unique_Impression>4,785</Unique_Impression>
    <Gross_Impression>9,582</Gross_Impression>
    <Unique_over_Gross_Impression>49.94%</Unique_over_Gross_Impression>
  </StatRow>
</StatRows>

Other Articles in AdSpeed API

Documentation to use AdSpeed API to integrate AdSpeed AdServer into your own platform.

Cannot find an answer for your question? Ask our Customer Care team

Related