facebook-nodejs-business-sdk
Version:
SDK for the Facebook Ads API in Javascript and Node.js
39 lines (36 loc) • 954 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';
/**
* AudienceInsightsRule
* @extends AbstractCrudObject
* @see {@link https://developers.facebook.com/docs/marketing-api/}
*/
export default class AudienceInsightsRule extends AbstractCrudObject {
static get Fields () {
return Object.freeze({
archived: 'archived',
can_be_updated: 'can_be_updated',
created_by: 'created_by',
creation_time: 'creation_time',
description: 'description',
id: 'id',
language: 'language',
name: 'name',
rule_components: 'rule_components',
studies: 'studies'
});
}
get (fields, params): AudienceInsightsRule {
return this.read(
fields,
params
);
}
}