facebook-nodejs-business-sdk
Version:
SDK for the Facebook Ads API in Javascript and Node.js
43 lines (39 loc) • 1.09 kB
JavaScript
/**
* Copyright (c) 2017-present, Facebook, Inc.
* All rights reserved.
*
* This source code is licensed under the license found in the
* LICENSE file in the root directory of this source tree.
* @flow
*/
import {AbstractCrudObject} from './../abstract-crud-object';
/**
* ProductItemInsights
* @extends AbstractCrudObject
* @see {@link https://developers.facebook.com/docs/marketing-api/}
*/
export default class ProductItemInsights extends AbstractCrudObject {
static get Fields () {
return Object.freeze({
ad_click_count: 'ad_click_count',
ad_impression_count: 'ad_impression_count',
add_to_cart_count: 'add_to_cart_count',
purchase_count: 'purchase_count',
view_content_count: 'view_content_count',
id: 'id'
});
}
static get InsightsSources (): Object {
return Object.freeze({
external_event_source: 'external_event_source',
ad_account: 'ad_account',
user_feedback: 'user_feedback'
});
}
get (fields, params): ProductItemInsights {
return this.read(
fields,
params
);
}
}