def add_ads(ad_group_id, ads)
			
			ads_for_soap = []
			if ads.is_a? Array
				ads_for_soap = ads.map{ |ad| ad_to_hash(ad, :camelcase) }
			elsif ads.is_a? BingAdsApi::Ad
				ads_for_soap = ad_to_hash(ads, :camelcase)
			else 
				raise "ads must be an array or instance of BingAdsApi::Ad"
			end
			message = {
				:ad_group_id => ad_group_id, 
				:ads => {:ad => ads_for_soap} }
			puts message
			response = call(:add_ads, message)

			response_hash = get_response_hash(response, __method__)

			# Checks if there are partial errors in the request
			if response_hash[:partial_errors].key?(:batch_error) 
				partial_errors = BingAdsApi::PartialErrors.new(
					response_hash[:partial_errors])
				response_hash[:partial_errors] = partial_errors
			else 
				response_hash.delete(:partial_errors)
			end
			
			return response_hash
		end
def add_ads(ad_group_id, ads)
			
			ads_for_soap = []
			if ads.is_a? Array
				ads_for_soap = ads.map{ |ad| ad_to_hash(ad, :camelcase) }
			elsif ads.is_a? BingAdsApi::Ad
				ads_for_soap = ad_to_hash(ads, :camelcase)
			else 
				raise "ads must be an array or instance of BingAdsApi::Ad"
			end
			message = {
				:ad_group_id => ad_group_id, 
				:ads => {:ad => ads_for_soap} }
			puts message
			response = call(:add_ads, message)

			response_hash = get_response_hash(response, __method__)

			# Checks if there are partial errors in the request
			if response_hash[:partial_errors].key?(:batch_error) 
				partial_errors = BingAdsApi::PartialErrors.new(
					response_hash[:partial_errors])
				response_hash[:partial_errors] = partial_errors
			else 
				response_hash.delete(:partial_errors)
			end
			
			return response_hash
		end
Public : Add ads into a specified ad group

 Author:: jlopezn@neonline.cl

 === Parameters
 ad_group_id - a number with the id where the ads should be added
 ads - an array of BingAdsApi::Ad instances

 === Examples
   # if the operation returns partial errors
   service.add_ads(1, [BingAdsApi::Ad])
   # => {:ad_ids => [], :partial_errors => BingAdsApi::PartialErrors }

   # if the operation doesn't return partial errors
   service.add_ads(1, [BingAdsApi::Ad])
   # => {:ad_ids => [] }

 Returns:: Hash with the AddAdsResponse structure.
 If the operation returns 'PartialErrors' key,
 this methods returns those errors as an BingAdsApi::PartialErrors
 instance

 Raises:: exception