Class: Vk::API::Ads::Methods::GetAdsTargeting

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

Overview

Retuns ad targeting parameters.

Arguments collapse

Instance Method Summary collapse

Methods inherited from Schema::Method

#call, #method, #to_hash

Constructor Details

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

Parameters:

  • arguments (Hash)

Options Hash (arguments):

  • :account_id (Integer)

    Advertising account ID.

  • :client_id (Integer)

    'For advertising agencies.' ID of the client ads are retrieved from.

  • :include_deleted (Boolean)

    flag that specifies whether archived ads shall be shown:; *0 — show only active ads;; *1 — show all ads.

  • :campaign_ids (String)

    Filter by advertising campaigns.; Serialized JSON array with campaign IDs. If the parameter is null, ads of all campaigns will be shown.;

  • :ad_ids (String)

    Filter by ads.; Serialized JSON array with ad IDs. If the parameter is null, all ads will be shown.

  • :limit (Integer)

    Limit of number of returned ads. Used only if 'ad_ids' parameter is null, and 'campaign_ids' parameter contains ID of only one campaign.

  • :offset (Integer)

    Offset needed to return a specific subset of results.


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

Instance Method Details

#account_idInteger

Returns Advertising account ID.

Returns:

  • (Integer)

    Advertising account ID.


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

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

#ad_idsString

Returns Filter by ads.; Serialized JSON array with ad IDs. If the parameter is null, all ads will be shown.

Returns:

  • (String)

    Filter by ads.; Serialized JSON array with ad IDs. If the parameter is null, all ads will be shown.


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

attribute :ad_ids, API::Types::Coercible::String.optional.default(nil)

#campaign_idsString

Returns Filter by advertising campaigns.; Serialized JSON array with campaign IDs. If the parameter is null, ads of all campaigns will be shown.;.

Returns:

  • (String)

    Filter by advertising campaigns.; Serialized JSON array with campaign IDs. If the parameter is null, ads of all campaigns will be shown.;


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

attribute :campaign_ids, API::Types::Coercible::String.optional.default(nil)

#client_idInteger

Returns 'For advertising agencies.' ID of the client ads are retrieved from.

Returns:

  • (Integer)

    'For advertising agencies.' ID of the client ads are retrieved from.


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

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

#include_deletedBoolean

Returns flag that specifies whether archived ads shall be shown:; *0 — show only active ads;; *1 — show all ads.

Returns:

  • (Boolean)

    flag that specifies whether archived ads shall be shown:; *0 — show only active ads;; *1 — show all ads.


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

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

#limitInteger

Returns Limit of number of returned ads. Used only if 'ad_ids' parameter is null, and 'campaign_ids' parameter contains ID of only one campaign.

Returns:

  • (Integer)

    Limit of number of returned ads. Used only if 'ad_ids' parameter is null, and 'campaign_ids' parameter contains ID of only one campaign.


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

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

#offsetInteger

Returns Offset needed to return a specific subset of results.

Returns:

  • (Integer)

    Offset needed to return a specific subset of results.


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

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