-
Notifications
You must be signed in to change notification settings - Fork 22
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
d5858c9
commit 1acdb28
Showing
7 changed files
with
100 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
61 changes: 61 additions & 0 deletions
61
src/operations/reports/metrics/sponsored-brands-target-report-metrics.ts
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,61 @@ | ||
import * as t from 'io-ts' | ||
|
||
export const SponsoredBrandsTargetReportMetrics = t.union([ | ||
/** | ||
* Unique numerical ID of the campaign | ||
*/ | ||
t.literal('campaignId'), | ||
|
||
/** | ||
* Unique name of the campaign | ||
*/ | ||
t.literal('campaignName'), | ||
|
||
/** | ||
* Unique numerical ID of the ad group | ||
*/ | ||
t.literal('adGroupId'), | ||
|
||
/** | ||
* Unique name of the ad group | ||
*/ | ||
t.literal('adGroupName'), | ||
|
||
/** | ||
* One of: daily or lifetime | ||
*/ | ||
t.literal('campaignBudgetType'), | ||
|
||
/** | ||
* Status of the campaign | ||
*/ | ||
t.literal('campaignStatus'), | ||
|
||
/** | ||
* The product target identifier | ||
*/ | ||
t.literal('targetId'), | ||
|
||
/** | ||
* The product targeting expression. Not available for search term report. | ||
*/ | ||
t.literal('targetingExpression'), | ||
|
||
/** | ||
* The product targeting type. | ||
* One of: asinCategorySameAs, asinBrandSameAs, asinPriceLessThan, asinPriceBetween, asinPriceGreaterThan, asinReviewRatingLessThan, asinReviewRatingBetween, asinReviewRatingGreaterThan, asinSameAs. | ||
* Not available for search term report. | ||
*/ | ||
t.literal('targetingType'), | ||
|
||
/** | ||
* The product targeting text. Not available for search term report. | ||
*/ | ||
t.literal('targetingText'), | ||
|
||
/** | ||
* Type of matching for the keyword or phrase used in bid. Must be one of: broad, phrase, or exact | ||
*/ | ||
t.literal('matchType'), | ||
]) | ||
export type SponsoredBrandsTargetReportMetrics = t.TypeOf<typeof SponsoredBrandsTargetReportMetrics> |
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
8 changes: 8 additions & 0 deletions
8
src/operations/reports/sponsored-brands/sponsored-brands-target-report-params.ts
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,8 @@ | ||
import { BaseReportParams } from '../base-report-params' | ||
import { SponsoredBrandsReportTypeEnum } from '../report-types-enum' | ||
import { SponsoredBrandsTargetReportMetrics } from '../metrics' | ||
|
||
export interface SponsoredBrandsTargetReportParams | ||
extends BaseReportParams<SponsoredBrandsReportTypeEnum, SponsoredBrandsTargetReportMetrics> { | ||
recordType: SponsoredBrandsReportTypeEnum.TARGETS | ||
} |
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