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_format ⇒ Integer

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_id ⇒ Integer

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_type ⇒ Integer

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)

#description ⇒ String

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)

#id ⇒ Integer

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_src ⇒ Integer

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_2x ⇒ Integer

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)

#title ⇒ String

Returns Ad title.

Returns:

  • (String) —

    Ad title



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

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

#video ⇒ API::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)