Strengthening the Facebook message through the API and its reflection in the FB interface

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.

enter image description here

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, ]); 
+5
source share
1 answer

Apparently this is by design:

It is actually by design. Extending the vi user interface and promoting it through the ads API are considered separate actions. In fact, you can do both at the same time. That is why an advanced state does not affect an enhanced state.

https://developers.facebook.com/bugs/854544994579143/

+2
source

All Articles