Class: ThreeSixty::Core::Keyword
- Inherits:
-
Object
- Object
- ThreeSixty::Core::Keyword
- Defined in:
- lib/three-sixty/core/keyword.rb
Direct Known Subclasses
Constant Summary collapse
- SERVICE_URL =
'keyword'
Instance Method Summary collapse
- #get_changed_id_list(from_time) ⇒ Object
- #get_id_list_by_group_id(ad_group_id, opts = {}) ⇒ Object
- #get_info_by_id(keyword_id) ⇒ Object
- #get_info_by_id_list(keyword_ids) ⇒ Object
- #get_status_by_id_list(keyword_ids) ⇒ Object
-
#initialize(client) ⇒ Keyword
constructor
A new instance of Keyword.
Constructor Details
#initialize(client) ⇒ Keyword
Returns a new instance of Keyword.
7 8 9 |
# File 'lib/three-sixty/core/keyword.rb', line 7 def initialize(client) @client = client end |
Instance Method Details
#get_changed_id_list(from_time) ⇒ Object
28 29 30 |
# File 'lib/three-sixty/core/keyword.rb', line 28 def get_changed_id_list(from_time) @client.request(resource_url("getChangedIdList"), fromTime: from_time) end |
#get_id_list_by_group_id(ad_group_id, opts = {}) ⇒ Object
11 12 13 14 |
# File 'lib/three-sixty/core/keyword.rb', line 11 def get_id_list_by_group_id(ad_group_id, opts = {}) opts.merge!(groupId: ad_group_id) @client.request(resource_url("getIdListByGroupId"), opts) end |
#get_info_by_id(keyword_id) ⇒ Object
16 17 18 |
# File 'lib/three-sixty/core/keyword.rb', line 16 def get_info_by_id(keyword_id) @client.request(resource_url("getInfoById"), id: keyword_id) end |
#get_info_by_id_list(keyword_ids) ⇒ Object
24 25 26 |
# File 'lib/three-sixty/core/keyword.rb', line 24 def get_info_by_id_list(keyword_ids) @client.request(resource_url("getInfoByIdList"), idList: keyword_ids) end |
#get_status_by_id_list(keyword_ids) ⇒ Object
20 21 22 |
# File 'lib/three-sixty/core/keyword.rb', line 20 def get_status_by_id_list(keyword_ids) @client.request(resource_url("getStatusByIdList"), idList: keyword_ids) end |