выбор времени
This commit is contained in:
@@ -306,14 +306,22 @@ func (c *Client) AcceptWorkspaceInvite(
|
||||
// ============================================================================
|
||||
|
||||
type Creative struct {
|
||||
ID string `json:"id"`
|
||||
Name string `json:"name"`
|
||||
Text string `json:"text"`
|
||||
ProjectID string `json:"project_id"`
|
||||
ProjectChannelTitle string `json:"project_channel_title"`
|
||||
CreatedAt string `json:"created_at"`
|
||||
Status string `json:"status"`
|
||||
PlacementsCount int `json:"placements_count"`
|
||||
ID string `json:"id"`
|
||||
Name string `json:"name"`
|
||||
Text string `json:"text"`
|
||||
MediaType string `json:"media_type"`
|
||||
MediaFileID string `json:"media_file_id"`
|
||||
Buttons []CreativeButton `json:"buttons"`
|
||||
ProjectID string `json:"project_id"`
|
||||
ProjectChannelTitle string `json:"project_channel_title"`
|
||||
CreatedAt string `json:"created_at"`
|
||||
Status string `json:"status"`
|
||||
PlacementsCount int `json:"placements_count"`
|
||||
}
|
||||
|
||||
type CreativeButton struct {
|
||||
Text string `json:"text"`
|
||||
URL string `json:"url"`
|
||||
}
|
||||
|
||||
type CreativesPage struct {
|
||||
@@ -377,8 +385,12 @@ func (c *Client) GetCreative(
|
||||
}
|
||||
|
||||
type CreateCreativeInput struct {
|
||||
Name string `json:"name"`
|
||||
Text string `json:"text"`
|
||||
Name string `json:"name"`
|
||||
Text string `json:"text"`
|
||||
MediaType string `json:"media_type,omitempty"`
|
||||
MediaFileID string `json:"media_file_id,omitempty"`
|
||||
MediaData []byte `json:"media_data,omitempty"`
|
||||
Buttons []CreativeButton `json:"buttons,omitempty"`
|
||||
}
|
||||
|
||||
func (c *Client) CreateCreative(
|
||||
@@ -407,9 +419,13 @@ func (c *Client) CreateCreative(
|
||||
}
|
||||
|
||||
type UpdateCreativeInput struct {
|
||||
Name *string `json:"name,omitempty"`
|
||||
Text *string `json:"text,omitempty"`
|
||||
Status *string `json:"status,omitempty"`
|
||||
Name *string `json:"name,omitempty"`
|
||||
Text *string `json:"text,omitempty"`
|
||||
MediaType *string `json:"media_type,omitempty"`
|
||||
MediaFileID *string `json:"media_file_id,omitempty"`
|
||||
MediaData *[]byte `json:"media_data,omitempty"`
|
||||
Buttons *[]CreativeButton `json:"buttons,omitempty"`
|
||||
Status *string `json:"status,omitempty"`
|
||||
}
|
||||
|
||||
func (c *Client) UpdateCreative(
|
||||
|
||||
Reference in New Issue
Block a user