Skip to content

Commit 3bce052

Browse files
jamesy829osowskittushdante
authored
Add support for operator_type to allow keyword targeting criterion (#215)
* Add targeting_value property to event targeting criteria * Add operator_type to support keyword targeting criterion relationship Co-authored-by: Tom Osowski <osowskit@gmail.com> Co-authored-by: Tushar Bhushan <tushar.bhushan@yahoo.com>
1 parent 2e3d733 commit 3bce052

3 files changed

Lines changed: 3 additions & 0 deletions

File tree

lib/twitter-ads/campaign/targeting_criteria.rb

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@ class TargetingCriteria
2121
property :line_item_id
2222
property :targeting_type
2323
property :targeting_value
24+
property :operator_type
2425
property :tailored_audience_expansion, type: :bool
2526
property :location_type
2627

lib/twitter-ads/targeting_criteria/event.rb

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@ class Event
2121
property :gender_breakdown_percentage, read_only: true
2222
property :device_breakdown_percentage, read_only: true
2323
property :country_breakdown_percentage, read_only: true
24+
property :targeting_value, read_only: true
2425

2526
RESOURCE_COLLECTION = "/#{TwitterAds::API_VERSION}/" \
2627
'targeting_criteria/events' # @api private

spec/twitter-ads/campaign/targeting_criteria_spec.rb

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,7 @@
3030
line_item_id
3131
targeting_type
3232
targeting_value
33+
operator_type
3334
tailored_audience_expansion
3435
)
3536

0 commit comments

Comments
 (0)