Package com.vk.api.sdk.queries.ads
Class AdsUpdateTargetGroupQuery
- java.lang.Object
-
- com.vk.api.sdk.client.ApiRequest<R>
-
- com.vk.api.sdk.client.AbstractQueryBuilder<AdsUpdateTargetGroupQuery,OkResponse>
-
- com.vk.api.sdk.queries.ads.AdsUpdateTargetGroupQuery
-
public class AdsUpdateTargetGroupQuery extends AbstractQueryBuilder<AdsUpdateTargetGroupQuery,OkResponse>
Query for Ads.updateTargetGroup method
-
-
Constructor Summary
Constructors Constructor Description AdsUpdateTargetGroupQuery(VkApiClient client, UserActor actor, int accountId, int targetGroupId, java.lang.String name, int lifetime)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 AdsUpdateTargetGroupQueryaccountId(int value)Advertising account ID.AdsUpdateTargetGroupQueryclientId(java.lang.Integer value)'Only for advertising agencies.' , ID of the client with the advertising account where the group will be created.AdsUpdateTargetGroupQuerydomain(java.lang.String value)Domain of the site where user accounting code will be placed.protected java.util.List<java.lang.String>essentialKeys()Get list of required parameter namesprotected AdsUpdateTargetGroupQuerygetThis()Get reference to this objectprotected AdsUpdateTargetGroupQuerylifetime(int value)'Only for the groups that get audience from sites with user accounting code.', Time in days when users added to a retarget group will be automatically excluded from it.protected AdsUpdateTargetGroupQueryname(java.lang.String value)New name of the target group — a string up to 64 characters long.protected AdsUpdateTargetGroupQuerytargetGroupId(int value)Group ID.AdsUpdateTargetGroupQuerytargetPixelId(java.lang.Integer value)Set target pixel idAdsUpdateTargetGroupQuerytargetPixelRules(java.lang.String value)Set target pixel rules-
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
-
AdsUpdateTargetGroupQuery
public AdsUpdateTargetGroupQuery(VkApiClient client, UserActor actor, int accountId, int targetGroupId, java.lang.String name, int lifetime)
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.targetGroupId- value of "target group id" parameter.name- value of "name" parameter.lifetime- value of "lifetime" parameter. Maximum is 720. Minimum is 1.
-
-
Method Detail
-
accountId
protected AdsUpdateTargetGroupQuery 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 AdsUpdateTargetGroupQuery 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.
-
targetGroupId
protected AdsUpdateTargetGroupQuery targetGroupId(int value)
Group ID.- Parameters:
value- value of "target group id" parameter.- Returns:
- a reference to this
AbstractQueryBuilderobject to fulfill the "Builder" pattern.
-
name
protected AdsUpdateTargetGroupQuery name(java.lang.String value)
New name of the target group — a string up to 64 characters long.- Parameters:
value- value of "name" parameter.- Returns:
- a reference to this
AbstractQueryBuilderobject to fulfill the "Builder" pattern.
-
domain
public AdsUpdateTargetGroupQuery domain(java.lang.String value)
Domain of the site where user accounting code will be placed.- Parameters:
value- value of "domain" parameter.- Returns:
- a reference to this
AbstractQueryBuilderobject to fulfill the "Builder" pattern.
-
lifetime
protected AdsUpdateTargetGroupQuery lifetime(int value)
'Only for the groups that get audience from sites with user accounting code.', Time in days when users added to a retarget group will be automatically excluded from it. '0' - automatic exclusion is off.- Parameters:
value- value of "lifetime" parameter. Maximum is 720. Minimum is 1.- Returns:
- a reference to this
AbstractQueryBuilderobject to fulfill the "Builder" pattern.
-
targetPixelId
public AdsUpdateTargetGroupQuery targetPixelId(java.lang.Integer value)
Set target pixel id- Parameters:
value- value of "target pixel id" parameter.- Returns:
- a reference to this
AbstractQueryBuilderobject to fulfill the "Builder" pattern.
-
targetPixelRules
public AdsUpdateTargetGroupQuery targetPixelRules(java.lang.String value)
Set target pixel rules- Parameters:
value- value of "target pixel rules" parameter.- Returns:
- a reference to this
AbstractQueryBuilderobject to fulfill the "Builder" pattern.
-
getThis
protected AdsUpdateTargetGroupQuery getThis()
Description copied from class:AbstractQueryBuilderGet reference to this object- Specified by:
getThisin classAbstractQueryBuilder<AdsUpdateTargetGroupQuery,OkResponse>- 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<AdsUpdateTargetGroupQuery,OkResponse>- Returns:
- list of names
-
-