Skip to content

Commit

Permalink
add only_deleted param to ads.getAds
Browse files Browse the repository at this point in the history
  • Loading branch information
1dNDN committed Nov 11, 2023
1 parent 0be147e commit 4d165e5
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 0 deletions.
3 changes: 3 additions & 0 deletions VkNet/Categories/AdsCategory.cs
Original file line number Diff line number Diff line change
Expand Up @@ -269,6 +269,9 @@ public ReadOnlyCollection<Ad> GetAds(GetAdsParams getAdsParams) => _vk.Call<Read
{
"include_deleted", getAdsParams.IncludeDeleted
},
{
"only_deleted", getAdsParams.OnlyDeleted
},
{
"limit", getAdsParams.Limit
},
Expand Down
6 changes: 6 additions & 0 deletions VkNet/Model/RequestParams/Ads/GetAdsParams.cs
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,12 @@ public class GetAdsParams
[JsonProperty("include_deleted")]
public bool? IncludeDeleted { get; set; }

/// <summary>
/// Флаг, задающий вывод только архивных объявлений. 0 — выводить все объявления; 1 — выводить только архивные объявления.
/// </summary>
[JsonProperty("include_deleted")]
public bool? OnlyDeleted { get; set; }

/// <summary>
/// Фильтр по рекламным кампаниям.
/// Сериализованный JSON-массив, содержащий id кампаний.Если параметр равен null, то будут выводиться рекламные объявления всех кампаний.
Expand Down

0 comments on commit 4d165e5

Please sign in to comment.