Skip to content

Commit

Permalink
Updates to switch to ios for Cards (#252)
Browse files Browse the repository at this point in the history
* Updates to switch to ios for Cards

* Removing deprecated field salt

* Removing deprecated field salt in tests

* Add enum for Pay By Impression
  • Loading branch information
osowskit authored Nov 5, 2021
1 parent 90881db commit 5a1dba7
Show file tree
Hide file tree
Showing 7 changed files with 7 additions and 19 deletions.
1 change: 0 additions & 1 deletion lib/twitter-ads/account.rb
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@ class Account

property :id, read_only: true
property :name, read_only: true
property :salt, read_only: true
property :timezone, read_only: true
property :timezone_switch_at, type: :time, read_only: true
property :created_at, type: :time, read_only: true
Expand Down
6 changes: 2 additions & 4 deletions lib/twitter-ads/creative/cards_fetch.rb
Original file line number Diff line number Diff line change
Expand Up @@ -35,10 +35,8 @@ class CardsFetch
property :image, read_only: true
property :image_display_height, read_only: true
property :image_display_width, read_only: true
property :ipad_app_id, read_only: true
property :ipad_deep_link, read_only: true
property :iphone_app_id, read_only: true
property :iphone_deep_link, read_only: true
property :ios_app_store_identifier, read_only: true
property :ios_deep_link, read_only: true
property :name, read_only: true
property :recipient_user_id, read_only: true
property :second_choice, read_only: true
Expand Down
6 changes: 2 additions & 4 deletions lib/twitter-ads/creative/image_app_download_card.rb
Original file line number Diff line number Diff line change
Expand Up @@ -26,10 +26,8 @@ class ImageAppDownloadCard
property :app_cta
property :googleplay_app_id
property :googleplay_deep_link
property :iphone_app_id
property :iphone_deep_link
property :ipad_app_id
property :ipad_deep_link
property :ios_app_store_identifier
property :ios_deep_link
property :name
property :media_key

Expand Down
6 changes: 2 additions & 4 deletions lib/twitter-ads/creative/video_app_download_card.rb
Original file line number Diff line number Diff line change
Expand Up @@ -25,10 +25,8 @@ class VideoAppDownloadCard
property :country_code
property :app_cta
property :poster_media_key
property :ipad_app_id
property :ipad_deep_link
property :iphone_app_id
property :iphone_deep_link
property :ios_app_store_identifier
property :ios_deep_link
property :googleplay_app_id
property :googleplay_deep_link
property :name
Expand Down
1 change: 1 addition & 0 deletions lib/twitter-ads/enum.rb
Original file line number Diff line number Diff line change
Expand Up @@ -84,6 +84,7 @@ module BidStrategy

module PayBy
APP_CLICK = 'APP_CLICK'
IMPRESSION = 'IMPRESSION'
end

module MetricGroup
Expand Down
5 changes: 0 additions & 5 deletions spec/fixtures/accounts_all.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@
"timezone_switch_at": "2014-11-17T08:00:00Z",
"id": "2iqph",
"created_at": "2015-03-04T10:50:42Z",
"salt": "5ab2pizq7qxjjqrx3z67f4wbko61o7xs",
"updated_at": "2015-04-11T05:20:08Z",
"approval_status": "ACCEPTED",
"deleted": false
Expand All @@ -20,7 +19,6 @@
"timezone_switch_at": "2014-11-17T08:00:00Z",
"id": "pz6ec",
"created_at": "2015-05-29T00:52:16Z",
"salt": "39ku32xvhdt0jax8thps2c70e2fv3yok",
"updated_at": "2015-05-29T00:52:16Z",
"approval_status": "ACCEPTED",
"deleted": false
Expand All @@ -31,7 +29,6 @@
"timezone_switch_at": "2014-11-17T08:00:00Z",
"id": "j9ozo",
"created_at": "2015-05-01T12:08:10Z",
"salt": "winwfne3y6oyikl4tm84bj9r50waxj37",
"updated_at": "2015-05-01T12:08:10Z",
"approval_status": "ACCEPTED",
"deleted": false
Expand All @@ -42,7 +39,6 @@
"timezone_switch_at": "2014-11-17T08:00:00Z",
"id": "9ttgd",
"created_at": "2015-06-24T18:51:20Z",
"salt": "tj9hmt5xylm5zztrq05w7hwh4mkpkg5r",
"updated_at": "2015-06-26T06:13:24Z",
"approval_status": "ACCEPTED",
"deleted": false
Expand All @@ -53,7 +49,6 @@
"timezone_switch_at": "2013-05-22T07:00:00Z",
"id": "47d0v",
"created_at": "2015-05-28T05:42:03Z",
"salt": "1ms1mq1nww7zl7169865gwqt89s9127m",
"updated_at": "2015-05-28T05:42:03Z",
"approval_status": "ACCEPTED",
"deleted": false
Expand Down
1 change: 0 additions & 1 deletion spec/fixtures/accounts_load.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@
"timezone_switch_at": "2014-11-17T08:00:00Z",
"id": "2iqph",
"created_at": "2015-03-04T10:50:42Z",
"salt": "5ab2pizq7qxjjqrx3z67f4wbko61o7xs",
"updated_at": "2015-04-11T05:20:08Z",
"approval_status": "ACCEPTED",
"deleted": false
Expand Down

0 comments on commit 5a1dba7

Please sign in to comment.