Class: Vk::API::Ads::AdLayout

Inherits:
Schema::Object show all
Defined in:
lib/vk/api/ads/ad_layout.rb

Overview

Instance Method Summary collapse

Instance Method Details

#ad_formatInteger

Returns Ad format.

Returns:

  • (Integer)

    Ad format


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

attribute :ad_format, API::Types::Coercible::Int.optional.default(nil)

#campaign_idInteger

Returns Campaign ID.

Returns:

  • (Integer)

    Campaign ID


13
# File 'lib/vk/api/ads/ad_layout.rb', line 13

attribute :campaign_id, API::Types::Coercible::Int

#cost_typeInteger

Returns Cost type.

Returns:

  • (Integer)

    Cost type


17
# File 'lib/vk/api/ads/ad_layout.rb', line 17

attribute :cost_type, API::Types::Coercible::Int.enum(0, 1)

#descriptionString

Returns Ad description.

Returns:

  • (String)

    Ad description


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

attribute :description, API::Types::Coercible::String.optional.default(nil)

#idInteger

Returns Ad ID.

Returns:

  • (Integer)

    Ad ID


11
# File 'lib/vk/api/ads/ad_layout.rb', line 11

attribute :id, API::Types::Coercible::Int

#image_srcInteger

Returns Image URL.

Returns:

  • (Integer)

    Image URL


31
# File 'lib/vk/api/ads/ad_layout.rb', line 31

attribute :image_src, API::Types::Coercible::Int

#image_src_2xInteger

Returns URL of the preview image in double size.

Returns:

  • (Integer)

    URL of the preview image in double size


33
# File 'lib/vk/api/ads/ad_layout.rb', line 33

attribute :image_src_2x, API::Types::Coercible::Int.optional.default(nil)

Returns Domain of advertised object.

Returns:

  • (String)

    Domain of advertised object


27
# File 'lib/vk/api/ads/ad_layout.rb', line 27

attribute :link_domain, API::Types::Coercible::String.optional.default(nil)

Returns URL of advertised object.

Returns:

  • (String)

    URL of advertised object


25
# File 'lib/vk/api/ads/ad_layout.rb', line 25

attribute :link_url, API::Types::Coercible::String.optional.default(nil)

Returns link to preview an ad as it is shown on the website.

Returns:

  • (Integer, String)

    link to preview an ad as it is shown on the website


29
# File 'lib/vk/api/ads/ad_layout.rb', line 29

attribute :preview_link, API::Types::Coercible::Int | API::Types::Coercible::String.optional.default(nil)

#titleString

Returns Ad title.

Returns:

  • (String)

    Ad title


21
# File 'lib/vk/api/ads/ad_layout.rb', line 21

attribute :title, API::Types::Coercible::String

#videoAPI::Base::BoolInt

Returns Information whether the ad is a video.

Returns:


19
# File 'lib/vk/api/ads/ad_layout.rb', line 19

attribute :video, API::Base::BoolInt.optional.default(nil)