-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #5 from vtex-apps/feat/sponsored-banners
Feat: sponsored banners
- Loading branch information
Showing
6 changed files
with
92 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
enum AdUnit { | ||
billboard | ||
smartphonebanner | ||
leaderboard | ||
superleaderboard | ||
portrait | ||
skyscraper | ||
mediumrectangle | ||
button120x60 | ||
mobilephoneinterstitial | ||
featurephonesmallbanner | ||
featurephonemediumbanner | ||
featurephonelargebanner | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
enum Channel { | ||
website | ||
android | ||
ios | ||
msite | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
enum Placement { | ||
top_search | ||
middle_search | ||
home_shelfpdp_shelf | ||
search_shelf | ||
cart_shelf | ||
plp_shelf | ||
autocomplete | ||
homepage | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
type SponsoredBanner { | ||
""" | ||
ID of the sponsored banner. | ||
""" | ||
adResponseId: ID | ||
""" | ||
Sponsored campaign related information should be added here. | ||
""" | ||
advertisement: AdvertisementBanner | ||
} | ||
|
||
type AdvertisementBanner { | ||
""" | ||
Banner Image ID. | ||
""" | ||
bannerImageId: ID | ||
""" | ||
URL of the image to be displayed in the ad. | ||
""" | ||
imageUrl: String | ||
""" | ||
URL to be redirected to when the ad is clicked. | ||
""" | ||
targetUrl: String | ||
""" | ||
Width of the banner in pixels. | ||
""" | ||
width: Int | ||
""" | ||
Height of the banner in pixels. | ||
""" | ||
height: Int | ||
} |