<?xml version="1.0" encoding="utf-8"?>
<OrderGroup requestType="standard">
  <ReferenceOrderID>DMDS Advanced Order Group 001</ReferenceOrderID>
  <!-- This order group contains two orders which are handled independently but contained in the same order group for reference.
  Each order can have different metadata (such as PriorityType, PONumber, etc), videos, and/or destinations.
  It is possible that one order may get published immediately while the other only is saved as a draft, for example,
  if one of the videos is still awaiting ingest -->
  <Orders>
    <Order requestType="standard">
      <!-- Set this to true in order to still attempt to publish the order even if warning(s) occurred -->
      <PublishOrderOnWarning>true</PublishOrderOnWarning>
      <!-- Set this to true in order to still attempt to save the order in draft status even if error(s) occurred -->
      <SaveOrderAsDraftOnError>true</SaveOrderAsDraftOnError>
      <!-- Set this to true in order to throw an error (preventing a save operation) if any warnings occur -->
      <ThrowErrorOnWarning>false</ThrowErrorOnWarning>
      <!-- Set this to false in order to prevent an order with missing assets from publishing automatically once all assets become available -->
      <PublishWhenAvailable>true</PublishWhenAvailable>
      <PriorityType>Standard</PriorityType>
      <OrderName>DMDS Advanced Order From Group 001</OrderName>
      <!-- Set this to a future date to delay delivery or omit to default to current date. Date specified is Eastern Time. -->
      <DeliveryDate>2014-01-01T14:00:00</DeliveryDate>
      <Advertiser>Yangaroo Advertising</Advertiser>
      <Brand>DMDS</Brand>
      <ContactName>Jim Smith</ContactName>
      <ContactEmail>jsmith@testcompany.com</ContactEmail>
      <ContactPhone>999-999-9999</ContactPhone>
      <Description>Any details of the order can be entered here</Description>
      <EstimateNumber>EST001</EstimateNumber>
      <Product>DMDS Deliver</Product>
      <PONumber>REF001</PONumber>
      <JobNumber>JN-001</JobNumber>
      <Publisher>Yangaroo Publishing</Publisher>
      <Website>www.dmds.com</Website>
      <!-- Logos are optional and are used to display advertiser/brand images to the destination in DMDS and the notification they receive.
      Logos must be uploaded in DMDS and are matched based on the name specified. There is currently no support for logos to be created via the API. -->
      <Logos>
        <Logo>
          <Name>DMDS</Name>
        </Logo>
        <Logo>
          <Name>Yangaroo</Name>
        </Logo>
      </Logos>
      <Videos>
        <AdVideo>
          <!-- If the video already exists in DMDS, just specify the ADID (or VideoID from DMDS) -->
          <ADID>ADID000001</ADID>
        </AdVideo>
        <AdVideo>
          <!-- Alternatively full video metadata can be specified. If the video does not yet exist a placeholder will be created -->
          <ADID>ADID000001H</ADID>
          <Brand>DMDS</Brand>
          <Title>YANGAROO PROMO HD</Title>
          <Duration>15</Duration>
          <VideoFormat>NTSC HD</VideoFormat>
          <AFD>Letterbox</AFD>
          <AudioConfig>5.1</AudioConfig>
          <ClosedCaption>Yes</ClosedCaption>
          <FrameRate>29.97</FrameRate>
          <SOM>00:00:07:00</SOM>
          <LOM>00:00:15:00</LOM>
        </AdVideo>
      </Videos>
      <Destinations>
        <Organization>
          <!-- Specify the OrganizationID -->
          <!-- Yangaroo Station: 1235769 5446 Cox Media South Zone, CA -->
          <OrganizationID>1235769</OrganizationID>
        </Organization>
        <Organization>
          <!-- Alternatively, you could match on the OrganizationName from DMDS, or your own custom organization ID/name -->
          <!-- Yangaroo Station: 1235773 5493 Cox Media Garnett, KS -->
          <OrganizationName>5493 Cox Media Garnett, KS</OrganizationName>
        </Organization>
      </Destinations>
      <ProductionServices>
        <ProductionService>
          <!-- Note that the ServiceID is the type of service while the "ProducitonService" is an instance of a request for that service -->
          <ServiceID>1</ServiceID>
          <!-- The AD-ID of the asset for the production service to be applied to.
      If the asset is not yet ingested then no action will be taken on the asset has been uploaded.
      No pending orders containing this asset will be sent until production services have been applied. -->
          <ADID>ADID000001H</ADID>
        </ProductionService>
        <ProductionService>
          <ServiceID>2</ServiceID>
          <ADID>ADID000001H</ADID>
        </ProductionService>
        <ProductionService>
          <ServiceID>1</ServiceID>
          <ADID>ADID000001</ADID>
        </ProductionService>
      </ProductionServices>
    </Order>
    <Order requestType="standard">
      <!-- Set this to true in order to still attempt to publish the order even if warning(s) occurred -->
      <PublishOrderOnWarning>true</PublishOrderOnWarning>
      <!-- Set this to true in order to still attempt to save the order in draft status even if error(s) occurred -->
      <SaveOrderAsDraftOnError>true</SaveOrderAsDraftOnError>
      <!-- Set this to true in order to throw an error (preventing a save operation) if any warnings occur -->
      <ThrowErrorOnWarning>false</ThrowErrorOnWarning>
      <PriorityType>LateNight</PriorityType>
      <OrderName>DMDS Advanced Order From Group 002</OrderName>
      <Advertiser>Yangaroo Advertising</Advertiser>
      <Brand>DMDS</Brand>
      <ContactName>Jim Smith</ContactName>
      <ContactEmail>jsmith@testcompany.com</ContactEmail>
      <ContactPhone>999-999-9999</ContactPhone>
      <Description>Any details of the order can be entered here</Description>
      <EstimateNumber>EST001</EstimateNumber>
      <Product>DMDS Deliver</Product>
      <PONumber>REF001</PONumber>
      <JobNumber>JN-001</JobNumber>
      <Publisher>Yangaroo Publishing</Publisher>
      <Website>www.dmds.com</Website>
      <!-- Logos are optional and are used to display advertiser/brand images to the destination in DMDS and the notification they receive.
      Logos must be uploaded in DMDS and are matched based on the name specified. There is currently no support for logos to be created via the API. -->
      <Logos>
        <Logo>
          <Name>Yangaroo</Name>
        </Logo>
      </Logos>
      <Videos>
        <AdVideo>
          <!-- If the video already exists in DMDS, just specify the ADID (or VideoID from DMDS) -->
          <ADID>ADID000002</ADID>
        </AdVideo>
        <AdVideo>
          <!-- Alternatively full video metadata can be specified. If the video does not yet exist a placeholder will be created -->
          <ADID>ADID000002H</ADID>
          <Brand>DMDS</Brand>
          <Title>YANGAROO PROMO HD</Title>
          <Duration>15</Duration>
          <VideoFormat>NTSC HD</VideoFormat>
          <AFD>Center Cut</AFD>
          <AudioConfig>5.1</AudioConfig>
          <ClosedCaption>Yes</ClosedCaption>
          <FrameRate>29.97</FrameRate>
          <SOM>00:00:07:00</SOM>
          <LOM>00:00:15:00</LOM>
        </AdVideo>
      </Videos>
      <Destinations>
        <Organization>
          <!-- Yangaroo Station: 178121 KSAW-TV -->
          <OrganizationID>178121</OrganizationID>
        </Organization>
        <Organization>
          <!-- Yangaroo Station: 178127 KSCI-TV -->
          <OrganizationID>178127</OrganizationID>
          <!-- Optional. -->
          <TrafficDocumentName>Unique Document Name 1</TrafficDocumentName>
        </Organization>
      </Destinations>
      <ProductionServices>
        <ProductionService>
          <!-- Note that the ServiceID is the type of service while the "ProducitonService" is an instance of a request for that service -->
          <ServiceID>1</ServiceID>
          <!-- The AD-ID of the asset for the production service to be applied to.
      If the asset is not yet ingested then no action will be taken on the asset has been uploaded.
      No pending orders containing this asset will be sent until production services have been applied. -->
          <ADID>ADID000002H</ADID>
        </ProductionService>
        <ProductionService>
          <ServiceID>3</ServiceID>
          <ADID>ADID000002H</ADID>
        </ProductionService>
        <ProductionService>
          <ServiceID>3</ServiceID>
          <ADID>ADID000002</ADID>
        </ProductionService>
      </ProductionServices>
    </Order>
  </Orders>
  <!-- Optional. -->
  <TrafficDocuments>
    <TrafficDocument>
      <TrafficDocumentName>Unique Document Name 1</TrafficDocumentName>
      <DocumentType>DOCX</DocumentType>
      <Document>
        TWFuIGlzIGRpc3Rpbmd1aXNoZWQsIG5vdCBvbmx5IGJ5IGhpcyByZWFzb24sIGJ1dCBieSB0aGlz
        IHNpbmd1bGFyIHBhc3Npb24gZnJvbSBvdGhlciBhbmltYWxzLCB3aGljaCBpcyBhIGx1c3Qgb2Yg
        dGhlIG1pbmQsIHRoYXQgYnkgYSBwZXJzZXZlcmFuY2Ugb2YgZGVsaWdodCBpbiB0aGUgY29udGlu
        dWVkIGFuZCBpbmRlZmF0aWdhYmxlIGdlbmVyYXRpb24gb2Yga25vd2xlZGdlLCBleGNlZWRzIHRo
        ZSBzaG9ydCB2ZWhlbWVuY2Ugb2YgYW55IGNhcm5hbCBwbGVhc3VyZS4=
      </Document>
    </TrafficDocument>
  </TrafficDocuments>
</OrderGroup>