<?xml version="1.0" encoding="utf-8"?>
<OrderGroup requestType="radio">
  <ReferenceOrderID>DMDS Advanced Radio 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), audios, 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 audios is still awaiting ingest -->
  <Orders>
    <Order requestType="radio">
      <!-- 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>
      <Audios>
        <AdAudio>
          <!-- If the audio already exists in DMDS, just specify the ADID (or AudioID from DMDS) -->
          <ADID>ADID000001</ADID>
        </AdAudio>
        <AdAudio>
          <!-- Alternatively additional metadata can be specified. If the audio media does not yet exist a placeholder will be created -->
          <ADID>ADID000002</ADID>
          <Brand>DMDS</Brand>
          <Title>YANGAROO PROMO</Title>
        </AdAudio>
      </Audios>
      <Destinations>
        <Organization>
          <!-- Specify the OrganizationID -->
          <!-- Yangaroo Station: 79919 CKOO-FM -->
          <OrganizationID>79919</OrganizationID>
        </Organization>
        <Organization>
          <!-- Alternatively, you could match on the OrganizationName from DMDS, or your own custom organization ID/name -->
          <!-- Yangaroo Station: 1235773 CKOO-FM -->
          <OrganizationName>CKOO-FM</OrganizationName>
        </Organization>
      </Destinations>
    </Order>
    <Order requestType="radio">
      <!-- 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 Radio 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>
      <Audios>
        <AdAudio>
          <!-- If the audio already exists in DMDS, just specify the ADID (or AudioID from DMDS) -->
          <ADID>ADID000003</ADID>
        </AdAudio>
        <AdAudio>
          <!-- Alternatively additional metadata can be specified. If the audio media does not yet exist a placeholder will be created -->
          <ADID>ADID000004</ADID>
          <Brand>DMDS</Brand>
          <Title>YANGAROO PROMO</Title>
        </AdAudio>
      </Audios>
      <Destinations>
        <Organization>
          <!-- Yangaroo Station: 70443 CFJB-FM -->
          <OrganizationID>70443</OrganizationID>
        </Organization>
        <Organization>
          <!-- Yangaroo Station: 70462 CJAY-FM -->
          <OrganizationID>70462</OrganizationID>
        </Organization>
      </Destinations>
    </Order>
  </Orders>
</OrderGroup>