A file/creative associated with an Offer. Only Affiliates with the Offer Management permission can create Offer Files. For more information, seeĀ help.tune.com/hasoffers/creative-files-overview/.
Name | Type | Description |
---|---|---|
account_id | Nullable Integer | ID of Affiliate object for Offer Files having an "interface" of "affiliate"; Advertiser ID for if "interface" is "advertiser"; NULL for Network-owned Offer Files |
code | Nullable String | HTML code. Required for Offer Files with the types: "email creative", "text ad", and "html ad". |
created | Datetime | The date the Offer File was created |
display | String | The display name for this file. Takes the name of the uploaded file if not set on create. |
filename | String | The name of the file that was uploaded, optionally passed in. Applicable to Offer Files with the types: "file", "image banner", "flash banner", "offer thumbnail", "hidden". Will be an empty string for types not accompanied by a file. Only the following file extensions are supported: "jpg", "jpeg", "gif", "png", "swf", "zip", "txt", "doc", "docx", "pdf", "rtf". |
flash_vars | Nullable String | Applicable only for Offer Files with "type" of "flash banner" |
height | Nullable Integer | Height in pixels. Required for Offer Files with the types: "image banner", "flash banner", "offer thumbnail", and "html ad". Determined automatically for most image files, but if "type" is "flash banner" it must be explicitly provided. |
id | Integer | ID of unique object for this Offer File This parameter is non-writable |
interface | String | Identifies the owner of this Offer File. The Network, Advertisers, and the Affiliate can all create Offer Files. Affiliates can only modify their own Offer Files.Show Supported Values |
is_private | Boolean | DEPRECATED. Ignore the contents of this field. |
modified | Datetime | The last date the Offer File was updated |
offer_id | Integer | The ID of the Offer to which this Offer File is associated |
size | Integer | The size of the uploaded file in bytes, recorded at the time of upload. For OfferFile objects not referencing an uploaded file, this value is 0. |
status | String | The status of the Offer FileShow Supported Values |
thumbnail | Nullable String | The URL of a thumbnail image. Thumbnails are auto-generated on upload for most Offer Files of type "image banner" or where the uploaded file is one of: "gif", "jpg", "jpeg", "png". |
type | String | The type of Offer File. Affiliates are limited to creating Offer Files of the following types: "flash banner", "hidden", "html ad", "image banner", "text ad". For more information on each type, see: https://support.hasoffers.com/entries/20712007-Creative-Files.Show Supported Values |
url | Nullable String | The URL for the uploaded file (if applicable) |
width | Nullable Integer | Width in pixels. Required for offer files with the types "image banner", "flash banner", "offer thumbnail", and "html ad". Determined automatically for most image files, but if "type" is "flash banner" it must be explicitly provided. |