From e6c122799e7f9f69bc7c49134d2f18aee4e7b79a Mon Sep 17 00:00:00 2001 From: Suvorov Daniil Date: Tue, 11 Jan 2022 19:07:56 +0300 Subject: [PATCH] feat: add AdsMusician --- api/ads.go | 2 +- object/ads.go | 7 +++++++ 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/api/ads.go b/api/ads.go index 529e1be4..5dc8fea7 100644 --- a/api/ads.go +++ b/api/ads.go @@ -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. diff --git a/object/ads.go b/object/ads.go index 44565990..a946c6e3 100644 --- a/object/ads.go +++ b/object/ads.go @@ -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. +}