Package com.vk.api.sdk.queries.ads
Class AdsGetTargetGroupsQuery
- java.lang.Object
-
- com.vk.api.sdk.client.ApiRequest<R>
-
- com.vk.api.sdk.client.AbstractQueryBuilder<AdsGetTargetGroupsQuery,java.util.List<GetTargetGroupsResponse>>
-
- com.vk.api.sdk.queries.ads.AdsGetTargetGroupsQuery
-
public class AdsGetTargetGroupsQuery extends AbstractQueryBuilder<AdsGetTargetGroupsQuery,java.util.List<GetTargetGroupsResponse>>
Query for Ads.getTargetGroups method
-
-
Constructor Summary
Constructors Constructor Description AdsGetTargetGroupsQuery(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 AdsGetTargetGroupsQueryaccountId(int value)Advertising account ID.AdsGetTargetGroupsQueryclientId(java.lang.Integer value)'Only for advertising agencies.', ID of the client with the advertising account where the group will be created.protected java.util.List<java.lang.String>essentialKeys()Get list of required parameter namesAdsGetTargetGroupsQueryextended(java.lang.Boolean value)'1' — to return pixel code.protected AdsGetTargetGroupsQuerygetThis()Get reference to this object-
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
-
AdsGetTargetGroupsQuery
public AdsGetTargetGroupsQuery(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 AdsGetTargetGroupsQuery 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 AdsGetTargetGroupsQuery clientId(java.lang.Integer value)
'Only for advertising agencies.', ID of the client with the advertising account where the group will be created.- Parameters:
value- value of "client id" parameter.- Returns:
- a reference to this
AbstractQueryBuilderobject to fulfill the "Builder" pattern.
-
extended
public AdsGetTargetGroupsQuery extended(java.lang.Boolean value)
'1' — to return pixel code.- Parameters:
value- value of "extended" parameter.- Returns:
- a reference to this
AbstractQueryBuilderobject to fulfill the "Builder" pattern.
-
getThis
protected AdsGetTargetGroupsQuery getThis()
Description copied from class:AbstractQueryBuilderGet reference to this object- Specified by:
getThisin classAbstractQueryBuilder<AdsGetTargetGroupsQuery,java.util.List<GetTargetGroupsResponse>>- 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<AdsGetTargetGroupsQuery,java.util.List<GetTargetGroupsResponse>>- Returns:
- list of names
-
-