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
public class AdImage extends NamedAdsObject implements HasCreatedTime
Represents the AdGroup Image type- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description AdImage()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
addCreative(AdCreative creative)
String
getAccountId()
The ad account that owns the imageDate
getCreatedTime()
Time the image was createdList<AdCreative>
getCreatives()
A list of ad creative IDs that this ad image is being used in.String
getHash()
The hash which uniquely identifies the image.String
getHeight()
The height of the image.String
getOriginalHeight()
The height of the image that was originally uploaded.String
getOriginalWidth()
The width of the image that was originally uploaded.String
getPermalinkUrl()
A permanent URL of the image to use in story creatives.String
getStatus()
Status of the imageDate
getUpdatedTime()
Time the image was updatedString
getUrl()
A temporary URL which the image can be retrieved at.String
getUrl128()
A temporary URL pointing to a version of the image resized to fit withing a 128x128 pixel boxString
getWidth()
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
setHash(String hash)
The hash which uniquely identifies the image.void
setHeight(String height)
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
setStatus(String status)
Status of the imagevoid
setUpdatedTime(Date updatedTime)
Time the image was updatedvoid
setUrl(String url)
A temporary URL which the image can be retrieved at.void
setUrl128(String url128)
A temporary URL pointing to a version of the image resized to fit withing a 128x128 pixel boxvoid
setWidth(String width)
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 Detail
-
AdImage
public AdImage()
-
-
Method Detail
-
addCreative
public boolean addCreative(AdCreative creative)
-
removeCreative
public boolean removeCreative(AdCreative creative)
-
getCreatives
public List<AdCreative> 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
public String getAccountId()
The ad account that owns the image
-
setAccountId
public void setAccountId(String accountId)
The ad account that owns the image
-
getUrl
public String getUrl()
A temporary URL which the image can be retrieved at. NOTE: do not use this URL in ad creative creation
-
setUrl
public void setUrl(String url)
A temporary URL which the image can be retrieved at. NOTE: do not use this URL in ad creative creation
-
getUrl128
public String getUrl128()
A temporary URL pointing to a version of the image resized to fit withing a 128x128 pixel box
-
setUrl128
public void setUrl128(String url128)
A temporary URL pointing to a version of the image resized to fit withing a 128x128 pixel box
-
getPermalinkUrl
public String getPermalinkUrl()
A permanent URL of the image to use in story creatives.
-
setPermalinkUrl
public void setPermalinkUrl(String permalinkUrl)
A permanent URL of the image to use in story creatives.
-
getOriginalWidth
public String getOriginalWidth()
The width of the image that was originally uploaded.
-
setOriginalWidth
public void setOriginalWidth(String originalWidth)
The width of the image that was originally uploaded.
-
getOriginalHeight
public String getOriginalHeight()
The height of the image that was originally uploaded.
-
setOriginalHeight
public void setOriginalHeight(String originalHeight)
The height of the image that was originally uploaded.
-
getCreatedTime
public Date getCreatedTime()
Time the image was created- Specified by:
getCreatedTime
in interfaceHasCreatedTime
-
setCreatedTime
public void setCreatedTime(Date createdTime)
Time the image was created
-
getUpdatedTime
public Date getUpdatedTime()
Time the image was updated
-
setUpdatedTime
public void setUpdatedTime(Date updatedTime)
Time the image was updated
-
-