Class: Vk::API::Ads::Ad

Inherits:
Schema::Object show all
Defined in:
lib/vk/api/ads/ad.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.rb', line 15

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

#ad_platformInteger, String

Returns Ad platform.

Returns:

  • (Integer, String)

    Ad platform


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

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

#all_limitInteger

Returns Total limit.

Returns:

  • (Integer)

    Total limit


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

attribute :all_limit, API::Types::Coercible::Int

#approvedInteger

Returns Review status.

Returns:

  • (Integer)

    Review status


39
# File 'lib/vk/api/ads/ad.rb', line 39

attribute :approved, API::Types::Coercible::Int.enum(0, 1, 2, 3)

#campaign_idInteger

Returns Campaign ID.

Returns:

  • (Integer)

    Campaign ID


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

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

#category1_idInteger

Returns Category ID.

Returns:

  • (Integer)

    Category ID


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

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

#category2_idInteger

Returns Additional category ID.

Returns:

  • (Integer)

    Additional category ID


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

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

#cost_typeInteger

Returns Cost type.

Returns:

  • (Integer)

    Cost type


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

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

#cpcInteger

Returns Cost of a click, kopecks.

Returns:

  • (Integer)

    Cost of a click, kopecks


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

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

#cpmInteger

Returns Cost of 1000 impressions, kopecks.

Returns:

  • (Integer)

    Cost of 1000 impressions, kopecks


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

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

#disclaimer_medicalAPI::Base::BoolInt

Returns Information whether disclaimer is enabled.

Returns:


43
# File 'lib/vk/api/ads/ad.rb', line 43

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

#disclaimer_specialistAPI::Base::BoolInt

Returns Information whether disclaimer is enabled.

Returns:


45
# File 'lib/vk/api/ads/ad.rb', line 45

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

#disclaimer_supplementsAPI::Base::BoolInt

Returns Information whether disclaimer is enabled.

Returns:


47
# File 'lib/vk/api/ads/ad.rb', line 47

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

#idInteger

Returns Ad ID.

Returns:

  • (Integer)

    Ad ID


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

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

#impressions_limitInteger

Returns Impressions limit.

Returns:

  • (Integer)

    Impressions limit


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

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

#impressions_limitedInteger

Returns Information whether impressions are limited.

Returns:

  • (Integer)

    Information whether impressions are limited


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

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

#nameString

Returns Ad title.

Returns:

  • (String)

    Ad title


37
# File 'lib/vk/api/ads/ad.rb', line 37

attribute :name, API::Types::Coercible::String

#statusInteger

Returns Ad atatus.

Returns:

  • (Integer)

    Ad atatus


35
# File 'lib/vk/api/ads/ad.rb', line 35

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

#videoAPI::Base::BoolInt

Returns Information whether the ad is a video.

Returns:


41
# File 'lib/vk/api/ads/ad.rb', line 41

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