When a Facebook message is promoted through the Facebook user interface, a small small โView Resultsโ button and a small histogram of a boost or organic reach are displayed.

When promoted through the API, I cannot get this to display. Is this display purely for enhancement via the Facebook interface or can it be called through the API in some way?
The code we use to create the ad is as follows:
$adset = new AdSet(null, <ad account ID>); $adset->setData([ AdSetFields::NAME => 'Test Adset', AdSetFields::CAMPAIGN_ID => <campaign ID>, AdSetFields::DAILY_BUDGET => 100, AdSetFields::IS_AUTOBID => true, AdSetFields::LIFETIME_BUDGET => 100, AdSetFields::TARGETING => <targeting specs>, AdSetFields::OPTIMIZATION_GOAL => OptimizationGoals::POST_ENGAGEMENT, AdSetFields::BILLING_EVENT => BillingEvents::IMPRESSIONS, AdSetFields::START_TIME => <start time>, AdSetFields::END_TIME => <end time>, ])->validate()->create([ AdSet::STATUS_PARAM_NAME => AdSet::STATUS_ACTIVE, ]); $creative = new AdCreative(null, <ad account ID>); $creative->setData([ AdCreativeFields::NAME => 'Test Creative', AdCreativeFields::OBJECT_STORY_ID => '<Facebook post ID>', ])->create(); $ad = new Ad(null, <ad account ID>); $ad->setData([ AdFields::CREATIVE => ['creative_id' => $creative->id], AdFields::NAME => 'Test Ad', AdFields::ADSET_ID => $adset->id, ])->create([ Ad::STATUS_PARAM_NAME => Ad::STATUS_ACTIVE, ]);
source share