lib/twitter-ads/enum.rb
# Helper method to return a list a valid placement combinations by Product.
#
# @example
#   Placement.valid_combinations(Product::PROMOTED_TWEETS)
#
# @param product_type [Product] The enum value for the Product type being targeted.
#
# @return [Array] An array of valid placement combinations.
#
# @deprecated use LineItems#placements(). Will be deprecated in v1.0.0.
#
# @since 0.1.0
# @see https://dev.twitter.com/ads/reference/get/line_items/placements
Helper method to return a list a valid placement combinations by Product.
Helper method to return a list a valid placement combinations by Product .
def valid_combinations(client, product_type)
          TwitterAds::Utils.deprecated(
            'Placement#valid_combinations', replacement: 'LineItem#placements')
          TwitterAds::LineItem.placements(client, product_type)
        end
def valid_combinations ( client , product_type ) TwitterAds :: Utils . deprecated ( 'Placement#valid_combinations' , replacement : 'LineItem#placements' ) TwitterAds :: LineItem . placements ( client , product_type ) end
Helper method to return a list a valid placement combinations by Product.
Helper method to return a list a valid placement combinations by Product .
An array of valid placement combinations.
An array of valid placement combinations .
Array
client
product_type
The enum value for the Product type being targeted.
The enum value for the Product type being targeted .
example
None
deprecated
use LineItems#placements(). Will be deprecated in v1.0.0.
use LineItems#placements () . Will be deprecated in v1 . 0 . 0 .
since
None
see
None