Skip to content

Commit

Permalink
add advertsiement field to product
Browse files Browse the repository at this point in the history
  • Loading branch information
Henrique Caúla committed Sep 18, 2023
1 parent 4541251 commit be5d523
Show file tree
Hide file tree
Showing 2 changed files with 26 additions and 1 deletion.
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 be5d523

Please sign in to comment.