Class AdsGetAdsQuery

    • Constructor Detail

      • AdsGetAdsQuery

        public AdsGetAdsQuery​(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 AdsGetAdsQuery 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 AdsGetAdsQuery 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 AdsGetAdsQuery 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 AdsGetAdsQuery clientId​(java.lang.Integer value)
        'Available and required 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 AdsGetAdsQuery 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.
      • onlyDeleted

        public AdsGetAdsQuery onlyDeleted​(java.lang.Boolean value)
        Flag that specifies whether to show only archived ads: *0 — show all ads,, *1 — show only archived ads. Available when include_deleted flag is *1
        Parameters:
        value - value of "only deleted" parameter.
        Returns:
        a reference to this AbstractQueryBuilder object to fulfill the "Builder" pattern.
      • limit

        public AdsGetAdsQuery 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 AdsGetAdsQuery offset​(java.lang.Integer value)
        Offset. Used in the same cases as 'limit' parameter.
        Parameters:
        value - value of "offset" parameter.
        Returns:
        a reference to this AbstractQueryBuilder object to fulfill the "Builder" pattern.