google-ads-node
Version:
Google Ads gRPC Client Library for Node
1 lines • 52.6 kB
JavaScript
var jspb=require("google-protobuf"),goog=jspb,global=Function("return this")(),google_ads_googleads_v2_enums_page_one_promoted_strategy_goal_pb=require("../../../../../google/ads/googleads/v2/enums/page_one_promoted_strategy_goal_pb.js"),google_ads_googleads_v2_enums_target_impression_share_location_pb=require("../../../../../google/ads/googleads/v2/enums/target_impression_share_location_pb.js"),google_protobuf_wrappers_pb=require("google-protobuf/google/protobuf/wrappers_pb.js"),google_api_annotations_pb=require("../../../../../google/api/annotations_pb.js");goog.exportSymbol("proto.google.ads.googleads.v2.common.Commission",null,global),goog.exportSymbol("proto.google.ads.googleads.v2.common.EnhancedCpc",null,global),goog.exportSymbol("proto.google.ads.googleads.v2.common.ManualCpc",null,global),goog.exportSymbol("proto.google.ads.googleads.v2.common.ManualCpm",null,global),goog.exportSymbol("proto.google.ads.googleads.v2.common.ManualCpv",null,global),goog.exportSymbol("proto.google.ads.googleads.v2.common.MaximizeConversionValue",null,global),goog.exportSymbol("proto.google.ads.googleads.v2.common.MaximizeConversions",null,global),goog.exportSymbol("proto.google.ads.googleads.v2.common.PageOnePromoted",null,global),goog.exportSymbol("proto.google.ads.googleads.v2.common.PercentCpc",null,global),goog.exportSymbol("proto.google.ads.googleads.v2.common.TargetCpa",null,global),goog.exportSymbol("proto.google.ads.googleads.v2.common.TargetCpm",null,global),goog.exportSymbol("proto.google.ads.googleads.v2.common.TargetImpressionShare",null,global),goog.exportSymbol("proto.google.ads.googleads.v2.common.TargetOutrankShare",null,global),goog.exportSymbol("proto.google.ads.googleads.v2.common.TargetRoas",null,global),goog.exportSymbol("proto.google.ads.googleads.v2.common.TargetSpend",null,global),proto.google.ads.googleads.v2.common.Commission=function(opt_data){jspb.Message.initialize(this,opt_data,0,-1,null,null)},goog.inherits(proto.google.ads.googleads.v2.common.Commission,jspb.Message),goog.DEBUG&&!COMPILED&&(proto.google.ads.googleads.v2.common.Commission.displayName="proto.google.ads.googleads.v2.common.Commission"),jspb.Message.GENERATE_TO_OBJECT&&(proto.google.ads.googleads.v2.common.Commission.prototype.toObject=function(opt_includeInstance){return proto.google.ads.googleads.v2.common.Commission.toObject(opt_includeInstance,this)},proto.google.ads.googleads.v2.common.Commission.toObject=function(includeInstance,msg){var f,obj={commissionRateMicros:(f=msg.getCommissionRateMicros())&&google_protobuf_wrappers_pb.Int64Value.toObject(includeInstance,f)};return includeInstance&&(obj.$jspbMessageInstance=msg),obj}),proto.google.ads.googleads.v2.common.Commission.deserializeBinary=function(bytes){var reader=new jspb.BinaryReader(bytes),msg=new proto.google.ads.googleads.v2.common.Commission;return proto.google.ads.googleads.v2.common.Commission.deserializeBinaryFromReader(msg,reader)},proto.google.ads.googleads.v2.common.Commission.deserializeBinaryFromReader=function(msg,reader){for(;reader.nextField()&&!reader.isEndGroup();){switch(reader.getFieldNumber()){case 1:var value=new google_protobuf_wrappers_pb.Int64Value;reader.readMessage(value,google_protobuf_wrappers_pb.Int64Value.deserializeBinaryFromReader),msg.setCommissionRateMicros(value);break;default:reader.skipField()}}return msg},proto.google.ads.googleads.v2.common.Commission.prototype.serializeBinary=function(){var writer=new jspb.BinaryWriter;return proto.google.ads.googleads.v2.common.Commission.serializeBinaryToWriter(this,writer),writer.getResultBuffer()},proto.google.ads.googleads.v2.common.Commission.serializeBinaryToWriter=function(message,writer){var f;null!=(f=message.getCommissionRateMicros())&&writer.writeMessage(1,f,google_protobuf_wrappers_pb.Int64Value.serializeBinaryToWriter)},proto.google.ads.googleads.v2.common.Commission.prototype.getCommissionRateMicros=function(){return jspb.Message.getWrapperField(this,google_protobuf_wrappers_pb.Int64Value,1)},proto.google.ads.googleads.v2.common.Commission.prototype.setCommissionRateMicros=function(value){jspb.Message.setWrapperField(this,1,value)},proto.google.ads.googleads.v2.common.Commission.prototype.clearCommissionRateMicros=function(){this.setCommissionRateMicros(void 0)},proto.google.ads.googleads.v2.common.Commission.prototype.hasCommissionRateMicros=function(){return null!=jspb.Message.getField(this,1)},proto.google.ads.googleads.v2.common.EnhancedCpc=function(opt_data){jspb.Message.initialize(this,opt_data,0,-1,null,null)},goog.inherits(proto.google.ads.googleads.v2.common.EnhancedCpc,jspb.Message),goog.DEBUG&&!COMPILED&&(proto.google.ads.googleads.v2.common.EnhancedCpc.displayName="proto.google.ads.googleads.v2.common.EnhancedCpc"),jspb.Message.GENERATE_TO_OBJECT&&(proto.google.ads.googleads.v2.common.EnhancedCpc.prototype.toObject=function(opt_includeInstance){return proto.google.ads.googleads.v2.common.EnhancedCpc.toObject(opt_includeInstance,this)},proto.google.ads.googleads.v2.common.EnhancedCpc.toObject=function(includeInstance,msg){var obj={};return includeInstance&&(obj.$jspbMessageInstance=msg),obj}),proto.google.ads.googleads.v2.common.EnhancedCpc.deserializeBinary=function(bytes){var reader=new jspb.BinaryReader(bytes),msg=new proto.google.ads.googleads.v2.common.EnhancedCpc;return proto.google.ads.googleads.v2.common.EnhancedCpc.deserializeBinaryFromReader(msg,reader)},proto.google.ads.googleads.v2.common.EnhancedCpc.deserializeBinaryFromReader=function(msg,reader){for(;reader.nextField()&&!reader.isEndGroup();){reader.getFieldNumber();reader.skipField()}return msg},proto.google.ads.googleads.v2.common.EnhancedCpc.prototype.serializeBinary=function(){var writer=new jspb.BinaryWriter;return proto.google.ads.googleads.v2.common.EnhancedCpc.serializeBinaryToWriter(this,writer),writer.getResultBuffer()},proto.google.ads.googleads.v2.common.EnhancedCpc.serializeBinaryToWriter=function(message,writer){},proto.google.ads.googleads.v2.common.ManualCpc=function(opt_data){jspb.Message.initialize(this,opt_data,0,-1,null,null)},goog.inherits(proto.google.ads.googleads.v2.common.ManualCpc,jspb.Message),goog.DEBUG&&!COMPILED&&(proto.google.ads.googleads.v2.common.ManualCpc.displayName="proto.google.ads.googleads.v2.common.ManualCpc"),jspb.Message.GENERATE_TO_OBJECT&&(proto.google.ads.googleads.v2.common.ManualCpc.prototype.toObject=function(opt_includeInstance){return proto.google.ads.googleads.v2.common.ManualCpc.toObject(opt_includeInstance,this)},proto.google.ads.googleads.v2.common.ManualCpc.toObject=function(includeInstance,msg){var f,obj={enhancedCpcEnabled:(f=msg.getEnhancedCpcEnabled())&&google_protobuf_wrappers_pb.BoolValue.toObject(includeInstance,f)};return includeInstance&&(obj.$jspbMessageInstance=msg),obj}),proto.google.ads.googleads.v2.common.ManualCpc.deserializeBinary=function(bytes){var reader=new jspb.BinaryReader(bytes),msg=new proto.google.ads.googleads.v2.common.ManualCpc;return proto.google.ads.googleads.v2.common.ManualCpc.deserializeBinaryFromReader(msg,reader)},proto.google.ads.googleads.v2.common.ManualCpc.deserializeBinaryFromReader=function(msg,reader){for(;reader.nextField()&&!reader.isEndGroup();){switch(reader.getFieldNumber()){case 1:var value=new google_protobuf_wrappers_pb.BoolValue;reader.readMessage(value,google_protobuf_wrappers_pb.BoolValue.deserializeBinaryFromReader),msg.setEnhancedCpcEnabled(value);break;default:reader.skipField()}}return msg},proto.google.ads.googleads.v2.common.ManualCpc.prototype.serializeBinary=function(){var writer=new jspb.BinaryWriter;return proto.google.ads.googleads.v2.common.ManualCpc.serializeBinaryToWriter(this,writer),writer.getResultBuffer()},proto.google.ads.googleads.v2.common.ManualCpc.serializeBinaryToWriter=function(message,writer){var f;null!=(f=message.getEnhancedCpcEnabled())&&writer.writeMessage(1,f,google_protobuf_wrappers_pb.BoolValue.serializeBinaryToWriter)},proto.google.ads.googleads.v2.common.ManualCpc.prototype.getEnhancedCpcEnabled=function(){return jspb.Message.getWrapperField(this,google_protobuf_wrappers_pb.BoolValue,1)},proto.google.ads.googleads.v2.common.ManualCpc.prototype.setEnhancedCpcEnabled=function(value){jspb.Message.setWrapperField(this,1,value)},proto.google.ads.googleads.v2.common.ManualCpc.prototype.clearEnhancedCpcEnabled=function(){this.setEnhancedCpcEnabled(void 0)},proto.google.ads.googleads.v2.common.ManualCpc.prototype.hasEnhancedCpcEnabled=function(){return null!=jspb.Message.getField(this,1)},proto.google.ads.googleads.v2.common.ManualCpm=function(opt_data){jspb.Message.initialize(this,opt_data,0,-1,null,null)},goog.inherits(proto.google.ads.googleads.v2.common.ManualCpm,jspb.Message),goog.DEBUG&&!COMPILED&&(proto.google.ads.googleads.v2.common.ManualCpm.displayName="proto.google.ads.googleads.v2.common.ManualCpm"),jspb.Message.GENERATE_TO_OBJECT&&(proto.google.ads.googleads.v2.common.ManualCpm.prototype.toObject=function(opt_includeInstance){return proto.google.ads.googleads.v2.common.ManualCpm.toObject(opt_includeInstance,this)},proto.google.ads.googleads.v2.common.ManualCpm.toObject=function(includeInstance,msg){var obj={};return includeInstance&&(obj.$jspbMessageInstance=msg),obj}),proto.google.ads.googleads.v2.common.ManualCpm.deserializeBinary=function(bytes){var reader=new jspb.BinaryReader(bytes),msg=new proto.google.ads.googleads.v2.common.ManualCpm;return proto.google.ads.googleads.v2.common.ManualCpm.deserializeBinaryFromReader(msg,reader)},proto.google.ads.googleads.v2.common.ManualCpm.deserializeBinaryFromReader=function(msg,reader){for(;reader.nextField()&&!reader.isEndGroup();){reader.getFieldNumber();reader.skipField()}return msg},proto.google.ads.googleads.v2.common.ManualCpm.prototype.serializeBinary=function(){var writer=new jspb.BinaryWriter;return proto.google.ads.googleads.v2.common.ManualCpm.serializeBinaryToWriter(this,writer),writer.getResultBuffer()},proto.google.ads.googleads.v2.common.ManualCpm.serializeBinaryToWriter=function(message,writer){},proto.google.ads.googleads.v2.common.ManualCpv=function(opt_data){jspb.Message.initialize(this,opt_data,0,-1,null,null)},goog.inherits(proto.google.ads.googleads.v2.common.ManualCpv,jspb.Message),goog.DEBUG&&!COMPILED&&(proto.google.ads.googleads.v2.common.ManualCpv.displayName="proto.google.ads.googleads.v2.common.ManualCpv"),jspb.Message.GENERATE_TO_OBJECT&&(proto.google.ads.googleads.v2.common.ManualCpv.prototype.toObject=function(opt_includeInstance){return proto.google.ads.googleads.v2.common.ManualCpv.toObject(opt_includeInstance,this)},proto.google.ads.googleads.v2.common.ManualCpv.toObject=function(includeInstance,msg){var obj={};return includeInstance&&(obj.$jspbMessageInstance=msg),obj}),proto.google.ads.googleads.v2.common.ManualCpv.deserializeBinary=function(bytes){var reader=new jspb.BinaryReader(bytes),msg=new proto.google.ads.googleads.v2.common.ManualCpv;return proto.google.ads.googleads.v2.common.ManualCpv.deserializeBinaryFromReader(msg,reader)},proto.google.ads.googleads.v2.common.ManualCpv.deserializeBinaryFromReader=function(msg,reader){for(;reader.nextField()&&!reader.isEndGroup();){reader.getFieldNumber();reader.skipField()}return msg},proto.google.ads.googleads.v2.common.ManualCpv.prototype.serializeBinary=function(){var writer=new jspb.BinaryWriter;return proto.google.ads.googleads.v2.common.ManualCpv.serializeBinaryToWriter(this,writer),writer.getResultBuffer()},proto.google.ads.googleads.v2.common.ManualCpv.serializeBinaryToWriter=function(message,writer){},proto.google.ads.googleads.v2.common.MaximizeConversions=function(opt_data){jspb.Message.initialize(this,opt_data,0,-1,null,null)},goog.inherits(proto.google.ads.googleads.v2.common.MaximizeConversions,jspb.Message),goog.DEBUG&&!COMPILED&&(proto.google.ads.googleads.v2.common.MaximizeConversions.displayName="proto.google.ads.googleads.v2.common.MaximizeConversions"),jspb.Message.GENERATE_TO_OBJECT&&(proto.google.ads.googleads.v2.common.MaximizeConversions.prototype.toObject=function(opt_includeInstance){return proto.google.ads.googleads.v2.common.MaximizeConversions.toObject(opt_includeInstance,this)},proto.google.ads.googleads.v2.common.MaximizeConversions.toObject=function(includeInstance,msg){var obj={};return includeInstance&&(obj.$jspbMessageInstance=msg),obj}),proto.google.ads.googleads.v2.common.MaximizeConversions.deserializeBinary=function(bytes){var reader=new jspb.BinaryReader(bytes),msg=new proto.google.ads.googleads.v2.common.MaximizeConversions;return proto.google.ads.googleads.v2.common.MaximizeConversions.deserializeBinaryFromReader(msg,reader)},proto.google.ads.googleads.v2.common.MaximizeConversions.deserializeBinaryFromReader=function(msg,reader){for(;reader.nextField()&&!reader.isEndGroup();){reader.getFieldNumber();reader.skipField()}return msg},proto.google.ads.googleads.v2.common.MaximizeConversions.prototype.serializeBinary=function(){var writer=new jspb.BinaryWriter;return proto.google.ads.googleads.v2.common.MaximizeConversions.serializeBinaryToWriter(this,writer),writer.getResultBuffer()},proto.google.ads.googleads.v2.common.MaximizeConversions.serializeBinaryToWriter=function(message,writer){},proto.google.ads.googleads.v2.common.MaximizeConversionValue=function(opt_data){jspb.Message.initialize(this,opt_data,0,-1,null,null)},goog.inherits(proto.google.ads.googleads.v2.common.MaximizeConversionValue,jspb.Message),goog.DEBUG&&!COMPILED&&(proto.google.ads.googleads.v2.common.MaximizeConversionValue.displayName="proto.google.ads.googleads.v2.common.MaximizeConversionValue"),jspb.Message.GENERATE_TO_OBJECT&&(proto.google.ads.googleads.v2.common.MaximizeConversionValue.prototype.toObject=function(opt_includeInstance){return proto.google.ads.googleads.v2.common.MaximizeConversionValue.toObject(opt_includeInstance,this)},proto.google.ads.googleads.v2.common.MaximizeConversionValue.toObject=function(includeInstance,msg){var f,obj={targetRoas:(f=msg.getTargetRoas())&&google_protobuf_wrappers_pb.DoubleValue.toObject(includeInstance,f)};return includeInstance&&(obj.$jspbMessageInstance=msg),obj}),proto.google.ads.googleads.v2.common.MaximizeConversionValue.deserializeBinary=function(bytes){var reader=new jspb.BinaryReader(bytes),msg=new proto.google.ads.googleads.v2.common.MaximizeConversionValue;return proto.google.ads.googleads.v2.common.MaximizeConversionValue.deserializeBinaryFromReader(msg,reader)},proto.google.ads.googleads.v2.common.MaximizeConversionValue.deserializeBinaryFromReader=function(msg,reader){for(;reader.nextField()&&!reader.isEndGroup();){switch(reader.getFieldNumber()){case 1:var value=new google_protobuf_wrappers_pb.DoubleValue;reader.readMessage(value,google_protobuf_wrappers_pb.DoubleValue.deserializeBinaryFromReader),msg.setTargetRoas(value);break;default:reader.skipField()}}return msg},proto.google.ads.googleads.v2.common.MaximizeConversionValue.prototype.serializeBinary=function(){var writer=new jspb.BinaryWriter;return proto.google.ads.googleads.v2.common.MaximizeConversionValue.serializeBinaryToWriter(this,writer),writer.getResultBuffer()},proto.google.ads.googleads.v2.common.MaximizeConversionValue.serializeBinaryToWriter=function(message,writer){var f;null!=(f=message.getTargetRoas())&&writer.writeMessage(1,f,google_protobuf_wrappers_pb.DoubleValue.serializeBinaryToWriter)},proto.google.ads.googleads.v2.common.MaximizeConversionValue.prototype.getTargetRoas=function(){return jspb.Message.getWrapperField(this,google_protobuf_wrappers_pb.DoubleValue,1)},proto.google.ads.googleads.v2.common.MaximizeConversionValue.prototype.setTargetRoas=function(value){jspb.Message.setWrapperField(this,1,value)},proto.google.ads.googleads.v2.common.MaximizeConversionValue.prototype.clearTargetRoas=function(){this.setTargetRoas(void 0)},proto.google.ads.googleads.v2.common.MaximizeConversionValue.prototype.hasTargetRoas=function(){return null!=jspb.Message.getField(this,1)},proto.google.ads.googleads.v2.common.PageOnePromoted=function(opt_data){jspb.Message.initialize(this,opt_data,0,-1,null,null)},goog.inherits(proto.google.ads.googleads.v2.common.PageOnePromoted,jspb.Message),goog.DEBUG&&!COMPILED&&(proto.google.ads.googleads.v2.common.PageOnePromoted.displayName="proto.google.ads.googleads.v2.common.PageOnePromoted"),jspb.Message.GENERATE_TO_OBJECT&&(proto.google.ads.googleads.v2.common.PageOnePromoted.prototype.toObject=function(opt_includeInstance){return proto.google.ads.googleads.v2.common.PageOnePromoted.toObject(opt_includeInstance,this)},proto.google.ads.googleads.v2.common.PageOnePromoted.toObject=function(includeInstance,msg){var f,obj={strategyGoal:jspb.Message.getFieldWithDefault(msg,1,0),cpcBidCeilingMicros:(f=msg.getCpcBidCeilingMicros())&&google_protobuf_wrappers_pb.Int64Value.toObject(includeInstance,f),bidModifier:(f=msg.getBidModifier())&&google_protobuf_wrappers_pb.DoubleValue.toObject(includeInstance,f),onlyRaiseCpcBids:(f=msg.getOnlyRaiseCpcBids())&&google_protobuf_wrappers_pb.BoolValue.toObject(includeInstance,f),raiseCpcBidWhenBudgetConstrained:(f=msg.getRaiseCpcBidWhenBudgetConstrained())&&google_protobuf_wrappers_pb.BoolValue.toObject(includeInstance,f),raiseCpcBidWhenQualityScoreIsLow:(f=msg.getRaiseCpcBidWhenQualityScoreIsLow())&&google_protobuf_wrappers_pb.BoolValue.toObject(includeInstance,f)};return includeInstance&&(obj.$jspbMessageInstance=msg),obj}),proto.google.ads.googleads.v2.common.PageOnePromoted.deserializeBinary=function(bytes){var reader=new jspb.BinaryReader(bytes),msg=new proto.google.ads.googleads.v2.common.PageOnePromoted;return proto.google.ads.googleads.v2.common.PageOnePromoted.deserializeBinaryFromReader(msg,reader)},proto.google.ads.googleads.v2.common.PageOnePromoted.deserializeBinaryFromReader=function(msg,reader){for(;reader.nextField()&&!reader.isEndGroup();){switch(reader.getFieldNumber()){case 1:var value=reader.readEnum();msg.setStrategyGoal(value);break;case 2:value=new google_protobuf_wrappers_pb.Int64Value;reader.readMessage(value,google_protobuf_wrappers_pb.Int64Value.deserializeBinaryFromReader),msg.setCpcBidCeilingMicros(value);break;case 3:value=new google_protobuf_wrappers_pb.DoubleValue;reader.readMessage(value,google_protobuf_wrappers_pb.DoubleValue.deserializeBinaryFromReader),msg.setBidModifier(value);break;case 4:value=new google_protobuf_wrappers_pb.BoolValue;reader.readMessage(value,google_protobuf_wrappers_pb.BoolValue.deserializeBinaryFromReader),msg.setOnlyRaiseCpcBids(value);break;case 5:value=new google_protobuf_wrappers_pb.BoolValue;reader.readMessage(value,google_protobuf_wrappers_pb.BoolValue.deserializeBinaryFromReader),msg.setRaiseCpcBidWhenBudgetConstrained(value);break;case 6:value=new google_protobuf_wrappers_pb.BoolValue;reader.readMessage(value,google_protobuf_wrappers_pb.BoolValue.deserializeBinaryFromReader),msg.setRaiseCpcBidWhenQualityScoreIsLow(value);break;default:reader.skipField()}}return msg},proto.google.ads.googleads.v2.common.PageOnePromoted.prototype.serializeBinary=function(){var writer=new jspb.BinaryWriter;return proto.google.ads.googleads.v2.common.PageOnePromoted.serializeBinaryToWriter(this,writer),writer.getResultBuffer()},proto.google.ads.googleads.v2.common.PageOnePromoted.serializeBinaryToWriter=function(message,writer){var f=void 0;0!==(f=message.getStrategyGoal())&&writer.writeEnum(1,f),null!=(f=message.getCpcBidCeilingMicros())&&writer.writeMessage(2,f,google_protobuf_wrappers_pb.Int64Value.serializeBinaryToWriter),null!=(f=message.getBidModifier())&&writer.writeMessage(3,f,google_protobuf_wrappers_pb.DoubleValue.serializeBinaryToWriter),null!=(f=message.getOnlyRaiseCpcBids())&&writer.writeMessage(4,f,google_protobuf_wrappers_pb.BoolValue.serializeBinaryToWriter),null!=(f=message.getRaiseCpcBidWhenBudgetConstrained())&&writer.writeMessage(5,f,google_protobuf_wrappers_pb.BoolValue.serializeBinaryToWriter),null!=(f=message.getRaiseCpcBidWhenQualityScoreIsLow())&&writer.writeMessage(6,f,google_protobuf_wrappers_pb.BoolValue.serializeBinaryToWriter)},proto.google.ads.googleads.v2.common.PageOnePromoted.prototype.getStrategyGoal=function(){return jspb.Message.getFieldWithDefault(this,1,0)},proto.google.ads.googleads.v2.common.PageOnePromoted.prototype.setStrategyGoal=function(value){jspb.Message.setProto3EnumField(this,1,value)},proto.google.ads.googleads.v2.common.PageOnePromoted.prototype.getCpcBidCeilingMicros=function(){return jspb.Message.getWrapperField(this,google_protobuf_wrappers_pb.Int64Value,2)},proto.google.ads.googleads.v2.common.PageOnePromoted.prototype.setCpcBidCeilingMicros=function(value){jspb.Message.setWrapperField(this,2,value)},proto.google.ads.googleads.v2.common.PageOnePromoted.prototype.clearCpcBidCeilingMicros=function(){this.setCpcBidCeilingMicros(void 0)},proto.google.ads.googleads.v2.common.PageOnePromoted.prototype.hasCpcBidCeilingMicros=function(){return null!=jspb.Message.getField(this,2)},proto.google.ads.googleads.v2.common.PageOnePromoted.prototype.getBidModifier=function(){return jspb.Message.getWrapperField(this,google_protobuf_wrappers_pb.DoubleValue,3)},proto.google.ads.googleads.v2.common.PageOnePromoted.prototype.setBidModifier=function(value){jspb.Message.setWrapperField(this,3,value)},proto.google.ads.googleads.v2.common.PageOnePromoted.prototype.clearBidModifier=function(){this.setBidModifier(void 0)},proto.google.ads.googleads.v2.common.PageOnePromoted.prototype.hasBidModifier=function(){return null!=jspb.Message.getField(this,3)},proto.google.ads.googleads.v2.common.PageOnePromoted.prototype.getOnlyRaiseCpcBids=function(){return jspb.Message.getWrapperField(this,google_protobuf_wrappers_pb.BoolValue,4)},proto.google.ads.googleads.v2.common.PageOnePromoted.prototype.setOnlyRaiseCpcBids=function(value){jspb.Message.setWrapperField(this,4,value)},proto.google.ads.googleads.v2.common.PageOnePromoted.prototype.clearOnlyRaiseCpcBids=function(){this.setOnlyRaiseCpcBids(void 0)},proto.google.ads.googleads.v2.common.PageOnePromoted.prototype.hasOnlyRaiseCpcBids=function(){return null!=jspb.Message.getField(this,4)},proto.google.ads.googleads.v2.common.PageOnePromoted.prototype.getRaiseCpcBidWhenBudgetConstrained=function(){return jspb.Message.getWrapperField(this,google_protobuf_wrappers_pb.BoolValue,5)},proto.google.ads.googleads.v2.common.PageOnePromoted.prototype.setRaiseCpcBidWhenBudgetConstrained=function(value){jspb.Message.setWrapperField(this,5,value)},proto.google.ads.googleads.v2.common.PageOnePromoted.prototype.clearRaiseCpcBidWhenBudgetConstrained=function(){this.setRaiseCpcBidWhenBudgetConstrained(void 0)},proto.google.ads.googleads.v2.common.PageOnePromoted.prototype.hasRaiseCpcBidWhenBudgetConstrained=function(){return null!=jspb.Message.getField(this,5)},proto.google.ads.googleads.v2.common.PageOnePromoted.prototype.getRaiseCpcBidWhenQualityScoreIsLow=function(){return jspb.Message.getWrapperField(this,google_protobuf_wrappers_pb.BoolValue,6)},proto.google.ads.googleads.v2.common.PageOnePromoted.prototype.setRaiseCpcBidWhenQualityScoreIsLow=function(value){jspb.Message.setWrapperField(this,6,value)},proto.google.ads.googleads.v2.common.PageOnePromoted.prototype.clearRaiseCpcBidWhenQualityScoreIsLow=function(){this.setRaiseCpcBidWhenQualityScoreIsLow(void 0)},proto.google.ads.googleads.v2.common.PageOnePromoted.prototype.hasRaiseCpcBidWhenQualityScoreIsLow=function(){return null!=jspb.Message.getField(this,6)},proto.google.ads.googleads.v2.common.TargetCpa=function(opt_data){jspb.Message.initialize(this,opt_data,0,-1,null,null)},goog.inherits(proto.google.ads.googleads.v2.common.TargetCpa,jspb.Message),goog.DEBUG&&!COMPILED&&(proto.google.ads.googleads.v2.common.TargetCpa.displayName="proto.google.ads.googleads.v2.common.TargetCpa"),jspb.Message.GENERATE_TO_OBJECT&&(proto.google.ads.googleads.v2.common.TargetCpa.prototype.toObject=function(opt_includeInstance){return proto.google.ads.googleads.v2.common.TargetCpa.toObject(opt_includeInstance,this)},proto.google.ads.googleads.v2.common.TargetCpa.toObject=function(includeInstance,msg){var f,obj={targetCpaMicros:(f=msg.getTargetCpaMicros())&&google_protobuf_wrappers_pb.Int64Value.toObject(includeInstance,f),cpcBidCeilingMicros:(f=msg.getCpcBidCeilingMicros())&&google_protobuf_wrappers_pb.Int64Value.toObject(includeInstance,f),cpcBidFloorMicros:(f=msg.getCpcBidFloorMicros())&&google_protobuf_wrappers_pb.Int64Value.toObject(includeInstance,f)};return includeInstance&&(obj.$jspbMessageInstance=msg),obj}),proto.google.ads.googleads.v2.common.TargetCpa.deserializeBinary=function(bytes){var reader=new jspb.BinaryReader(bytes),msg=new proto.google.ads.googleads.v2.common.TargetCpa;return proto.google.ads.googleads.v2.common.TargetCpa.deserializeBinaryFromReader(msg,reader)},proto.google.ads.googleads.v2.common.TargetCpa.deserializeBinaryFromReader=function(msg,reader){for(;reader.nextField()&&!reader.isEndGroup();){switch(reader.getFieldNumber()){case 1:var value=new google_protobuf_wrappers_pb.Int64Value;reader.readMessage(value,google_protobuf_wrappers_pb.Int64Value.deserializeBinaryFromReader),msg.setTargetCpaMicros(value);break;case 2:value=new google_protobuf_wrappers_pb.Int64Value;reader.readMessage(value,google_protobuf_wrappers_pb.Int64Value.deserializeBinaryFromReader),msg.setCpcBidCeilingMicros(value);break;case 3:value=new google_protobuf_wrappers_pb.Int64Value;reader.readMessage(value,google_protobuf_wrappers_pb.Int64Value.deserializeBinaryFromReader),msg.setCpcBidFloorMicros(value);break;default:reader.skipField()}}return msg},proto.google.ads.googleads.v2.common.TargetCpa.prototype.serializeBinary=function(){var writer=new jspb.BinaryWriter;return proto.google.ads.googleads.v2.common.TargetCpa.serializeBinaryToWriter(this,writer),writer.getResultBuffer()},proto.google.ads.googleads.v2.common.TargetCpa.serializeBinaryToWriter=function(message,writer){var f=void 0;null!=(f=message.getTargetCpaMicros())&&writer.writeMessage(1,f,google_protobuf_wrappers_pb.Int64Value.serializeBinaryToWriter),null!=(f=message.getCpcBidCeilingMicros())&&writer.writeMessage(2,f,google_protobuf_wrappers_pb.Int64Value.serializeBinaryToWriter),null!=(f=message.getCpcBidFloorMicros())&&writer.writeMessage(3,f,google_protobuf_wrappers_pb.Int64Value.serializeBinaryToWriter)},proto.google.ads.googleads.v2.common.TargetCpa.prototype.getTargetCpaMicros=function(){return jspb.Message.getWrapperField(this,google_protobuf_wrappers_pb.Int64Value,1)},proto.google.ads.googleads.v2.common.TargetCpa.prototype.setTargetCpaMicros=function(value){jspb.Message.setWrapperField(this,1,value)},proto.google.ads.googleads.v2.common.TargetCpa.prototype.clearTargetCpaMicros=function(){this.setTargetCpaMicros(void 0)},proto.google.ads.googleads.v2.common.TargetCpa.prototype.hasTargetCpaMicros=function(){return null!=jspb.Message.getField(this,1)},proto.google.ads.googleads.v2.common.TargetCpa.prototype.getCpcBidCeilingMicros=function(){return jspb.Message.getWrapperField(this,google_protobuf_wrappers_pb.Int64Value,2)},proto.google.ads.googleads.v2.common.TargetCpa.prototype.setCpcBidCeilingMicros=function(value){jspb.Message.setWrapperField(this,2,value)},proto.google.ads.googleads.v2.common.TargetCpa.prototype.clearCpcBidCeilingMicros=function(){this.setCpcBidCeilingMicros(void 0)},proto.google.ads.googleads.v2.common.TargetCpa.prototype.hasCpcBidCeilingMicros=function(){return null!=jspb.Message.getField(this,2)},proto.google.ads.googleads.v2.common.TargetCpa.prototype.getCpcBidFloorMicros=function(){return jspb.Message.getWrapperField(this,google_protobuf_wrappers_pb.Int64Value,3)},proto.google.ads.googleads.v2.common.TargetCpa.prototype.setCpcBidFloorMicros=function(value){jspb.Message.setWrapperField(this,3,value)},proto.google.ads.googleads.v2.common.TargetCpa.prototype.clearCpcBidFloorMicros=function(){this.setCpcBidFloorMicros(void 0)},proto.google.ads.googleads.v2.common.TargetCpa.prototype.hasCpcBidFloorMicros=function(){return null!=jspb.Message.getField(this,3)},proto.google.ads.googleads.v2.common.TargetCpm=function(opt_data){jspb.Message.initialize(this,opt_data,0,-1,null,null)},goog.inherits(proto.google.ads.googleads.v2.common.TargetCpm,jspb.Message),goog.DEBUG&&!COMPILED&&(proto.google.ads.googleads.v2.common.TargetCpm.displayName="proto.google.ads.googleads.v2.common.TargetCpm"),jspb.Message.GENERATE_TO_OBJECT&&(proto.google.ads.googleads.v2.common.TargetCpm.prototype.toObject=function(opt_includeInstance){return proto.google.ads.googleads.v2.common.TargetCpm.toObject(opt_includeInstance,this)},proto.google.ads.googleads.v2.common.TargetCpm.toObject=function(includeInstance,msg){var obj={};return includeInstance&&(obj.$jspbMessageInstance=msg),obj}),proto.google.ads.googleads.v2.common.TargetCpm.deserializeBinary=function(bytes){var reader=new jspb.BinaryReader(bytes),msg=new proto.google.ads.googleads.v2.common.TargetCpm;return proto.google.ads.googleads.v2.common.TargetCpm.deserializeBinaryFromReader(msg,reader)},proto.google.ads.googleads.v2.common.TargetCpm.deserializeBinaryFromReader=function(msg,reader){for(;reader.nextField()&&!reader.isEndGroup();){reader.getFieldNumber();reader.skipField()}return msg},proto.google.ads.googleads.v2.common.TargetCpm.prototype.serializeBinary=function(){var writer=new jspb.BinaryWriter;return proto.google.ads.googleads.v2.common.TargetCpm.serializeBinaryToWriter(this,writer),writer.getResultBuffer()},proto.google.ads.googleads.v2.common.TargetCpm.serializeBinaryToWriter=function(message,writer){},proto.google.ads.googleads.v2.common.TargetImpressionShare=function(opt_data){jspb.Message.initialize(this,opt_data,0,-1,null,null)},goog.inherits(proto.google.ads.googleads.v2.common.TargetImpressionShare,jspb.Message),goog.DEBUG&&!COMPILED&&(proto.google.ads.googleads.v2.common.TargetImpressionShare.displayName="proto.google.ads.googleads.v2.common.TargetImpressionShare"),jspb.Message.GENERATE_TO_OBJECT&&(proto.google.ads.googleads.v2.common.TargetImpressionShare.prototype.toObject=function(opt_includeInstance){return proto.google.ads.googleads.v2.common.TargetImpressionShare.toObject(opt_includeInstance,this)},proto.google.ads.googleads.v2.common.TargetImpressionShare.toObject=function(includeInstance,msg){var f,obj={location:jspb.Message.getFieldWithDefault(msg,1,0),locationFractionMicros:(f=msg.getLocationFractionMicros())&&google_protobuf_wrappers_pb.Int64Value.toObject(includeInstance,f),cpcBidCeilingMicros:(f=msg.getCpcBidCeilingMicros())&&google_protobuf_wrappers_pb.Int64Value.toObject(includeInstance,f)};return includeInstance&&(obj.$jspbMessageInstance=msg),obj}),proto.google.ads.googleads.v2.common.TargetImpressionShare.deserializeBinary=function(bytes){var reader=new jspb.BinaryReader(bytes),msg=new proto.google.ads.googleads.v2.common.TargetImpressionShare;return proto.google.ads.googleads.v2.common.TargetImpressionShare.deserializeBinaryFromReader(msg,reader)},proto.google.ads.googleads.v2.common.TargetImpressionShare.deserializeBinaryFromReader=function(msg,reader){for(;reader.nextField()&&!reader.isEndGroup();){switch(reader.getFieldNumber()){case 1:var value=reader.readEnum();msg.setLocation(value);break;case 2:value=new google_protobuf_wrappers_pb.Int64Value;reader.readMessage(value,google_protobuf_wrappers_pb.Int64Value.deserializeBinaryFromReader),msg.setLocationFractionMicros(value);break;case 3:value=new google_protobuf_wrappers_pb.Int64Value;reader.readMessage(value,google_protobuf_wrappers_pb.Int64Value.deserializeBinaryFromReader),msg.setCpcBidCeilingMicros(value);break;default:reader.skipField()}}return msg},proto.google.ads.googleads.v2.common.TargetImpressionShare.prototype.serializeBinary=function(){var writer=new jspb.BinaryWriter;return proto.google.ads.googleads.v2.common.TargetImpressionShare.serializeBinaryToWriter(this,writer),writer.getResultBuffer()},proto.google.ads.googleads.v2.common.TargetImpressionShare.serializeBinaryToWriter=function(message,writer){var f=void 0;0!==(f=message.getLocation())&&writer.writeEnum(1,f),null!=(f=message.getLocationFractionMicros())&&writer.writeMessage(2,f,google_protobuf_wrappers_pb.Int64Value.serializeBinaryToWriter),null!=(f=message.getCpcBidCeilingMicros())&&writer.writeMessage(3,f,google_protobuf_wrappers_pb.Int64Value.serializeBinaryToWriter)},proto.google.ads.googleads.v2.common.TargetImpressionShare.prototype.getLocation=function(){return jspb.Message.getFieldWithDefault(this,1,0)},proto.google.ads.googleads.v2.common.TargetImpressionShare.prototype.setLocation=function(value){jspb.Message.setProto3EnumField(this,1,value)},proto.google.ads.googleads.v2.common.TargetImpressionShare.prototype.getLocationFractionMicros=function(){return jspb.Message.getWrapperField(this,google_protobuf_wrappers_pb.Int64Value,2)},proto.google.ads.googleads.v2.common.TargetImpressionShare.prototype.setLocationFractionMicros=function(value){jspb.Message.setWrapperField(this,2,value)},proto.google.ads.googleads.v2.common.TargetImpressionShare.prototype.clearLocationFractionMicros=function(){this.setLocationFractionMicros(void 0)},proto.google.ads.googleads.v2.common.TargetImpressionShare.prototype.hasLocationFractionMicros=function(){return null!=jspb.Message.getField(this,2)},proto.google.ads.googleads.v2.common.TargetImpressionShare.prototype.getCpcBidCeilingMicros=function(){return jspb.Message.getWrapperField(this,google_protobuf_wrappers_pb.Int64Value,3)},proto.google.ads.googleads.v2.common.TargetImpressionShare.prototype.setCpcBidCeilingMicros=function(value){jspb.Message.setWrapperField(this,3,value)},proto.google.ads.googleads.v2.common.TargetImpressionShare.prototype.clearCpcBidCeilingMicros=function(){this.setCpcBidCeilingMicros(void 0)},proto.google.ads.googleads.v2.common.TargetImpressionShare.prototype.hasCpcBidCeilingMicros=function(){return null!=jspb.Message.getField(this,3)},proto.google.ads.googleads.v2.common.TargetOutrankShare=function(opt_data){jspb.Message.initialize(this,opt_data,0,-1,null,null)},goog.inherits(proto.google.ads.googleads.v2.common.TargetOutrankShare,jspb.Message),goog.DEBUG&&!COMPILED&&(proto.google.ads.googleads.v2.common.TargetOutrankShare.displayName="proto.google.ads.googleads.v2.common.TargetOutrankShare"),jspb.Message.GENERATE_TO_OBJECT&&(proto.google.ads.googleads.v2.common.TargetOutrankShare.prototype.toObject=function(opt_includeInstance){return proto.google.ads.googleads.v2.common.TargetOutrankShare.toObject(opt_includeInstance,this)},proto.google.ads.googleads.v2.common.TargetOutrankShare.toObject=function(includeInstance,msg){var f,obj={targetOutrankShareMicros:(f=msg.getTargetOutrankShareMicros())&&google_protobuf_wrappers_pb.Int32Value.toObject(includeInstance,f),competitorDomain:(f=msg.getCompetitorDomain())&&google_protobuf_wrappers_pb.StringValue.toObject(includeInstance,f),cpcBidCeilingMicros:(f=msg.getCpcBidCeilingMicros())&&google_protobuf_wrappers_pb.Int64Value.toObject(includeInstance,f),onlyRaiseCpcBids:(f=msg.getOnlyRaiseCpcBids())&&google_protobuf_wrappers_pb.BoolValue.toObject(includeInstance,f),raiseCpcBidWhenQualityScoreIsLow:(f=msg.getRaiseCpcBidWhenQualityScoreIsLow())&&google_protobuf_wrappers_pb.BoolValue.toObject(includeInstance,f)};return includeInstance&&(obj.$jspbMessageInstance=msg),obj}),proto.google.ads.googleads.v2.common.TargetOutrankShare.deserializeBinary=function(bytes){var reader=new jspb.BinaryReader(bytes),msg=new proto.google.ads.googleads.v2.common.TargetOutrankShare;return proto.google.ads.googleads.v2.common.TargetOutrankShare.deserializeBinaryFromReader(msg,reader)},proto.google.ads.googleads.v2.common.TargetOutrankShare.deserializeBinaryFromReader=function(msg,reader){for(;reader.nextField()&&!reader.isEndGroup();){switch(reader.getFieldNumber()){case 1:var value=new google_protobuf_wrappers_pb.Int32Value;reader.readMessage(value,google_protobuf_wrappers_pb.Int32Value.deserializeBinaryFromReader),msg.setTargetOutrankShareMicros(value);break;case 2:value=new google_protobuf_wrappers_pb.StringValue;reader.readMessage(value,google_protobuf_wrappers_pb.StringValue.deserializeBinaryFromReader),msg.setCompetitorDomain(value);break;case 3:value=new google_protobuf_wrappers_pb.Int64Value;reader.readMessage(value,google_protobuf_wrappers_pb.Int64Value.deserializeBinaryFromReader),msg.setCpcBidCeilingMicros(value);break;case 4:value=new google_protobuf_wrappers_pb.BoolValue;reader.readMessage(value,google_protobuf_wrappers_pb.BoolValue.deserializeBinaryFromReader),msg.setOnlyRaiseCpcBids(value);break;case 5:value=new google_protobuf_wrappers_pb.BoolValue;reader.readMessage(value,google_protobuf_wrappers_pb.BoolValue.deserializeBinaryFromReader),msg.setRaiseCpcBidWhenQualityScoreIsLow(value);break;default:reader.skipField()}}return msg},proto.google.ads.googleads.v2.common.TargetOutrankShare.prototype.serializeBinary=function(){var writer=new jspb.BinaryWriter;return proto.google.ads.googleads.v2.common.TargetOutrankShare.serializeBinaryToWriter(this,writer),writer.getResultBuffer()},proto.google.ads.googleads.v2.common.TargetOutrankShare.serializeBinaryToWriter=function(message,writer){var f=void 0;null!=(f=message.getTargetOutrankShareMicros())&&writer.writeMessage(1,f,google_protobuf_wrappers_pb.Int32Value.serializeBinaryToWriter),null!=(f=message.getCompetitorDomain())&&writer.writeMessage(2,f,google_protobuf_wrappers_pb.StringValue.serializeBinaryToWriter),null!=(f=message.getCpcBidCeilingMicros())&&writer.writeMessage(3,f,google_protobuf_wrappers_pb.Int64Value.serializeBinaryToWriter),null!=(f=message.getOnlyRaiseCpcBids())&&writer.writeMessage(4,f,google_protobuf_wrappers_pb.BoolValue.serializeBinaryToWriter),null!=(f=message.getRaiseCpcBidWhenQualityScoreIsLow())&&writer.writeMessage(5,f,google_protobuf_wrappers_pb.BoolValue.serializeBinaryToWriter)},proto.google.ads.googleads.v2.common.TargetOutrankShare.prototype.getTargetOutrankShareMicros=function(){return jspb.Message.getWrapperField(this,google_protobuf_wrappers_pb.Int32Value,1)},proto.google.ads.googleads.v2.common.TargetOutrankShare.prototype.setTargetOutrankShareMicros=function(value){jspb.Message.setWrapperField(this,1,value)},proto.google.ads.googleads.v2.common.TargetOutrankShare.prototype.clearTargetOutrankShareMicros=function(){this.setTargetOutrankShareMicros(void 0)},proto.google.ads.googleads.v2.common.TargetOutrankShare.prototype.hasTargetOutrankShareMicros=function(){return null!=jspb.Message.getField(this,1)},proto.google.ads.googleads.v2.common.TargetOutrankShare.prototype.getCompetitorDomain=function(){return jspb.Message.getWrapperField(this,google_protobuf_wrappers_pb.StringValue,2)},proto.google.ads.googleads.v2.common.TargetOutrankShare.prototype.setCompetitorDomain=function(value){jspb.Message.setWrapperField(this,2,value)},proto.google.ads.googleads.v2.common.TargetOutrankShare.prototype.clearCompetitorDomain=function(){this.setCompetitorDomain(void 0)},proto.google.ads.googleads.v2.common.TargetOutrankShare.prototype.hasCompetitorDomain=function(){return null!=jspb.Message.getField(this,2)},proto.google.ads.googleads.v2.common.TargetOutrankShare.prototype.getCpcBidCeilingMicros=function(){return jspb.Message.getWrapperField(this,google_protobuf_wrappers_pb.Int64Value,3)},proto.google.ads.googleads.v2.common.TargetOutrankShare.prototype.setCpcBidCeilingMicros=function(value){jspb.Message.setWrapperField(this,3,value)},proto.google.ads.googleads.v2.common.TargetOutrankShare.prototype.clearCpcBidCeilingMicros=function(){this.setCpcBidCeilingMicros(void 0)},proto.google.ads.googleads.v2.common.TargetOutrankShare.prototype.hasCpcBidCeilingMicros=function(){return null!=jspb.Message.getField(this,3)},proto.google.ads.googleads.v2.common.TargetOutrankShare.prototype.getOnlyRaiseCpcBids=function(){return jspb.Message.getWrapperField(this,google_protobuf_wrappers_pb.BoolValue,4)},proto.google.ads.googleads.v2.common.TargetOutrankShare.prototype.setOnlyRaiseCpcBids=function(value){jspb.Message.setWrapperField(this,4,value)},proto.google.ads.googleads.v2.common.TargetOutrankShare.prototype.clearOnlyRaiseCpcBids=function(){this.setOnlyRaiseCpcBids(void 0)},proto.google.ads.googleads.v2.common.TargetOutrankShare.prototype.hasOnlyRaiseCpcBids=function(){return null!=jspb.Message.getField(this,4)},proto.google.ads.googleads.v2.common.TargetOutrankShare.prototype.getRaiseCpcBidWhenQualityScoreIsLow=function(){return jspb.Message.getWrapperField(this,google_protobuf_wrappers_pb.BoolValue,5)},proto.google.ads.googleads.v2.common.TargetOutrankShare.prototype.setRaiseCpcBidWhenQualityScoreIsLow=function(value){jspb.Message.setWrapperField(this,5,value)},proto.google.ads.googleads.v2.common.TargetOutrankShare.prototype.clearRaiseCpcBidWhenQualityScoreIsLow=function(){this.setRaiseCpcBidWhenQualityScoreIsLow(void 0)},proto.google.ads.googleads.v2.common.TargetOutrankShare.prototype.hasRaiseCpcBidWhenQualityScoreIsLow=function(){return null!=jspb.Message.getField(this,5)},proto.google.ads.googleads.v2.common.TargetRoas=function(opt_data){jspb.Message.initialize(this,opt_data,0,-1,null,null)},goog.inherits(proto.google.ads.googleads.v2.common.TargetRoas,jspb.Message),goog.DEBUG&&!COMPILED&&(proto.google.ads.googleads.v2.common.TargetRoas.displayName="proto.google.ads.googleads.v2.common.TargetRoas"),jspb.Message.GENERATE_TO_OBJECT&&(proto.google.ads.googleads.v2.common.TargetRoas.prototype.toObject=function(opt_includeInstance){return proto.google.ads.googleads.v2.common.TargetRoas.toObject(opt_includeInstance,this)},proto.google.ads.googleads.v2.common.TargetRoas.toObject=function(includeInstance,msg){var f,obj={targetRoas:(f=msg.getTargetRoas())&&google_protobuf_wrappers_pb.DoubleValue.toObject(includeInstance,f),cpcBidCeilingMicros:(f=msg.getCpcBidCeilingMicros())&&google_protobuf_wrappers_pb.Int64Value.toObject(includeInstance,f),cpcBidFloorMicros:(f=msg.getCpcBidFloorMicros())&&google_protobuf_wrappers_pb.Int64Value.toObject(includeInstance,f)};return includeInstance&&(obj.$jspbMessageInstance=msg),obj}),proto.google.ads.googleads.v2.common.TargetRoas.deserializeBinary=function(bytes){var reader=new jspb.BinaryReader(bytes),msg=new proto.google.ads.googleads.v2.common.TargetRoas;return proto.google.ads.googleads.v2.common.TargetRoas.deserializeBinaryFromReader(msg,reader)},proto.google.ads.googleads.v2.common.TargetRoas.deserializeBinaryFromReader=function(msg,reader){for(;reader.nextField()&&!reader.isEndGroup();){switch(reader.getFieldNumber()){case 1:var value=new google_protobuf_wrappers_pb.DoubleValue;reader.readMessage(value,google_protobuf_wrappers_pb.DoubleValue.deserializeBinaryFromReader),msg.setTargetRoas(value);break;case 2:value=new google_protobuf_wrappers_pb.Int64Value;reader.readMessage(value,google_protobuf_wrappers_pb.Int64Value.deserializeBinaryFromReader),msg.setCpcBidCeilingMicros(value);break;case 3:value=new google_protobuf_wrappers_pb.Int64Value;reader.readMessage(value,google_protobuf_wrappers_pb.Int64Value.deserializeBinaryFromReader),msg.setCpcBidFloorMicros(value);break;default:reader.skipField()}}return msg},proto.google.ads.googleads.v2.common.TargetRoas.prototype.serializeBinary=function(){var writer=new jspb.BinaryWriter;return proto.google.ads.googleads.v2.common.TargetRoas.serializeBinaryToWriter(this,writer),writer.getResultBuffer()},proto.google.ads.googleads.v2.common.TargetRoas.serializeBinaryToWriter=function(message,writer){var f=void 0;null!=(f=message.getTargetRoas())&&writer.writeMessage(1,f,google_protobuf_wrappers_pb.DoubleValue.serializeBinaryToWriter),null!=(f=message.getCpcBidCeilingMicros())&&writer.writeMessage(2,f,google_protobuf_wrappers_pb.Int64Value.serializeBinaryToWriter),null!=(f=message.getCpcBidFloorMicros())&&writer.writeMessage(3,f,google_protobuf_wrappers_pb.Int64Value.serializeBinaryToWriter)},proto.google.ads.googleads.v2.common.TargetRoas.prototype.getTargetRoas=function(){return jspb.Message.getWrapperField(this,google_protobuf_wrappers_pb.DoubleValue,1)},proto.google.ads.googleads.v2.common.TargetRoas.prototype.setTargetRoas=function(value){jspb.Message.setWrapperField(this,1,value)},proto.google.ads.googleads.v2.common.TargetRoas.prototype.clearTargetRoas=function(){this.setTargetRoas(void 0)},proto.google.ads.googleads.v2.common.TargetRoas.prototype.hasTargetRoas=function(){return null!=jspb.Message.getField(this,1)},proto.google.ads.googleads.v2.common.TargetRoas.prototype.getCpcBidCeilingMicros=function(){return jspb.Message.getWrapperField(this,google_protobuf_wrappers_pb.Int64Value,2)},proto.google.ads.googleads.v2.common.TargetRoas.prototype.setCpcBidCeilingMicros=function(value){jspb.Message.setWrapperField(this,2,value)},proto.google.ads.googleads.v2.common.TargetRoas.prototype.clearCpcBidCeilingMicros=function(){this.setCpcBidCeilingMicros(void 0)},proto.google.ads.googleads.v2.common.TargetRoas.prototype.hasCpcBidCeilingMicros=function(){return null!=jspb.Message.getField(this,2)},proto.google.ads.googleads.v2.common.TargetRoas.prototype.getCpcBidFloorMicros=function(){return jspb.Message.getWrapperField(this,google_protobuf_wrappers_pb.Int64Value,3)},proto.google.ads.googleads.v2.common.TargetRoas.prototype.setCpcBidFloorMicros=function(value){jspb.Message.setWrapperField(this,3,value)},proto.google.ads.googleads.v2.common.TargetRoas.prototype.clearCpcBidFloorMicros=function(){this.setCpcBidFloorMicros(void 0)},proto.google.ads.googleads.v2.common.TargetRoas.prototype.hasCpcBidFloorMicros=function(){return null!=jspb.Message.getField(this,3)},proto.google.ads.googleads.v2.common.TargetSpend=function(opt_data){jspb.Message.initialize(this,opt_data,0,-1,null,null)},goog.inherits(proto.google.ads.googleads.v2.common.TargetSpend,jspb.Message),goog.DEBUG&&!COMPILED&&(proto.google.ads.googleads.v2.common.TargetSpend.displayName="proto.google.ads.googleads.v2.common.TargetSpend"),jspb.Message.GENERATE_TO_OBJECT&&(proto.google.ads.googleads.v2.common.TargetSpend.prototype.toObject=function(opt_includeInstance){return proto.google.ads.googleads.v2.common.TargetSpend.toObject(opt_includeInstance,this)},proto.google.ads.googleads.v2.common.TargetSpend.toObject=function(includeInstance,msg){var f,obj={targetSpendMicros:(f=msg.getTargetSpendMicros())&&google_protobuf_wrappers_pb.Int64Value.toObject(includeInstance,f),cpcBidCeilingMicros:(f=msg.getCpcBidCeilingMicros())&&google_protobuf_wrappers_pb.Int64Value.toObject(includeInstance,f)};return includeInstance&&(obj.$jspbMessageInstance=msg),obj}),proto.google.ads.googleads.v2.common.TargetSpend.deserializeBinary=function(bytes){var reader=new jspb.BinaryReader(bytes),msg=new proto.google.ads.googleads.v2.common.TargetSpend;return proto.google.ads.googleads.v2.common.TargetSpend.deserializeBinaryFromReader(msg,reader)},proto.google.ads.googleads.v2.common.TargetSpend.deserializeBinaryFromReader=function(msg,reader){for(;reader.nextField()&&!reader.isEndGroup();){switch(reader.getFieldNumber()){case 1:var value=new google_protobuf_wrappers_pb.Int64Value;reader.readMessage(value,google_protobuf_wrappers_pb.Int64Value.deserializeBinaryFromReader),msg.setTargetSpendMicros(value);break;case 2:value=new google_protobuf_wrappers_pb.Int64Value;reader.readMessage(value,google_protobuf_wrappers_pb.Int64Value.deserializeBinaryFromReader),msg.setCpcBidCeilingMicros(value);break;default:reader.skipField()}}return msg},proto.google.ads.googleads.v2.common.TargetSpend.prototype.serializeBinary=function(){var writer=new jspb.BinaryWriter;return proto.google.ads.googleads.v2.common.TargetSpend.serializeBinaryToWriter(this,writer),writer.getResultBuffer()},proto.google.ads.googleads.v2.common.TargetSpend.serializeBinaryToWriter=function(message,writer){var f=void 0;null!=(f=message.getTargetSpendMicros())&&writer.writeMessage(1,f,google_protobuf_wrappers_pb.Int64Value.serializeBinaryToWriter),null!=(f=message.getCpcBidCeilingMicros())&&writer.writeMessage(2,f,google_protobuf_wrappers_pb.Int64Value.serializeBinaryToWriter)},proto.google.ads.googleads.v2.common.TargetSpend.prototype.getTargetSpendMicros=function(){return jspb.Message.getWrapperField(this,google_protobuf_wrappers_pb.Int64Value,1)},proto.google.ads.googleads.v2.common.TargetSpend.prototype.setTargetSpendMicros=function(value){jspb.Message.setWrapperField(this,1,value)},proto.google.ads.googleads.v2.common.TargetSpend.prototype.clearTargetSpendMicros=function(){this.setTargetSpendMicros(void 0)},proto.google.ads.googleads.v2.common.TargetSpend.prototype.hasTargetSpendMicros=function(){return null!=jspb.Message.getField(this,1)},proto.google.ads.googleads.v2.common.TargetSpend.prototype.getCpcBidCeilingMicros=function(){return jspb.Message.getWrapperField(this,google_protobuf_wrappers_pb.Int64Value,2)},proto.google.ads.googleads.v2.common.TargetSpend.prototype.setCpcBidCeilingMicros=function(value){jspb.Message.setWrapperField(this,2,value)},proto.google.ads.googleads.v2.common.TargetSpend.prototype.clearCpcBidCeilingMicros=function(){this.setCpcBidCeilingMicros(void 0)},proto.google.ads.googleads.v2.common.TargetSpend.prototype.hasCpcBidCeilingMicros=function(){return null!=jspb.Message.getField(this,2)},proto.google.ads.googleads.v2.common.PercentCpc=function(opt_data){jspb.Message.initialize(this,opt_data,0,-1,null,null)},goog.inherits(proto.google.ads.googleads.v2.common.PercentCpc,jspb.Message),goog.DEBUG&&!COMPILED&&(proto.google.ads.googleads.v2.common.PercentCpc.displayName="proto.google.ads.googleads.v2.common.PercentCpc"),jspb.Message.GENERATE_TO_OBJECT&&(proto.google.ads.googleads.v2.common.PercentCpc.prototype.toObject=function(opt_includeInstance){return proto.google.ads.googleads.v2.common.PercentCpc.toObject(opt_includeInstance,this)},proto.google.ads.googleads.v2.common.PercentCpc.toObject=function(includeInstance,msg){var f,obj={cpcBidCeilingMicros:(f=msg.getCpcBidCeilingMicros())&&google_protobuf_wrappers_pb.Int64Value.toObject(includeInstance,f),enhancedCpcEnabled:(f=msg.getEnhancedCpcEnabled())&&google_protobuf_wrappers_pb.BoolValue.toObject(includeInstance,f)};return includeInstance&&(obj.$jspbMessageInstance=msg),obj}),proto.google.ads.googleads.v2.common.PercentCpc.deserializeBinary=function(bytes){var reader=new jspb.Bin