facebook-nodejs-business-sdk
Version:
SDK for the Facebook Ads API in Javascript and Node.js
46 lines (43 loc) • 1.3 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';
/**
* AdRuleHistory
* @extends AbstractCrudObject
* @see {@link https://developers.facebook.com/docs/marketing-api/}
*/
export default class AdRuleHistory extends AbstractCrudObject {
static get Fields () {
return Object.freeze({
evaluation_spec: 'evaluation_spec',
exception_code: 'exception_code',
exception_message: 'exception_message',
execution_spec: 'execution_spec',
is_manual: 'is_manual',
results: 'results',
schedule_spec: 'schedule_spec',
timestamp: 'timestamp',
});
}
static get Action (): Object {
return Object.freeze({
budget_not_redistributed: 'BUDGET_NOT_REDISTRIBUTED',
changed_bid: 'CHANGED_BID',
changed_budget: 'CHANGED_BUDGET',
email: 'EMAIL',
endpoint_pinged: 'ENDPOINT_PINGED',
error: 'ERROR',
facebook_notification_sent: 'FACEBOOK_NOTIFICATION_SENT',
message_sent: 'MESSAGE_SENT',
not_changed: 'NOT_CHANGED',
paused: 'PAUSED',
unpaused: 'UNPAUSED',
});
}
}