Marketing API Version

Ad Account Adlanguage Assets

Reading

Language assets associated with this ad account

Graph API Explorer
GET /v2.10/{ad-account-id}/adlanguage_assets HTTP/1.1
Host: graph.facebook.com
/* PHP SDK v5.0.0 */
/* make the API call */
$request = new FacebookRequest(
  $session,
  'GET',
  '/{ad-account-id}/adlanguage_assets'
);
$response = $request->execute();
$graphObject = $response->getGraphObject();
/* 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
}];

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
274The ad account is not enabled for usage in Ads API. Please add it in developers.facebook.com/apps -> select your app -> settings -> advanced -> advertising accounts -> Ads API

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, INSTALL_MOBILE_APP, USE_MOBILE_APP, BOOK_TRAVEL, LISTEN_MUSIC, LEARN_MORE, SIGN_UP, DOWNLOAD, WATCH_MORE, NO_BUTTON, CALL_NOW, APPLY_NOW, BUY_NOW, GET_OFFER, GET_OFFER_VIEW, GET_DIRECTIONS, MESSAGE_PAGE, MESSAGE_USER, SUBSCRIBE, SELL_NOW, DONATE_NOW, GET_QUOTE, CONTACT_US, START_ORDER, RECORD_NOW, VOTE_NOW, REGISTER_NOW, REQUEST_TIME, SEE_MENU, EMAIL_NOW, GET_SHOWTIMES, TRY_IT, LISTEN_NOW, OPEN_MOVIES}

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
URL
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.