File tree Expand file tree Collapse file tree 3 files changed +11
-1
lines changed Expand file tree Collapse file tree 3 files changed +11
-1
lines changed Original file line number Diff line number Diff line change @@ -497,6 +497,14 @@ func (b *AdsGetAdsTargetingBuilder) IncludeDeleted(v bool) *AdsGetAdsTargetingBu
497
497
return b
498
498
}
499
499
500
+ // OnlyDeleted parameter.
501
+ //
502
+ // TODO: write documentation.
503
+ func (b * AdsGetAdsTargetingBuilder ) OnlyDeleted (v bool ) * AdsGetAdsTargetingBuilder {
504
+ b .Params ["only_deleted" ] = v
505
+ return b
506
+ }
507
+
500
508
// Limit Limit of number of returned ads. Used only if 'ad_ids' parameter is null, and 'campaign_ids' parameter
501
509
// contains ID of only one campaign.
502
510
func (b * AdsGetAdsTargetingBuilder ) Limit (v int ) * AdsGetAdsTargetingBuilder {
Original file line number Diff line number Diff line change @@ -197,6 +197,7 @@ func TestAdsGetAdsTargetingBuilder(t *testing.T) {
197
197
b .IncludeDeleted (true )
198
198
b .Limit (1 )
199
199
b .Offset (1 )
200
+ b .OnlyDeleted (true )
200
201
201
202
assert .Equal (t , b .Params ["account_id" ], 1 )
202
203
assert .Equal (t , b .Params ["ad_ids" ], "text" )
@@ -205,6 +206,7 @@ func TestAdsGetAdsTargetingBuilder(t *testing.T) {
205
206
assert .Equal (t , b .Params ["include_deleted" ], true )
206
207
assert .Equal (t , b .Params ["limit" ], 1 )
207
208
assert .Equal (t , b .Params ["offset" ], 1 )
209
+ assert .Equal (t , b .Params ["only_deleted" ], true )
208
210
}
209
211
210
212
func TestAdsGetBudgetBuilder (t * testing.T ) {
Original file line number Diff line number Diff line change @@ -6,4 +6,4 @@ Source https://github.com/SevereCloud/vksdk
6
6
package vksdk
7
7
8
8
// Version module.
9
- const Version = "1.6 .0"
9
+ const Version = "1.7 .0"
You can’t perform that action at this time.
0 commit comments