Class: Vk::API::Ads::Methods::CheckLink

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

Overview

Allows to check the ad link.

Arguments collapse

Instance Method Summary collapse

Methods inherited from Schema::Method

#call, #method, #to_hash

Constructor Details

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

Parameters:

  • arguments (Hash)

Options Hash (arguments):

  • :account_id (Integer)

    Advertising account ID.

  • :link_type (String)

    Object type:; *'community' — community;; *'post' — community post;; *'application' — VK application;; *'video' — video;; *'site' — external site.

  • :link_url (String)

    Object URL.

  • :campaign_id (Integer)

    Campaign ID



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

Instance Method Details

#account_idInteger

Returns Advertising account ID.

Returns:

  • (Integer)

    Advertising account ID.



26
# File 'lib/vk/api/ads/methods/check_link.rb', line 26

attribute :account_id, API::Types::Coercible::Int

#campaign_idInteger

Returns Campaign ID.

Returns:

  • (Integer)

    Campaign ID



32
# File 'lib/vk/api/ads/methods/check_link.rb', line 32

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

Returns Object type:; *'community' — community;; *'post' — community post;; *'application' — VK application;; *'video' — video;; *'site' — external site.

Returns:

  • (String)

    Object type:; *'community' — community;; *'post' — community post;; *'application' — VK application;; *'video' — video;; *'site' — external site.



28
# File 'lib/vk/api/ads/methods/check_link.rb', line 28

attribute :link_type, API::Types::Coercible::String

Returns Object URL.

Returns:

  • (String)

    Object URL.



30
# File 'lib/vk/api/ads/methods/check_link.rb', line 30

attribute :link_url, API::Types::Coercible::String