Have questions? Contact Us

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

live chat with us

Testimonials

  • I have been a long time customer of yours and appreciate your fantastic service.

    Sam

  • Thank you for following up. You have superb customer service.

    Jesse Mack
    Ironsolutions

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 Mon, 16 Nov 2009 08:51:48 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
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
PrintWas this information helpful? Yes / No

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 Sun,..."
  • Group i
    "Documentation for API methods to manage one or multiple groups. API Version1.2.5 (build 280809). Documentation was last modified on Sun,..."
  • Zone i
    "Documentation for API methods to manage one or multiple zones. API Version1.2.5 (build 280809). Documentation was last modified on Mon,..."
  • Campaign i
    "Documentation for API methods to manage one or multiple campaigns. API Version1.2.5 (build 280809). Documentation was last modified on Sun,..."