{"components":{"callbacks":{},"examples":{},"headers":{},"links":{},"parameters":{},"requestBodies":{},"responses":{},"schemas":{"DspAutoError":{"properties":{"errors":{"description":"A list of validation errors.","items":{"$ref":"#/components/schemas/DspSubErrorV1"},"maxItems":10,"minItems":0,"type":"array"},"index":{"description":"The index of the object in the array from the request body.","minimum":0,"type":"integer"}},"required":["errors","index"],"type":"object"},"DspAutoSuccess":{"properties":{"index":{"description":"The index of the object in the array from the request body.","minimum":0,"type":"integer"}},"required":["index"],"type":"object"},"DspBadRequestExceptionV1ResponseContent":{"properties":{"errors":{"items":{"$ref":"#/components/schemas/DspSubErrorV1"},"maxItems":100,"minItems":1,"type":"array"},"message":{"type":"string"},"requestId":{"type":"string"}},"type":"object"},"DspConflictExceptionV1ResponseContent":{"properties":{"errors":{"items":{"$ref":"#/components/schemas/DspSubErrorV1"},"maxItems":100,"minItems":1,"type":"array"},"message":{"type":"string"},"requestId":{"type":"string"}},"type":"object"},"DspCreateAdGroupAutoTargetV1":{"properties":{"matchType":{"$ref":"#/components/schemas/DspMatchTypeV1"}},"required":["matchType"],"type":"object"},"DspCreateAdGroupAutoTargetsRequestContentV1":{"properties":{"autoTargets":{"description":"A list of targets.","items":{"$ref":"#/components/schemas/DspCreateAdGroupAutoTargetV1"},"maxItems":1000,"minItems":1,"type":"array"}},"required":["autoTargets"],"type":"object"},"DspCreateAdGroupAutoTargetsResponseContentV1":{"description":"The create operation response.","properties":{"error":{"description":"The list of unsuccessful targeting objects","items":{"$ref":"#/components/schemas/DspAutoError"},"type":"array"},"success":{"description":"The list of successful targeting objects.","items":{"$ref":"#/components/schemas/DspAutoSuccess"},"type":"array"}},"type":"object"},"DspDeleteAdGroupAutoTargetV1":{"properties":{"matchType":{"$ref":"#/components/schemas/DspMatchTypeV1"}},"required":["matchType"],"type":"object"},"DspDeleteAdGroupAutoTargetsRequestContentV1":{"properties":{"autoTargets":{"description":"A list of targets.","items":{"$ref":"#/components/schemas/DspDeleteAdGroupAutoTargetV1"},"maxItems":1000,"minItems":1,"type":"array"}},"required":["autoTargets"],"type":"object"},"DspDeleteAdGroupAutoTargetsResponseContentV1":{"description":"The delete operation response.","properties":{"error":{"description":"The list of unsuccessful targeting objects","items":{"$ref":"#/components/schemas/DspAutoError"},"type":"array"},"success":{"description":"The list of successful targeting objects.","items":{"$ref":"#/components/schemas/DspAutoSuccess"},"type":"array"}},"type":"object"},"DspForbiddenExceptionV1ResponseContent":{"properties":{"errors":{"items":{"$ref":"#/components/schemas/DspSubErrorV1"},"maxItems":100,"minItems":1,"type":"array"},"message":{"type":"string"},"requestId":{"type":"string"}},"type":"object"},"DspGetAdGroupAutoTargetV1":{"properties":{"matchType":{"$ref":"#/components/schemas/DspMatchTypeV1"}},"required":["matchType"],"type":"object"},"DspGetAdGroupAutoTargetsResponseContent":{"properties":{"autoTargets":{"description":"A list of targets.","items":{"$ref":"#/components/schemas/DspGetAdGroupAutoTargetV1"},"maxItems":1000,"minItems":0,"type":"array"},"nextToken":{"description":"Operations that return paginated results include a pagination token in this field. To retrieve the next page of results, call the same operation and specify this token in the request. If the nextToken field is empty, there are no further results.","type":"string"}},"required":["autoTargets"],"type":"object"},"DspInternalServerExceptionV1ResponseContent":{"properties":{"errors":{"items":{"$ref":"#/components/schemas/DspSubErrorV1"},"maxItems":100,"minItems":1,"type":"array"},"message":{"type":"string"},"requestId":{"type":"string"}},"type":"object"},"DspMatchTypeV1":{"description":"The auto target match type.","enum":["ASIN_RELATED"],"type":"string"},"DspNotFoundExceptionV1ResponseContent":{"properties":{"errors":{"items":{"$ref":"#/components/schemas/DspSubErrorV1"},"maxItems":100,"minItems":1,"type":"array"},"message":{"type":"string"},"requestId":{"type":"string"}},"type":"object"},"DspSubErrorV1":{"properties":{"errorType":{"type":"string"},"fieldName":{"type":"string"},"message":{"type":"string"}},"required":["errorType","message"],"type":"object"},"DspTooManyRequestsExceptionV1ResponseContent":{"properties":{"errors":{"items":{"$ref":"#/components/schemas/DspSubErrorV1"},"maxItems":100,"minItems":1,"type":"array"},"message":{"type":"string"},"requestId":{"type":"string"}},"type":"object"},"DspUnauthorizedExceptionV1ResponseContent":{"properties":{"errors":{"items":{"$ref":"#/components/schemas/DspSubErrorV1"},"maxItems":100,"minItems":1,"type":"array"},"message":{"type":"string"},"requestId":{"type":"string"}},"type":"object"},"DspUnsupportedMediaTypeExceptionV1ResponseContent":{"properties":{"errors":{"items":{"$ref":"#/components/schemas/DspSubErrorV1"},"maxItems":100,"minItems":1,"type":"array"},"message":{"type":"string"},"requestId":{"type":"string"}},"type":"object"}},"securitySchemes":{}},"info":{"description":"These APIs are part of the Amazon DSP Campaign Management API closed beta and only accessible to closed beta participants at this time.                  Because these APIs are in closed beta, they don’t follow our normal versioning standards and are subject to change. If you are interested                  in joining the closed beta, please [submit a support ticket](https://amzn-clicks.atlassian.net/servicedesk/customer/portal/2/group/2/create/5)                  and we’ll follow up with additional information. \u003cbr\u003e\u003cbr\u003e                  Auto targeting enables you to target products related to the ASINs being advertised in your campaign. Related products are products viewed or purchased with your advertised products.                  They are dynamically refreshed throughout your campaign. Advertised products and their variants will automatically be negatively targeted.                  This feature requires use of a responsive ecommerce (REC) creative in order to determine your advertised products.","title":"Ad Group Targeting - Auto","version":"3.0"},"openapi":"3.0.1","paths":{"/dsp/adGroups/{adGroupId}/targetingTypes/auto/targets":{"get":{"description":"Gets a list of auto targets associated to an ad group.\n\n**Requires one of these permissions**:\n[]","operationId":"DspGetAdGroupAutoTargets","parameters":[{"description":"The ad group identifier.","in":"path","name":"adGroupId","required":true,"schema":{"description":"The ad group identifier.","type":"string"}},{"description":"Operations that return paginated results include a pagination token in this field. To retrieve the next page of results, call the same operation and specify this token in the request. If the nextToken field is empty, there are no further results.","in":"query","name":"nextToken","schema":{"description":"Operations that return paginated results include a pagination token in this field. To retrieve the next page of results, call the same operation and specify this token in the request. If the nextToken field is empty, there are no further results.","type":"string"}},{"description":"Sets the maximum number of objects in the returned array. Use in conjunction with the nextToken parameter to control pagination. For example, supplying maxResults\u003d20 with a previously returned token will fetch up to the next 20 items. In some cases, fewer items may be returned.","in":"query","name":"maxResults","schema":{"description":"Sets the maximum number of objects in the returned array. Use in conjunction with the nextToken parameter to control pagination. For example, supplying maxResults\u003d20 with a previously returned token will fetch up to the next 20 items. In some cases, fewer items may be returned.","type":"integer"}},{"description":"Account identifier you use to access the DSP. This is your Amazon DSP Advertiser ID.","in":"header","name":"Amazon-Ads-AccountId","required":true,"schema":{"description":"Account identifier you use to access the DSP. This is your Amazon DSP Advertiser ID.","type":"string"}},{"description":"The identifier of a client associated with a \"Login with Amazon\" account.","in":"header","name":"Amazon-Advertising-API-ClientId","required":true,"schema":{"description":"The identifier of a client associated with a \"Login with Amazon\" account.","type":"string"}},{"description":"The identifier of a profile associated with the advertiser account. Use GET method on Profiles resource to list profiles associated with the access token passed in the HTTP Authorization header.","in":"header","name":"Amazon-Advertising-API-Scope","required":true,"schema":{"description":"The identifier of a profile associated with the advertiser account. Use GET method on Profiles resource to list profiles associated with the access token passed in the HTTP Authorization header.","type":"string"}}],"responses":{"200":{"content":{"application/vnd.dspAdGroupAutoTargets.v1+json":{"schema":{"$ref":"#/components/schemas/DspGetAdGroupAutoTargetsResponseContent"}}},"description":"Successful operation."},"400":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/DspBadRequestExceptionV1ResponseContent"}}},"description":"Bad Request or request body is not matching with input model."},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/DspUnauthorizedExceptionV1ResponseContent"}}},"description":"Unauthenticated request."},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/DspForbiddenExceptionV1ResponseContent"}}},"description":"Forbidden - Request failed because user is not authorized to access a resource."},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/DspNotFoundExceptionV1ResponseContent"}}},"description":"Not Found - Requested resource does not exist or is not visible for the authenticated user."},"409":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/DspConflictExceptionV1ResponseContent"}}},"description":"DspConflictExceptionV1 409 response"},"415":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/DspUnsupportedMediaTypeExceptionV1ResponseContent"}}},"description":"Unsupported Media Type - Version not supported."},"429":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/DspTooManyRequestsExceptionV1ResponseContent"}}},"description":"Too Many Requests - Request was rate-limited. Retry later."},"500":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/DspInternalServerExceptionV1ResponseContent"}}},"description":"Internal Server Error."}},"tags":["Ad Group Auto Targets"]},"post":{"description":"Creates one or more auto targets.\n\nFind more details\n\nSee the Amazon DSP Support Center for more details. If you need access, please contact your Account Manager.\n\n**Requires one of these permissions**:\n[]","operationId":"DspCreateAdGroupAutoTargets","parameters":[{"description":"The ad group identifier.","in":"path","name":"adGroupId","required":true,"schema":{"description":"The ad group identifier.","type":"string"}},{"description":"Account identifier you use to access the DSP. This is your Amazon DSP Advertiser ID.","in":"header","name":"Amazon-Ads-AccountId","required":true,"schema":{"description":"Account identifier you use to access the DSP. This is your Amazon DSP Advertiser ID.","type":"string"}},{"description":"The identifier of a client associated with a \"Login with Amazon\" account.","in":"header","name":"Amazon-Advertising-API-ClientId","required":true,"schema":{"description":"The identifier of a client associated with a \"Login with Amazon\" account.","type":"string"}},{"description":"The identifier of a profile associated with the advertiser account. Use GET method on Profiles resource to list profiles associated with the access token passed in the HTTP Authorization header.","in":"header","name":"Amazon-Advertising-API-Scope","required":true,"schema":{"description":"The identifier of a profile associated with the advertiser account. Use GET method on Profiles resource to list profiles associated with the access token passed in the HTTP Authorization header.","type":"string"}}],"requestBody":{"content":{"application/vnd.dspAdGroupAutoTargets.v1+json":{"schema":{"$ref":"#/components/schemas/DspCreateAdGroupAutoTargetsRequestContentV1"}}},"required":true},"responses":{"204":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/DspCreateAdGroupAutoTargetsResponseContentV1"}}},"description":"Success with no body content."},"400":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/DspBadRequestExceptionV1ResponseContent"}}},"description":"Bad Request or request body is not matching with input model."},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/DspUnauthorizedExceptionV1ResponseContent"}}},"description":"Unauthenticated request."},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/DspForbiddenExceptionV1ResponseContent"}}},"description":"Forbidden - Request failed because user is not authorized to access a resource."},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/DspNotFoundExceptionV1ResponseContent"}}},"description":"Not Found - Requested resource does not exist or is not visible for the authenticated user."},"409":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/DspConflictExceptionV1ResponseContent"}}},"description":"DspConflictExceptionV1 409 response"},"415":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/DspUnsupportedMediaTypeExceptionV1ResponseContent"}}},"description":"Unsupported Media Type - Version not supported."},"429":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/DspTooManyRequestsExceptionV1ResponseContent"}}},"description":"Too Many Requests - Request was rate-limited. Retry later."},"500":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/DspInternalServerExceptionV1ResponseContent"}}},"description":"Internal Server Error."}},"tags":["Ad Group Auto Targets"]}},"/dsp/adGroups/{adGroupId}/targetingTypes/auto/targets/delete":{"post":{"description":"Removes one or more auto targets from an ad group.\n\nFind more details\n\nSee the Amazon DSP Support Center for more details. If you need access, please contact your Account Manager.\n\n**Requires one of these permissions**:\n[]","operationId":"DspDeleteAdGroupAutoTargets","parameters":[{"description":"The ad group identifier.","in":"path","name":"adGroupId","required":true,"schema":{"description":"The ad group identifier.","type":"string"}},{"description":"Account identifier you use to access the DSP. This is your Amazon DSP Advertiser ID.","in":"header","name":"Amazon-Ads-AccountId","required":true,"schema":{"description":"Account identifier you use to access the DSP. This is your Amazon DSP Advertiser ID.","type":"string"}},{"description":"The identifier of a client associated with a \"Login with Amazon\" account.","in":"header","name":"Amazon-Advertising-API-ClientId","required":true,"schema":{"description":"The identifier of a client associated with a \"Login with Amazon\" account.","type":"string"}},{"description":"The identifier of a profile associated with the advertiser account. Use GET method on Profiles resource to list profiles associated with the access token passed in the HTTP Authorization header.","in":"header","name":"Amazon-Advertising-API-Scope","required":true,"schema":{"description":"The identifier of a profile associated with the advertiser account. Use GET method on Profiles resource to list profiles associated with the access token passed in the HTTP Authorization header.","type":"string"}}],"requestBody":{"content":{"application/vnd.dspAdGroupAutoTargets.v1+json":{"schema":{"$ref":"#/components/schemas/DspDeleteAdGroupAutoTargetsRequestContentV1"}}},"required":true},"responses":{"204":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/DspDeleteAdGroupAutoTargetsResponseContentV1"}}},"description":"Success with no body content."},"400":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/DspBadRequestExceptionV1ResponseContent"}}},"description":"Bad Request or request body is not matching with input model."},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/DspUnauthorizedExceptionV1ResponseContent"}}},"description":"Unauthenticated request."},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/DspForbiddenExceptionV1ResponseContent"}}},"description":"Forbidden - Request failed because user is not authorized to access a resource."},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/DspNotFoundExceptionV1ResponseContent"}}},"description":"Not Found - Requested resource does not exist or is not visible for the authenticated user."},"409":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/DspConflictExceptionV1ResponseContent"}}},"description":"DspConflictExceptionV1 409 response"},"415":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/DspUnsupportedMediaTypeExceptionV1ResponseContent"}}},"description":"Unsupported Media Type - Version not supported."},"429":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/DspTooManyRequestsExceptionV1ResponseContent"}}},"description":"Too Many Requests - Request was rate-limited. Retry later."},"500":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/DspInternalServerExceptionV1ResponseContent"}}},"description":"Internal Server Error."}},"tags":["Ad Group Auto Targets"]}}}}