Meta for Developers
Reading: Meta for Developers
Creating or Updating Your Ads
When you make operating room update associate in nursing ad, you displace intend
execution_options=['include_recommendations', 'validate_only']
, then the response to your name will include the ad review result from Facebook, if we detect excessively much textbook overlay. no matter what the review read, you can inactive produce the ad merely information technology delivery whitethorn constitute impacted .use FacebookAds\Object\Ad; use FacebookAds\Object\Fields\AdFields; $data = array( AdFields::NAME => 'My Ad', AdFields::ADSET_ID =>
, AdFields::CREATIVE => array( 'creative_id' => , ), ); $ad = new Ad(null, 'act_ '); $ad->setData($data); $ad->create(array( Ad::STATUS_PARAM_NAME => Ad::STATUS_PAUSED, 'execution_options' => array('include_recommendations', 'validate_only'), )); from facebookads.adobjects.ad import Ad ad = Ad(parent_id='act_
') ad[Ad.Field.name] = 'My Ad' ad[Ad.Field.adset_id] = ad[Ad.Field.creative] = { 'creative_id': , } ad.remote_create(params={ 'status': Ad.Status.paused, Ad.Field.execution_options: [ 'validate_only', 'include_recommendations', ], }) Ad ad = new AdAccount(act_
, context).createAd() .setName("My Ad") .setAdsetId( ) .setCreative( new AdCreative() .setFieldId( ) ) .setStatus(Ad.EnumStatus.VALUE_PAUSED) .setExecutionOptions("[\"include_recommendations\",\"validate_only\"]") .execute(); curl \ -F 'name=My Ad' \ -F 'adset_id=
' \ -F 'creative={"creative_id":" "}' \ -F 'status=PAUSED' \ -F 'execution_options=["include_recommendations","validate_only"]' \ -F 'access_token= ' \ https://graph.facebook.com/v2.11/act_ /ads sample reception :
{ "success": true, "recommendations": [ { "title": "Ad image contains too much text", "message": "Your ad uses an image that has a lot of text within it. Because of this, your ad may not reach as many people as possible or may not be delivered at all. Try reducing the amount of text in your ad's image.", "code": 1942015, "importance": "HIGH", "confidence": "HIGH", "blame_field": "creative", }, ] }After an Ad is Created
after the ad be active voice and Facebook give birth information technology, if the ad receive associate in nursing picture with excessively a lot text, Facebook review information technology and delegate ampere rescue reduction degree. You can read the delivery decrease horizontal surface aside check the
recommendations
of associate in nursing ad .use FacebookAds\Object\Ad; use FacebookAds\Object\Fields\AdFields; $ad = new Ad($ad_id); $ad->read(array( AdFields::RECOMMENDATIONS, )); // Output recommendations echo $ad->{AdFields::RECOMMENDATIONS}.PHP_EOL;
curl \ -d "fields=recommendations" \ -d "access_token=
" \ https://graph.facebook.com/ / sample distribution reply : ( The
title
field contain the horizontal surface adenine “ high ” in this exercise ){ "recommendations": [ { "title": "Text Overlay Penalty Level High", "message": "Your ad's image contains an excessive amount of text. A penalty is restricting your ad from running. Reduce image text to make sure your ad reaches its audience.", "code": 1942019, "importance": "HIGH", "confidence": "HIGH", "blame_field": "creative" } ], "id": "" } If your ad hold no persona text offspring, you volition not witness this recommendation. otherwise, you may go steady the penalty grade angstrom first gear, medium, oregon high.
Level Code Delivery Impact Low 1942017 The delivery would cost slightly affect . Medium 1942018 The delivery would equal impact . High 1942019 Read more : How to Log out of Facebook
The manner of speaking would exist stop . Handling Delivery Reduction
- You should check the recommendation ahead ad creation, and get the “ textbook overlie penalty grade ” after associate in nursing ad exist create and give birth. You can modify the creative if the reduction charge be not acceptable .