Creative [DEPRECATED]

Service

/creative

Method

GET

Response

{
 "response":{
  "status":"OK",
  "creatives":[
   {
    "name":"",
    "brand_id":1,
    "media_url":"",
    "id":1,
    "code":"",
    "code2":"",
    "member_id":1,
    "state":"inactive",
    "click_track_result":"passed",
    "advertiser_id":123,
    "publisher_id":"",
    "format":"image",
    "width":300,
    "height":250,
    "click_url":"",
    "flash_click_variable":"",
    "no_iframes":false,
    "content":"",
    "original_content":"",
    "file_name":"",
    "track_clicks":true,
    "audit_status":"no_audit",
    "macros":"",
    "profile_id":6734222,
    "audit_feedback":"",
    "is_prohibited":false,
    "created_on":"",
    "flash_backup_url":"",
    "last_modified":"",
    "is_control":false,
    "allow_audit":false,
    "is_expired":true,
    "creative_upload_status":"completed",
    "backup_upload_status":"",
    "use_dynamic_click_url":false,
    "media_subtypes":[
     "banner"
    ],
    "size_in_bytes":12345,
    "google_audit_status":"no_audit",
    "google_audit_feedback":"",
    "msft_audit_status":"no_audit",
    "msft_audit_feedback":"",
    "msft_external_audit_status":"no_audit",
    "msft_external_audit_feedback":"",
    "is_self_audited":false,
    "no_adservers":false,
    "text_title":"",
    "text_description":"",
    "text_display_url":"",
    "click_action":"",
    "click_target":"",
    "ssl_status":"disabled",
    "allow_ssl_audit":false,
    "media_url_secure":"",
    "content_secure":"",
    "original_content_secure":"",
    "flash_backup_url_secure":"",
    "is_hosted":true,
    "content_source":"standard",
    "thirdparty_creative_id":"",
    "thirdparty_campaign_id":"",
    "facebook_audit_status":"",
    "facebook_audit_feedback":"",
    "custom_request_template":"",
    "language":{
     "id":0,
     "name":"Unknown"
    },
    "pop_values":"",
    "brand":{
     "id":1,
     "name":"Unknown",
     "category_id":0
    },
    "template":{
     "id":4,
     "name":"Standard",
     "media_subtype_id":1,
     "format_id":4
    },
    "thirdparty_page":"",
    "custom_macros":"",
    "segments":"",
    "folder":"",
    "line_items":"",
    "competitive_brands":"",
    "competitive_categories":"",
    "pixels":[
     {...}
    ],
    "mobile":{
     "alternative_landing_page_url":""
    },
    "sla":"",
    "sla_eta":"",
    "currency":"USD"
   },
   {...}
  ]
 }
}


Service

/creative

Method

POST

NameTypeRequiredDescription
name string YThe name for the creative.
width int NThe width in pixels.
height int NThe height in pixels.
click_url string NThe (optional) landing page URL for non-3rd party image and flash creatives.
Note: This value must be a valid URL and begin with "http://" or "https://"
media_url string NThe URL of the creative - can be image, flash, HTML, JavaScript. URL must exist and should be on a CDN or equivalent.
flash_backup_url string NFor a flash creative, this is the URL of a 3rd-party creative that will be served if the user's browser does not support flash. For an in-banner video creative, this is the URL of the poster image that will display before users click play and after the video has finished playing.
file_name

 string

 NThe file name and extension for a hosted creative. Allowed file types: jpg, gif, png, swf, flv, mp4, wmv, f4v, avi, m4v, mov, and mpg.
content string NJavascript or HTML content. For a hosted creative, the content of the file must be base64-encoded and submitted as a string.
content_secure string N

Javascript or HTML content when served on a secure ad call.

original_content string NSame as content, but not unmodified by AppNexus.
track_clicks boolean NMust be set to true for AppNexus to track clicks.
Default: true
click_track_result string NDefault: passed
audit_status string NThe audit status of the creative. Possible values: "no_audit", "pending", "rejected", or "audited".
Default: pending
allow_ssl_audit boolean NIf true, the creative will be submitted for secure (https) auditing. If false, the creative will not be submitted. If true, either media_url_secure or content_secure is required as well.
Default: true
flash_click_variable string NThe ClickTag variable in a Flash creative. AppNexus can execute and track user clicks on a Flash creative only if you provide the exact variable in the file (clickTAG, ClickTag, Clicktag, etc).
Default: ClickTag
pixels array NThe pixels to serve with the creative. They can be for external impression tracking, external click tracking, or other purposes.
template int N

Will be auto determined to 3 if the extension is .swf

HTML = 1
JS = 2
Flash = 3
Image = 4
RAW JavaScript = 5
RAW HTML = 7

formatstringNurl-html, url-js, iframe-html, raw-html, raw-js
campaignsarrayNarray with ids, [{id:1},{id:2}]


Service

/creative

Method

PUT

Parameters

Same as POST

NameTypeRequiredDescription
idintYThe internal ID associated with the creative.


Service

/creative

Method

DELETE

Parameters

NameTypeRequiredDescription
id intYThe internal ID associated with the creative.