Class AdsCreateTargetGroupQuery

    • Constructor Detail

      • AdsCreateTargetGroupQuery

        public AdsCreateTargetGroupQuery​(VkApiClient client,
                                         UserActor actor,
                                         int accountId,
                                         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 client
        actor - actor with access token
        accountId - value of "account id" parameter.
        name - value of "name" parameter.
        lifetime - value of "lifetime" parameter. Maximum is 720. Minimum is 1.
    • Method Detail

      • accountId

        protected AdsCreateTargetGroupQuery accountId​(int value)
        Advertising account ID.
        Parameters:
        value - value of "account id" parameter.
        Returns:
        a reference to this AbstractQueryBuilder object to fulfill the "Builder" pattern.
      • clientId

        public AdsCreateTargetGroupQuery 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 AbstractQueryBuilder object to fulfill the "Builder" pattern.
      • name

        protected AdsCreateTargetGroupQuery name​(java.lang.String value)
        Name of the target group — a string up to 64 characters long.
        Parameters:
        value - value of "name" parameter.
        Returns:
        a reference to this AbstractQueryBuilder object to fulfill the "Builder" pattern.
      • lifetime

        protected AdsCreateTargetGroupQuery lifetime​(int value)
        'For groups with auditory created with pixel code only.', , Number of days after that users will be automatically removed from the group.
        Parameters:
        value - value of "lifetime" parameter. Maximum is 720. Minimum is 1.
        Returns:
        a reference to this AbstractQueryBuilder object to fulfill the "Builder" pattern.
      • targetPixelId

        public AdsCreateTargetGroupQuery targetPixelId​(java.lang.Integer value)
        Set target pixel id
        Parameters:
        value - value of "target pixel id" parameter.
        Returns:
        a reference to this AbstractQueryBuilder object to fulfill the "Builder" pattern.
      • targetPixelRules

        public AdsCreateTargetGroupQuery targetPixelRules​(java.lang.String value)
        Set target pixel rules
        Parameters:
        value - value of "target pixel rules" parameter.
        Returns:
        a reference to this AbstractQueryBuilder object to fulfill the "Builder" pattern.