Have questions? Contact Us

live chat with us

For sale inquiries, please call
Toll Free 866.4AD.SPEED
International +1.408.454.6363

Testimonials

  • I'm just writing to say your service is really remarkable. I never cease to be astonished by the level of detail provided in your elegant reports. Although I realize the primary function of your service is ad management, I find myself becoming equally dependent on the excellent web usage info.

    Mark Felton
    Harvard Magazine

  • You are the best. Every website developer I know I am going to tell about your service.

    John Lansing
    Trending123

Help Center > Manage Your Account > AdSpeed API

Ad

Documentation for API methods to manage one or multiple ads.

API Version

1.2.5 (build 280809). Documentation was last modified on Sun, 07 Mar 2010 05:47:49 EST. Since the API methods and response format can change from one version to another, you should check this page frequently for updates.

API Methods - Ad

AS.Ads.getCounts

Returns the number of active, pending, deleted and total ads for the publisher
Parameters
  • None
Sample Request
Sample Response

AS.Ads.getList

Returns the list of ads for this publisher
Parameters
  • perpage (Optional, default value is 10)
    The number of items per page
  • page (Optional, default value is 1)
    The page number
Sample Request
Sample Response

AS.Ads.createStandard

Create a new standard/external ad (SWF, JPG, GIF, PNG, BMP) for this account. Limit 50 calls/day and use POST
Parameters
  • name (Required)
    The name of this ad
  • clickurl (Required)
    The destination URL to redirect when someone clicks on this ad (start with http://, must be URL-encoded properly)
  • imageurl (Required)
    The URL of an external JPG/GIF/BMP/SWF file (start with http://, must be URL-encoded properly)
Sample Request
Sample Response

AS.Ads.createHTML

Create a new RichMedia/HTML ad for this account. Limit 50 calls/day and use POST
Parameters
  • name (Required)
    The name of this ad
  • html (Required)
    The HTML ad code
  • width (Required)
    The ad width in pixels
  • height (Required)
    The ad height in pixels
Sample Request
Sample Response

AS.Ads.createText

Create a new text link ad for this account. Limit 50 calls/day and use POST
Parameters
  • name (Required)
    The name of this ad
  • first (Required)
    The first text line
  • next (Required)
    The next text line(s)
  • clickurl (Required)
    The destination URL to redirect when someone clicks on this ad (start with http://, must be URL-encoded properly)
Sample Request
Sample Response

AS.Ad.linkToZone

Links this ad to the specified zone
Parameters
  • ad (Required)
    The ad identification
  • zone (Required)
    The zone identification
  • token (Required)
    The authentication MD5 hash generated from concatenating [Ad ID][Ad Name][Zone ID][Zone Name]
Sample Request
Sample Response

AS.Ad.unlinkFromZone

Unlinks this ad from the specified zone
Parameters
  • ad (Required)
    The ad identification
  • zone (Required)
    The zone identification
  • token (Required)
    The authentication MD5 hash generated from concatenating [Ad ID][Ad Name][Zone ID][Zone Name]
Sample Request
Sample Response

AS.Ad.getServingCode

Returns the serving code for this ad
Parameters
  • ad (Required)
    The ad identification
  • token (Required)
    The authentication MD5 hash generated from concatenating [Ad ID][Ad Name]
  • width (Required)
    The ad width in pixels
  • height (Required)
    The ad height in pixels
Sample Request
Sample Response

AS.Ad.getLinkedZones

Returns the list of zones linked to this ad
Parameters
  • ad (Required)
    The ad identification
  • token (Required)
    The authentication MD5 hash generated from concatenating [Ad ID][Ad Name]
  • perpage (Optional, default value is 10)
    The number of items per page
  • page (Optional, default value is 1)
    The page number
Sample Request
Sample Response

AS.Ad.getServingCodeForLinkedZones

Returns the list of zones linked to this ad and their serving codes
Parameters
  • ad (Required)
    The ad identification
  • token (Required)
    The authentication MD5 hash generated from concatenating [Ad ID][Ad Name]
  • perpage (Optional, default value is 10)
    The number of items per page
  • page (Optional, default value is 1)
    The page number
Sample Request
Sample Response

AS.Ad.getStats

Returns the stats for this ad. Limit 50 calls/day
Parameters
  • ad (Required)
    The ad identification
  • token (Required)
    The authentication MD5 hash generated from concatenating [Ad ID][Ad Name]
  • metric (Required)
    The type of metric can be "impressions", "clicks" or "revenue"
  • period (Required)
    The breakdown period can be "hourly", "daily", or "monthly"
Sample Request
Sample Response

Other Articles in AdSpeed API

Documentation about building applications with AdSpeed API
Search Help Center

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

Related Articles

  • Website i
    "Documentation for API methods to manage one or multiple websites. API Version1.2.5 (build 280809). Documentation was last modified on Sat,..."
  • Zone i
    "Documentation for API methods to manage one or multiple zones. API Version1.2.5 (build 280809). Documentation was last modified on Sat,..."
  • Campaign i
    "Documentation for API methods to manage one or multiple campaigns. API Version1.2.5 (build 280809). Documentation was last modified on Fri,..."
  • Advertiser i
    "Documentation for API methods to manage one or multiple advertisers. API Version1.2.5 (build 280809). Documentation was last modified on Fri,..."