Skip to content

Commit

Permalink
feat: add AdsMusician
Browse files Browse the repository at this point in the history
  • Loading branch information
SevereCloud committed Jan 11, 2022
1 parent f4c4f07 commit e6c1227
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
2 changes: 1 addition & 1 deletion api/ads.go
Original file line number Diff line number Diff line change
Expand Up @@ -349,7 +349,7 @@ func (vk *VK) AdsGetAdsLayout(params Params) (response AdsGetAdsLayoutResponse,

// AdsGetMusiciansResponse struct.
type AdsGetMusiciansResponse struct {
Items []object.BaseObjectWithName
Items []object.AdsMusician
}

// AdsGetMusicians returns a list of musicians.
Expand Down
7 changes: 7 additions & 0 deletions object/ads.go
Original file line number Diff line number Diff line change
Expand Up @@ -319,3 +319,10 @@ type AdsPromotedPostReach struct {
VideoViews75p int `json:"video_views_75p"` // Video views for 75 percent
VideoViewsStart int `json:"video_views_start"` // Video starts
}

// AdsMusician struct.
type AdsMusician struct {
ID int `json:"id"` // Targeting music artist ID
Name string `json:"name"` // Music artist name
Avatar string `json:"avatar,omitempty"` // Music artist photo.
}

0 comments on commit e6c1227

Please sign in to comment.