You can update an existing ad using this endpoint, including any creative files used.
Note: If you want impact.com to host your creative asset, like an image or video, then make sure to send the request with the Content-Type
multipart/form-data
rather than the more typical application/x-www-form-urlencoded
.
Parameters
Name
optional
Name
optionalName of the routing rule.
Description
optional
Description
optionalAdditional information about the ad available to partners.
Labels
optional
Labels
optionalKey terms to help partners find a particular ad in impact.com.
AllowDeepLinking
optional
AllowDeepLinking
optionalWhether partners can override the ad's landing page.
LandingPage
optional
LandingPage
optionalThe URL for the landing page.
MobileFallbacks
optional
MobileFallbacks
optionalChoose what happens when someone clicks your ad but doesn’t have your app installed. If the system sees that the app isn’t on their device, it will send them to the app’s download page instead.
Language
optional
Language
optionalWhat language the ad is hosted in.
View possible enum values | |
---|---|
AFRIKAANS | Afrikaans |
ARABIC | العربية |
BULGARIAN | български |
CHINESE | 中文(简体) |
CHINESE_TRADITIONAL | 中文(繁體) |
CZECH | čeština |
DANISH | Dansk |
DUTCH | Nederlands |
ENGLISH | English (United States) |
ENGLISH_GB | English (United Kingdom) |
ANGLISH_AU | English (Australia) |
ENGLISH_CA | English (Canada) |
ENGLISH_NZ | English (New Zealand) |
ENGLISH_ZA | English (South Africa) |
ESTONIAN | eesti |
FILIPINO | Filipino |
FINISH | suomi |
FRENCH | Français |
FRENCH_CA | Français (Canada) |
GERMAN | Deutsch |
HEBREW | עברית |
HINDI | हिन्दी |
INDONESIAN | Bahasa Indonesia |
ITALIAN | Italiano |
JAPANESE | 日本語 |
KOREAN
| 한국어 |
LATVIAN | latviešu |
LITHUANIAN
| lietuvių kalba |
MALAY
| Malay |
MALTESE | Malti |
NORWEGIAN | Norsk |
PORTUGUESE | Português |
PORTUGUESE_BR | Português (Brasil) |
POLISH | Polski |
RUSSIAN | Русский |
SLOVENIAN
| slovenščina |
SPANISH | Español |
SPANISH_MX
| Español (Mexico) |
SWEDISH
| Svensk |
THAI | ไทย |
TURKISH | Türkçe |
VIETNAMESE | Tiếng Việt |
LimitedTimeStartDate
optional
LimitedTimeStartDate
optionalWhen an ad will become available for use. See ISO 8601.
LimitedTimeEndDate
optional
LimitedTimeEndDate
optionalWhen an ad is no longer available for use. See ISO 8601.
BannerCreativeFile
optional
BannerCreativeFile
optionalAllows you to add or change the banner ad's creative image. Can only be used for AdType: BANNER
.
Requirements:
- The creative file must be an image (jpg, jpeg, png, gif) with a maximum file size of 25MB.
- The request must include the header
Content-Type=multipart/form-data
- The input is a reference to the file in the user’s machine. Must use the
--form
prefix in a cURL call.
BannerAlternativeTag
optional
BannerAlternativeTag
optionalAlternative text that will be shown if the ad's creative cannot be displayed. Can only use when AdType: BANNER
.
CustomAdServingUrl
optional
CustomAdServingUrl
optionalIf you're not using impact.com for ad hosting, this is the URL where the ad's creative is stored. Can only use when AdType: BANNER
.
IabAdUnit
optional
IabAdUnit
optionalIAB's official unit type for the ad.
ThirdPartyServableAdCreativeHeight
optional
ThirdPartyServableAdCreativeHeight
optionalThe ad's creative height (in pixels).
ThirdPartyServableAdCreativeWidth
optional
ThirdPartyServableAdCreativeWidth
optionalThe ad's creative width (in pixels).
More Parameters
Click to view...
MobileReady
optional
MobileReady
optionalWhether the ad is optimized for mobile devices.
AdCodeTemplate
optional
AdCodeTemplate
optionalA template for serving ad code from a third-party server.
DealId
optional
DealId
optionalUnique identifier for for deal associated with the ad.
DealName
string
DealName
stringName of the deal associated with the ad.
Returns
Returns the status of the call and the URI to the ad object.
Example Request
curl 'https://api.impact.com/Advertisers/<AccountSid>/Ads/892081' \
-X PUT \
-u '<AccountSid>:<AuthToken>' \
-H 'Accept: application/json' \
-H 'Content-Type: application/x-www-form-urlencoded' \
-F 'Description=My new description.' \
-F 'LimitedTimeStartDate=2020-10-30T00:00:00Z' \
-F 'LimitedTimeEndDate=2020-11-05T00:00:00Z'
-F 'BannerCreativeFile=@"/Users/CarrieOakey/MyNewCreative.png"'
Example Response
{
"Status": "OK",
"Uri": "/Advertisers/<AccountSid>/Ads/892081"
}