API Example Sites List

From InClickAdServer

Domain Level Approvals - List Domains

This API Service Request list the Domains (Domain Level Approval) available within the system.

The Code Example

Breaking Down the Code

This require references the local inClick Ad Server deployment configuration files allowing your code to utilize the pre-packaged API Objects as well as the bundled PHPOlait services.


This require contains the API Objects and Classes needed for this API Service Request.


This creates the instance of the classes needed to create API Service Request.


This creates the settings for the API Service Request.

  • setPublisherID - Available values:
    • -1: All Publishers
    • Account Number for the Publisher to filter the view to.
  • setStatusFilter - Filters the view to the domains approval status. Available values are:
    • -1: View all status types
    • 1: Pending Review
    • 2: Approvad
    • 3: Declined
  • setResultsPerPage - Sets the number of records per page. -1 will show all results in a single page.
  • setCurrentPage - If the results can span more than on page, this will allow you to page the data. -1 ignores this setting.

This sends the request to the inClick Cloud Server deployment.


This section is provided to give a visual confirmation of what occurred.

Last Updated: 01/12/2017