Creates a new ad in the impact.com system by setting the values of the parameters passed. Note that if you intend to have impact.com host your creative asset (e.g image or video), then you will need to send the request as a multipart/form-data
instead of the more typical application/x-www-form-urlencoded
Content-Type.
Only Banner, Coupon, and Text Link ads can be created via API. To create promo codes via API, use the create a promo code endpoint. You can also create ads via the impact.com web app.
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
requiredWhat kind of ad is provided.
View possible enum values | |
---|---|
BANNER | The object represents a banner ad. |
COUPON | The object represents a coupon. |
TEXT_LINK | The object represents a hyperlinked text ad. |
CustomAdServingUrl
required if AdType: BANNER
if not using AdCodeTemplate
CustomAdServingUrl
required if AdType: BANNER
if not using AdCodeTemplate
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
if not using CustomAdServingUrl
AdCodeTemplate
required if AdType: BANNER
if not using CustomAdServingUrl
Template to serve the ad code from a third-party server. Either AdCodeTemplate
or CustomAdServingUrl
is required.
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
requiredWhat 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 |
Description
optional
Description
optionalAdditional information about the ad available to partners.
LandingPage
optional
LandingPage
optionalLanding page's URL for the ad this attribute is contained in.
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, 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 create parameters are invalid or if a required parameter is missing.
Example Request
curl 'https://api.impact.com/Advertisers/<AccountSID>/Ads' \
-X POST \
-u '<AccountSid>:<AuthToken>' \
-H 'Accept: application/json' \
-H 'Content-Type: application/x-www-form-urlencoded' \
-d 'Name=My New API Ad' \
-d 'CampaignId=1017' \
-d 'AdType=TEXT_LINK' \
-d 'MobileFallbacks.ANDROID=12345' \
-d 'MobileFallbacks.IOS=67890' \
-d 'Language=ENGLISH' \
-d 'LinkText=Check out my new link.'
Example Response
{
"Status": "OK",
"Uri": "/Advertisers/<AccountSID>/Ads/600000"
}