Class AdsGetAdsTargetingQuery

    • Constructor Detail

      • AdsGetAdsTargetingQuery

        public AdsGetAdsTargetingQuery​(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 client
        actor - actor with access token
        accountId - value of "account id" parameter.
    • Method Detail

      • accountId

        protected AdsGetAdsTargetingQuery 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.
      • adIds

        public AdsGetAdsTargetingQuery adIds​(java.lang.String value)
        Filter by ads. Serialized JSON array with ad IDs. If the parameter is null, all ads will be shown.
        Parameters:
        value - value of "ad ids" parameter.
        Returns:
        a reference to this AbstractQueryBuilder object to fulfill the "Builder" pattern.
      • campaignIds

        public AdsGetAdsTargetingQuery campaignIds​(java.lang.String value)
        Filter by advertising campaigns. Serialized JSON array with campaign IDs. If the parameter is null, ads of all campaigns will be shown.
        Parameters:
        value - value of "campaign ids" parameter.
        Returns:
        a reference to this AbstractQueryBuilder object to fulfill the "Builder" pattern.
      • clientId

        public AdsGetAdsTargetingQuery clientId​(java.lang.Integer value)
        'For advertising agencies.' ID of the client ads are retrieved from.
        Parameters:
        value - value of "client id" parameter.
        Returns:
        a reference to this AbstractQueryBuilder object to fulfill the "Builder" pattern.
      • includeDeleted

        public AdsGetAdsTargetingQuery includeDeleted​(java.lang.Boolean value)
        Flag that specifies whether archived ads shall be shown: *0 — show only active ads,, *1 — show all ads.
        Parameters:
        value - value of "include deleted" parameter.
        Returns:
        a reference to this AbstractQueryBuilder object to fulfill the "Builder" pattern.
      • limit

        public AdsGetAdsTargetingQuery limit​(java.lang.Integer value)
        Limit of number of returned ads. Used only if 'ad_ids' parameter is null, and 'campaign_ids' parameter contains ID of only one campaign.
        Parameters:
        value - value of "limit" parameter.
        Returns:
        a reference to this AbstractQueryBuilder object to fulfill the "Builder" pattern.
      • offset

        public AdsGetAdsTargetingQuery offset​(java.lang.Integer value)
        Offset needed to return a specific subset of results.
        Parameters:
        value - value of "offset" parameter.
        Returns:
        a reference to this AbstractQueryBuilder object to fulfill the "Builder" pattern.