Class: Vk::API::Ads::Methods::GetTargetGroups

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

Overview

Returns a list of target groups.

Arguments collapse

Instance Method Summary collapse

Methods inherited from Schema::Method

#call, #method, #to_hash

Constructor Details

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

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.;

  • :extended (Boolean)

    '1' — to return pixel code.


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

Instance Method Details

#account_idInteger

Returns Advertising account ID.

Returns:

  • (Integer)

    Advertising account ID.


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

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.;


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

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

#extendedBoolean

Returns '1' — to return pixel code.

Returns:

  • (Boolean)

    '1' — to return pixel code.


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

attribute :extended, API::Types::Form::Bool.optional.default(nil)