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
-
Method Summary
Modifier and TypeMethodDescriptiongetLink()
getName()
void
setAdditionalImageIndex
(Long additionalImageIndex) The index (zero based) of the image from the additionalimages array to use as the ad image for a dynamic product advoid
setAppLinkSpec
(AdCreativeLinkDataAppLinkSpec appLinkSpec) Native deeplinks attached to the postvoid
setAttachmentStyle
(String attachmentStyle) The style of the attachment.void
setBrandedContentSponsorPageId
(String brandedContentSponsorPageId) The branded content sponsor page id.void
setBrandedContentSponsorRelationship
(String brandedContentSponsorRelationship) The branded content sponsor relationship option.void
setCallToAction
(AdCreativeLinkDataCallToAction callToAction) An optional call to action button.void
setCanvasEnabled
(Boolean canvasEnabled) If canvas experience is enabled post clickvoid
setCaption
(String caption) Link caption.void
setChildAttachments
(List<AdCreativeLinkDataChildAttachment> childAttachments) void
setDescription
(String description) Link description.void
setEventId
(String eventId) The id of a Facebook event.void
setForceSingleLink
(Boolean forceSingleLink) Whether to force the post to render in a single link formatvoid
setImageCrops
(AdsImageCrops imageCrops) How to the image should be cropped.void
setImageHash
(String imageHash) Hash of an image in your image library with Facebook.void
Link url.void
setMessage
(String message) The main body of the post.void
setMultiShareEndCard
(Boolean multiShareEndCard) If set to false, removes the end card which displays the page icon.void
setMultiShareOptimized
(Boolean multiShareOptimized) If set to true, automatically select and order images and links.void
Name of the link.void
setOfferId
(String offerId) The id of a Facebook native offer.void
setPageWelcomeMessage
(String pageWelcomeMessage) A welcome text from page to user on Messenger once a user performs send message action on an ad.void
setPicture
(String picture) URL of a picture to use in the post.void
setPostClickConfiguration
(AdCreativePostClickConfiguration postClickConfiguration) void
setRetailerItemIds
(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:
getMessage
in 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
-