(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. |
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. |
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. |
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. |
Returns:
Ads statistics.
- Type
- Object