Class AdImage

All Implemented Interfaces:
HasCreatedTime, Serializable

public class AdImage extends NamedAdsObject implements HasCreatedTime
Represents the AdGroup Image type
See Also:
  • Constructor Details

  • Method Details

    • addCreative

      public boolean addCreative(AdCreative creative)
    • removeCreative

      public boolean removeCreative(AdCreative creative)
    • 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
    • getHash

      public String getHash()
      The hash which uniquely identifies the image.
    • setHash

      public void setHash(String hash)
      The hash which uniquely identifies 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

      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.
    • getWidth

      public String getWidth()
      The width of the image.
    • setWidth

      public void setWidth(String width)
      The width of the image.
    • getHeight

      public String getHeight()
      The height of the image.
    • setHeight

      public void setHeight(String height)
      The height of the image.
    • 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

      The height of the image that was originally uploaded.
    • setOriginalHeight

      public void setOriginalHeight(String originalHeight)
      The height of the image that was originally uploaded.
    • getStatus

      public String getStatus()
      Status of the image
    • setStatus

      public void setStatus(String status)
      Status of the image
    • getCreatedTime

      public Date getCreatedTime()
      Time the image was created
      Specified by:
      getCreatedTime in interface HasCreatedTime
    • 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