{"components":{"callbacks":{},"examples":{},"headers":{},"links":{},"parameters":{"ClientIdHeader":{"description":"The identifier of a client associated with a \u0027Login with Amazon\u0027 account.","in":"header","name":"Amazon-Ads-ClientId","required":true,"schema":{"type":"string"}}},"requestBodies":{},"responses":{},"schemas":{"BadGatewayResponseContent":{"properties":{"code":{"type":"string"},"message":{"type":"string"}},"required":["code","message"],"type":"object"},"BadRequestResponseContent":{"properties":{"code":{"$ref":"#/components/schemas/ErrorCode"},"message":{"type":"string"}},"required":["code","message"],"type":"object"},"ContentTooLargeResponseContent":{"properties":{"code":{"$ref":"#/components/schemas/ErrorCode"},"message":{"type":"string"}},"required":["code","message"],"type":"object"},"DayOfWeek":{"description":"**DayOfWeek Enum:**\n| DayOfWeek | Description |\n| --- | --- |\n| `MONDAY` | Monday. |\n| `TUESDAY` | Tuesday. |\n| `WEDNESDAY` | Wednesday. |\n| `THURSDAY` | Thursday. |\n| `FRIDAY` | Friday. |\n| `SATURDAY` | Saturday. |\n| `SUNDAY` | Sunday. |","enum":["FRIDAY","MONDAY","SATURDAY","SUNDAY","THURSDAY","TUESDAY","WEDNESDAY"],"type":"string"},"ErrorCode":{"description":"**ErrorCode Enum:**\n| ErrorCode | Description |\n| --- | --- |\n| `INTERNAL_ERROR` | The server encountered an unexpected condition that prevented it from fulfilling the request. |\n| `UNAUTHORIZED` | The request lacks the necessary credentials. |\n| `FORBIDDEN` | The caller is not authorized to make the given request. |\n| `TOO_MANY_REQUESTS` | There have been too many requests, please slow down your call rate. |\n| `NOT_FOUND` | The requested resource does not exist. |\n| `BAD_REQUEST` | The request is not valid considering the documented schema. |","enum":["BAD_REQUEST","FORBIDDEN","INTERNAL_ERROR","NOT_FOUND","TOO_MANY_REQUESTS","UNAUTHORIZED"],"type":"string"},"ForbiddenResponseContent":{"properties":{"code":{"$ref":"#/components/schemas/ErrorCode"},"message":{"type":"string"}},"required":["code","message"],"type":"object"},"GatewayTimeoutResponseContent":{"properties":{"code":{"type":"string"},"message":{"type":"string"}},"required":["code","message"],"type":"object"},"InternalServerErrorResponseContent":{"properties":{"code":{"type":"string"},"message":{"type":"string"}},"required":["code","message"],"type":"object"},"LinearTvDaypart":{"properties":{"daypartType":{"$ref":"#/components/schemas/LinearTvDaypartType"},"description":{"description":"Description of the daypart.","type":"string"},"linearTvDaypartId":{"description":"A unique identifier for a daypart.","type":"string"},"marketplaceDefinitions":{"description":"Definition of the daypart by marketplace.","items":{"$ref":"#/components/schemas/LinearTvDaypartMarketplaceDefinition"},"maxItems":30,"minItems":1,"type":"array"},"name":{"$ref":"#/components/schemas/LinearTvDaypartName"}},"required":["daypartType","linearTvDaypartId","marketplaceDefinitions","name"],"type":"object"},"LinearTvDaypartLinearTvDaypartNameFilter":{"properties":{"include":{"description":"**Name Enum:**\n| Name | Description |\n| --- | --- |\n| `EARLY_FRINGE` | The time period in the early evening, typically from 4:30 PM to 7:30 PM, leading into prime time. This daypart often features local news, syndicated programming, and game shows. |\n| `LATE_FRINGE` | The time period following late night, typically from 11:30 PM to 2:00 AM. This daypart often features late-night talk shows, reruns, and infomercials. |\n| `PRIME_TIME` | The peak television viewing period, typically from 8:00 PM to 11:00 PM (7:00 PM to 10:00 PM in Central/Mountain time zones). This daypart features networks\u0027 highest-budget programming and commands the highest advertising rates. |\n| `WEEKEND_DAYTIME` | The daytime hours on Saturday and Sunday, typically from 9:00 AM to 5:00 PM. This daypart often features sports programming, children\u0027s shows, and special interest content. |\n| `WEEKDAY_DAYTIME` | The daytime hours on Monday through Friday, typically from 9:00 AM to 4:30 PM. This daypart often features talk shows, soap operas, court shows, and news programming. |\n| `WEEKDAY_MORNING` | The early morning hours on Monday through Friday, typically from 5:00 AM to 9:00 AM. This daypart features morning news programs, breakfast shows, and programming aimed at viewers preparing for their day. |\n| `ALL_DAY` | A 24-hour daypart spanning the entire day, used for campaigns that run across all time periods without specific daypart targeting. |","items":{"$ref":"#/components/schemas/LinearTvDaypartName"},"maxItems":20,"minItems":1,"type":"array"}},"required":["include"],"type":"object"},"LinearTvDaypartMarketplaceDefinition":{"properties":{"endDayOfWeek":{"$ref":"#/components/schemas/DayOfWeek"},"endHourOfDay":{"description":"Hour of the end time (local time zone) targeted by the daypart.","format":"int32","maximum":23,"minimum":0,"type":"integer"},"endMinuteOfDay":{"description":"Minute of the end time (local time zone) targeted by the daypart.","format":"int32","maximum":59,"minimum":0,"type":"integer"},"marketplace":{"$ref":"#/components/schemas/Marketplace"},"startDayOfWeek":{"$ref":"#/components/schemas/DayOfWeek"},"startHourOfDay":{"description":"Hour of the start time (local time zone) targeted by the daypart.","format":"int32","maximum":23,"minimum":0,"type":"integer"},"startMinuteOfDay":{"description":"Minute of the start time (local time zone) targeted by the daypart.","format":"int32","maximum":59,"minimum":0,"type":"integer"}},"required":["endDayOfWeek","endHourOfDay","endMinuteOfDay","marketplace","startDayOfWeek","startHourOfDay","startMinuteOfDay"],"type":"object"},"LinearTvDaypartMarketplaceFilter":{"properties":{"include":{"items":{"$ref":"#/components/schemas/Marketplace"},"maxItems":1,"minItems":1,"type":"array"}},"required":["include"],"type":"object"},"LinearTvDaypartName":{"description":"**LinearTvDaypartName Enum:**\n| LinearTvDaypartName | Description |\n| --- | --- |\n| `EARLY_FRINGE` | The time period in the early evening, typically from 4:30 PM to 7:30 PM, leading into prime time. This daypart often features local news, syndicated programming, and game shows. |\n| `LATE_FRINGE` | The time period following late night, typically from 11:30 PM to 2:00 AM. This daypart often features late-night talk shows, reruns, and infomercials. |\n| `PRIME_TIME` | The peak television viewing period, typically from 8:00 PM to 11:00 PM (7:00 PM to 10:00 PM in Central/Mountain time zones). This daypart features networks\u0027 highest-budget programming and commands the highest advertising rates. |\n| `WEEKEND_DAYTIME` | The daytime hours on Saturday and Sunday, typically from 9:00 AM to 5:00 PM. This daypart often features sports programming, children\u0027s shows, and special interest content. |\n| `WEEKDAY_DAYTIME` | The daytime hours on Monday through Friday, typically from 9:00 AM to 4:30 PM. This daypart often features talk shows, soap operas, court shows, and news programming. |\n| `WEEKDAY_MORNING` | The early morning hours on Monday through Friday, typically from 5:00 AM to 9:00 AM. This daypart features morning news programs, breakfast shows, and programming aimed at viewers preparing for their day. |\n| `ALL_DAY` | A 24-hour daypart spanning the entire day, used for campaigns that run across all time periods without specific daypart targeting. |","enum":["ALL_DAY","EARLY_FRINGE","LATE_FRINGE","PRIME_TIME","WEEKDAY_DAYTIME","WEEKDAY_MORNING","WEEKEND_DAYTIME"],"type":"string"},"LinearTvDaypartSuccessResponse":{"properties":{"linearTvDayparts":{"items":{"$ref":"#/components/schemas/LinearTvDaypart"},"maxItems":20,"minItems":0,"type":"array"},"nextToken":{"type":"string"}},"type":"object"},"LinearTvDaypartType":{"description":"**LinearTvDaypartType Enum:**\n| LinearTvDaypartType | Description |\n| --- | --- |\n| `STANDARD` | Industry-standard Linear TV daypart |","enum":["STANDARD"],"type":"string"},"Marketplace":{"description":"A list of country codes representing Amazon marketplaces","enum":["AE","AU","BR","CA","DE","ES","FR","GB","IN","IT","JP","MX","NL","SA","SE","TR","US"],"type":"string"},"NotFoundResponseContent":{"properties":{"code":{"$ref":"#/components/schemas/ErrorCode"},"message":{"type":"string"}},"required":["code","message"],"type":"object"},"QueryLinearTvDaypartRequest":{"properties":{"marketplaceFilter":{"$ref":"#/components/schemas/LinearTvDaypartMarketplaceFilter"},"maxResults":{"default":20,"format":"int32","maximum":20,"minimum":0,"type":"integer"},"nameFilter":{"$ref":"#/components/schemas/LinearTvDaypartLinearTvDaypartNameFilter"},"nextToken":{"type":"string"}},"type":"object"},"ServiceUnavailableErrorResponseContent":{"properties":{"code":{"type":"string"},"message":{"type":"string"}},"required":["code","message"],"type":"object"},"TooManyRequestsResponseContent":{"properties":{"code":{"$ref":"#/components/schemas/ErrorCode"},"message":{"type":"string"}},"required":["code","message"],"type":"object"},"UnauthorizedResponseContent":{"properties":{"code":{"$ref":"#/components/schemas/ErrorCode"},"message":{"type":"string"}},"required":["code","message"],"type":"object"}},"securitySchemes":{"OAuth2":{"flows":{"authorizationCode":{"authorizationUrl":"https://www.amazon.com/ap/oa","scopes":{"advertising::audiences":"Grants access to data provider APIs","advertising::campaign_management":"Grants write access to campaign management.","advertising::test:create_account":"Grants write access to create test accounts functionality","cpc_advertising:campaign_management":"Grants write access to campaign management. Legacy name (no difference from advertising::campaign_management)"},"tokenUrl":"https://api.amazon.com/auth/o2/token"}},"type":"oauth2"}}},"info":{"description":"Amazon Ads API v1 is a reimagined approach to our Ads API, built to provide a seamless experience across all Amazon advertising products through a common model. [Learn more about Ads API v1.](https://advertising.amazon.com/API/docs/en-us/reference/amazon-ads/overview) To learn about prerequisites and header values, see [Getting started with Amazon Ads API v1](https://advertising.amazon.com/API/docs/en-us/reference/amazon-ads/getting-started).\n\n**Download Amazon Ads API V1 OpenAPI Spec** ([All Products](https://d1y2lf8k3vrkfu.cloudfront.net/openapi/en-us/dest/AmazonAdsAPIALLMerged_prod_3p_ALL.json) | [SP](https://d1y2lf8k3vrkfu.cloudfront.net/openapi/en-us/dest/AmazonAdsAPISPMerged_prod_3p_ALL.json) | [SP Global](https://d1y2lf8k3vrkfu.cloudfront.net/openapi/en-us/dest/AmazonAdsAPISPGLOBALMerged_prod_3p_ALL.json) | [SB](https://d1y2lf8k3vrkfu.cloudfront.net/openapi/en-us/dest/AmazonAdsAPISBMerged_prod_3p_ALL.json) | [DSP](https://d1y2lf8k3vrkfu.cloudfront.net/openapi/en-us/dest/AmazonAdsAPIDSPMerged_prod_3p_ALL.json) | [ST](https://d1y2lf8k3vrkfu.cloudfront.net/openapi/en-us/dest/AmazonAdsAPISTMerged_prod_3p_ALL.json) | [SD](https://d1y2lf8k3vrkfu.cloudfront.net/openapi/en-us/dest/AmazonAdsAPISDMerged_prod_3p_ALL.json))","title":"LinearTvDayparts API","version":"3.0"},"openapi":"3.0.1","paths":{"/adsApi/v1/query/linearTvDayparts":{"post":{"description":"List all supported Linear TV Daypart\n\n**Requires one of these permissions**:\n[]","operationId":"QueryLinearTvDaypart","parameters":[{"$ref":"#/components/parameters/ClientIdHeader"}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/QueryLinearTvDaypartRequest"}}}},"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/LinearTvDaypartSuccessResponse"}}},"description":"QueryLinearTvDaypart 200 response"},"400":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/BadRequestResponseContent"}}},"description":"BadRequest 400 response"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/UnauthorizedResponseContent"}}},"description":"Unauthorized 401 response"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ForbiddenResponseContent"}}},"description":"Forbidden 403 response"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/NotFoundResponseContent"}}},"description":"NotFound 404 response"},"413":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ContentTooLargeResponseContent"}}},"description":"ContentTooLarge 413 response"},"429":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/TooManyRequestsResponseContent"}}},"description":"TooManyRequests 429 response"},"500":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/InternalServerErrorResponseContent"}}},"description":"InternalServerError 500 response"},"502":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/BadGatewayResponseContent"}}},"description":"BadGateway 502 response"},"503":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ServiceUnavailableErrorResponseContent"}}},"description":"ServiceUnavailableError 503 response"},"504":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/GatewayTimeoutResponseContent"}}},"description":"GatewayTimeout 504 response"}},"security":[{"OAuth2":["advertising::campaign_management"]}],"tags":["LinearTvDayparts"]}}},"servers":[{"description":"Production server for NA","url":"https://advertising-api.amazon.com"},{"description":"Production server for EU","url":"https://advertising-api-eu.amazon.com"},{"description":"Production server for FE","url":"https://advertising-api-fe.amazon.com"}]}