Class: Vk::API::Ads::Methods::GetUploadUrl

Inherits:
Schema::Method
  • Object
show all
Defined in:
lib/vk/api/ads/methods/get_upload_url.rb

Overview

Returns URL to upload an ad photo to.

Arguments collapse

Instance Method Summary collapse

Methods inherited from Schema::Method

#call, #method, #to_hash

Constructor Details

#initialize(arguments) ⇒ Ads::Methods::GetUploadUrl

Parameters:

  • arguments (Hash)

Options Hash (arguments):

  • :ad_format (Integer)

    Ad format:; *1 — image and text;; *2 — big image;; *3 — exclusive format;; *4 — community, square image;; *7 — special app format.



# File 'lib/vk/api/ads/methods/get_upload_url.rb', line 15

Instance Method Details

#ad_formatInteger

Returns Ad format:; *1 — image and text;; *2 — big image;; *3 — exclusive format;; *4 — community, square image;; *7 — special app format.

Returns:

  • (Integer)

    Ad format:; *1 — image and text;; *2 — big image;; *3 — exclusive format;; *4 — community, square image;; *7 — special app format.



23
# File 'lib/vk/api/ads/methods/get_upload_url.rb', line 23

attribute :ad_format, API::Types::Coercible::Int