public class AdsGetDemographicsQuery extends AbstractQueryBuilder<AdsGetDemographicsQuery,java.util.List<DemoStats>>
Constructor and Description |
---|
AdsGetDemographicsQuery(VkApiClient client,
UserActor actor,
int accountId,
AdsGetDemographicsIdsType idsType,
java.lang.String ids,
java.lang.String period,
java.lang.String dateFrom,
java.lang.String dateTo)
Creates a AbstractQueryBuilder instance that can be used to build api request with various parameters
|
Modifier and Type | Method and Description |
---|---|
protected AdsGetDemographicsQuery |
accountId(int value)
Advertising account ID.
|
protected AdsGetDemographicsQuery |
dateFrom(java.lang.String value)
Date to show statistics from.
|
protected AdsGetDemographicsQuery |
dateTo(java.lang.String value)
Date to show statistics to.
|
protected java.util.List<java.lang.String> |
essentialKeys()
Get list of required parameter names
|
protected AdsGetDemographicsQuery |
getThis()
Get reference to this object
|
protected AdsGetDemographicsQuery |
ids(java.lang.String value)
IDs requested ads or campaigns, separated with a comma, depending on the value set in "ids_type".
|
protected AdsGetDemographicsQuery |
idsType(AdsGetDemographicsIdsType value)
Type of requested objects listed in "ids" parameter.
|
protected AdsGetDemographicsQuery |
period(java.lang.String value)
Data grouping by dates:
'day' - statistics by days;
'month' - statistics by months;
'overall' - overall statistics.
|
accessToken, build, captchaKey, captchaSid, clientSecret, confirm, getBody, getMethod, lang, unsafeParam, unsafeParam, unsafeParam, unsafeParam, unsafeParam, unsafeParam, unsafeParam, unsafeParam, unsafeParam, unsafeParam, unsafeParam, version
execute, executeAsRaw, executeAsString, getClient, getGson, getResponseClass, getUrl
public AdsGetDemographicsQuery(VkApiClient client, UserActor actor, int accountId, AdsGetDemographicsIdsType idsType, java.lang.String ids, java.lang.String period, java.lang.String dateFrom, java.lang.String dateTo)
client
- VK API clientactor
- actor with access tokenaccountId
- value of "account id" parameter.idsType
- value of "ids type" parameter.ids
- value of "ids" parameter.period
- value of "period" parameter.dateFrom
- value of "date from" parameter.dateTo
- value of "date to" parameter.protected AdsGetDemographicsQuery accountId(int value)
value
- value of "account id" parameter.AbstractQueryBuilder
object to fulfill the "Builder" pattern.protected AdsGetDemographicsQuery idsType(AdsGetDemographicsIdsType value)
value
- value of "ids type" parameter.AbstractQueryBuilder
object to fulfill the "Builder" pattern.protected AdsGetDemographicsQuery ids(java.lang.String value)
value
- value of "ids" parameter.AbstractQueryBuilder
object to fulfill the "Builder" pattern.protected AdsGetDemographicsQuery period(java.lang.String value)
value
- value of "period" parameter.AbstractQueryBuilder
object to fulfill the "Builder" pattern.protected AdsGetDemographicsQuery dateFrom(java.lang.String value)
value
- value of "date from" parameter.AbstractQueryBuilder
object to fulfill the "Builder" pattern.protected AdsGetDemographicsQuery dateTo(java.lang.String value)
value
- value of "date to" parameter.AbstractQueryBuilder
object to fulfill the "Builder" pattern.protected AdsGetDemographicsQuery getThis()
AbstractQueryBuilder
getThis
in class AbstractQueryBuilder<AdsGetDemographicsQuery,java.util.List<DemoStats>>
AbstractQueryBuilder
object to fulfill the "Builder" pattern.protected java.util.List<java.lang.String> essentialKeys()
AbstractQueryBuilder
essentialKeys
in class AbstractQueryBuilder<AdsGetDemographicsQuery,java.util.List<DemoStats>>