Package com.vk.api.sdk.queries.ads
Class AdsGetCampaignsQuery
- java.lang.Object
-
- com.vk.api.sdk.client.ApiRequest<R>
-
- com.vk.api.sdk.client.AbstractQueryBuilder<AdsGetCampaignsQuery,java.util.List<GetCampaignsResponse>>
-
- com.vk.api.sdk.queries.ads.AdsGetCampaignsQuery
-
public class AdsGetCampaignsQuery extends AbstractQueryBuilder<AdsGetCampaignsQuery,java.util.List<GetCampaignsResponse>>
Query for Ads.getCampaigns method
-
-
Constructor Summary
Constructors Constructor Description AdsGetCampaignsQuery(VkApiClient client, UserActor actor, int accountId)Creates a AbstractQueryBuilder instance that can be used to build api request with various parameters
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected AdsGetCampaignsQueryaccountId(int value)Advertising account ID.AdsGetCampaignsQuerycampaignIds(java.lang.String value)Filter of advertising campaigns to show.AdsGetCampaignsQueryclientId(java.lang.Integer value)'For advertising agencies'.protected java.util.List<java.lang.String>essentialKeys()Get list of required parameter namesAdsGetCampaignsQueryfields(java.lang.String... value)fields Set fieldsAdsGetCampaignsQueryfields(java.util.List<java.lang.String> value)Set fieldsprotected AdsGetCampaignsQuerygetThis()Get reference to this objectAdsGetCampaignsQueryincludeDeleted(java.lang.Boolean value)Flag that specifies whether archived ads shall be shown.-
Methods inherited from class com.vk.api.sdk.client.AbstractQueryBuilder
accessToken, build, captchaKey, captchaSid, clientSecret, confirm, getBody, getMethod, getParams, lang, toString, unsafeParam, unsafeParam, unsafeParam, unsafeParam, unsafeParam, unsafeParam, unsafeParam, unsafeParam, unsafeParam, unsafeParam, unsafeParam, version
-
Methods inherited from class com.vk.api.sdk.client.ApiRequest
execute, executeAsRaw, executeAsString, getClient, getGson, getHeaders, getResponseClass, getUrl, setHeaders
-
-
-
-
Constructor Detail
-
AdsGetCampaignsQuery
public AdsGetCampaignsQuery(VkApiClient client, UserActor actor, int accountId)
Creates a AbstractQueryBuilder instance that can be used to build api request with various parameters- Parameters:
client- VK API clientactor- actor with access tokenaccountId- value of "account id" parameter.
-
-
Method Detail
-
accountId
protected AdsGetCampaignsQuery accountId(int value)
Advertising account ID.- Parameters:
value- value of "account id" parameter.- Returns:
- a reference to this
AbstractQueryBuilderobject to fulfill the "Builder" pattern.
-
clientId
public AdsGetCampaignsQuery clientId(java.lang.Integer value)
'For advertising agencies'. ID of the client advertising campaigns are retrieved from.- Parameters:
value- value of "client id" parameter.- Returns:
- a reference to this
AbstractQueryBuilderobject to fulfill the "Builder" pattern.
-
includeDeleted
public AdsGetCampaignsQuery includeDeleted(java.lang.Boolean value)
Flag that specifies whether archived ads shall be shown. *0 — show only active campaigns,, *1 — show all campaigns.- Parameters:
value- value of "include deleted" parameter.- Returns:
- a reference to this
AbstractQueryBuilderobject to fulfill the "Builder" pattern.
-
campaignIds
public AdsGetCampaignsQuery campaignIds(java.lang.String value)
Filter of advertising campaigns to show. Serialized JSON array with campaign IDs. Only campaigns that exist in 'campaign_ids' and belong to the specified advertising account will be shown. If the parameter is null, all campaigns will be shown.- Parameters:
value- value of "campaign ids" parameter.- Returns:
- a reference to this
AbstractQueryBuilderobject to fulfill the "Builder" pattern.
-
fields
public AdsGetCampaignsQuery fields(java.lang.String... value)
fields Set fields- Parameters:
value- value of "fields" parameter.- Returns:
- a reference to this
AbstractQueryBuilderobject to fulfill the "Builder" pattern.
-
fields
public AdsGetCampaignsQuery fields(java.util.List<java.lang.String> value)
Set fields- Parameters:
value- value of "fields" parameter.- Returns:
- a reference to this
AbstractQueryBuilderobject to fulfill the "Builder" pattern.
-
getThis
protected AdsGetCampaignsQuery getThis()
Description copied from class:AbstractQueryBuilderGet reference to this object- Specified by:
getThisin classAbstractQueryBuilder<AdsGetCampaignsQuery,java.util.List<GetCampaignsResponse>>- Returns:
- a reference to this
AbstractQueryBuilderobject to fulfill the "Builder" pattern.
-
essentialKeys
protected java.util.List<java.lang.String> essentialKeys()
Description copied from class:AbstractQueryBuilderGet list of required parameter names- Specified by:
essentialKeysin classAbstractQueryBuilder<AdsGetCampaignsQuery,java.util.List<GetCampaignsResponse>>- Returns:
- list of names
-
-