/creatives
GET
A GET
request can always be filtered by the get parameters defined in the introduction section of this documentation.
Example get request:
Example response:
POST
Post object contains the following keys:
name
Yes
String
The name of the creative.
description
String
The description for the creative.
userState
NOT_READY
, REQUIRES_REVIEW
, APPROVED
, REJECTED
, PAUSED
The state of the creative. Defaults to APPROVED
if not specified.
rejectedReason
No*
ADULT_CONTENT
, BLANK_CONTENT
, MALFORMED_CLICK_THROUGH
, DRUG_RELATED_CONTENT
, WEAPON_RELATED_CONTENT
, ABUSIVE_CONTENT
, HATE_SPEECH_CONTENT
, LANDING_PAGE_REJECTED
, OFFENSIVE_CONTENT
, UNACCEPTABLE_VISUAL_EFFECTS
, DECEPTIVE_CONTENT
, GAMBLING_CONTENT
, PROHIBITED_ELECTION_RELATED_CONTENT
, SHOCKING_CONTENT
, MALWARE_CONTENT
(*required if userState
is REJECTED
) The reason for the creative being in the REJECTED
state.
layout
Yes
String
The layout ID to be associated with the creative.
dimensionType
FIXED
, FLEXIBLE
, FIXED_WIDTH
, FIXED_HEIGHT
The library creative dimension type. Defaults to FIXED
if not specified.
width
No*
Int
(*required if dimensionType is FIXED
or FIXED_WIDTH
) The width of the creative.
height
No*
Int
(*required if dimensionType is FIXED
or FIXED_HEIGHT
) The height of the creative.
targeting
Object
The targeting for the creative.
impressionTrackingUrls
Array
The impression tracking URL for the creative.
thirdPartyContent
Object
The third party content.
type
INTERNAL
, EXTERNAL
The type of creative. Defaults to INTERNAL
if not specified.
sponsorshipPercentage
Number
The sponsorship percentage for the creative.
externalDemandSource
String
The external demand source ID to be associated with the creative.
externalAdUnit
Array
The external ad unit IDs to be associcated with the creative.
copyrightStatus
UNSPECIFIED
, ADVERTISER_CONFIRMED
, ADVERTISER_UNCONFIRMED
The copyright status. Defaults to UNSPECIFIED
if not specified.
source
SELF_SERVICE
, MARKETPLACE
, DIRECT
The source of the creative. Defaults to DIRECT
if not specified.
verifiedSafe
Yes
Boolean
The creative is verified to be safe.
libraryCreative
String
The library creative ID to be associated with the creative. If the library creative is specified then layout
, dimensionType
, width
, height
, layoutParameters
, targeting
, thirdPartyContent
, copyrightStatus
, source
, verifiedSafe
fields will be overwritten with values from the library creative unless specified in overrideFields
overrideFields
Array
Override the fields if libraryCreative
is specified. The following fields are overrideable: dimensionType
, width
, height
, layoutParameters
, targeting
, copyrightStatus
, source
, verifiedSafe
Creative ID can be set to whatever string value the user would like as long as it is unique within the network.
Example POST request: {id}
will be required when posting to the API.
Example post body:
example POST response
Last updated