Ads

SklikApi. Ads

(private) new Ads()

Methods

get(adIds) → {Object}

Gets details of ads with specified IDs.

Parameters:
Name Type Description
adIds number | Array.<number>

Ad ID or array with IDs of multiple ads.

See:
Returns:

Ads information

Type
Object

list(restrictionFilter, displayOptions) → {Object}

Lists ads for the account. The ads can be filtered by campaigns or groups.

Parameters:
Name Type Description
restrictionFilter Object

Filter (campaigns IDs etc.)

displayOptions Object

Display options.

See:
Returns:

List of ads.

Type
Object

stats(bannerIds, params) → {Object}

Gets statistics for specified banners.

Parameters:
Name Type Description
bannerIds number | Array.<number>

ID of banner or array of banner IDs.

params Object

Parameters for the statistics report.

See:
Returns:

Banner statistics.

Type
Object

stats(adIds, params) → {Object}

Gets statistics report of the given ads.

Parameters:
Name Type Description
adIds number | Array.<number>

Ad ID or array with IDs of multiple ads.

params Object

Parameters for the statistics report.

See:
Returns:

Ads statistics.

Type
Object