UNPKG

facebook-nodejs-business-sdk

Version:
62 lines (58 loc) 1.75 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'; /** * AdAccountDeliveryEstimate * @extends AbstractCrudObject * @see {@link https://developers.facebook.com/docs/marketing-api/} */ export default class AdAccountDeliveryEstimate extends AbstractCrudObject { static get Fields () { return Object.freeze({ bid_estimate: 'bid_estimate', daily_outcomes_curve: 'daily_outcomes_curve', estimate_dau: 'estimate_dau', estimate_mau: 'estimate_mau', estimate_ready: 'estimate_ready', id: 'id' }); } static get OptimizationGoal (): Object { return Object.freeze({ none: 'NONE', app_installs: 'APP_INSTALLS', brand_awareness: 'BRAND_AWARENESS', ad_recall_lift: 'AD_RECALL_LIFT', clicks: 'CLICKS', engaged_users: 'ENGAGED_USERS', event_responses: 'EVENT_RESPONSES', impressions: 'IMPRESSIONS', lead_generation: 'LEAD_GENERATION', link_clicks: 'LINK_CLICKS', offer_claims: 'OFFER_CLAIMS', offsite_conversions: 'OFFSITE_CONVERSIONS', page_engagement: 'PAGE_ENGAGEMENT', page_likes: 'PAGE_LIKES', post_engagement: 'POST_ENGAGEMENT', reach: 'REACH', social_impressions: 'SOCIAL_IMPRESSIONS', video_views: 'VIDEO_VIEWS', app_downloads: 'APP_DOWNLOADS', landing_page_views: 'LANDING_PAGE_VIEWS', value: 'VALUE', replies: 'REPLIES' }); } get (fields, params): AdAccountDeliveryEstimate { return this.read( fields, params ); } }