diff --git a/lib/adzerk/creative.rb b/lib/adzerk/creative.rb index 6d0319f..2c1ab59 100644 --- a/lib/adzerk/creative.rb +++ b/lib/adzerk/creative.rb @@ -13,5 +13,9 @@ def list(advertiserId, page: 1, pageSize: 500) parse_response(@client.get_request(url)) end + def list_for_network(page: 1, pageSize: 500) + url = "creative?page=#{page}&pageSize=#{pageSize}" + parse_response(@client.get_request(url)) + end end end diff --git a/lib/adzerk/creative_map.rb b/lib/adzerk/creative_map.rb index 7ab0083..808b1e0 100644 --- a/lib/adzerk/creative_map.rb +++ b/lib/adzerk/creative_map.rb @@ -23,6 +23,11 @@ def list(flight_id, page: 1, pageSize: 500) parse_response(@client.get_request(url)) end + def list_for_network(page: 1, pageSize: 500) + url = "ad?page=#{page}&#pageSize=#{pageSize}" + parse_response(@client.get_request(url)) + end + def update(data={}) url = "flight/#{data[:flight_id]}/creative/#{data[:id]}" data = { 'creative' => camelize_data(data).to_json }