Skip to content

Commit

Permalink
Merge pull request #129 from vtex-apps/feature/advertisement-field
Browse files Browse the repository at this point in the history
Feature: add advertisement field to product
  • Loading branch information
Henrique Caúla authored Sep 20, 2023
2 parents 4541251 + e21169c commit c3db248
Show file tree
Hide file tree
Showing 3 changed files with 29 additions and 1 deletion.
3 changes: 3 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,9 @@ and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.

## [Unreleased]

### Added
- `advertisement` field in `Product` type.

## [0.56.0] - 2023-09-15

## [0.55.0] - 2023-08-22
Expand Down
22 changes: 22 additions & 0 deletions graphql/types/Advertisement.graphql
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
type Advertisement {
"""
ID of the ad item associated with the sponsored product.
"""
adId: ID
"""
ID of the campaign owner of the ad item.
"""
campaignId: ID
"""
Cost of the goal action. E.g: CPC, cost per click.
"""
actionCost: Float
"""
Ad Request ID.
"""
adRequestId: ID
"""
Ad Response ID.
"""
adResponseId: ID
}
5 changes: 4 additions & 1 deletion graphql/types/Product.graphql
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@

type Product {
"""
Brand of the product
Expand Down Expand Up @@ -113,6 +112,10 @@ type Product {
Merchandising rule applied to the product
"""
rule: Rule
"""
If this product is sponsored, ad information will be added here.
"""
advertisement: Advertisement
}

type SelectedProperty {
Expand Down

0 comments on commit c3db248

Please sign in to comment.