facebook-nodejs-business-sdk
Version:
SDK for the Facebook Ads API in Javascript and Node.js
37 lines (34 loc) • 984 B
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';
/**
* Engagement
* @extends AbstractCrudObject
* @see {@link https://developers.facebook.com/docs/marketing-api/}
*/
export default class Engagement extends AbstractCrudObject {
static get Fields () {
return Object.freeze({
count: 'count',
count_string: 'count_string',
count_string_with_like: 'count_string_with_like',
count_string_without_like: 'count_string_without_like',
social_sentence: 'social_sentence',
social_sentence_with_like: 'social_sentence_with_like',
social_sentence_without_like: 'social_sentence_without_like',
id: 'id'
});
}
get (fields, params): Engagement {
return this.read(
fields,
params
);
}
}