You can create a Banner, Coupon, or Text Link ad in the impact.com platform via API. Specify the ad's content and characteristics by setting the values of the parameters passed.
To create promo codes via API, use the create a promo code endpoint. You can also create ads via the impact.com web app.
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
required
Name
requiredDisplay name of the ad.
CampaignId
required
CampaignId
requiredUnique identifier for the program (or campaign) that the ad is associated with.
AdType
required
AdType
requiredThe kind of ad that's provided.
View possible enum values | |
---|---|
BANNER | The value represents a banner ad. |
COUPON | The value represents a coupon. |
TEXT_LINK | The value represents a hyperlinked text ad. |
CustomAdServingUrl
required if AdType: BANNER
and not using AdCodeTemplate
or BannerCreativeFile
CustomAdServingUrl
required if AdType: BANNER
and not using AdCodeTemplate
or BannerCreativeFile
If bypassing impact.com ad hosting, this is the URL location of the ad's creative. Either AdCodeTemplate
or CustomAdServingUrl
is required.
AdCodeTemplate
required if AdType: BANNER
and not using CustomAdServingUrl
or BannerCreativeFile
AdCodeTemplate
required if AdType: BANNER
and not using CustomAdServingUrl
or BannerCreativeFile
Template to serve the ad code from a third-party server. Either AdCodeTemplate
or CustomAdServingUrl
is required.
BannerCreativeFile
required if AdType: BANNER
and not using CustomAdServingUrl
or AdCodeTemplate
BannerCreativeFile
required if AdType: BANNER
and not using CustomAdServingUrl
or AdCodeTemplate
Allows 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 input is a reference to the file in the user’s machine. Must use the
--form
prefix in a cURL call.
CouponLinkName
required if AdType: COUPON
CouponLinkName
required if AdType: COUPON
Hyperlinked text of the ad. Can only be used if AdType: COUPON
.
LinkText
required if AdType: TEXT_LINK
LinkText
required if AdType: TEXT_LINK
If the ad is a text link, this is the text that makes up the ad.
Language
required
Language
requiredThe 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 |
FINNISH | 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 |
Description
optional
Description
optionalAdditional information about the ad available to partners.
LandingPage
optional
LandingPage
optionalThe URL for the landing page.
MobileFallbacks
optional
MobileFallbacks
optionalSet up which Mobile App Event Type the system directs users to when it detects your app is not installed on the user's device. In the event the system detects the mobile device hitting the ad doesn’t have the particular app installed, it will fall back to the app’s download URL instead.
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).
BannerAlternativeTag
optional
BannerAlternativeTag
optionalAlternative text that will be shown if the ad's creative cannot be displayed. Can only be used if AdType: BANNER
.
GetHtmlCodeType
optional
GetHtmlCodeType
optionalHow the ad is served.
View possible enum values | |
---|---|
HTML_AND_IFRAME | Partners can serve this ad via HTML and IFrame. |
IFRAME_ONLY | Partners can only serve this ad via IFrame. |
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.
LimitedTimeStartDate
optional
LimitedTimeStartDate
optionalWhen an ad will become available for use. See ISO 8601.
LimitedTimeEndDate
optional
LimitedTimeEndDate
optionalWhen an end is no longer available for use. See ISO 8601.
TargetMediaPartners
optional
TargetMediaPartners
optionalIf the ad is restricted to certain partners, this field should contain the Partner Ids of the partners that can use the ad.
TargetMediaPartnerGroups
optional
TargetMediaPartnerGroups
optionalIf the ad is restricted to certain partner groups, the ids of the partner groups that can use the ad.
More Parameters
Click to view...
Season
optional
Season
optionalThe seasonal promotional theme for the ad.
OTHERPossible enum values |
---|
ANZAC_DAY |
AUGUST_CIVIC_HOLIDAY |
AUSTRALIA_DAY |
BACK_TO_SCHOOL |
BLACK_FRIDAY |
BOXING_DAY |
CANADA_DAY |
CYBER_MONDAY |
END_OF_FINANCIAL_YEAR |
FAMILY_DAY |
FATHERS_DAY |
GOOD_FRIDAY |
HALLOWEEN |
HANUKKAH |
INDEPENDANCE_DAY |
LABOR_DAY |
MEMORIAL_DAY |
MOTHERS_DAY |
NEW_YEAR |
PRESIDENTS_DAY |
QUEENS_BIRTHDAY |
REMEMBRANCE_DAY |
SPRING |
ST_PATRICKS_DAY |
SUMMER |
THANKSGIVING |
VALENTINES_DAY |
VICTORIA_DAY |
WAITANGI_DAY |
WINTER |
CouponAllowCustomPromoCode
boolean
CouponAllowCustomPromoCode
booleanWhether partners can request custom a custom promo code for the coupon. Can only be used if AdType: COUPON
.
CustomisationCharge
optional
CustomisationCharge
optionalHow much partners need to pay to customize the ad.
MobileReady
optional
MobileReady
optionalWhether the ad is optimized for mobile devices.
PhoneTracking
optional
PhoneTracking
optionalWhether phone tracking is enabled on the ad.
PromoCodeTracking
optional
PromoCodeTracking
optionalWhether promo code tracking is enabled on the ad.
TopSeller
optional
TopSeller
optionalWhether the ad is for a top-selling item.
DealId
optional
DealId
optionalUnique identifier for for deal associated with the ad.
Returns
Returns the status of the request and the URI of the newly created ad. Returns an error if the create parameters are invalid or if a required parameter is missing.
Example Request
curl 'https://api.impact.com/Advertisers/<AccountSID>/Ads' \
-X POST \
-H 'Accept: application/json' \
-H 'Content-Type: multipart/form-data' \
-H 'Authorization: Basic' \
-F 'Name=My New API Ad' \
-F 'CampaignId=1017' \
-F 'AdType=BANNER' \
-F 'Language=ENGLISH' \
-F 'BannerCreativeFile=@"/Users/CarrieOakey/MyNewCreative.png"'
Example Response
{
"Status": "OK",
"Uri": "/Advertisers/<AccountSID>/Ads/600000"
}