UNPKG

facebook-nodejs-business-sdk

Version:
54 lines (49 loc) 1.31 kB
/** * 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'; /** * AdImage * @extends AbstractCrudObject * @see {@link https://developers.facebook.com/docs/marketing-api/} */ export default class AdImage extends AbstractCrudObject { static get Fields () { return Object.freeze({ account_id: 'account_id', created_time: 'created_time', creatives: 'creatives', hash: 'hash', height: 'height', id: 'id', is_associated_creatives_in_adgroups: 'is_associated_creatives_in_adgroups', name: 'name', original_height: 'original_height', original_width: 'original_width', permalink_url: 'permalink_url', status: 'status', updated_time: 'updated_time', url: 'url', url_128: 'url_128', width: 'width', }); } static get Status (): Object { return Object.freeze({ active: 'ACTIVE', deleted: 'DELETED', }); } get (fields: Array<string>, params: Object = {}): AdImage { // $FlowFixMe : Support Generic Types return this.read( fields, params ); } }