ClickAider

API Documentation

    Table of Contents



    User authentication

To use the API you should be authorised via http authorization. For test needs API engine uses the user currently logged in to clickaider.com.
You can use all the following examples with proper results using demo account. To log into the demo account use the following login/password: demo/demo.

Table of Contents

    User data management
  • Signup
  • Profile management
    • users.getList ( fields[, page[, num[, meta[, orderby]]]] ) [ Example1, Example2 ] Fields list: login,unihash,firstname,lastname,email,time_zone,date_registered,date_lastlogin,type,site_count
    • userSettings.getProfile ( unihash ) [ Example ]
    • userSettings.setProfile ( unihash[, firstname[, lastname[, time_zone[, bReceiveNotices]]]] ) [ Example1, Example2 ]
    • userSettings.changePass ( unihash, pass ) [ Example ]
    • userSettings.changeEmail ( unihash, email ) [ Example1, Example2 ]
    • userSettings.confirmEmail ( unihash ) [ Example ]

Table of Contents

    Sites management
  • Site profile management
    • sites.getList ( unihash[, page[, num[, meta]]] ) [ Example1, Example2 ]
    • sites.add ( unihash, name, url, time_zone ) [ Example1, Example2 ]
    • sites.del ( unihash, sites_ids ) [ Example ]
    • sites.ban ( unihash, sites_ids ) [ Example ]
    • siteSettings.update ( unihash, site_id, name, url, time_zone ) [ Example ]
    • siteSettings.getProfile ( unihash, site_id ) [ Example ]
    • siteSettings.getTrackingCode ( unihash, site_id[, track_links[, track_forms[, track_intellitxt[, tags]]]] ) [ Example1, Example2] Tracking code help
    • getLogos ( ) [ Example ]
  • Clicks log subscription
    • siteSettings.getLogFilesubScriptionStatus ( unihash, site_id ) [ Example ]
    • siteSettings.subscribeLogFile ( unihash, site_id ) [ Example ]
    • siteSettings.setLogFileSubscriptionType ( unihash, site_id, type ) [ Example1, Example2 ]
    • siteSettings.unsubscribeLogFile ( unihash, site_id ) [ Example ]

Table of Contents

    Reports
    Whenever date/time is required, it should be provided in MM/DD/YYYY+HH:MM form.
    To limit request with some date/time period use the following parameters:
    &date_from=MM/DD/YYYY+HH:MM&date_to=MM/DD/YYYY+HH:MM
    or
    &date_from=MM/DD/YYYY+HH:MM&date_to=now
    or
    &date_from=MM/DD/YYYY+HH:MM
    Alternative way to specify date/time period is to specify it relatively in date_relative parameter. If request contains parameter date_relative, then parameters date_from and date_to are ignored.
    Default value for date_relative is last7days if neither date_relative nor date_from/date_to are specified.
    &date_relative=today | yesterday | last2days | this_week | last7days | last_week | this_month | last30days | last_month | all

    For trend reports we have parameter group_by_date.
    &group_by_date=hour | day | week | month | hourly_for_day | daily_for_week | hourly_for_week

    Request can contain filters. There are 2 types of filters - regular and excluded. To use the filters you should specify prefix "f_", for excluded filters - prefix "fe_". You can also filter by one or several values that should be comma separated.
    If you want to add filters on fields "ip" and "se" and excluded filter on field "country" the request should be like this:
    &f_ip=[IPs in decimal format separated by comma]&f_se=[ids of Search Engine names in string table separated by comma]&fe_country=[ids of countries separated by comma]

    How to retrieve values of Search Engine ID or page URL ID or country ID?
    To do that you need to create report using function report.getTop() which get list of IDs and strings sorted by clicks count and grouped by those Search Engine field or page URL field or country field. In general you can use result of any report that contains values IDs.

    You can also filter by certain strings instead of their IDs. To do that you should send API call by HTTP POST method and specify parameter bStringFilters. See function CAWS::call() in file class.CAXML.php from PHP code examples of API calls
    Also you should change filter request rule like this:
    &f_ip[]=[ip in string format]&f_ip[]=[another ip in string format]&f_se[]=[Search Engine name]&f_se[]=[another Search Engine name]&fe_country[]=[2 letter country id]&fe_country[]=[another 2 letter country id]


    Fields for which lookups are specified in current API must be filtered only by their identifiers whenever HTTP method is used and bStingFilters specified or not. See section Fields' lookup data

    Fields specification:
    Simple fields that can be filtered and grouped.
    Field nameField caption
    ipVisitors` IP / Hostname
    pagePage
    fileFile
    dirDirectory
    entry_pageEntry Page
    entry_fileEntry File
    entry_dirEntry Directory
    entry_hostEntry Host
    entry_domainEntry Domain
    domainDomain
    page_titlePage Title
    hostHost
    entry_refEntry Referer
    entry_ref_fileEntry Referer File
    entry_ref_dirEntry Referer Directory
    entry_ref_hostEntry Referer Host
    entry_ref_srcEntry Referer Source
    adAdvertiser
    banner_sizeBanner Size
    ad_formatAd Format
    ad_typeAd Type
    banner_numberBanner Number
    se_keySearch Keyword
    seSearch Engine
    se_offsetSearch Engine Offset
    click_targetClick Target
    link_targetLink Target
    link_textLink Text
    link_fileLink File
    link_directoryLink Directory
    link_hostLink Host
    link_domainLink Domain
    form_targetForm Action
    form_nameForm Name
    form_contentForm Content
    is_linkIs Link
    link_posxLink Position X
    link_posyLink Position Y
    banner_posxBanner Position X
    banner_posyBanner Position Y
    click_classAd Class
    is_linkunitLink unit/Ad unit
    visitorVisitor
    sessionSession ID
    session_timeSession Time
    session_pagesSession Pages
    time_on_the_pageTime on the Page
    browserBrowser
    refReferer
    ref_hostReferer host
    referer_fileReferer file
    orig_ref_domainOriginal Referer Site
    uaUser Agent
    browser_classBrowser Class
    osOS
    countryCountry
    regionRegion
    cityCity
    languageLanguage
    campaignCampaign
    border_colorBorder color
    bg_colorBackground color
    link_colorLink color
    url_colorUrl color
    txt_colorText color
    clientClient
    channelChannel
    page_channelPage Channel 1
    page_channel2Page Channel 2
    page_channel3Page Channel 3
    entry_page_channelEntry Page Channel 1
    entry_page_channel2Entry Page Channel 2
    entry_page_channel3Entry Page Channel 3
    link_channelLink Channel 1
    link_channel2Link Channel 2
    link_channel3Link Channel 3
    uv1User Variable 1
    uv2User Variable 2
    uv3User Variable 3
    Combined fields that can be grouped, but not filtered.
    Grouping will be actually applied only to the first field from the list of combined fields passed in request, but data will be shown for all the combined fields.
    The following fields can be used in parameter group_by.
    For example: &group_by=title_c_page
    Field nameField captionCombined fields
    title_c_pageURL / Page Title (page, page_title, )
    locationCity / Region / Country (city, region, country, )
    link_target_c_textLink Target / Link Text (link_target, link_text, )
    country_regionRegion / Country (region, country, )
    Mandatory filters will be applied automatically if the following fields are specified for grouping:
    See filter values explanation under the table.
    Grouping By Field    Default Filtered Fields    Filter Value
    ad_format
    click_class
    1
    is_linkunit
    ad
    1
    channel
    ad
    ad
    1
    10
    client
    ad
    1
    form_target
    click_class
    3
    form_name
    click_class
    3
    form_content
    click_class
    3
    link_text
    ad
    10
    Fields By Category
    Category NameFieldField Caption
    Site
    title_c_page
    domain
    file
    host
    dir
    entry_page
    entry_file
    entry_dir
    page_title
    URLs
    Domains
    Files
    Hosts
    Directories
    Entry Pages
    Entry Files
    Entry Directories
    Page Titles
    Referers
    entry_ref
    orig_ref_domain
    Entry Referers
    Entry Referer Sites
    Advertisers
    ad
    click_class
    ad_format
    Advertisers
    Classes
    Ad Formats
    Search Engines
    se_key
    se
    Search Keywords
    Search Engines
    Targets
    click_target
    link_target_c_text
    Click Targets
    Link Targets
    Google Adsense
    is_linkunit
    channel
    client
    Link Types
    Channels
    Clients
    IntelliTXT
    channel
    link_text
    Channels
    Hover Words
    Form Info
    form_target
    form_name
    form_content
    Form Actions
    Form Names
    Form Contents
    Link Info
    link_target_c_text
    link_text
    link_domain
    link_host
    link_file
    link_directory
    Link Targets
    Link Text
    Link Domains
    Link Hosts
    Link Files
    Link Directories
    Location
    country
    country_region
    location
    language
    Countries
    Regions
    Cities
    Languages
    Audiences
    ip
    IPs
    Browsers
    ua
    browser
    browser_class
    os
    User Agents
    Browsers
    Browser Classes
    Operation Systems
    User Variables
    uv1
    uv2
    uv3
    User Variable 1
    User Variable 2
    User Variable 3
    Filter values explanation
    Advertisers (ad):
    idcaption
    0unknown
    1AdSense
    2Yahoo Publishers Network
    3Amazon
    4AdBrite
    5Begun
    6YandexDirect
    7FastClick
    8Bidvertiser
    9AuctionAds
    10IntelliTXT
    11ShoppingAds

    Click classes (click_class)
    idcaption
    0n/a
    1Advertisment
    2Link
    3Form
    Report's fields (using following functions you can easily recreate structure of existing ClickAider reports and create new reports which are not currently added to GUI interface):
  • reportFields.getSimpleFields ( ) [ Example ]
  • reportFields.getCombinedFields ( ) [ Example ]
  • reportFields.getFieldsByCategories ( ) [ Example ]
  • reportFields.getMandatoryFilters ( ) [ Example ]

  • Fields' lookup data:
  • reportFieldsLookups.getAdvertisers ( ) [ Example ]
  • reportFieldsLookups.getCountries ( ) [ Example ]
  • reportFieldsLookups.getClickClasses ( ) [ Example ]

  • Reports:
  • report.getClick ( unihash, site_id, click_id[, time_zone] ) [ Example ]
  • report.getLog ( unihash, site_id[, page[, num[, time_zone[, date_relative[, date_from[, date_to[, bStingFilters[, f_*[, fe_*[, type[, fields]]]]]]]]]]]] ) [ Example1, Example2]
  • report.getTop ( unihash, site_id, group_by, countfields[, page[, num[, time_zone[, date_relative[, date_from[, date_to[, bStingFilters[, f_*[, fe_*]]]]]]]]]] ) [ Example1, Example2 ]
  • report.getTrend ( unihash, site_id, group_by_date, countfields[, page[, num[, time_zone[, date_relative[, date_from[, date_to[, bStingFilters[, f_*[, fe_*]]]]]]]]]] ) [ Example1, Example2 ]
  • report.getTrendOfItems ( unihash, site_id, group_by_date, countfield, group_by, item_ids[, page[, num[, time_zone[, date_relative[, date_from[, date_to[, bStingFilters[, f_*[, fe_*[, bIsPercent]]]]]]]]]]]] ) [ Example1, Example2 ]
  • report.getTrendOfTopItems ( unihash, site_id, group_by_date, countfield, group_by[, page[, num[, time_zone[, date_relative[, date_from[, date_to[, bStingFilters[, f_*[, fe_* ]]]]]]]]] ) [ Example ]

Table of Contents

Copyright © 2009, Ivinco. All Rights Reserved. Contact us.