Class: Vk::API::Ads::Methods::CreateCampaigns

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

Overview

Creates advertising campaigns.

Arguments collapse

Instance Method Summary collapse

Methods inherited from Schema::Method

#call, #method, #to_hash

Constructor Details

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

Parameters:

  • arguments (Hash)

Options Hash (arguments):

  • :account_id (Integer)

    Advertising account ID.

  • :data (String)

    Serialized JSON array of objects that describe created campaigns. Description of 'campaign_specification' objects see below.


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

Instance Method Details

#account_idInteger

Returns Advertising account ID.

Returns:

  • (Integer)

    Advertising account ID.


24
# File 'lib/vk/api/ads/methods/create_campaigns.rb', line 24

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

#dataString

Returns Serialized JSON array of objects that describe created campaigns. Description of 'campaign_specification' objects see below.

Returns:

  • (String)

    Serialized JSON array of objects that describe created campaigns. Description of 'campaign_specification' objects see below.


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

attribute :data, API::Types::Coercible::String