lib/twitter-ads/targeting_criteria/location.rb
# frozen_string_literal: true
# Copyright (C) 2019 Twitter, Inc.
module TwitterAds
class Location
include TwitterAds::DSL
include TwitterAds::Resource
property :name, read_only: true
property :targeting_type, read_only: true
property :targeting_value, read_only: true
property :location_type, read_only: true
RESOURCE_COLLECTION = "/#{TwitterAds::API_VERSION}/" \
'targeting_criteria/locations' # @api private
def initialize(account)
@account = account
self
end
end
end