airbyte-agent-amazon-ads 0.1.12__tar.gz → 0.1.22__tar.gz

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (61) hide show
  1. {airbyte_agent_amazon_ads-0.1.12 → airbyte_agent_amazon_ads-0.1.22}/AUTH.md +19 -4
  2. {airbyte_agent_amazon_ads-0.1.12 → airbyte_agent_amazon_ads-0.1.22}/CHANGELOG.md +50 -0
  3. {airbyte_agent_amazon_ads-0.1.12 → airbyte_agent_amazon_ads-0.1.22}/PKG-INFO +13 -9
  4. {airbyte_agent_amazon_ads-0.1.12 → airbyte_agent_amazon_ads-0.1.22}/README.md +12 -8
  5. {airbyte_agent_amazon_ads-0.1.12 → airbyte_agent_amazon_ads-0.1.22}/REFERENCE.md +0 -1
  6. {airbyte_agent_amazon_ads-0.1.12 → airbyte_agent_amazon_ads-0.1.22}/airbyte_agent_amazon_ads/__init__.py +2 -0
  7. {airbyte_agent_amazon_ads-0.1.12 → airbyte_agent_amazon_ads-0.1.22}/airbyte_agent_amazon_ads/_vendored/connector_sdk/connector_model_loader.py +4 -8
  8. {airbyte_agent_amazon_ads-0.1.12 → airbyte_agent_amazon_ads-0.1.22}/airbyte_agent_amazon_ads/_vendored/connector_sdk/executor/hosted_executor.py +5 -0
  9. {airbyte_agent_amazon_ads-0.1.12 → airbyte_agent_amazon_ads-0.1.22}/airbyte_agent_amazon_ads/_vendored/connector_sdk/executor/local_executor.py +82 -0
  10. {airbyte_agent_amazon_ads-0.1.12 → airbyte_agent_amazon_ads-0.1.22}/airbyte_agent_amazon_ads/_vendored/connector_sdk/executor/models.py +12 -0
  11. {airbyte_agent_amazon_ads-0.1.12 → airbyte_agent_amazon_ads-0.1.22}/airbyte_agent_amazon_ads/_vendored/connector_sdk/http/adapters/httpx_adapter.py +10 -1
  12. {airbyte_agent_amazon_ads-0.1.12 → airbyte_agent_amazon_ads-0.1.22}/airbyte_agent_amazon_ads/_vendored/connector_sdk/http_client.py +1 -1
  13. {airbyte_agent_amazon_ads-0.1.12 → airbyte_agent_amazon_ads-0.1.22}/airbyte_agent_amazon_ads/_vendored/connector_sdk/introspection.py +12 -5
  14. {airbyte_agent_amazon_ads-0.1.12 → airbyte_agent_amazon_ads-0.1.22}/airbyte_agent_amazon_ads/_vendored/connector_sdk/schema/operations.py +10 -0
  15. {airbyte_agent_amazon_ads-0.1.12 → airbyte_agent_amazon_ads-0.1.22}/airbyte_agent_amazon_ads/_vendored/connector_sdk/schema/security.py +0 -1
  16. {airbyte_agent_amazon_ads-0.1.12 → airbyte_agent_amazon_ads-0.1.22}/airbyte_agent_amazon_ads/_vendored/connector_sdk/telemetry/tracker.py +4 -4
  17. {airbyte_agent_amazon_ads-0.1.12 → airbyte_agent_amazon_ads-0.1.22}/airbyte_agent_amazon_ads/_vendored/connector_sdk/types.py +16 -1
  18. {airbyte_agent_amazon_ads-0.1.12 → airbyte_agent_amazon_ads-0.1.22}/airbyte_agent_amazon_ads/_vendored/connector_sdk/validation.py +20 -0
  19. {airbyte_agent_amazon_ads-0.1.12 → airbyte_agent_amazon_ads-0.1.22}/airbyte_agent_amazon_ads/connector.py +42 -2
  20. {airbyte_agent_amazon_ads-0.1.12 → airbyte_agent_amazon_ads-0.1.22}/airbyte_agent_amazon_ads/connector_model.py +2 -4
  21. {airbyte_agent_amazon_ads-0.1.12 → airbyte_agent_amazon_ads-0.1.22}/airbyte_agent_amazon_ads/models.py +19 -0
  22. {airbyte_agent_amazon_ads-0.1.12 → airbyte_agent_amazon_ads-0.1.22}/pyproject.toml +1 -1
  23. {airbyte_agent_amazon_ads-0.1.12 → airbyte_agent_amazon_ads-0.1.22}/.gitignore +0 -0
  24. {airbyte_agent_amazon_ads-0.1.12 → airbyte_agent_amazon_ads-0.1.22}/airbyte_agent_amazon_ads/_vendored/__init__.py +0 -0
  25. {airbyte_agent_amazon_ads-0.1.12 → airbyte_agent_amazon_ads-0.1.22}/airbyte_agent_amazon_ads/_vendored/connector_sdk/__init__.py +0 -0
  26. {airbyte_agent_amazon_ads-0.1.12 → airbyte_agent_amazon_ads-0.1.22}/airbyte_agent_amazon_ads/_vendored/connector_sdk/auth_strategies.py +0 -0
  27. {airbyte_agent_amazon_ads-0.1.12 → airbyte_agent_amazon_ads-0.1.22}/airbyte_agent_amazon_ads/_vendored/connector_sdk/auth_template.py +0 -0
  28. {airbyte_agent_amazon_ads-0.1.12 → airbyte_agent_amazon_ads-0.1.22}/airbyte_agent_amazon_ads/_vendored/connector_sdk/cloud_utils/__init__.py +0 -0
  29. {airbyte_agent_amazon_ads-0.1.12 → airbyte_agent_amazon_ads-0.1.22}/airbyte_agent_amazon_ads/_vendored/connector_sdk/cloud_utils/client.py +0 -0
  30. {airbyte_agent_amazon_ads-0.1.12 → airbyte_agent_amazon_ads-0.1.22}/airbyte_agent_amazon_ads/_vendored/connector_sdk/constants.py +0 -0
  31. {airbyte_agent_amazon_ads-0.1.12 → airbyte_agent_amazon_ads-0.1.22}/airbyte_agent_amazon_ads/_vendored/connector_sdk/exceptions.py +0 -0
  32. {airbyte_agent_amazon_ads-0.1.12 → airbyte_agent_amazon_ads-0.1.22}/airbyte_agent_amazon_ads/_vendored/connector_sdk/executor/__init__.py +0 -0
  33. {airbyte_agent_amazon_ads-0.1.12 → airbyte_agent_amazon_ads-0.1.22}/airbyte_agent_amazon_ads/_vendored/connector_sdk/extensions.py +0 -0
  34. {airbyte_agent_amazon_ads-0.1.12 → airbyte_agent_amazon_ads-0.1.22}/airbyte_agent_amazon_ads/_vendored/connector_sdk/http/__init__.py +0 -0
  35. {airbyte_agent_amazon_ads-0.1.12 → airbyte_agent_amazon_ads-0.1.22}/airbyte_agent_amazon_ads/_vendored/connector_sdk/http/adapters/__init__.py +0 -0
  36. {airbyte_agent_amazon_ads-0.1.12 → airbyte_agent_amazon_ads-0.1.22}/airbyte_agent_amazon_ads/_vendored/connector_sdk/http/config.py +0 -0
  37. {airbyte_agent_amazon_ads-0.1.12 → airbyte_agent_amazon_ads-0.1.22}/airbyte_agent_amazon_ads/_vendored/connector_sdk/http/exceptions.py +0 -0
  38. {airbyte_agent_amazon_ads-0.1.12 → airbyte_agent_amazon_ads-0.1.22}/airbyte_agent_amazon_ads/_vendored/connector_sdk/http/protocols.py +0 -0
  39. {airbyte_agent_amazon_ads-0.1.12 → airbyte_agent_amazon_ads-0.1.22}/airbyte_agent_amazon_ads/_vendored/connector_sdk/http/response.py +0 -0
  40. {airbyte_agent_amazon_ads-0.1.12 → airbyte_agent_amazon_ads-0.1.22}/airbyte_agent_amazon_ads/_vendored/connector_sdk/logging/__init__.py +0 -0
  41. {airbyte_agent_amazon_ads-0.1.12 → airbyte_agent_amazon_ads-0.1.22}/airbyte_agent_amazon_ads/_vendored/connector_sdk/logging/logger.py +0 -0
  42. {airbyte_agent_amazon_ads-0.1.12 → airbyte_agent_amazon_ads-0.1.22}/airbyte_agent_amazon_ads/_vendored/connector_sdk/logging/types.py +0 -0
  43. {airbyte_agent_amazon_ads-0.1.12 → airbyte_agent_amazon_ads-0.1.22}/airbyte_agent_amazon_ads/_vendored/connector_sdk/observability/__init__.py +0 -0
  44. {airbyte_agent_amazon_ads-0.1.12 → airbyte_agent_amazon_ads-0.1.22}/airbyte_agent_amazon_ads/_vendored/connector_sdk/observability/config.py +0 -0
  45. {airbyte_agent_amazon_ads-0.1.12 → airbyte_agent_amazon_ads-0.1.22}/airbyte_agent_amazon_ads/_vendored/connector_sdk/observability/models.py +0 -0
  46. {airbyte_agent_amazon_ads-0.1.12 → airbyte_agent_amazon_ads-0.1.22}/airbyte_agent_amazon_ads/_vendored/connector_sdk/observability/redactor.py +0 -0
  47. {airbyte_agent_amazon_ads-0.1.12 → airbyte_agent_amazon_ads-0.1.22}/airbyte_agent_amazon_ads/_vendored/connector_sdk/observability/session.py +0 -0
  48. {airbyte_agent_amazon_ads-0.1.12 → airbyte_agent_amazon_ads-0.1.22}/airbyte_agent_amazon_ads/_vendored/connector_sdk/performance/__init__.py +0 -0
  49. {airbyte_agent_amazon_ads-0.1.12 → airbyte_agent_amazon_ads-0.1.22}/airbyte_agent_amazon_ads/_vendored/connector_sdk/performance/instrumentation.py +0 -0
  50. {airbyte_agent_amazon_ads-0.1.12 → airbyte_agent_amazon_ads-0.1.22}/airbyte_agent_amazon_ads/_vendored/connector_sdk/performance/metrics.py +0 -0
  51. {airbyte_agent_amazon_ads-0.1.12 → airbyte_agent_amazon_ads-0.1.22}/airbyte_agent_amazon_ads/_vendored/connector_sdk/schema/__init__.py +0 -0
  52. {airbyte_agent_amazon_ads-0.1.12 → airbyte_agent_amazon_ads-0.1.22}/airbyte_agent_amazon_ads/_vendored/connector_sdk/schema/base.py +0 -0
  53. {airbyte_agent_amazon_ads-0.1.12 → airbyte_agent_amazon_ads-0.1.22}/airbyte_agent_amazon_ads/_vendored/connector_sdk/schema/components.py +0 -0
  54. {airbyte_agent_amazon_ads-0.1.12 → airbyte_agent_amazon_ads-0.1.22}/airbyte_agent_amazon_ads/_vendored/connector_sdk/schema/connector.py +0 -0
  55. {airbyte_agent_amazon_ads-0.1.12 → airbyte_agent_amazon_ads-0.1.22}/airbyte_agent_amazon_ads/_vendored/connector_sdk/schema/extensions.py +0 -0
  56. {airbyte_agent_amazon_ads-0.1.12 → airbyte_agent_amazon_ads-0.1.22}/airbyte_agent_amazon_ads/_vendored/connector_sdk/secrets.py +0 -0
  57. {airbyte_agent_amazon_ads-0.1.12 → airbyte_agent_amazon_ads-0.1.22}/airbyte_agent_amazon_ads/_vendored/connector_sdk/telemetry/__init__.py +0 -0
  58. {airbyte_agent_amazon_ads-0.1.12 → airbyte_agent_amazon_ads-0.1.22}/airbyte_agent_amazon_ads/_vendored/connector_sdk/telemetry/config.py +0 -0
  59. {airbyte_agent_amazon_ads-0.1.12 → airbyte_agent_amazon_ads-0.1.22}/airbyte_agent_amazon_ads/_vendored/connector_sdk/telemetry/events.py +0 -0
  60. {airbyte_agent_amazon_ads-0.1.12 → airbyte_agent_amazon_ads-0.1.22}/airbyte_agent_amazon_ads/_vendored/connector_sdk/utils.py +0 -0
  61. {airbyte_agent_amazon_ads-0.1.12 → airbyte_agent_amazon_ads-0.1.22}/airbyte_agent_amazon_ads/types.py +0 -0
@@ -10,12 +10,17 @@ In open source mode, you provide API credentials directly to the connector.
10
10
 
11
11
  #### OAuth
12
12
 
13
+ `credentials` fields you need:
14
+
15
+
13
16
  | Field Name | Type | Required | Description |
14
17
  |------------|------|----------|-------------|
15
18
  | `client_id` | `str` | Yes | The client ID of your Amazon Ads API application |
16
19
  | `client_secret` | `str` | Yes | The client secret of your Amazon Ads API application |
17
20
  | `refresh_token` | `str` | Yes | The refresh token obtained from the OAuth authorization flow |
18
21
 
22
+ Example request:
23
+
19
24
  ```python
20
25
  from airbyte_agent_amazon-ads import AmazonAdsConnector
21
26
  from airbyte_agent_amazon-ads.models import AmazonAdsAuthConfig
@@ -37,13 +42,23 @@ This authentication method isn't available for this connector.
37
42
  In hosted mode, you first create a connector via the Airbyte API (providing your OAuth or Token credentials), then execute operations using either the Python SDK or API. If you need a step-by-step guide, see the [hosted execution tutorial](https://docs.airbyte.com/ai-agents/quickstarts/tutorial-hosted).
38
43
 
39
44
  #### OAuth
45
+ Create a connector with OAuth credentials.
46
+
47
+ `credentials` fields you need:
40
48
 
41
- Create a connector with OAuth credentials:
49
+
50
+ | Field Name | Type | Required | Description |
51
+ |------------|------|----------|-------------|
52
+ | `client_id` | `str` | Yes | The client ID of your Amazon Ads API application |
53
+ | `client_secret` | `str` | Yes | The client secret of your Amazon Ads API application |
54
+ | `refresh_token` | `str` | Yes | The refresh token obtained from the OAuth authorization flow |
55
+
56
+ Example request:
42
57
 
43
58
  ```bash
44
- curl -X POST 'https://api.airbyte.ai/v1/integrations/connectors' \
45
- -H 'Authorization: Bearer <SCOPED_TOKEN>' \
46
- -H 'Content-Type: application/json' \
59
+ curl -X POST "https://api.airbyte.ai/v1/integrations/connectors" \
60
+ -H "Authorization: Bearer <SCOPED_TOKEN>" \
61
+ -H "Content-Type: application/json" \
47
62
  -d '{
48
63
  "external_user_id": "<EXTERNAL_USER_ID>",
49
64
  "connector_type": "Amazon-Ads",
@@ -1,5 +1,55 @@
1
1
  # Amazon Ads changelog
2
2
 
3
+ ## [0.1.22] - 2026-01-30
4
+ - Updated connector definition (YAML version 1.0.4)
5
+ - Source commit: 5b20f488
6
+ - SDK version: 0.1.0
7
+
8
+ ## [0.1.21] - 2026-01-30
9
+ - Updated connector definition (YAML version 1.0.4)
10
+ - Source commit: a3729d85
11
+ - SDK version: 0.1.0
12
+
13
+ ## [0.1.20] - 2026-01-29
14
+ - Updated connector definition (YAML version 1.0.4)
15
+ - Source commit: 43200eed
16
+ - SDK version: 0.1.0
17
+
18
+ ## [0.1.19] - 2026-01-29
19
+ - Updated connector definition (YAML version 1.0.4)
20
+ - Source commit: c718c683
21
+ - SDK version: 0.1.0
22
+
23
+ ## [0.1.18] - 2026-01-28
24
+ - Updated connector definition (YAML version 1.0.4)
25
+ - Source commit: 97007bbd
26
+ - SDK version: 0.1.0
27
+
28
+ ## [0.1.17] - 2026-01-28
29
+ - Updated connector definition (YAML version 1.0.4)
30
+ - Source commit: f6c6fca2
31
+ - SDK version: 0.1.0
32
+
33
+ ## [0.1.16] - 2026-01-28
34
+ - Updated connector definition (YAML version 1.0.4)
35
+ - Source commit: 71f48c10
36
+ - SDK version: 0.1.0
37
+
38
+ ## [0.1.15] - 2026-01-27
39
+ - Updated connector definition (YAML version 1.0.4)
40
+ - Source commit: 0f5e1914
41
+ - SDK version: 0.1.0
42
+
43
+ ## [0.1.14] - 2026-01-27
44
+ - Updated connector definition (YAML version 1.0.4)
45
+ - Source commit: a01f6b16
46
+ - SDK version: 0.1.0
47
+
48
+ ## [0.1.13] - 2026-01-27
49
+ - Updated connector definition (YAML version 1.0.4)
50
+ - Source commit: c9b05509
51
+ - SDK version: 0.1.0
52
+
3
53
  ## [0.1.12] - 2026-01-27
4
54
  - Updated connector definition (YAML version 1.0.3)
5
55
  - Source commit: 4bded58d
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: airbyte-agent-amazon-ads
3
- Version: 0.1.12
3
+ Version: 0.1.22
4
4
  Summary: Airbyte Amazon-Ads Connector for AI platforms
5
5
  Project-URL: Homepage, https://github.com/airbytehq/airbyte-agent-connectors
6
6
  Project-URL: Documentation, https://docs.airbyte.com/ai-agents/
@@ -112,10 +112,11 @@ async def amazon-ads_execute(entity: str, action: str, params: dict | None = Non
112
112
  return await connector.execute(entity, action, params or {})
113
113
  ```
114
114
 
115
-
116
115
  ## Full documentation
117
116
 
118
- This connector supports the following entities and actions.
117
+ ### Entities and actions
118
+
119
+ This connector supports the following entities and actions. For more details, see this connector's [full reference documentation](REFERENCE.md).
119
120
 
120
121
  | Entity | Actions |
121
122
  |--------|---------|
@@ -124,14 +125,17 @@ This connector supports the following entities and actions.
124
125
  | Sponsored Product Campaigns | [List](./REFERENCE.md#sponsored-product-campaigns-list), [Get](./REFERENCE.md#sponsored-product-campaigns-get) |
125
126
 
126
127
 
127
- For all authentication options, see the connector's [authentication documentation](AUTH.md).
128
+ ### Authentication and configuration
129
+
130
+ For all authentication and configuration options, see the connector's [authentication documentation](AUTH.md).
128
131
 
129
- For detailed documentation on available actions and parameters, see this connector's [full reference documentation](./REFERENCE.md).
132
+ ### Amazon-Ads API docs
130
133
 
131
- For the service's official API docs, see the [Amazon-Ads API reference](https://advertising.amazon.com/API/docs/en-us).
134
+ See the official [Amazon-Ads API reference](https://advertising.amazon.com/API/docs/en-us).
132
135
 
133
136
  ## Version information
134
137
 
135
- - **Package version:** 0.1.12
136
- - **Connector version:** 1.0.3
137
- - **Generated with Connector SDK commit SHA:** 4bded58d3cabff3ac257c30c425ccab118f6ed87
138
+ - **Package version:** 0.1.22
139
+ - **Connector version:** 1.0.4
140
+ - **Generated with Connector SDK commit SHA:** 5b20f488dec0e8f29410823753106603c23a4b65
141
+ - **Changelog:** [View changelog](https://github.com/airbytehq/airbyte-agent-connectors/blob/main/connectors/amazon-ads/CHANGELOG.md)
@@ -79,10 +79,11 @@ async def amazon-ads_execute(entity: str, action: str, params: dict | None = Non
79
79
  return await connector.execute(entity, action, params or {})
80
80
  ```
81
81
 
82
-
83
82
  ## Full documentation
84
83
 
85
- This connector supports the following entities and actions.
84
+ ### Entities and actions
85
+
86
+ This connector supports the following entities and actions. For more details, see this connector's [full reference documentation](REFERENCE.md).
86
87
 
87
88
  | Entity | Actions |
88
89
  |--------|---------|
@@ -91,14 +92,17 @@ This connector supports the following entities and actions.
91
92
  | Sponsored Product Campaigns | [List](./REFERENCE.md#sponsored-product-campaigns-list), [Get](./REFERENCE.md#sponsored-product-campaigns-get) |
92
93
 
93
94
 
94
- For all authentication options, see the connector's [authentication documentation](AUTH.md).
95
+ ### Authentication and configuration
96
+
97
+ For all authentication and configuration options, see the connector's [authentication documentation](AUTH.md).
95
98
 
96
- For detailed documentation on available actions and parameters, see this connector's [full reference documentation](./REFERENCE.md).
99
+ ### Amazon-Ads API docs
97
100
 
98
- For the service's official API docs, see the [Amazon-Ads API reference](https://advertising.amazon.com/API/docs/en-us).
101
+ See the official [Amazon-Ads API reference](https://advertising.amazon.com/API/docs/en-us).
99
102
 
100
103
  ## Version information
101
104
 
102
- - **Package version:** 0.1.12
103
- - **Connector version:** 1.0.3
104
- - **Generated with Connector SDK commit SHA:** 4bded58d3cabff3ac257c30c425ccab118f6ed87
105
+ - **Package version:** 0.1.22
106
+ - **Connector version:** 1.0.4
107
+ - **Generated with Connector SDK commit SHA:** 5b20f488dec0e8f29410823753106603c23a4b65
108
+ - **Changelog:** [View changelog](https://github.com/airbytehq/airbyte-agent-connectors/blob/main/connectors/amazon-ads/CHANGELOG.md)
@@ -380,4 +380,3 @@ curl --location 'https://api.airbyte.ai/api/v1/connectors/sources/{your_source_i
380
380
 
381
381
  </details>
382
382
 
383
-
@@ -15,6 +15,7 @@ from .models import (
15
15
  DynamicBiddingPlacementbiddingItem,
16
16
  DynamicBidding,
17
17
  CampaignBudget,
18
+ AmazonAdsCheckResult,
18
19
  AmazonAdsExecuteResult,
19
20
  AmazonAdsExecuteResultWithMeta,
20
21
  ProfilesListResult,
@@ -51,6 +52,7 @@ __all__ = [
51
52
  "DynamicBiddingPlacementbiddingItem",
52
53
  "DynamicBidding",
53
54
  "CampaignBudget",
55
+ "AmazonAdsCheckResult",
54
56
  "AmazonAdsExecuteResult",
55
57
  "AmazonAdsExecuteResultWithMeta",
56
58
  "ProfilesListResult",
@@ -496,6 +496,9 @@ def convert_openapi_to_connector_model(spec: OpenAPIConnector) -> ConnectorModel
496
496
  # Extract untested flag
497
497
  untested = getattr(operation, "x_airbyte_untested", None) or False
498
498
 
499
+ # Extract preferred_for_check flag
500
+ preferred_for_check = getattr(operation, "x_airbyte_preferred_for_check", None) or False
501
+
499
502
  # Create endpoint definition
500
503
  endpoint = EndpointDefinition(
501
504
  method=method_name.upper(),
@@ -520,6 +523,7 @@ def convert_openapi_to_connector_model(spec: OpenAPIConnector) -> ConnectorModel
520
523
  graphql_body=graphql_body,
521
524
  file_field=file_field,
522
525
  untested=untested,
526
+ preferred_for_check=preferred_for_check,
523
527
  )
524
528
 
525
529
  # Add to entities map
@@ -758,7 +762,6 @@ def _generate_default_auth_config(auth_type: AuthType) -> AirbyteAuthConfig:
758
762
  description="Authentication bearer token",
759
763
  format=None,
760
764
  pattern=None,
761
- airbyte_secret=False,
762
765
  default=None,
763
766
  )
764
767
  },
@@ -778,7 +781,6 @@ def _generate_default_auth_config(auth_type: AuthType) -> AirbyteAuthConfig:
778
781
  description="Authentication username",
779
782
  format=None,
780
783
  pattern=None,
781
- airbyte_secret=False,
782
784
  default=None,
783
785
  ),
784
786
  "password": AuthConfigFieldSpec(
@@ -787,7 +789,6 @@ def _generate_default_auth_config(auth_type: AuthType) -> AirbyteAuthConfig:
787
789
  description="Authentication password",
788
790
  format=None,
789
791
  pattern=None,
790
- airbyte_secret=False,
791
792
  default=None,
792
793
  ),
793
794
  },
@@ -807,7 +808,6 @@ def _generate_default_auth_config(auth_type: AuthType) -> AirbyteAuthConfig:
807
808
  description="API authentication key",
808
809
  format=None,
809
810
  pattern=None,
810
- airbyte_secret=False,
811
811
  default=None,
812
812
  )
813
813
  },
@@ -832,7 +832,6 @@ def _generate_default_auth_config(auth_type: AuthType) -> AirbyteAuthConfig:
832
832
  description="OAuth2 access token",
833
833
  format=None,
834
834
  pattern=None,
835
- airbyte_secret=False,
836
835
  default=None,
837
836
  ),
838
837
  "refresh_token": AuthConfigFieldSpec(
@@ -841,7 +840,6 @@ def _generate_default_auth_config(auth_type: AuthType) -> AirbyteAuthConfig:
841
840
  description="OAuth2 refresh token (optional)",
842
841
  format=None,
843
842
  pattern=None,
844
- airbyte_secret=False,
845
843
  default=None,
846
844
  ),
847
845
  "client_id": AuthConfigFieldSpec(
@@ -850,7 +848,6 @@ def _generate_default_auth_config(auth_type: AuthType) -> AirbyteAuthConfig:
850
848
  description="OAuth2 client ID (optional)",
851
849
  format=None,
852
850
  pattern=None,
853
- airbyte_secret=False,
854
851
  default=None,
855
852
  ),
856
853
  "client_secret": AuthConfigFieldSpec(
@@ -859,7 +856,6 @@ def _generate_default_auth_config(auth_type: AuthType) -> AirbyteAuthConfig:
859
856
  description="OAuth2 client secret (optional)",
860
857
  format=None,
861
858
  pattern=None,
862
- airbyte_secret=False,
863
859
  default=None,
864
860
  ),
865
861
  },
@@ -164,6 +164,11 @@ class HostedExecutor:
164
164
  span.record_exception(e)
165
165
  raise
166
166
 
167
+ async def check(self) -> ExecutionResult:
168
+ """Perform a health check via the cloud API."""
169
+ config = ExecutionConfig(entity="*", action="check", params={})
170
+ return await self.execute(config)
171
+
167
172
  def _parse_execution_result(self, response: dict) -> ExecutionResult:
168
173
  """Parse API response into ExecutionResult.
169
174
 
@@ -70,6 +70,14 @@ class _OperationContext:
70
70
  self.validate_required_body_fields = executor._validate_required_body_fields
71
71
  self.extract_records = executor._extract_records
72
72
 
73
+ @property
74
+ def standard_handler(self) -> _StandardOperationHandler | None:
75
+ """Return the standard operation handler, or None if not registered."""
76
+ for h in self.executor._operation_handlers:
77
+ if isinstance(h, _StandardOperationHandler):
78
+ return h
79
+ return None
80
+
73
81
 
74
82
  class _OperationHandler(Protocol):
75
83
  """Protocol for operation handlers."""
@@ -544,6 +552,80 @@ class LocalExecutor:
544
552
  # These are "expected" execution errors - return them in ExecutionResult
545
553
  return ExecutionResult(success=False, data={}, error=str(e))
546
554
 
555
+ async def check(self) -> ExecutionResult:
556
+ """Perform a health check by running a lightweight list operation.
557
+
558
+ Finds the operation marked with preferred_for_check=True, or falls back
559
+ to the first list operation. Executes it with limit=1 to verify
560
+ connectivity and credentials.
561
+
562
+ Returns:
563
+ ExecutionResult with data containing status, error, and checked operation details.
564
+ """
565
+ check_entity = None
566
+ check_endpoint = None
567
+
568
+ # Look for preferred check operation
569
+ for (ent_name, op_action), endpoint in self._operation_index.items():
570
+ if getattr(endpoint, "preferred_for_check", False):
571
+ check_entity = ent_name
572
+ check_endpoint = endpoint
573
+ break
574
+
575
+ # Fallback to first list operation
576
+ if check_endpoint is None:
577
+ for (ent_name, op_action), endpoint in self._operation_index.items():
578
+ if op_action == Action.LIST:
579
+ check_entity = ent_name
580
+ check_endpoint = endpoint
581
+ break
582
+
583
+ if check_endpoint is None or check_entity is None:
584
+ return ExecutionResult(
585
+ success=True,
586
+ data={
587
+ "status": "skipped",
588
+ "error": "No list operation available for health check",
589
+ },
590
+ )
591
+
592
+ # Find the standard handler to execute the list operation
593
+ standard_handler = next(
594
+ (h for h in self._operation_handlers if isinstance(h, _StandardOperationHandler)),
595
+ None,
596
+ )
597
+
598
+ if standard_handler is None:
599
+ return ExecutionResult(
600
+ success=True,
601
+ data={
602
+ "status": "skipped",
603
+ "error": "No standard handler available",
604
+ },
605
+ )
606
+
607
+ try:
608
+ await standard_handler.execute_operation(check_entity, Action.LIST, {"limit": 1})
609
+ return ExecutionResult(
610
+ success=True,
611
+ data={
612
+ "status": "healthy",
613
+ "checked_entity": check_entity,
614
+ "checked_action": "list",
615
+ },
616
+ )
617
+ except Exception as e:
618
+ return ExecutionResult(
619
+ success=False,
620
+ data={
621
+ "status": "unhealthy",
622
+ "error": str(e),
623
+ "checked_entity": check_entity,
624
+ "checked_action": "list",
625
+ },
626
+ error=str(e),
627
+ )
628
+
547
629
  async def _execute_operation(
548
630
  self,
549
631
  entity: str,
@@ -154,6 +154,18 @@ class ExecutorProtocol(Protocol):
154
154
  """
155
155
  ...
156
156
 
157
+ async def check(self) -> ExecutionResult:
158
+ """Perform a health check to verify connectivity and credentials.
159
+
160
+ Returns:
161
+ ExecutionResult with data containing:
162
+ - status: "healthy" or "unhealthy"
163
+ - error: Error message if unhealthy
164
+ - checked_entity: Entity used for the check
165
+ - checked_action: Action used for the check
166
+ """
167
+ ...
168
+
157
169
 
158
170
  # ============================================================================
159
171
  # Executor Exceptions
@@ -186,7 +186,16 @@ class HTTPXClient:
186
186
  # Try to get error message from response
187
187
  try:
188
188
  error_data = httpx_response.json()
189
- error_message = error_data.get("message") or error_data.get("error") or str(error_data)
189
+ errors_list = error_data.get("errors")
190
+ if isinstance(errors_list, list):
191
+
192
+ def _extract_error(e: object) -> str:
193
+ if isinstance(e, dict):
194
+ return str(e.get("userPresentableMessage") or e.get("message") or e.get("error") or e)
195
+ return str(e)
196
+
197
+ errors_list = ", ".join(_extract_error(e) for e in errors_list)
198
+ error_message = errors_list or error_data.get("message") or error_data.get("error") or str(error_data)
190
199
  except Exception:
191
200
  error_message = httpx_response.text or f"HTTP {status_code} error"
192
201
 
@@ -490,7 +490,7 @@ class HTTPClient:
490
490
 
491
491
  if not response_text.strip():
492
492
  response_data = {}
493
- elif "application/json" in content_type or not content_type:
493
+ elif "application/json" in content_type or "+json" in content_type or not content_type:
494
494
  response_data = await response.json()
495
495
  else:
496
496
  error_msg = f"Expected JSON response for {method.upper()} {url}, got content-type: {content_type}"
@@ -380,7 +380,11 @@ def describe_entities(model: ConnectorModelProtocol) -> list[dict[str, Any]]:
380
380
  return entities
381
381
 
382
382
 
383
- def generate_tool_description(model: ConnectorModelProtocol) -> str:
383
+ def generate_tool_description(
384
+ model: ConnectorModelProtocol,
385
+ *,
386
+ enable_hosted_mode_features: bool = True,
387
+ ) -> str:
384
388
  """Generate AI tool description from connector metadata.
385
389
 
386
390
  Produces a detailed description that includes:
@@ -393,6 +397,7 @@ def generate_tool_description(model: ConnectorModelProtocol) -> str:
393
397
 
394
398
  Args:
395
399
  model: Object conforming to ConnectorModelProtocol (e.g., ConnectorModel)
400
+ enable_hosted_mode_features: When False, omit hosted-mode search guidance from the docstring.
396
401
 
397
402
  Returns:
398
403
  Formatted description string suitable for AI tool documentation
@@ -402,8 +407,9 @@ def generate_tool_description(model: ConnectorModelProtocol) -> str:
402
407
  # at the first empty line and only keeps the initial section.
403
408
 
404
409
  # Entity/action parameter details (including pagination params like limit, starting_after)
405
- search_field_paths = _collect_search_field_paths(model)
406
- lines.append("ENTITIES AND PARAMETERS:")
410
+ search_field_paths = _collect_search_field_paths(model) if enable_hosted_mode_features else {}
411
+ # Avoid a "PARAMETERS:" header because some docstring parsers treat it as a params section marker.
412
+ lines.append("ENTITIES (ACTIONS + PARAMS):")
407
413
  for entity in model.entities:
408
414
  lines.append(f" {entity.name}:")
409
415
  actions = getattr(entity, "actions", []) or []
@@ -427,8 +433,9 @@ def generate_tool_description(model: ConnectorModelProtocol) -> str:
427
433
  lines.append(" To paginate: pass starting_after=<last_id> while has_more is true")
428
434
 
429
435
  lines.append("GUIDELINES:")
430
- lines.append(' - Prefer cached search over direct API calls when using execute(): action="search" whenever possible.')
431
- lines.append(" - Direct API actions (list/get/download) are slower and should be used only if search cannot answer the query.")
436
+ if enable_hosted_mode_features:
437
+ lines.append(' - Prefer cached search over direct API calls when using execute(): action="search" whenever possible.')
438
+ lines.append(" - Direct API actions (list/get/download) are slower and should be used only if search cannot answer the query.")
432
439
  lines.append(" - Keep results small: use params.fields, params.query.filter, small params.limit, and cursor pagination.")
433
440
  lines.append(" - If output is too large, refine the query with tighter filters/fields/limit.")
434
441
 
@@ -86,6 +86,16 @@ class Operation(BaseModel):
86
86
  "Validation will generate a warning instead of an error when cassettes are missing."
87
87
  ),
88
88
  )
89
+ x_airbyte_preferred_for_check: bool | None = Field(
90
+ None,
91
+ alias="x-airbyte-preferred-for-check",
92
+ description=(
93
+ "Mark this list operation as the preferred operation for health checks. "
94
+ "When the CHECK action is executed, this operation will be used instead of "
95
+ "falling back to the first available list operation. Choose a lightweight, "
96
+ "always-available endpoint (e.g., users, accounts)."
97
+ ),
98
+ )
89
99
 
90
100
  # Future extensions (commented out, defined for future use)
91
101
  # from .extensions import PaginationConfig
@@ -55,7 +55,6 @@ class AuthConfigFieldSpec(BaseModel):
55
55
  description: str | None = None
56
56
  format: str | None = None # e.g., "email", "uri"
57
57
  pattern: str | None = None # Regex validation
58
- airbyte_secret: bool = Field(False, alias="airbyte_secret")
59
58
  default: Any | None = None
60
59
 
61
60
 
@@ -3,7 +3,7 @@
3
3
  import logging
4
4
  import platform
5
5
  import sys
6
- from datetime import datetime
6
+ from datetime import UTC, datetime
7
7
 
8
8
  from ..observability import ObservabilitySession
9
9
 
@@ -56,7 +56,7 @@ class SegmentTracker:
56
56
 
57
57
  try:
58
58
  event = ConnectorInitEvent(
59
- timestamp=datetime.utcnow(),
59
+ timestamp=datetime.now(UTC),
60
60
  session_id=self.session.session_id,
61
61
  user_id=self.session.user_id,
62
62
  execution_context=self.session.execution_context,
@@ -99,7 +99,7 @@ class SegmentTracker:
99
99
 
100
100
  try:
101
101
  event = OperationEvent(
102
- timestamp=datetime.utcnow(),
102
+ timestamp=datetime.now(UTC),
103
103
  session_id=self.session.session_id,
104
104
  user_id=self.session.user_id,
105
105
  execution_context=self.session.execution_context,
@@ -129,7 +129,7 @@ class SegmentTracker:
129
129
 
130
130
  try:
131
131
  event = SessionEndEvent(
132
- timestamp=datetime.utcnow(),
132
+ timestamp=datetime.now(UTC),
133
133
  session_id=self.session.session_id,
134
134
  user_id=self.session.user_id,
135
135
  execution_context=self.session.execution_context,
@@ -15,7 +15,16 @@ from .schema.security import AirbyteAuthConfig
15
15
 
16
16
 
17
17
  class Action(str, Enum):
18
- """Supported actions for Entity operations."""
18
+ """Supported actions for Entity operations.
19
+
20
+ Standard CRUD actions:
21
+ GET, CREATE, UPDATE, DELETE, LIST
22
+
23
+ Special actions:
24
+ API_SEARCH - Search via API endpoint
25
+ DOWNLOAD - Download file content
26
+ AUTHORIZE - OAuth authorization flow
27
+ """
19
28
 
20
29
  GET = "get"
21
30
  CREATE = "create"
@@ -223,6 +232,12 @@ class EndpointDefinition(BaseModel):
223
232
  description="Mark operation as untested to skip cassette validation (from x-airbyte-untested extension)",
224
233
  )
225
234
 
235
+ # Health check support (Airbyte extension)
236
+ preferred_for_check: bool = Field(
237
+ False,
238
+ description="Mark this list operation as preferred for health checks (from x-airbyte-preferred-for-check extension)",
239
+ )
240
+
226
241
 
227
242
  class EntityDefinition(BaseModel):
228
243
  """Definition of an API entity."""
@@ -810,11 +810,31 @@ def validate_connector_readiness(connector_dir: str | Path) -> Dict[str, Any]:
810
810
 
811
811
  success = operations_missing_cassettes == 0 and cassettes_invalid == 0 and total_operations > 0
812
812
 
813
+ # Check for preferred_for_check on at least one list operation
814
+ has_preferred_check = False
815
+ for entity in config.entities:
816
+ for action_val in entity.actions:
817
+ endpoint = entity.endpoints.get(action_val)
818
+ if endpoint and getattr(endpoint, "preferred_for_check", False):
819
+ has_preferred_check = True
820
+ break
821
+ if has_preferred_check:
822
+ break
823
+
824
+ readiness_warnings = []
825
+ if not has_preferred_check:
826
+ readiness_warnings.append(
827
+ "No operation has x-airbyte-preferred-for-check: true. "
828
+ "Add this extension to a lightweight list operation (e.g., users.list) "
829
+ "to enable reliable health checks."
830
+ )
831
+
813
832
  return {
814
833
  "success": success,
815
834
  "connector_name": config.name,
816
835
  "connector_path": str(connector_path),
817
836
  "validation_results": validation_results,
837
+ "readiness_warnings": readiness_warnings,
818
838
  "summary": {
819
839
  "total_operations": total_operations,
820
840
  "operations_with_cassettes": operations_with_cassettes,
@@ -32,6 +32,7 @@ if TYPE_CHECKING:
32
32
  from .models import AmazonAdsAuthConfig
33
33
  # Import response models and envelope models at runtime
34
34
  from .models import (
35
+ AmazonAdsCheckResult,
35
36
  AmazonAdsExecuteResult,
36
37
  AmazonAdsExecuteResultWithMeta,
37
38
  ProfilesListResult,
@@ -91,7 +92,7 @@ class AmazonAdsConnector:
91
92
  """
92
93
 
93
94
  connector_name = "amazon-ads"
94
- connector_version = "1.0.3"
95
+ connector_version = "1.0.4"
95
96
  vendored_sdk_version = "0.1.0" # Version of vendored connector-sdk
96
97
 
97
98
  # Map of (entity, action) -> needs_envelope for envelope wrapping decision
@@ -330,6 +331,40 @@ class AmazonAdsConnector:
330
331
  # No extractors - return raw response data
331
332
  return result.data
332
333
 
334
+ # ===== HEALTH CHECK METHOD =====
335
+
336
+ async def check(self) -> AmazonAdsCheckResult:
337
+ """
338
+ Perform a health check to verify connectivity and credentials.
339
+
340
+ Executes a lightweight list operation (limit=1) to validate that
341
+ the connector can communicate with the API and credentials are valid.
342
+
343
+ Returns:
344
+ AmazonAdsCheckResult with status ("healthy" or "unhealthy") and optional error message
345
+
346
+ Example:
347
+ result = await connector.check()
348
+ if result.status == "healthy":
349
+ print("Connection verified!")
350
+ else:
351
+ print(f"Check failed: {result.error}")
352
+ """
353
+ result = await self._executor.check()
354
+
355
+ if result.success and isinstance(result.data, dict):
356
+ return AmazonAdsCheckResult(
357
+ status=result.data.get("status", "unhealthy"),
358
+ error=result.data.get("error"),
359
+ checked_entity=result.data.get("checked_entity"),
360
+ checked_action=result.data.get("checked_action"),
361
+ )
362
+ else:
363
+ return AmazonAdsCheckResult(
364
+ status="unhealthy",
365
+ error=result.error or "Unknown error during health check",
366
+ )
367
+
333
368
  # ===== INTROSPECTION METHODS =====
334
369
 
335
370
  @classmethod
@@ -338,6 +373,7 @@ class AmazonAdsConnector:
338
373
  func: _F | None = None,
339
374
  *,
340
375
  update_docstring: bool = True,
376
+ enable_hosted_mode_features: bool = True,
341
377
  max_output_chars: int | None = DEFAULT_MAX_OUTPUT_CHARS,
342
378
  ) -> _F | Callable[[_F], _F]:
343
379
  """
@@ -356,12 +392,16 @@ class AmazonAdsConnector:
356
392
 
357
393
  Args:
358
394
  update_docstring: When True, append connector capabilities to __doc__.
395
+ enable_hosted_mode_features: When False, omit hosted-mode search sections from docstrings.
359
396
  max_output_chars: Max serialized output size before raising. Use None to disable.
360
397
  """
361
398
 
362
399
  def decorate(inner: _F) -> _F:
363
400
  if update_docstring:
364
- description = generate_tool_description(AmazonAdsConnectorModel)
401
+ description = generate_tool_description(
402
+ AmazonAdsConnectorModel,
403
+ enable_hosted_mode_features=enable_hosted_mode_features,
404
+ )
365
405
  original_doc = inner.__doc__ or ""
366
406
  if original_doc.strip():
367
407
  full_doc = f"{original_doc.strip()}\n{description}"
@@ -26,7 +26,7 @@ from uuid import (
26
26
  AmazonAdsConnectorModel: ConnectorModel = ConnectorModel(
27
27
  id=UUID('c6b0a29e-1da9-4512-9002-7bfd0cba2246'),
28
28
  name='amazon-ads',
29
- version='1.0.3',
29
+ version='1.0.4',
30
30
  base_url='{region}',
31
31
  auth=AuthConfig(
32
32
  type=AuthType.OAUTH2,
@@ -44,17 +44,14 @@ AmazonAdsConnectorModel: ConnectorModel = ConnectorModel(
44
44
  'client_id': AuthConfigFieldSpec(
45
45
  title='Client ID',
46
46
  description='The client ID of your Amazon Ads API application',
47
- airbyte_secret=True,
48
47
  ),
49
48
  'client_secret': AuthConfigFieldSpec(
50
49
  title='Client Secret',
51
50
  description='The client secret of your Amazon Ads API application',
52
- airbyte_secret=True,
53
51
  ),
54
52
  'refresh_token': AuthConfigFieldSpec(
55
53
  title='Refresh Token',
56
54
  description='The refresh token obtained from the OAuth authorization flow',
57
- airbyte_secret=True,
58
55
  ),
59
56
  },
60
57
  auth_mapping={
@@ -160,6 +157,7 @@ AmazonAdsConnectorModel: ConnectorModel = ConnectorModel(
160
157
  'x-airbyte-entity-name': 'profiles',
161
158
  },
162
159
  },
160
+ preferred_for_check=True,
163
161
  ),
164
162
  Action.GET: EndpointDefinition(
165
163
  method='GET',
@@ -126,6 +126,25 @@ class CampaignBudget(BaseModel):
126
126
  # ===== METADATA TYPE DEFINITIONS (PYDANTIC) =====
127
127
  # Meta types for operations that extract metadata (e.g., pagination info)
128
128
 
129
+ # ===== CHECK RESULT MODEL =====
130
+
131
+ class AmazonAdsCheckResult(BaseModel):
132
+ """Result of a health check operation.
133
+
134
+ Returned by the check() method to indicate connectivity and credential status.
135
+ """
136
+ model_config = ConfigDict(extra="forbid")
137
+
138
+ status: str
139
+ """Health check status: 'healthy' or 'unhealthy'."""
140
+ error: str | None = None
141
+ """Error message if status is 'unhealthy', None otherwise."""
142
+ checked_entity: str | None = None
143
+ """Entity name used for the health check."""
144
+ checked_action: str | None = None
145
+ """Action name used for the health check."""
146
+
147
+
129
148
  # ===== RESPONSE ENVELOPE MODELS =====
130
149
 
131
150
  # Type variables for generic envelope models
@@ -1,6 +1,6 @@
1
1
  [project]
2
2
  name = "airbyte-agent-amazon-ads"
3
- version = "0.1.12"
3
+ version = "0.1.22"
4
4
  description = "Airbyte Amazon-Ads Connector for AI platforms"
5
5
  readme = "README.md"
6
6
  requires-python = ">=3.13"