{"components":{"callbacks":{},"examples":{},"headers":{},"links":{},"parameters":{"AccountIdHeaderOptional":{"description":"The identifier of an Amazon Ads Advertiser Account.","in":"header","name":"Amazon-Ads-AccountId","schema":{"type":"string"}},"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"}},"ManagerAccountIdHeaderOptional":{"description":"The identifier of an Amazon Ads Manager Account.","in":"header","name":"Amazon-Ads-Manager-AccountId","schema":{"type":"string"}},"ScopeHeaderOptional":{"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 and choose profile id profileId from the response to pass it as input.","in":"header","name":"Amazon-Advertising-API-Scope","schema":{"type":"string"}}},"requestBodies":{},"responses":{},"schemas":{"AccountLink":{"properties":{"accountId":{"description":"The destination accountId to which the link is established","type":"string"},"accountLinkId":{"description":"The unique identifier for the account link.","type":"string"},"accountName":{"description":"The name of destination account","type":"string"},"accountType":{"$ref":"#/components/schemas/AccountType"},"adProductGroups":{"description":"The group of ad products (SPONSORED_ADS or ADSP) that the destination account is enrolled in.","items":{"$ref":"#/components/schemas/AdProductGroup"},"maxItems":2,"minItems":0,"type":"array"},"alternateIds":{"description":"The list of additional identifiers associated with advertising account.","items":{"$ref":"#/components/schemas/AlternateIdentifier"},"maxItems":50,"minItems":0,"type":"array"},"countryCode":{"description":"The countries where the account link is set and valid.","items":{"$ref":"#/components/schemas/CountryCode"},"maxItems":50,"minItems":0,"type":"array"},"permissionSet":{"$ref":"#/components/schemas/PermissionSet"},"relationshipType":{"$ref":"#/components/schemas/RelationshipType"}},"required":["accountId","accountLinkId","accountName","accountType","relationshipType"],"type":"object"},"AccountLinkAccountIdFilter":{"properties":{"include":{"items":{"type":"string"},"maxItems":100,"minItems":1,"type":"array"}},"required":["include"],"type":"object"},"AccountLinkAccountNameFilter":{"properties":{"include":{"items":{"type":"string"},"maxItems":1,"minItems":1,"type":"array"}},"required":["include"],"type":"object"},"AccountLinkAccountTypeFilter":{"properties":{"include":{"items":{"$ref":"#/components/schemas/AccountType"},"maxItems":2,"minItems":1,"type":"array"}},"required":["include"],"type":"object"},"AccountLinkAdProductGroupFilter":{"properties":{"include":{"description":"**AdProductGroups Enum:**\n| AdProductGroups | Description |\n| --- | --- |\n| `SPONSORED_ADS` | Include adProducts: SPONSORED_PRODUCTS, SPONSORED_BRANDS, SPONSORED_DISPLAY |\n| `ADSP` | Include adProducts: ADSP |","items":{"$ref":"#/components/schemas/AdProductGroup"},"maxItems":2,"minItems":1,"type":"array"}},"required":["include"],"type":"object"},"AccountLinkMultiStatusResponse":{"properties":{"error":{"items":{"$ref":"#/components/schemas/ErrorsIndex"},"maxItems":50,"minItems":0,"type":"array"},"success":{"items":{"$ref":"#/components/schemas/AccountLinkMultiStatusSuccess"},"maxItems":50,"minItems":0,"type":"array"}},"type":"object"},"AccountLinkMultiStatusSuccess":{"properties":{"accountLink":{"$ref":"#/components/schemas/AccountLink"},"index":{"format":"int32","maximum":49,"minimum":0,"type":"integer"}},"required":["accountLink","index"],"type":"object"},"AccountLinkPermissionNameFilter":{"properties":{"include":{"items":{"$ref":"#/components/schemas/PermissionName"},"maxItems":100,"minItems":1,"type":"array"}},"required":["include"],"type":"object"},"AccountLinkRelationshipTypeFilter":{"properties":{"include":{"description":"**RelationshipType Enum:**\n| RelationshipType | Description |\n| --- | --- |\n| `PARENT` | Parent Accounts linked to an Advertiser/Manager Account |\n| `CHILD` | Child Accounts linked to a Manager Account |","items":{"$ref":"#/components/schemas/RelationshipType"},"maxItems":1,"minItems":1,"type":"array"}},"required":["include"],"type":"object"},"AccountLinkRoleTypeFilter":{"properties":{"include":{"description":"**RoleName Enum:**\n| RoleName | Description |\n| --- | --- |\n| `ADMIN` |  |\n| `EDITOR` |  |\n| `VIEWER` |  |\n| `CUSTOM` | Custom role with a user-defined set of permissions. |","items":{"$ref":"#/components/schemas/RoleType"},"maxItems":3,"minItems":1,"type":"array"}},"required":["include"],"type":"object"},"AccountLinkSortOption":{"properties":{"by":{"$ref":"#/components/schemas/AccountLinkSortOptionsFields"},"direction":{"$ref":"#/components/schemas/SortDirection"}},"required":["by"],"type":"object"},"AccountLinkSortOptionsFields":{"description":"Specify which field to order by.\n| Field Name | Supported Ordering |\n| --- | --- |\n| accountName | ASCENDING,DESCENDING |","enum":["accountName"],"type":"string"},"AccountLinkSuccessResponse":{"properties":{"accountLinks":{"items":{"$ref":"#/components/schemas/AccountLink"},"maxItems":100,"minItems":0,"type":"array"},"nextToken":{"type":"string"}},"type":"object"},"AccountLinkUpdate":{"properties":{"accountLinkId":{"description":"The unique identifier for the account link.","type":"string"},"countryCode":{"description":"The countries where the account link is set and valid.","items":{"$ref":"#/components/schemas/CountryCode"},"maxItems":50,"minItems":0,"type":"array"},"permissionSet":{"$ref":"#/components/schemas/UpdatePermissionSet"}},"required":["accountLinkId"],"type":"object"},"AccountType":{"enum":["ADVERTISER_ACCOUNT","MANAGER_ACCOUNT"],"type":"string"},"AdProductGroup":{"description":"A group of adProducts\n**AdProductGroup Enum:**\n\n| AdProductGroup | Description |\n|------|------|\n| `ADSP` | Include adProducts: ADSP |\n| `SPONSORED_ADS` | Include adProducts: SPONSORED_PRODUCTS, SPONSORED_BRANDS, SPONSORED_DISPLAY |\n","enum":["ADSP","SPONSORED_ADS"],"type":"string"},"AlternateIdentifier":{"description":"Marketplace identifiers associated with advertising account, including profile ID, dsp advertiser ID and entity ID","properties":{"countryCode":{"$ref":"#/components/schemas/CountryCode"},"dspAdvertiserId":{"description":"The regional ADSP advertiser identifier of the advertising account.","type":"string"},"entityId":{"description":"The marketplace entity identifier of the advertising account.","type":"string"},"profileId":{"description":"The marketplace profile identifier of the advertising account.","type":"string"},"region":{"$ref":"#/components/schemas/RegionCode"}},"type":"object"},"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"},"CountryCode":{"enum":["AD","AE","AF","AG","AI","AL","AM","AO","AQ","AR","AS","AT","AU","AW","AX","AZ","BA","BB","BD","BE","BF","BG","BH","BI","BJ","BL","BM","BN","BO","BQ","BR","BS","BT","BV","BW","BY","BZ","CA","CC","CD","CF","CG","CH","CI","CK","CL","CM","CN","CO","CR","CU","CV","CW","CX","CY","CZ","DE","DJ","DK","DM","DO","DZ","EC","EE","EG","EH","ER","ES","ET","FI","FJ","FK","FM","FO","FR","GA","GB","GD","GE","GF","GG","GH","GI","GL","GM","GN","GP","GQ","GR","GS","GT","GU","GW","GY","HK","HM","HN","HR","HT","HU","ID","IE","IL","IM","IN","IO","IQ","IR","IS","IT","JE","JM","JO","JP","KE","KG","KH","KI","KM","KN","KP","KR","KW","KY","KZ","LA","LB","LC","LI","LK","LR","LS","LT","LU","LV","LY","MA","MC","MD","ME","MF","MG","MH","MK","ML","MM","MN","MO","MP","MQ","MR","MS","MT","MU","MV","MW","MX","MY","MZ","NA","NC","NE","NF","NG","NI","NL","NO","NP","NR","NU","NZ","OM","PA","PE","PF","PG","PH","PK","PL","PM","PN","PR","PS","PT","PW","PY","QA","RE","RO","RS","RU","RW","SA","SB","SC","SD","SE","SG","SH","SI","SJ","SK","SL","SM","SN","SO","SR","SS","ST","SV","SX","SY","SZ","TC","TD","TF","TG","TH","TJ","TK","TL","TM","TN","TO","TR","TT","TV","TW","TZ","UA","UG","UM","US","UY","UZ","VA","VC","VE","VG","VI","VN","VU","WF","WS","YE","YT","ZA","ZM","ZW"],"type":"string"},"CreatePermission":{"description":"A permission specifies what actions user/account is allowed to take on account. Ads AM’s actions include create, edit, view, and/or more specific actions depending on ads application (i.e. campaign management) or program types (i.e ADSP).","properties":{"permissionName":{"$ref":"#/components/schemas/PermissionName"}},"required":["permissionName"],"type":"object"},"DeleteAccountLinkRequest":{"properties":{"accountLinkIds":{"items":{"type":"string"},"maxItems":50,"minItems":1,"type":"array"}},"required":["accountLinkIds"],"type":"object"},"Error":{"properties":{"code":{"$ref":"#/components/schemas/ErrorCode"},"fieldLocation":{"type":"string"},"message":{"type":"string"}},"required":["code","message"],"type":"object"},"ErrorCode":{"description":"**ErrorCode Enum:**\n\n| ErrorCode | Description |\n|------|------|\n| `BAD_REQUEST` | The request is not valid considering the documented schema. |\n| `CONTENT_TOO_LARGE` | The request is too large. Consider splitting it into multiple requests. |\n| `FORBIDDEN` | The caller is not authorized to make the given request. |\n| `INTERNAL_ERROR` | The server encountered an unexpected condition that prevented it from fulfilling the request. |\n| `NOT_FOUND` | The requested resource does not exist. |\n| `TOO_MANY_REQUESTS` | There have been too many requests, please slow down your call rate. |\n| `UNAUTHORIZED` | The request lacks the necessary credentials. |\n","enum":["BAD_REQUEST","CONTENT_TOO_LARGE","FORBIDDEN","INTERNAL_ERROR","NOT_FOUND","TOO_MANY_REQUESTS","UNAUTHORIZED"],"type":"string"},"ErrorsIndex":{"properties":{"errors":{"items":{"$ref":"#/components/schemas/Error"},"maxItems":20,"minItems":1,"type":"array"},"index":{"format":"int32","maximum":49,"minimum":0,"type":"integer"}},"required":["errors","index"],"type":"object"},"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"},"NotFoundResponseContent":{"properties":{"code":{"$ref":"#/components/schemas/ErrorCode"},"message":{"type":"string"}},"required":["code","message"],"type":"object"},"Permission":{"description":"A permission specifies what actions user/account is allowed to take on account. Ads AM’s actions include create, edit, view, and/or more specific actions depending on ads application (i.e. campaign management) or program types (i.e ADSP).","properties":{"permissionName":{"$ref":"#/components/schemas/PermissionName"}},"required":["permissionName"],"type":"object"},"PermissionName":{"enum":["ADVERTISER_CAMPAIGN_EDIT","ADVERTISER_CAMPAIGN_VIEW","ADVERTISER_EVENTDATA_EDIT","ADVERTISER_EVENTDATA_VIEW","ADVERTISER_SUMMARY_EDIT","ADVERTISER_SUMMARY_VIEW","ADV_BILLING_EDIT","ADV_BILLING_VIEW","AMAZON_STORES_EDIT","AMAZON_STORES_VIEW","BILLING_EDIT","BILLING_VIEW","BRAND_POSTS_ADMIN","BRAND_POSTS_EDIT","BRAND_POSTS_VIEW","CAMPAIGN_EDIT","CLIENT_SAFE","CREATIVES_EDIT","DATA_MANAGER_EDIT","DATA_MANAGER_VIEW","DATA_SHARING","INSTANCE_EDIT","INSTANCE_VIEW","INVENTORY_EDIT","INVENTORY_VIEW","MANAGER_ACCOUNT_EDIT","MANAGER_ACCOUNT_VIEW","NEMO_REPORT_EDIT","NEMO_REPORT_VIEW","NEMO_TRANSACTIONS_EDIT","NEMO_TRANSACTIONS_VIEW","PORTFOLIO_EDIT","PORTFOLIO_VIEW","PROGRAM_ACCESS_EDIT","REPORTING_EDIT","REPORTING_VIEW","REPORTS_EDIT","REPORTS_LIMITED","SELLER_CONFIGURATION_EDIT","USER_EDIT","USER_VIEW"],"type":"string"},"PermissionSet":{"description":"Permissions for an account to account or user to account link","properties":{"customPermissionSet":{"description":"The custom permission list","items":{"$ref":"#/components/schemas/Permission"},"maxItems":5,"minItems":0,"type":"array"},"role":{"$ref":"#/components/schemas/Role"}},"type":"object"},"QueryAccountLinkRequest":{"properties":{"accountIdFilter":{"$ref":"#/components/schemas/AccountLinkAccountIdFilter"},"accountNameFilter":{"$ref":"#/components/schemas/AccountLinkAccountNameFilter"},"accountTypeFilter":{"$ref":"#/components/schemas/AccountLinkAccountTypeFilter"},"adProductGroupsFilter":{"$ref":"#/components/schemas/AccountLinkAdProductGroupFilter"},"maxResults":{"default":100,"format":"int32","maximum":100,"minimum":10,"type":"integer"},"nextToken":{"type":"string"},"permissionNameFilter":{"$ref":"#/components/schemas/AccountLinkPermissionNameFilter"},"relationshipTypeFilter":{"$ref":"#/components/schemas/AccountLinkRelationshipTypeFilter"},"roleNameFilter":{"$ref":"#/components/schemas/AccountLinkRoleTypeFilter"},"sort":{"items":{"$ref":"#/components/schemas/AccountLinkSortOption"},"maxItems":1,"minItems":0,"type":"array"}},"required":["relationshipTypeFilter"],"type":"object"},"RegionCode":{"description":"**RegionCode Enum:**\n\n| RegionCode | Description |\n|------|------|\n| `EU` | Europe |\n| `FE` | Far East |\n| `NA` | North America |\n","enum":["EU","FE","NA"],"type":"string"},"RelationshipType":{"description":"**RelationshipType Enum:**\n\n| RelationshipType | Description |\n|------|------|\n| `CHILD` | Child Accounts linked to a Manager Account |\n| `PARENT` | Parent Accounts linked to an Advertiser/Manager Account |\n","enum":["CHILD","PARENT"],"type":"string"},"Role":{"description":"A role refers to a collection of roles and permissions that are assigned to a user/account. Roles help streamline and simplify the process of managing access control by grouping together common set of permissions. Ads AM allows creating of role hierarchies, where higher level roles include lower-level roles.","properties":{"roleName":{"$ref":"#/components/schemas/RoleType"}},"required":["roleName"],"type":"object"},"RoleType":{"description":"**RoleType Enum:**\n\n| RoleType | Description |\n|------|------|\n| `ADMIN` |  |\n| `CUSTOM` | Custom role with a user-defined set of permissions. |\n| `EDITOR` |  |\n| `VIEWER` |  |\n","enum":["ADMIN","CUSTOM","EDITOR","VIEWER"],"type":"string"},"ServiceUnavailableErrorResponseContent":{"properties":{"code":{"type":"string"},"message":{"type":"string"}},"required":["code","message"],"type":"object"},"SortDirection":{"description":"**SortDirection Enum:**\n| SortDirection | Description |\n| --- | --- |\n| `ASCENDING` | Sort in ascending order |\n| `DESCENDING` | Sort in descending order |","enum":["ASCENDING","DESCENDING"],"type":"string"},"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"},"UpdateAccountLinkRequest":{"properties":{"accountLinks":{"items":{"$ref":"#/components/schemas/AccountLinkUpdate"},"maxItems":50,"minItems":1,"type":"array"}},"required":["accountLinks"],"type":"object"},"UpdatePermissionSet":{"description":"Permissions for an account to account or user to account link","properties":{"customPermissionSet":{"description":"The custom permission list","items":{"$ref":"#/components/schemas/CreatePermission"},"maxItems":5,"minItems":0,"type":"array"},"role":{"$ref":"#/components/schemas/UpdateRole"}},"type":"object"},"UpdateRole":{"description":"A role refers to a collection of roles and permissions that are assigned to a user/account. Roles help streamline and simplify the process of managing access control by grouping together common set of permissions. Ads AM allows creating of role hierarchies, where higher level roles include lower-level roles.","properties":{"roleName":{"$ref":"#/components/schemas/RoleType"}},"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":"AccountLinks API","version":"3.0"},"openapi":"3.0.1","paths":{"/adsApi/v1/delete/accountLinks":{"post":{"description":"Delete Account Links for a given advertising account\n\n**Requires one of these permissions**:\n[\"manage_users\", \"user-edit\", \"account_edit\", \n\"user_edit\", \"MasterAccount_Manager\"]","operationId":"DeleteAccountLink","parameters":[{"$ref":"#/components/parameters/AccountIdHeaderOptional"},{"$ref":"#/components/parameters/ClientIdHeader"},{"$ref":"#/components/parameters/ManagerAccountIdHeaderOptional"},{"$ref":"#/components/parameters/ScopeHeaderOptional"}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/DeleteAccountLinkRequest"}}},"required":true},"responses":{"207":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AccountLinkMultiStatusResponse"}}},"description":"DeleteAccountLink 207 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":["AccountLinks"]}},"/adsApi/v1/query/accountLinks":{"post":{"description":"Query Account Links for a given advertising account\n\n**Requires one of these permissions**:\n[\"MasterAccount_Viewer\", \"manage_users\", \"account_edit\", \n\"MA_ReadOnly\", \"user-view\", \"user_edit\", \n\"MasterAccount_Manager\"]","operationId":"QueryAccountLink","parameters":[{"$ref":"#/components/parameters/AccountIdHeaderOptional"},{"$ref":"#/components/parameters/ClientIdHeader"},{"$ref":"#/components/parameters/ManagerAccountIdHeaderOptional"}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/QueryAccountLinkRequest"}}},"required":true},"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AccountLinkSuccessResponse"}}},"description":"QueryAccountLink 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":["AccountLinks"]}},"/adsApi/v1/update/accountLinks":{"post":{"description":"Update Account Links for a given advertising account\n\n**Requires one of these permissions**:\n[\"manage_users\", \"user-edit\", \"account_edit\", \n\"user_edit\", \"MasterAccount_Manager\"]","operationId":"UpdateAccountLink","parameters":[{"$ref":"#/components/parameters/AccountIdHeaderOptional"},{"$ref":"#/components/parameters/ClientIdHeader"},{"$ref":"#/components/parameters/ManagerAccountIdHeaderOptional"},{"$ref":"#/components/parameters/ScopeHeaderOptional"}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/UpdateAccountLinkRequest"}}},"required":true},"responses":{"207":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AccountLinkMultiStatusResponse"}}},"description":"UpdateAccountLink 207 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":["AccountLinks"]}}},"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"}]}