Esempio n. 1
0
        public override void WriteTo(XElement xE)
        {
            base.WriteTo(xE);
            XmlUtility.SetXsiType(xE, "https://adwords.google.com/api/adwords/cm/v201609", "TargetCpaBiddingScheme");
            XElement xItem = null;

            if (TargetCpa != null)
            {
                xItem = new XElement(XName.Get("targetCpa", "https://adwords.google.com/api/adwords/cm/v201609"));
                TargetCpa.WriteTo(xItem);
                xE.Add(xItem);
            }
            if (MaxCpcBidCeiling != null)
            {
                xItem = new XElement(XName.Get("maxCpcBidCeiling", "https://adwords.google.com/api/adwords/cm/v201609"));
                MaxCpcBidCeiling.WriteTo(xItem);
                xE.Add(xItem);
            }
            if (MaxCpcBidFloor != null)
            {
                xItem = new XElement(XName.Get("maxCpcBidFloor", "https://adwords.google.com/api/adwords/cm/v201609"));
                MaxCpcBidFloor.WriteTo(xItem);
                xE.Add(xItem);
            }
        }
        public override void WriteTo(XElement xE)
        {
            base.WriteTo(xE);
            XmlUtility.SetXsiType(xE, "https://adwords.google.com/api/adwords/cm/v201609", "TargetOutrankShareBiddingScheme");
            XElement xItem = null;

            if (TargetOutrankShare != null)
            {
                xItem = new XElement(XName.Get("targetOutrankShare", "https://adwords.google.com/api/adwords/cm/v201609"));
                xItem.Add(TargetOutrankShare.Value.ToString());
                xE.Add(xItem);
            }
            if (CompetitorDomain != null)
            {
                xItem = new XElement(XName.Get("competitorDomain", "https://adwords.google.com/api/adwords/cm/v201609"));
                xItem.Add(CompetitorDomain);
                xE.Add(xItem);
            }
            if (MaxCpcBidCeiling != null)
            {
                xItem = new XElement(XName.Get("maxCpcBidCeiling", "https://adwords.google.com/api/adwords/cm/v201609"));
                MaxCpcBidCeiling.WriteTo(xItem);
                xE.Add(xItem);
            }
            if (BidChangesForRaisesOnly != null)
            {
                xItem = new XElement(XName.Get("bidChangesForRaisesOnly", "https://adwords.google.com/api/adwords/cm/v201609"));
                xItem.Add(BidChangesForRaisesOnly.Value.ToString());
                xE.Add(xItem);
            }
            if (RaiseBidWhenLowQualityScore != null)
            {
                xItem = new XElement(XName.Get("raiseBidWhenLowQualityScore", "https://adwords.google.com/api/adwords/cm/v201609"));
                xItem.Add(RaiseBidWhenLowQualityScore.Value.ToString());
                xE.Add(xItem);
            }
        }