Package com.restfb.types.ads
Class AdImage
java.lang.Object
com.restfb.types.AbstractFacebookType
com.restfb.types.ads.BaseAdsObject
com.restfb.types.ads.NamedAdsObject
com.restfb.types.ads.AdImage
- All Implemented Interfaces:
HasCreatedTime
,Serializable
Represents the AdGroup Image type
- See Also:
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionboolean
addCreative
(AdCreative creative) The ad account that owns the imageTime the image was createdA list of ad creative IDs that this ad image is being used in.getHash()
The hash which uniquely identifies the image.The height of the image.The height of the image that was originally uploaded.The width of the image that was originally uploaded.A permanent URL of the image to use in story creatives.Status of the imageTime the image was updatedgetUrl()
A temporary URL which the image can be retrieved at.A temporary URL pointing to a version of the image resized to fit withing a 128x128 pixel boxgetWidth()
The width of the image.boolean
removeCreative
(AdCreative creative) void
setAccountId
(String accountId) The ad account that owns the imagevoid
setCreatedTime
(Date createdTime) Time the image was createdvoid
The hash which uniquely identifies the image.void
The height of the image.void
setOriginalHeight
(String originalHeight) The height of the image that was originally uploaded.void
setOriginalWidth
(String originalWidth) The width of the image that was originally uploaded.void
setPermalinkUrl
(String permalinkUrl) A permanent URL of the image to use in story creatives.void
Status of the imagevoid
setUpdatedTime
(Date updatedTime) Time the image was updatedvoid
A temporary URL which the image can be retrieved at.void
A temporary URL pointing to a version of the image resized to fit withing a 128x128 pixel boxvoid
The width of the image.Methods inherited from class com.restfb.types.ads.NamedAdsObject
getName, setName
Methods inherited from class com.restfb.types.ads.BaseAdsObject
getId, setId
Methods inherited from class com.restfb.types.AbstractFacebookType
equals, hashCode, toString
-
Constructor Details
-
AdImage
public AdImage()
-
-
Method Details
-
addCreative
-
removeCreative
-
getCreatives
A list of ad creative IDs that this ad image is being used in.- Returns:
- A list of ad creative IDs that this ad image is being used in
-
getAccountId
The ad account that owns the image -
setAccountId
The ad account that owns the image -
getHash
The hash which uniquely identifies the image. -
setHash
The hash which uniquely identifies the image. -
getUrl
A temporary URL which the image can be retrieved at. NOTE: do not use this URL in ad creative creation -
setUrl
A temporary URL which the image can be retrieved at. NOTE: do not use this URL in ad creative creation -
getUrl128
A temporary URL pointing to a version of the image resized to fit withing a 128x128 pixel box -
setUrl128
A temporary URL pointing to a version of the image resized to fit withing a 128x128 pixel box -
getPermalinkUrl
A permanent URL of the image to use in story creatives. -
setPermalinkUrl
A permanent URL of the image to use in story creatives. -
getWidth
The width of the image. -
setWidth
The width of the image. -
getHeight
The height of the image. -
setHeight
The height of the image. -
getOriginalWidth
The width of the image that was originally uploaded. -
setOriginalWidth
The width of the image that was originally uploaded. -
getOriginalHeight
The height of the image that was originally uploaded. -
setOriginalHeight
The height of the image that was originally uploaded. -
getStatus
Status of the image -
setStatus
Status of the image -
getCreatedTime
Time the image was created- Specified by:
getCreatedTime
in interfaceHasCreatedTime
-
setCreatedTime
Time the image was created -
getUpdatedTime
Time the image was updated -
setUpdatedTime
Time the image was updated
-