Class: Vk::API::Ads::Methods::ImportTargetContacts

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

Overview

Imports a list of advertiser's contacts to count VK registered users against the target group.

Arguments collapse

Instance Method Summary collapse

Methods inherited from Schema::Method

#call, #method, #to_hash

Constructor Details

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

Parameters:

  • arguments (Hash)

Options Hash (arguments):

  • :account_id (Integer)

    Advertising account ID.

  • :client_id (Integer)

    'Only for advertising agencies.' ; ID of the client with the advertising account where the group will be created.;

  • :target_group_id (Integer)

    Target group ID.

  • :contacts (String)

    List of phone numbers, emails or user IDs separated with a comma.



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

Instance Method Details

#account_idInteger

Returns Advertising account ID.

Returns:

  • (Integer)

    Advertising account ID.



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

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

#client_idInteger

Returns 'Only for advertising agencies.' ; ID of the client with the advertising account where the group will be created.;.

Returns:

  • (Integer)

    'Only for advertising agencies.' ; ID of the client with the advertising account where the group will be created.;



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

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

#contactsString

Returns List of phone numbers, emails or user IDs separated with a comma.

Returns:

  • (String)

    List of phone numbers, emails or user IDs separated with a comma.



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

attribute :contacts, API::Types::Coercible::String

#target_group_idInteger

Returns Target group ID.

Returns:

  • (Integer)

    Target group ID.



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

attribute :target_group_id, API::Types::Coercible::Int