require 'adwords4r/v10/CriterionService' require 'soap/mapping' module AdWords; module CriterionService module DefaultMappingRegistry EncodedRegistry = ::SOAP::Mapping::EncodedRegistry.new LiteralRegistry = ::SOAP::Mapping::LiteralRegistry.new NsV10 = "https://adwords.google.com/api/adwords/v10" EncodedRegistry.register( :class => AdWords::CriterionService::ApiError, :schema_type => XSD::QName.new(NsV10, "ApiError"), :schema_element => [ ["code", "SOAP::SOAPInt"], ["detail", "SOAP::SOAPString"], ["field", "SOAP::SOAPString", [0, 1]], ["index", "SOAP::SOAPInt"], ["isExemptable", "SOAP::SOAPBoolean"], ["textIndex", "SOAP::SOAPInt", [0, 1]], ["textLength", "SOAP::SOAPInt", [0, 1]], ["trigger", "SOAP::SOAPString", [0, 1]] ] ) EncodedRegistry.register( :class => AdWords::CriterionService::ApiException, :schema_type => XSD::QName.new(NsV10, "ApiException"), :schema_element => [ ["code", "SOAP::SOAPInt"], ["errors", "AdWords::CriterionService::ApiError[]", [1, nil]], ["internal", "SOAP::SOAPBoolean"], ["message", "SOAP::SOAPString"], ["trigger", "SOAP::SOAPString"] ] ) EncodedRegistry.register( :class => AdWords::CriterionService::Circle, :schema_type => XSD::QName.new(NsV10, "Circle"), :schema_element => [ ["latitudeMicroDegrees", "SOAP::SOAPInt"], ["longitudeMicroDegrees", "SOAP::SOAPInt"], ["radiusMeters", "SOAP::SOAPInt"] ] ) EncodedRegistry.register( :class => AdWords::CriterionService::CityTargets, :schema_type => XSD::QName.new(NsV10, "CityTargets"), :schema_element => [ ["cities", "SOAP::SOAPString[]", [0, nil]] ] ) EncodedRegistry.register( :class => AdWords::CriterionService::CountryTargets, :schema_type => XSD::QName.new(NsV10, "CountryTargets"), :schema_element => [ ["countries", "SOAP::SOAPString[]", [0, nil]] ] ) EncodedRegistry.register( :class => AdWords::CriterionService::GeoTarget, :schema_type => XSD::QName.new(NsV10, "GeoTarget"), :schema_element => [ ["cityTargets", "AdWords::CriterionService::CityTargets", [0, 1]], ["countryTargets", "AdWords::CriterionService::CountryTargets", [0, 1]], ["metroTargets", "AdWords::CriterionService::MetroTargets", [0, 1]], ["proximityTargets", "AdWords::CriterionService::ProximityTargets", [0, 1]], ["regionTargets", "AdWords::CriterionService::RegionTargets", [0, 1]], ["targetAll", "SOAP::SOAPBoolean"] ] ) EncodedRegistry.register( :class => AdWords::CriterionService::Keyword, :schema_type => XSD::QName.new(NsV10, "Keyword"), :schema_basetype => XSD::QName.new(NsV10, "Criterion"), :schema_element => [ ["adGroupId", "SOAP::SOAPInt"], ["criterionType", "AdWords::CriterionService::CriterionType", [0, 1]], ["destinationUrl", "SOAP::SOAPString", [0, 1]], ["exemptionRequest", "SOAP::SOAPString", [0, 1]], ["id", "SOAP::SOAPLong"], ["language", "SOAP::SOAPString"], ["negative", "SOAP::SOAPBoolean"], ["paused", "SOAP::SOAPBoolean", [0, 1]], ["status", "AdWords::CriterionService::CriterionStatus", [0, 1]], ["maxCpc", "SOAP::SOAPLong", [0, 1]], ["minCpc", "SOAP::SOAPLong", [0, 1]], ["proxyMaxCpc", "SOAP::SOAPLong", [0, 1]], ["text", "SOAP::SOAPString"], ["type", "AdWords::CriterionService::KeywordType"] ] ) EncodedRegistry.register( :class => AdWords::CriterionService::LanguageTarget, :schema_type => XSD::QName.new(NsV10, "LanguageTarget"), :schema_element => [ ["languages", "SOAP::SOAPString[]", [1, nil]] ] ) EncodedRegistry.register( :class => AdWords::CriterionService::MetroTargets, :schema_type => XSD::QName.new(NsV10, "MetroTargets"), :schema_element => [ ["metros", "SOAP::SOAPString[]", [0, nil]] ] ) EncodedRegistry.register( :class => AdWords::CriterionService::ProximityTargets, :schema_type => XSD::QName.new(NsV10, "ProximityTargets"), :schema_element => [ ["circles", "AdWords::CriterionService::Circle[]", [1, nil]] ] ) EncodedRegistry.register( :class => AdWords::CriterionService::RegionTargets, :schema_type => XSD::QName.new(NsV10, "RegionTargets"), :schema_element => [ ["regions", "SOAP::SOAPString[]", [0, nil]] ] ) EncodedRegistry.register( :class => AdWords::CriterionService::StatsRecord, :schema_type => XSD::QName.new(NsV10, "StatsRecord"), :schema_element => [ ["averagePosition", "SOAP::SOAPDouble"], ["clicks", "SOAP::SOAPLong"], ["conversionRate", "SOAP::SOAPDouble"], ["conversions", "SOAP::SOAPLong"], ["cost", "SOAP::SOAPLong"], ["id", "SOAP::SOAPLong"], ["impressions", "SOAP::SOAPLong"] ] ) EncodedRegistry.register( :class => AdWords::CriterionService::Website, :schema_type => XSD::QName.new(NsV10, "Website"), :schema_basetype => XSD::QName.new(NsV10, "Criterion"), :schema_element => [ ["adGroupId", "SOAP::SOAPInt"], ["criterionType", "AdWords::CriterionService::CriterionType", [0, 1]], ["destinationUrl", "SOAP::SOAPString", [0, 1]], ["exemptionRequest", "SOAP::SOAPString", [0, 1]], ["id", "SOAP::SOAPLong"], ["language", "SOAP::SOAPString"], ["negative", "SOAP::SOAPBoolean"], ["paused", "SOAP::SOAPBoolean", [0, 1]], ["status", "AdWords::CriterionService::CriterionStatus", [0, 1]], ["maxCpm", "SOAP::SOAPLong", [0, 1]], ["url", "SOAP::SOAPString"] ] ) EncodedRegistry.register( :class => AdWords::CriterionService::CriterionStatus, :schema_type => XSD::QName.new(NsV10, "CriterionStatus") ) EncodedRegistry.register( :class => AdWords::CriterionService::CriterionType, :schema_type => XSD::QName.new(NsV10, "CriterionType") ) EncodedRegistry.register( :class => AdWords::CriterionService::KeywordType, :schema_type => XSD::QName.new(NsV10, "KeywordType") ) LiteralRegistry.register( :class => AdWords::CriterionService::ApiError, :schema_type => XSD::QName.new(NsV10, "ApiError"), :schema_element => [ ["code", "SOAP::SOAPInt"], ["detail", "SOAP::SOAPString"], ["field", "SOAP::SOAPString", [0, 1]], ["index", "SOAP::SOAPInt"], ["isExemptable", "SOAP::SOAPBoolean"], ["textIndex", "SOAP::SOAPInt", [0, 1]], ["textLength", "SOAP::SOAPInt", [0, 1]], ["trigger", "SOAP::SOAPString", [0, 1]] ] ) LiteralRegistry.register( :class => AdWords::CriterionService::ApiException, :schema_type => XSD::QName.new(NsV10, "ApiException"), :schema_element => [ ["code", "SOAP::SOAPInt"], ["errors", "AdWords::CriterionService::ApiError[]", [1, nil]], ["internal", "SOAP::SOAPBoolean"], ["message", "SOAP::SOAPString"], ["trigger", "SOAP::SOAPString"] ] ) LiteralRegistry.register( :class => AdWords::CriterionService::Circle, :schema_type => XSD::QName.new(NsV10, "Circle"), :schema_element => [ ["latitudeMicroDegrees", "SOAP::SOAPInt"], ["longitudeMicroDegrees", "SOAP::SOAPInt"], ["radiusMeters", "SOAP::SOAPInt"] ] ) LiteralRegistry.register( :class => AdWords::CriterionService::CityTargets, :schema_type => XSD::QName.new(NsV10, "CityTargets"), :schema_element => [ ["cities", "SOAP::SOAPString[]", [0, nil]] ] ) LiteralRegistry.register( :class => AdWords::CriterionService::CountryTargets, :schema_type => XSD::QName.new(NsV10, "CountryTargets"), :schema_element => [ ["countries", "SOAP::SOAPString[]", [0, nil]] ] ) LiteralRegistry.register( :class => AdWords::CriterionService::GeoTarget, :schema_type => XSD::QName.new(NsV10, "GeoTarget"), :schema_element => [ ["cityTargets", "AdWords::CriterionService::CityTargets", [0, 1]], ["countryTargets", "AdWords::CriterionService::CountryTargets", [0, 1]], ["metroTargets", "AdWords::CriterionService::MetroTargets", [0, 1]], ["proximityTargets", "AdWords::CriterionService::ProximityTargets", [0, 1]], ["regionTargets", "AdWords::CriterionService::RegionTargets", [0, 1]], ["targetAll", "SOAP::SOAPBoolean"] ] ) LiteralRegistry.register( :class => AdWords::CriterionService::Keyword, :schema_type => XSD::QName.new(NsV10, "Keyword"), :schema_basetype => XSD::QName.new(NsV10, "Criterion"), :schema_element => [ ["adGroupId", "SOAP::SOAPInt"], ["criterionType", "AdWords::CriterionService::CriterionType", [0, 1]], ["destinationUrl", "SOAP::SOAPString", [0, 1]], ["exemptionRequest", "SOAP::SOAPString", [0, 1]], ["id", "SOAP::SOAPLong"], ["language", "SOAP::SOAPString"], ["negative", "SOAP::SOAPBoolean"], ["paused", "SOAP::SOAPBoolean", [0, 1]], ["status", "AdWords::CriterionService::CriterionStatus", [0, 1]], ["maxCpc", "SOAP::SOAPLong", [0, 1]], ["minCpc", "SOAP::SOAPLong", [0, 1]], ["proxyMaxCpc", "SOAP::SOAPLong", [0, 1]], ["text", "SOAP::SOAPString"], ["type", "AdWords::CriterionService::KeywordType"] ] ) LiteralRegistry.register( :class => AdWords::CriterionService::LanguageTarget, :schema_type => XSD::QName.new(NsV10, "LanguageTarget"), :schema_element => [ ["languages", "SOAP::SOAPString[]", [1, nil]] ] ) LiteralRegistry.register( :class => AdWords::CriterionService::MetroTargets, :schema_type => XSD::QName.new(NsV10, "MetroTargets"), :schema_element => [ ["metros", "SOAP::SOAPString[]", [0, nil]] ] ) LiteralRegistry.register( :class => AdWords::CriterionService::ProximityTargets, :schema_type => XSD::QName.new(NsV10, "ProximityTargets"), :schema_element => [ ["circles", "AdWords::CriterionService::Circle[]", [1, nil]] ] ) LiteralRegistry.register( :class => AdWords::CriterionService::RegionTargets, :schema_type => XSD::QName.new(NsV10, "RegionTargets"), :schema_element => [ ["regions", "SOAP::SOAPString[]", [0, nil]] ] ) LiteralRegistry.register( :class => AdWords::CriterionService::StatsRecord, :schema_type => XSD::QName.new(NsV10, "StatsRecord"), :schema_element => [ ["averagePosition", "SOAP::SOAPDouble"], ["clicks", "SOAP::SOAPLong"], ["conversionRate", "SOAP::SOAPDouble"], ["conversions", "SOAP::SOAPLong"], ["cost", "SOAP::SOAPLong"], ["id", "SOAP::SOAPLong"], ["impressions", "SOAP::SOAPLong"] ] ) LiteralRegistry.register( :class => AdWords::CriterionService::Website, :schema_type => XSD::QName.new(NsV10, "Website"), :schema_basetype => XSD::QName.new(NsV10, "Criterion"), :schema_element => [ ["adGroupId", "SOAP::SOAPInt"], ["criterionType", "AdWords::CriterionService::CriterionType", [0, 1]], ["destinationUrl", "SOAP::SOAPString", [0, 1]], ["exemptionRequest", "SOAP::SOAPString", [0, 1]], ["id", "SOAP::SOAPLong"], ["language", "SOAP::SOAPString"], ["negative", "SOAP::SOAPBoolean"], ["paused", "SOAP::SOAPBoolean", [0, 1]], ["status", "AdWords::CriterionService::CriterionStatus", [0, 1]], ["maxCpm", "SOAP::SOAPLong", [0, 1]], ["url", "SOAP::SOAPString"] ] ) LiteralRegistry.register( :class => AdWords::CriterionService::CriterionStatus, :schema_type => XSD::QName.new(NsV10, "CriterionStatus") ) LiteralRegistry.register( :class => AdWords::CriterionService::CriterionType, :schema_type => XSD::QName.new(NsV10, "CriterionType") ) LiteralRegistry.register( :class => AdWords::CriterionService::KeywordType, :schema_type => XSD::QName.new(NsV10, "KeywordType") ) LiteralRegistry.register( :class => AdWords::CriterionService::AddCriteria, :schema_name => XSD::QName.new(NsV10, "addCriteria"), :schema_element => [ ["criteria", "AdWords::CriterionService::Criterion[]", [1, nil]] ] ) LiteralRegistry.register( :class => AdWords::CriterionService::AddCriteriaResponse, :schema_name => XSD::QName.new(NsV10, "addCriteriaResponse"), :schema_element => [ ["addCriteriaReturn", "AdWords::CriterionService::Criterion[]", [1, nil]] ] ) LiteralRegistry.register( :class => AdWords::CriterionService::CheckCriteria, :schema_name => XSD::QName.new(NsV10, "checkCriteria"), :schema_element => [ ["criteria", "AdWords::CriterionService::Criterion[]", [1, nil]], ["languageTarget", "AdWords::CriterionService::LanguageTarget"], ["geoTarget", "AdWords::CriterionService::GeoTarget"] ] ) LiteralRegistry.register( :class => AdWords::CriterionService::CheckCriteriaResponse, :schema_name => XSD::QName.new(NsV10, "checkCriteriaResponse"), :schema_element => [ ["checkCriteriaReturn", "AdWords::CriterionService::ApiError[]", [1, nil]] ] ) LiteralRegistry.register( :class => AdWords::CriterionService::ApiException, :schema_name => XSD::QName.new(NsV10, "fault"), :schema_element => [ ["code", "SOAP::SOAPInt"], ["errors", "AdWords::CriterionService::ApiError[]", [1, nil]], ["internal", "SOAP::SOAPBoolean"], ["message", "SOAP::SOAPString"], ["trigger", "SOAP::SOAPString"] ] ) LiteralRegistry.register( :class => AdWords::CriterionService::GetAllCriteria, :schema_name => XSD::QName.new(NsV10, "getAllCriteria"), :schema_element => [ ["adGroupId", "SOAP::SOAPInt"] ] ) LiteralRegistry.register( :class => AdWords::CriterionService::GetAllCriteriaResponse, :schema_name => XSD::QName.new(NsV10, "getAllCriteriaResponse"), :schema_element => [ ["getAllCriteriaReturn", "AdWords::CriterionService::Criterion[]", [1, nil]] ] ) LiteralRegistry.register( :class => AdWords::CriterionService::GetCampaignNegativeCriteria, :schema_name => XSD::QName.new(NsV10, "getCampaignNegativeCriteria"), :schema_element => [ ["campaignId", "SOAP::SOAPInt"] ] ) LiteralRegistry.register( :class => AdWords::CriterionService::GetCampaignNegativeCriteriaResponse, :schema_name => XSD::QName.new(NsV10, "getCampaignNegativeCriteriaResponse"), :schema_element => [ ["getCampaignNegativeCriteriaReturn", "AdWords::CriterionService::Criterion[]", [1, nil]] ] ) LiteralRegistry.register( :class => AdWords::CriterionService::GetCriteria, :schema_name => XSD::QName.new(NsV10, "getCriteria"), :schema_element => [ ["adGroupId", "SOAP::SOAPInt"], ["criterionIds", "SOAP::SOAPLong[]", [1, nil]] ] ) LiteralRegistry.register( :class => AdWords::CriterionService::GetCriteriaResponse, :schema_name => XSD::QName.new(NsV10, "getCriteriaResponse"), :schema_element => [ ["getCriteriaReturn", "AdWords::CriterionService::Criterion[]", [1, nil]] ] ) LiteralRegistry.register( :class => AdWords::CriterionService::GetCriterionStats, :schema_name => XSD::QName.new(NsV10, "getCriterionStats"), :schema_element => [ ["adGroupId", "SOAP::SOAPInt"], ["criterionIds", "SOAP::SOAPLong[]", [1, nil]], ["startDay", "SOAP::SOAPDate"], ["endDay", "SOAP::SOAPDate"] ] ) LiteralRegistry.register( :class => AdWords::CriterionService::GetCriterionStatsResponse, :schema_name => XSD::QName.new(NsV10, "getCriterionStatsResponse"), :schema_element => [ ["getCriterionStatsReturn", "AdWords::CriterionService::StatsRecord[]", [1, nil]] ] ) LiteralRegistry.register( :class => AdWords::CriterionService::RemoveCriteria, :schema_name => XSD::QName.new(NsV10, "removeCriteria"), :schema_element => [ ["adGroupId", "SOAP::SOAPInt"], ["criterionIds", "SOAP::SOAPLong[]", [1, nil]] ] ) LiteralRegistry.register( :class => AdWords::CriterionService::RemoveCriteriaResponse, :schema_name => XSD::QName.new(NsV10, "removeCriteriaResponse"), :schema_element => [] ) LiteralRegistry.register( :class => AdWords::CriterionService::SetCampaignNegativeCriteria, :schema_name => XSD::QName.new(NsV10, "setCampaignNegativeCriteria"), :schema_element => [ ["campaignId", "SOAP::SOAPInt"], ["criteria", "AdWords::CriterionService::Criterion[]", [1, nil]] ] ) LiteralRegistry.register( :class => AdWords::CriterionService::SetCampaignNegativeCriteriaResponse, :schema_name => XSD::QName.new(NsV10, "setCampaignNegativeCriteriaResponse"), :schema_element => [] ) LiteralRegistry.register( :class => AdWords::CriterionService::UpdateCriteria, :schema_name => XSD::QName.new(NsV10, "updateCriteria"), :schema_element => [ ["criteria", "AdWords::CriterionService::Criterion[]", [1, nil]] ] ) LiteralRegistry.register( :class => AdWords::CriterionService::UpdateCriteriaResponse, :schema_name => XSD::QName.new(NsV10, "updateCriteriaResponse"), :schema_element => [] ) end end; end