facebook-nodejs-business-sdk
Version:
SDK for the Facebook Ads API in Javascript and Node.js
38 lines (35 loc) • 1.01 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';
/**
* LeadGenDraftQuestion
* @extends AbstractCrudObject
* @see {@link https://developers.facebook.com/docs/marketing-api/}
*/
export default class LeadGenDraftQuestion extends AbstractCrudObject {
static get Fields () {
return Object.freeze({
conditional_questions_choices: 'conditional_questions_choices',
conditional_questions_group_id: 'conditional_questions_group_id',
dependent_conditional_questions: 'dependent_conditional_questions',
inline_context: 'inline_context',
key: 'key',
label: 'label',
options: 'options',
type: 'type',
id: 'id'
});
}
get (fields, params): LeadGenDraftQuestion {
return this.read(
fields,
params
);
}
}