Permalink
Browse files

DFP examples minor fix

  • Loading branch information...
1 parent fabc746 commit 7bc2a4e69c245af793b3fa14597d18ff397d545a Danial Klimkin committed Sep 11, 2012
View
2 dfp_api/examples/v201208/creative_service/get_all_creatives.rb
@@ -60,7 +60,7 @@ def get_all_creatives()
page[:results].each_with_index do |creative, index|
puts "%d) Creative ID: %d, name: %s, type: %s" %
[index + start_index, creative[:id],
- creative[:name], creative[:type]]
+ creative[:name], creative[:creative_type]]
end
end
end while offset < page[:total_result_set_size]
View
2 dfp_api/examples/v201208/creative_service/get_creative.rb
@@ -46,7 +46,7 @@ def get_creative()
if creative
puts "Creative with ID: %d, name: %s and type: %s was found." %
- [creative[:id], creative[:name], creative[:type]]
+ [creative[:id], creative[:name], creative[:creative_type]]
end
end
View
2 dfp_api/examples/v201208/creative_service/get_creatives_by_statement.rb
@@ -55,7 +55,7 @@ def get_creatives_by_statement()
# Print details about each creative in results.
page[:results].each_with_index do |creative, index|
puts "%d) Creative ID: %d, name: %s, type: %s" %
- [index, creative[:id], creative[:name], creative[:type]]
+ [index, creative[:id], creative[:name], creative[:creative_type]]
end
end

0 comments on commit 7bc2a4e

Please sign in to comment.