-
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
73f4f42
commit 5ea0ba9
Showing
6 changed files
with
77 additions
and
4 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
58 changes: 58 additions & 0 deletions
58
src/operations/reports/metrics/sponsored-brands-search-term-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,58 @@ | ||
import * as t from 'io-ts' | ||
|
||
export const SponsoredBrandsSearchTermReportMetrics = 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'), | ||
|
||
t.literal('campaignBudgetType'), | ||
|
||
/** | ||
* Status of the campaign | ||
*/ | ||
t.literal('campaignStatus'), | ||
|
||
/** | ||
* ID of the keyword used in bid | ||
*/ | ||
t.literal('keywordId'), | ||
|
||
/** | ||
* Keyword state. | ||
*/ | ||
t.literal('keywordStatus'), | ||
|
||
/** | ||
* User-set bid value for keyword. | ||
*/ | ||
t.literal('keywordBid'), | ||
|
||
/** | ||
* Text of the keyword or phrase used in bid | ||
*/ | ||
t.literal('keywordText'), | ||
|
||
/** | ||
* Type of matching for the keyword or phrase used in bid. Must be one of: broad, phrase, or exact | ||
*/ | ||
t.literal('matchType'), | ||
]) | ||
export type SponsoredBrandsSearchTermReportMetrics = t.TypeOf< | ||
typeof SponsoredBrandsSearchTermReportMetrics | ||
> |
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-search-term-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 { SponsoredBrandsSearchTermReportMetrics } from '../metrics' | ||
|
||
export interface SponsoredBrandsSearchTermReportParams | ||
extends BaseReportParams<SponsoredBrandsReportTypeEnum, SponsoredBrandsSearchTermReportMetrics> { | ||
recordType: SponsoredBrandsReportTypeEnum.SEARCH_TERM | ||
} |