def to_hash(keys = :underscore)
			hash = super(keys)
			
			amount_key = get_attribute_key("amount", keys)
			if self.content_match_bid
				#hash.delete(:content_match_bid)
				hash[get_attribute_key("content_match_bid", keys)] = {amount_key => self.content_match_bid}
			end 
			
			if self.exact_match_bid
				hash[get_attribute_key("exact_match_bid", keys)] = {amount_key => self.exact_match_bid}
			end
			
			if self.phrase_match_bid
				hash[get_attribute_key("phrase_match_bid", keys)] = {amount_key => self.phrase_match_bid}
			end
			
			if self.broad_match_bid
				hash[get_attribute_key("broad_match_bid", keys)] = {amount_key => self.broad_match_bid}
			end
			
			if self.start_date
				hash[get_attribute_key("start_date", keys)] = date_to_hash(self.start_date, keys)
			end
			
			if self.end_date
				hash[get_attribute_key("end_date", keys)] = date_to_hash(self.end_date, keys)
			end
			
			return hash
		end
def to_hash(keys = :underscore)
			hash = super(keys)
			
			amount_key = get_attribute_key("amount", keys)
			if self.content_match_bid
				#hash.delete(:content_match_bid)
				hash[get_attribute_key("content_match_bid", keys)] = {amount_key => self.content_match_bid}
			end 
			
			if self.exact_match_bid
				hash[get_attribute_key("exact_match_bid", keys)] = {amount_key => self.exact_match_bid}
			end
			
			if self.phrase_match_bid
				hash[get_attribute_key("phrase_match_bid", keys)] = {amount_key => self.phrase_match_bid}
			end
			
			if self.broad_match_bid
				hash[get_attribute_key("broad_match_bid", keys)] = {amount_key => self.broad_match_bid}
			end
			
			if self.start_date
				hash[get_attribute_key("start_date", keys)] = date_to_hash(self.start_date, keys)
			end
			
			if self.end_date
				hash[get_attribute_key("end_date", keys)] = date_to_hash(self.end_date, keys)
			end
			
			return hash
		end
Public : Constructor in a ActiveRecord style, with a hash of attributes as input

 Author:: jlopezn@neonline.cl

 attributes - Hash with the objects attributes
 Public : Returns this object as a hash to SOAP requests
 This methods is a specialization for the +DataObject#to_hash+ method
 that ads specific hash keys for the AdGroup object

 Author:: jlopezn@neonline.cl

 keys - specifies the keys case: CamelCase or underscore_case

 Returns:: Hash