Class: ThreeSixty::Core::Creative
- Inherits:
-
Object
- Object
- ThreeSixty::Core::Creative
- Includes:
- Client
- Defined in:
- lib/three-sixty/core/creative.rb
Direct Known Subclasses
Constant Summary collapse
- SERVICE_URL =
'creative'
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(creative_id) ⇒ Object
- #get_info_by_id_list(creative_ids) ⇒ Object
- #get_status_by_id_list(creative_ids) ⇒ Object
-
#initialize(client) ⇒ Creative
constructor
A new instance of Creative.
Methods included from Client
Constructor Details
#initialize(client) ⇒ Creative
Returns a new instance of Creative.
10 11 12 |
# File 'lib/three-sixty/core/creative.rb', line 10 def initialize(client) @client = client end |
Instance Method Details
#get_changed_id_list(from_time) ⇒ Object
31 32 33 |
# File 'lib/three-sixty/core/creative.rb', line 31 def get_changed_id_list(from_time) client_request(@client, resource_url("getChangedIdList"), fromTime: from_time) end |
#get_id_list_by_group_id(ad_group_id, opts = {}) ⇒ Object
14 15 16 17 |
# File 'lib/three-sixty/core/creative.rb', line 14 def get_id_list_by_group_id(ad_group_id, opts = {}) opts.merge!(groupId: ad_group_id) client_request(@client, resource_url("getIdListByGroupId"), opts) end |
#get_info_by_id(creative_id) ⇒ Object
19 20 21 |
# File 'lib/three-sixty/core/creative.rb', line 19 def get_info_by_id(creative_id) client_request(@client, resource_url("getInfoById"), id: creative_id) end |
#get_info_by_id_list(creative_ids) ⇒ Object
23 24 25 |
# File 'lib/three-sixty/core/creative.rb', line 23 def get_info_by_id_list(creative_ids) client_request(@client, resource_url("getInfoByIdList"), idList: creative_ids) end |
#get_status_by_id_list(creative_ids) ⇒ Object
27 28 29 |
# File 'lib/three-sixty/core/creative.rb', line 27 def get_status_by_id_list(creative_ids) client_request(@client, resource_url("getStatusByIdList"), idList: creative_ids) end |