Skip to content

Commit

Permalink
Added CAMPAIGN_ON_HOLD keyword display status
Browse files Browse the repository at this point in the history
  • Loading branch information
maier-stefan committed May 23, 2019
1 parent 5edba1c commit 916308d
Showing 1 changed file with 13 additions and 9 deletions.
22 changes: 13 additions & 9 deletions searchads/keyword_display_status.go
Original file line number Diff line number Diff line change
Expand Up @@ -12,30 +12,34 @@ type KeywordDisplayStatus byte
const (
KeywordDisplayStatusRunning KeywordDisplayStatus = iota
KeywordDisplayStatusPaused
KeywordDisplayStatusCampaignOnHold
KeywordDisplayStatusEmpty
)

var (
_KeywordDisplayStatusNameToValue = map[string]KeywordDisplayStatus{
"RUNNING": KeywordDisplayStatusRunning,
"PAUSED": KeywordDisplayStatusPaused,
"": KeywordDisplayStatusEmpty,
"RUNNING": KeywordDisplayStatusRunning,
"PAUSED": KeywordDisplayStatusPaused,
"CAMPAIGN_ON_HOLD": KeywordDisplayStatusCampaignOnHold,
"": KeywordDisplayStatusEmpty,
}

_KeywordDisplayStatusValueToName = map[KeywordDisplayStatus]string{
KeywordDisplayStatusRunning: "RUNNING",
KeywordDisplayStatusPaused: "PAUSED",
KeywordDisplayStatusEmpty: "",
KeywordDisplayStatusRunning: "RUNNING",
KeywordDisplayStatusPaused: "PAUSED",
KeywordDisplayStatusCampaignOnHold: "CAMPAIGN_ON_HOLD",
KeywordDisplayStatusEmpty: "",
}
)

func init() {
var v KeywordDisplayStatus
if _, ok := interface{}(v).(fmt.Stringer); ok {
_KeywordDisplayStatusNameToValue = map[string]KeywordDisplayStatus{
interface{}(KeywordDisplayStatusRunning).(fmt.Stringer).String(): KeywordDisplayStatusRunning,
interface{}(KeywordDisplayStatusPaused).(fmt.Stringer).String(): KeywordDisplayStatusPaused,
interface{}(KeywordDisplayStatusEmpty).(fmt.Stringer).String(): KeywordDisplayStatusEmpty,
interface{}(KeywordDisplayStatusRunning).(fmt.Stringer).String(): KeywordDisplayStatusRunning,
interface{}(KeywordDisplayStatusPaused).(fmt.Stringer).String(): KeywordDisplayStatusPaused,
interface{}(KeywordDisplayStatusCampaignOnHold).(fmt.Stringer).String(): KeywordDisplayStatusCampaignOnHold,
interface{}(KeywordDisplayStatusEmpty).(fmt.Stringer).String(): KeywordDisplayStatusEmpty,
}
}
}
Expand Down

0 comments on commit 916308d

Please sign in to comment.