facebook-nodejs-business-sdk
Version:
SDK for the Facebook Ads API in Javascript and Node.js
45 lines (41 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';
/**
* AdRuleExecutionSpec
* @extends AbstractCrudObject
* @see {@link https://developers.facebook.com/docs/marketing-api/}
*/
export default class AdRuleExecutionSpec extends AbstractCrudObject {
static get Fields () {
return Object.freeze({
execution_options: 'execution_options',
execution_type: 'execution_type',
id: 'id'
});
}
static get ExecutionType (): Object {
return Object.freeze({
ping_endpoint: 'PING_ENDPOINT',
notification: 'NOTIFICATION',
pause: 'PAUSE',
rebalance_budget: 'REBALANCE_BUDGET',
change_budget: 'CHANGE_BUDGET',
change_bid: 'CHANGE_BID',
rotate: 'ROTATE',
unpause: 'UNPAUSE'
});
}
get (fields, params): AdRuleExecutionSpec {
return this.read(
fields,
params
);
}
}