facebook-nodejs-business-sdk
Version:
SDK for the Facebook Marketing API in Javascript and Node.js
76 lines (72 loc) • 2.66 kB
JavaScript
/*
* 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';
/**
* MessageDeliveryEstimate
* @extends AbstractCrudObject
* @see {@link https://developers.facebook.com/docs/marketing-api/}
*/
export default class MessageDeliveryEstimate extends AbstractCrudObject {
static get Fields (): Object {
return Object.freeze({
estimate_cost: 'estimate_cost',
estimate_cost_lower_bound: 'estimate_cost_lower_bound',
estimate_cost_upper_bound: 'estimate_cost_upper_bound',
estimate_coverage_lower_bound: 'estimate_coverage_lower_bound',
estimate_coverage_upper_bound: 'estimate_coverage_upper_bound',
estimate_delivery: 'estimate_delivery',
estimate_delivery_lower_bound: 'estimate_delivery_lower_bound',
estimate_delivery_upper_bound: 'estimate_delivery_upper_bound',
estimate_status: 'estimate_status',
});
}
static get OptimizationGoal (): Object {
return Object.freeze({
ad_recall_lift: 'AD_RECALL_LIFT',
app_installs: 'APP_INSTALLS',
app_installs_and_offsite_conversions: 'APP_INSTALLS_AND_OFFSITE_CONVERSIONS',
conversations: 'CONVERSATIONS',
derived_events: 'DERIVED_EVENTS',
engaged_users: 'ENGAGED_USERS',
event_responses: 'EVENT_RESPONSES',
impressions: 'IMPRESSIONS',
in_app_value: 'IN_APP_VALUE',
landing_page_views: 'LANDING_PAGE_VIEWS',
lead_generation: 'LEAD_GENERATION',
link_clicks: 'LINK_CLICKS',
meaningful_call_attempt: 'MEANINGFUL_CALL_ATTEMPT',
messaging_appointment_conversion: 'MESSAGING_APPOINTMENT_CONVERSION',
messaging_purchase_conversion: 'MESSAGING_PURCHASE_CONVERSION',
none: 'NONE',
offsite_conversions: 'OFFSITE_CONVERSIONS',
page_likes: 'PAGE_LIKES',
post_engagement: 'POST_ENGAGEMENT',
profile_visit: 'PROFILE_VISIT',
quality_call: 'QUALITY_CALL',
quality_lead: 'QUALITY_LEAD',
reach: 'REACH',
reminders_set: 'REMINDERS_SET',
subscribers: 'SUBSCRIBERS',
thruplay: 'THRUPLAY',
value: 'VALUE',
visit_instagram_profile: 'VISIT_INSTAGRAM_PROFILE',
});
}
static get PacingType (): Object {
return Object.freeze({
day_parting: 'DAY_PARTING',
disabled: 'DISABLED',
no_pacing: 'NO_PACING',
probabilistic_pacing: 'PROBABILISTIC_PACING',
probabilistic_pacing_v2: 'PROBABILISTIC_PACING_V2',
standard: 'STANDARD',
});
}
}