Package com.vk.api.sdk.queries.ads
Class AdsGetUploadURLQuery
- java.lang.Object
-
- com.vk.api.sdk.client.ApiRequest<R>
-
- com.vk.api.sdk.client.AbstractQueryBuilder<AdsGetUploadURLQuery,java.lang.String>
-
- com.vk.api.sdk.queries.ads.AdsGetUploadURLQuery
-
public class AdsGetUploadURLQuery extends AbstractQueryBuilder<AdsGetUploadURLQuery,java.lang.String>
Query for Ads.getUploadURL method
-
-
Constructor Summary
Constructors Constructor Description AdsGetUploadURLQuery(VkApiClient client, UserActor actor, int adFormat)Creates a AbstractQueryBuilder instance that can be used to build api request with various parameters
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected AdsGetUploadURLQueryadFormat(int value)Ad format: *1 — image and text,, *2 — big image,, *3 — exclusive format,, *4 — community, square image,, *7 — special app format.protected java.util.List<java.lang.String>essentialKeys()Get list of required parameter namesprotected AdsGetUploadURLQuerygetThis()Get reference to this objectAdsGetUploadURLQueryicon(java.lang.Integer value)Set icon-
Methods inherited from class com.vk.api.sdk.client.AbstractQueryBuilder
accessToken, build, captchaKey, captchaSid, clientSecret, confirm, getBody, getMethod, getParams, lang, toString, unsafeParam, unsafeParam, unsafeParam, unsafeParam, unsafeParam, unsafeParam, unsafeParam, unsafeParam, unsafeParam, unsafeParam, unsafeParam, version
-
Methods inherited from class com.vk.api.sdk.client.ApiRequest
execute, executeAsRaw, executeAsString, getClient, getGson, getHeaders, getResponseClass, getUrl, setHeaders
-
-
-
-
Constructor Detail
-
AdsGetUploadURLQuery
public AdsGetUploadURLQuery(VkApiClient client, UserActor actor, int adFormat)
Creates a AbstractQueryBuilder instance that can be used to build api request with various parameters- Parameters:
client- VK API clientactor- actor with access tokenadFormat- value of "ad format" parameter.
-
-
Method Detail
-
adFormat
protected AdsGetUploadURLQuery adFormat(int value)
Ad format: *1 — image and text,, *2 — big image,, *3 — exclusive format,, *4 — community, square image,, *7 — special app format.- Parameters:
value- value of "ad format" parameter.- Returns:
- a reference to this
AbstractQueryBuilderobject to fulfill the "Builder" pattern.
-
icon
public AdsGetUploadURLQuery icon(java.lang.Integer value)
Set icon- Parameters:
value- value of "icon" parameter.- Returns:
- a reference to this
AbstractQueryBuilderobject to fulfill the "Builder" pattern.
-
getThis
protected AdsGetUploadURLQuery getThis()
Description copied from class:AbstractQueryBuilderGet reference to this object- Specified by:
getThisin classAbstractQueryBuilder<AdsGetUploadURLQuery,java.lang.String>- Returns:
- a reference to this
AbstractQueryBuilderobject to fulfill the "Builder" pattern.
-
essentialKeys
protected java.util.List<java.lang.String> essentialKeys()
Description copied from class:AbstractQueryBuilderGet list of required parameter names- Specified by:
essentialKeysin classAbstractQueryBuilder<AdsGetUploadURLQuery,java.lang.String>- Returns:
- list of names
-
-