UNPKG

facebook-nodejs-business-sdk

Version:

SDK for the Facebook Marketing API in Javascript and Node.js

53 lines (47 loc) 1.39 kB
/* * Copyright (c) Meta Platforms, Inc. and affiliates. * 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'; /** * AdProposal * @extends AbstractCrudObject * @see {@link https://developers.facebook.com/docs/marketing-api/} */ export default class AdProposal extends AbstractCrudObject { static get Fields (): Object { return Object.freeze({ ad_proposal_type_name: 'ad_proposal_type_name', adaccount: 'adaccount', creation_time: 'creation_time', creator: 'creator', delivery_interface: 'delivery_interface', expiration_time: 'expiration_time', has_conflict: 'has_conflict', id: 'id', kpi_metric: 'kpi_metric', message: 'message', name: 'name', proposal_dts_template: 'proposal_dts_template', proposal_template_name: 'proposal_template_name', recommendation: 'recommendation', review_time: 'review_time', reviewed_by: 'reviewed_by', send_time: 'send_time', status: 'status', use_testing: 'use_testing', }); } get (fields: Array<string>, params: Object = {}): AdProposal { // $FlowFixMe : Support Generic Types return this.read( fields, params ); } }