Marketing API Version

Ad Account Adlanguage Assets

Reading

Language assets associated with this ad account

Example

Graph API Explorer
GET /v2.12/{ad-account-id}/adlanguage_assets HTTP/1.1
Host: graph.facebook.com
/* PHP SDK v5.0.0 */
/* make the API call */
try {
  // Returns a `Facebook\FacebookResponse` object
  $response = $fb->get(
    '/{ad-account-id}/adlanguage_assets',
    '{access-token}'
  );
} catch(Facebook\Exceptions\FacebookResponseException $e) {
  echo 'Graph returned an error: ' . $e->getMessage();
  exit;
} catch(Facebook\Exceptions\FacebookSDKException $e) {
  echo 'Facebook SDK returned an error: ' . $e->getMessage();
  exit;
}
$graphNode = $response->getGraphNode();
/* handle the result */
/* make the API call */
FB.api(
    "/{ad-account-id}/adlanguage_assets",
    function (response) {
      if (response && !response.error) {
        /* handle the result */
      }
    }
);
/* make the API call */
new GraphRequest(
    AccessToken.getCurrentAccessToken(),
    "/{ad-account-id}/adlanguage_assets",
    null,
    HttpMethod.GET,
    new GraphRequest.Callback() {
        public void onCompleted(GraphResponse response) {
            /* handle the result */
        }
    }
).executeAsync();
// For more complex open graph stories, use `FBSDKShareAPI`
// with `FBSDKShareOpenGraphContent`
/* make the API call */
FBSDKGraphRequest *request = [[FBSDKGraphRequest alloc]
                               initWithGraphPath:@"/{ad-account-id}/adlanguage_assets"
                                      parameters:params
                                      HTTPMethod:@"GET"];
[request startWithCompletionHandler:^(FBSDKGraphRequestConnection *connection,
                                      id result,
                                      NSError *error) {
    // Handle the result
}];
If you want to learn how to use the Graph API, read our Using Graph API guide.

Parameters

This endpoint doesn't have any parameters.

Fields

Reading from this edge will return a JSON formatted result:

{ "data": [], "paging": {} }

data

A list of AdAssetFeed nodes.

paging

For more details about pagination, see the Graph API guide.

Validation Rules

ErrorDescription
100Invalid parameter

Creating

You can make a POST request to adlanguage_assets edge from the following paths:
When posting to this edge, an AdAssetFeed will be created.

Parameters

NameDescription
bodies
list<Object>

collection of body texts
{
{"text": "Save up to 30%", "language": "en_XX"},
{"text": "Sale & Clearance", "language": "fr_XX"},
}

text
string
Supports Emoji
url_tags
string
adlabels
list<Object>
language
string
call_to_action_type
enum{OPEN_LINK, LIKE_PAGE, SHOP_NOW, PLAY_GAME, INSTALL_APP, USE_APP, CALL, CALL_ME, INSTALL_MOBILE_APP, USE_MOBILE_APP, MOBILE_DOWNLOAD, BOOK_TRAVEL, LISTEN_MUSIC, WATCH_VIDEO, LEARN_MORE, SIGN_UP, DOWNLOAD, WATCH_MORE, NO_BUTTON, VISIT_PAGES_FEED, APPLY_NOW, BUY_NOW, GET_OFFER, GET_OFFER_VIEW, BUY_TICKETS, UPDATE_APP, GET_DIRECTIONS, BUY, MESSAGE_PAGE, DONATE, SUBSCRIBE, SAY_THANKS, SELL_NOW, SHARE, DONATE_NOW, GET_QUOTE, CONTACT_US, ORDER_NOW, ADD_TO_CART, VIDEO_ANNOTATION, MOMENTS, RECORD_NOW, GET_SHOWTIMES, LISTEN_NOW, EVENT_RSVP, WHATSAPP_MESSAGE}

call to action to be used in the asset feed

default_language
string

default language in the asset feed

descriptions
list<Object>

collection of descriptions
{
{"text": "Try them today.", "language": "en_XX"},
}

text
string
Supports Emoji
url_tags
string
adlabels
list<Object>
language
string
image
Object

image to be used in the asset feed

hash
string
url
URL
link_urls
list<Object>

collection of link urls
{
{"url": "www.facebook.com/", "language": "en_XX"},
{"url": "www.instagram.com/", "language": "fr_XX"},
}

website_url
URL
display_url
string
deeplink_url
string
url_tags
string
adlabels
list<Object>
language
string
titles
list<Object>

collection of title texts
{
{"text": "Cool math games", "language": "en_XX"},
{"text": "Cool kids games", "language": "fr_XX"},
}

text
string
Supports Emoji
url_tags
string
adlabels
list<Object>
language
string
video
Object

video to be used in the asset feed

video_id
int64

Return Type

This endpoint supports read-after-write and will read the node represented by asset_feed_id in the return type.
Struct {
asset_feed_id: numeric string,
}

Validation Rules

ErrorDescription
100Invalid parameter

Updating

You can't perform this operation on this endpoint.

Deleting

You can't perform this operation on this endpoint.