Package com.restfb.types.ads
Class AdCreativeLinkData
java.lang.Object
com.restfb.types.AbstractFacebookType
com.restfb.types.ads.AdCreativeLinkData
- All Implemented Interfaces:
HasMessage,Serializable
Represents the
AdCreativeLinkData
Marketing API type
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetLink()getName()voidsetAdditionalImageIndex(Long additionalImageIndex) The index (zero based) of the image from the additionalimages array to use as the ad image for a dynamic product advoidsetAppLinkSpec(AdCreativeLinkDataAppLinkSpec appLinkSpec) Native deeplinks attached to the postvoidsetAttachmentStyle(String attachmentStyle) The style of the attachment.voidsetBrandedContentSponsorPageId(String brandedContentSponsorPageId) The branded content sponsor page id.voidsetBrandedContentSponsorRelationship(String brandedContentSponsorRelationship) The branded content sponsor relationship option.voidsetCallToAction(AdCreativeLinkDataCallToAction callToAction) An optional call to action button.voidsetCanvasEnabled(Boolean canvasEnabled) If canvas experience is enabled post clickvoidsetCaption(String caption) Link caption.voidsetChildAttachments(List<AdCreativeLinkDataChildAttachment> childAttachments) voidsetDescription(String description) Link description.voidsetEventId(String eventId) The id of a Facebook event.voidsetForceSingleLink(Boolean forceSingleLink) Whether to force the post to render in a single link formatvoidsetImageCrops(AdsImageCrops imageCrops) How to the image should be cropped.voidsetImageHash(String imageHash) Hash of an image in your image library with Facebook.voidLink url.voidsetMessage(String message) The main body of the post.voidsetMultiShareEndCard(Boolean multiShareEndCard) If set to false, removes the end card which displays the page icon.voidsetMultiShareOptimized(Boolean multiShareOptimized) If set to true, automatically select and order images and links.voidName of the link.voidsetOfferId(String offerId) The id of a Facebook native offer.voidsetPageWelcomeMessage(String pageWelcomeMessage) A welcome text from page to user on Messenger once a user performs send message action on an ad.voidsetPicture(String picture) URL of a picture to use in the post.voidsetPostClickConfiguration(AdCreativePostClickConfiguration postClickConfiguration) voidsetRetailerItemIds(List<String> retailerItemIds) List of product IDs provided by the advertiser for CollectionsMethods inherited from class com.restfb.types.AbstractFacebookType
equals, hashCode, toString
-
Constructor Details
-
AdCreativeLinkData
public AdCreativeLinkData()
-
-
Method Details
-
getAdditionalImageIndex
- Returns:
- The index (zero based) of the image from the additionalimages array to use as the ad image for a dynamic product ad
-
setAdditionalImageIndex
The index (zero based) of the image from the additionalimages array to use as the ad image for a dynamic product ad -
getAppLinkSpec
- Returns:
- Native deeplinks attached to the post
-
setAppLinkSpec
Native deeplinks attached to the post -
getAttachmentStyle
- Returns:
- The style of the attachment.
-
setAttachmentStyle
The style of the attachment. -
getBrandedContentSponsorPageId
- Returns:
- The branded content sponsor page id.
-
setBrandedContentSponsorPageId
The branded content sponsor page id. -
getBrandedContentSponsorRelationship
- Returns:
- The branded content sponsor relationship option.
-
setBrandedContentSponsorRelationship
The branded content sponsor relationship option. -
getCallToAction
- Returns:
- An optional call to action button
-
setCallToAction
An optional call to action button. If not specified, on Instagram, a default CTA would be used,{"type":"LEARN_MORE","value": {"link":,}}. -
getCanvasEnabled
- Returns:
- If canvas experience is enabled post click
-
setCanvasEnabled
If canvas experience is enabled post click -
getCaption
- Returns:
- Link caption.
-
setCaption
Link caption. Overwrites the caption under the title in the link on Facebook. See post for more info. This setting is not used on Instagram. -
getChildAttachments
-
setChildAttachments
-
getDescription
- Returns:
- Link description.
-
setDescription
Link description. Overwrites the description in the link on Facebook. See post for more info. This setting is not used on Instagram. -
getEventId
- Returns:
- The id of a Facebook event.
-
setEventId
The id of a Facebook event. This is only to be used if this creative is for a Website Clicks campaign, the Call To Action is Buy Tickets, and the link points to the ticketing website of this Facebook event. -
getForceSingleLink
- Returns:
- Whether to force the post to render in a single link format
-
setForceSingleLink
Whether to force the post to render in a single link format -
getImageCrops
- Returns:
- How to the image should be cropped.
-
setImageCrops
How to the image should be cropped. Different placements use different crop specs. For example, Facebook News Feed uses the crop spec with 191x100 key, and Instagram uses 100x100 crop spec. -
getImageHash
- Returns:
- Hash of an image in your image library with Facebook.
-
setImageHash
Hash of an image in your image library with Facebook. Specify this field or picture but not both -
getLink
- Returns:
- Link url
-
setLink
Link url. See post for more info. This field is required for a carousel ad . -
getMessage
- Specified by:
getMessagein interfaceHasMessage- Returns:
- The main body of the post
-
setMessage
The main body of the post. See post for more info. This field is required for a carousel ad . -
getName
- Returns:
- Name of the link.
-
setName
Name of the link. Overwrites the title of the link preview. See post for more info. -
getOfferId
- Returns:
- The id of a Facebook native offer.
-
setOfferId
The id of a Facebook native offer. -
getPageWelcomeMessage
- Returns:
- A welcome text from page to user on Messenger once a user performs send message action on an ad.
-
setPageWelcomeMessage
A welcome text from page to user on Messenger once a user performs send message action on an ad. -
getPicture
- Returns:
- URL of a picture to use in the post.
-
setPicture
URL of a picture to use in the post. Specify this field or image_hash but not both. See post for more info. The image specified at the URL will be saved into the ad accounts image library -
getPostClickConfiguration
-
setPostClickConfiguration
-
getRetailerItemIds
- Returns:
- List of product IDs provided by the advertiser for Collections
-
setRetailerItemIds
List of product IDs provided by the advertiser for Collections
-