Class AdsGetCampaignsQuery

    • Constructor Detail

      • AdsGetCampaignsQuery

        public AdsGetCampaignsQuery​(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 AdsGetCampaignsQuery 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 AdsGetCampaignsQuery clientId​(java.lang.Integer value)
        'For advertising agencies'. ID of the client advertising campaigns are retrieved from.
        Parameters:
        value - value of "client id" parameter.
        Returns:
        a reference to this AbstractQueryBuilder object to fulfill the "Builder" pattern.
      • includeDeleted

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

        public AdsGetCampaignsQuery campaignIds​(java.lang.String value)
        Filter of advertising campaigns to show. Serialized JSON array with campaign IDs. Only campaigns that exist in 'campaign_ids' and belong to the specified advertising account will be shown. If the parameter is null, all campaigns will be shown.
        Parameters:
        value - value of "campaign ids" parameter.
        Returns:
        a reference to this AbstractQueryBuilder object to fulfill the "Builder" pattern.
      • fields

        public AdsGetCampaignsQuery fields​(java.lang.String... value)
        fields Set fields
        Parameters:
        value - value of "fields" parameter.
        Returns:
        a reference to this AbstractQueryBuilder object to fulfill the "Builder" pattern.
      • fields

        public AdsGetCampaignsQuery fields​(java.util.List<java.lang.String> value)
        Set fields
        Parameters:
        value - value of "fields" parameter.
        Returns:
        a reference to this AbstractQueryBuilder object to fulfill the "Builder" pattern.