API Example Get Account Balance

From InClickAdServer

Get Account Balance - Single Account

This API Service Request will obtain the balance of the provided inClick Ad Server user account. This Service Request can be used to obtain the balance of any account in the system, advertiser or publisher.

The Code Example

Breaking Down the Code

This require references the API configuration file allowing your code to utilize the inClick Developer API Client Objects.

This will include the files that contain the API Objects and Classes needed for this API Service Request.

This is where we create an instance of the class needed to perform an Account Balance request.

This line processes the API Service Request using the Account ID ($account_id) provided.

This section of code is provided to give you a visual confirmation of what occurred, or to let you know what error occurred.

Updated 11/14/2016