Export (0) Print
Expand All

HoursOfOperation Data Object

Defines the hours of operation of a business.

Elements

Business Rules

<xs:complexType name="HoursOfOperation">
  <xs:sequence>
    <xs:element minOccurs="0" name="Day" type="tns:Day" />
    <xs:element minOccurs="0" name="openTime1" nillable="true" type="tns:DayTimeInterval" />
    <xs:element minOccurs="0" name="openTime2" nillable="true" type="tns:DayTimeInterval" />
  </xs:sequence>
</xs:complexType>

Elements

Element

Description

Data Type

Rules

Day

The day of the week that these hours apply to.

Day

None

openTime1

The first block of time that the business is open.

DayTimeInterval

Open Time Elements

openTime2

The second block of time that the business is open.

DayTimeInterval

Open Time Elements

Business Rules

Open Time Elements

The openTime1 and openTime2 elements can be used to specify multiple blocks of time that a business is open. For example, if a business is open from 8:00 A.M. to 5:00 P.M. but is closed from 12:00 P.M. (noon) to 1:00 P.M., openTime1 would contain 8:00 A.M. to 12:00 P.M. (noon) and openTime2 would contain 1:00 P.M. to 5:00 P.M. If a business is open for only one block of time during a day, set the openTime2 element to null.

The openTime1 and openTime2 elements cannot overlap.

An array of objects of this type is used for the HrsOfOperation element of the Business data object.

Requirements

CampaignManagementService.svc v8

Namespace: https://adcenter.microsoft.com/v8

See Also

Reference

Business Data Object

Community Additions

Show:
© 2014 Microsoft