Class: ThreeSixty::Creative
Constant Summary
ThreeSixty::Core::Creative::SERVICE_URL
Instance Method Summary
collapse
#get_changed_id_list, #get_id_list_by_group_id, #get_info_by_id, #get_info_by_id_list, #get_status_by_id_list, #initialize
Instance Method Details
#download_ad_group_all_creative_statuses(ad_group_id, opts = {}) ⇒ Object
16
17
18
19
20
|
# File 'lib/three-sixty/creative.rb', line 16
def download_ad_group_all_creative_statuses(ad_group_id, opts = {})
creative_ids = download_ad_group_creative_ids(ad_group_id, opts = {})
return [] if creative_ids.empty?
get_status_by_id_list(creative_ids)["creativeList"]
end
|
#download_ad_group_all_creatives(ad_group_id, opts = {}) ⇒ Object
10
11
12
13
14
|
# File 'lib/three-sixty/creative.rb', line 10
def download_ad_group_all_creatives(ad_group_id, opts = {})
creative_ids = download_ad_group_creative_ids(ad_group_id, opts = {})
return [] if creative_ids.empty?
get_info_by_id_list(creative_ids)["creativeList"]
end
|
#download_ad_group_creative_ids(ad_group_id, opts = {}) ⇒ Object
6
7
8
|
# File 'lib/three-sixty/creative.rb', line 6
def download_ad_group_creative_ids(ad_group_id, opts = {})
get_id_list_by_group_id(ad_group_id, opts)["creativeIdList"]
end
|
#download_changed_creative_ids(from_time) ⇒ Object
22
23
24
|
# File 'lib/three-sixty/creative.rb', line 22
def download_changed_creative_ids(from_time)
get_changed_id_list(from_time)["creativeIdList"]
end
|