airbyte-agent-amazon-ads 0.1.1__tar.gz → 0.1.4__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.
- airbyte_agent_amazon_ads-0.1.4/AUTH.md +103 -0
- airbyte_agent_amazon_ads-0.1.4/CHANGELOG.md +26 -0
- {airbyte_agent_amazon_ads-0.1.1 → airbyte_agent_amazon_ads-0.1.4}/PKG-INFO +43 -10
- airbyte_agent_amazon_ads-0.1.4/README.md +103 -0
- {airbyte_agent_amazon_ads-0.1.1 → airbyte_agent_amazon_ads-0.1.4}/REFERENCE.md +0 -60
- {airbyte_agent_amazon_ads-0.1.1 → airbyte_agent_amazon_ads-0.1.4}/airbyte_agent_amazon_ads/_vendored/connector_sdk/auth_strategies.py +1 -3
- {airbyte_agent_amazon_ads-0.1.1 → airbyte_agent_amazon_ads-0.1.4}/airbyte_agent_amazon_ads/_vendored/connector_sdk/executor/local_executor.py +1 -3
- {airbyte_agent_amazon_ads-0.1.1 → airbyte_agent_amazon_ads-0.1.4}/pyproject.toml +1 -1
- airbyte_agent_amazon_ads-0.1.1/CHANGELOG.md +0 -11
- airbyte_agent_amazon_ads-0.1.1/README.md +0 -70
- {airbyte_agent_amazon_ads-0.1.1 → airbyte_agent_amazon_ads-0.1.4}/.gitignore +0 -0
- {airbyte_agent_amazon_ads-0.1.1 → airbyte_agent_amazon_ads-0.1.4}/airbyte_agent_amazon_ads/__init__.py +0 -0
- {airbyte_agent_amazon_ads-0.1.1 → airbyte_agent_amazon_ads-0.1.4}/airbyte_agent_amazon_ads/_vendored/__init__.py +0 -0
- {airbyte_agent_amazon_ads-0.1.1 → airbyte_agent_amazon_ads-0.1.4}/airbyte_agent_amazon_ads/_vendored/connector_sdk/__init__.py +0 -0
- {airbyte_agent_amazon_ads-0.1.1 → airbyte_agent_amazon_ads-0.1.4}/airbyte_agent_amazon_ads/_vendored/connector_sdk/auth_template.py +0 -0
- {airbyte_agent_amazon_ads-0.1.1 → airbyte_agent_amazon_ads-0.1.4}/airbyte_agent_amazon_ads/_vendored/connector_sdk/cloud_utils/__init__.py +0 -0
- {airbyte_agent_amazon_ads-0.1.1 → airbyte_agent_amazon_ads-0.1.4}/airbyte_agent_amazon_ads/_vendored/connector_sdk/cloud_utils/client.py +0 -0
- {airbyte_agent_amazon_ads-0.1.1 → airbyte_agent_amazon_ads-0.1.4}/airbyte_agent_amazon_ads/_vendored/connector_sdk/connector_model_loader.py +0 -0
- {airbyte_agent_amazon_ads-0.1.1 → airbyte_agent_amazon_ads-0.1.4}/airbyte_agent_amazon_ads/_vendored/connector_sdk/constants.py +0 -0
- {airbyte_agent_amazon_ads-0.1.1 → airbyte_agent_amazon_ads-0.1.4}/airbyte_agent_amazon_ads/_vendored/connector_sdk/exceptions.py +0 -0
- {airbyte_agent_amazon_ads-0.1.1 → airbyte_agent_amazon_ads-0.1.4}/airbyte_agent_amazon_ads/_vendored/connector_sdk/executor/__init__.py +0 -0
- {airbyte_agent_amazon_ads-0.1.1 → airbyte_agent_amazon_ads-0.1.4}/airbyte_agent_amazon_ads/_vendored/connector_sdk/executor/hosted_executor.py +0 -0
- {airbyte_agent_amazon_ads-0.1.1 → airbyte_agent_amazon_ads-0.1.4}/airbyte_agent_amazon_ads/_vendored/connector_sdk/executor/models.py +0 -0
- {airbyte_agent_amazon_ads-0.1.1 → airbyte_agent_amazon_ads-0.1.4}/airbyte_agent_amazon_ads/_vendored/connector_sdk/extensions.py +0 -0
- {airbyte_agent_amazon_ads-0.1.1 → airbyte_agent_amazon_ads-0.1.4}/airbyte_agent_amazon_ads/_vendored/connector_sdk/http/__init__.py +0 -0
- {airbyte_agent_amazon_ads-0.1.1 → airbyte_agent_amazon_ads-0.1.4}/airbyte_agent_amazon_ads/_vendored/connector_sdk/http/adapters/__init__.py +0 -0
- {airbyte_agent_amazon_ads-0.1.1 → airbyte_agent_amazon_ads-0.1.4}/airbyte_agent_amazon_ads/_vendored/connector_sdk/http/adapters/httpx_adapter.py +0 -0
- {airbyte_agent_amazon_ads-0.1.1 → airbyte_agent_amazon_ads-0.1.4}/airbyte_agent_amazon_ads/_vendored/connector_sdk/http/config.py +0 -0
- {airbyte_agent_amazon_ads-0.1.1 → airbyte_agent_amazon_ads-0.1.4}/airbyte_agent_amazon_ads/_vendored/connector_sdk/http/exceptions.py +0 -0
- {airbyte_agent_amazon_ads-0.1.1 → airbyte_agent_amazon_ads-0.1.4}/airbyte_agent_amazon_ads/_vendored/connector_sdk/http/protocols.py +0 -0
- {airbyte_agent_amazon_ads-0.1.1 → airbyte_agent_amazon_ads-0.1.4}/airbyte_agent_amazon_ads/_vendored/connector_sdk/http/response.py +0 -0
- {airbyte_agent_amazon_ads-0.1.1 → airbyte_agent_amazon_ads-0.1.4}/airbyte_agent_amazon_ads/_vendored/connector_sdk/http_client.py +0 -0
- {airbyte_agent_amazon_ads-0.1.1 → airbyte_agent_amazon_ads-0.1.4}/airbyte_agent_amazon_ads/_vendored/connector_sdk/introspection.py +0 -0
- {airbyte_agent_amazon_ads-0.1.1 → airbyte_agent_amazon_ads-0.1.4}/airbyte_agent_amazon_ads/_vendored/connector_sdk/logging/__init__.py +0 -0
- {airbyte_agent_amazon_ads-0.1.1 → airbyte_agent_amazon_ads-0.1.4}/airbyte_agent_amazon_ads/_vendored/connector_sdk/logging/logger.py +0 -0
- {airbyte_agent_amazon_ads-0.1.1 → airbyte_agent_amazon_ads-0.1.4}/airbyte_agent_amazon_ads/_vendored/connector_sdk/logging/types.py +0 -0
- {airbyte_agent_amazon_ads-0.1.1 → airbyte_agent_amazon_ads-0.1.4}/airbyte_agent_amazon_ads/_vendored/connector_sdk/observability/__init__.py +0 -0
- {airbyte_agent_amazon_ads-0.1.1 → airbyte_agent_amazon_ads-0.1.4}/airbyte_agent_amazon_ads/_vendored/connector_sdk/observability/config.py +0 -0
- {airbyte_agent_amazon_ads-0.1.1 → airbyte_agent_amazon_ads-0.1.4}/airbyte_agent_amazon_ads/_vendored/connector_sdk/observability/models.py +0 -0
- {airbyte_agent_amazon_ads-0.1.1 → airbyte_agent_amazon_ads-0.1.4}/airbyte_agent_amazon_ads/_vendored/connector_sdk/observability/redactor.py +0 -0
- {airbyte_agent_amazon_ads-0.1.1 → airbyte_agent_amazon_ads-0.1.4}/airbyte_agent_amazon_ads/_vendored/connector_sdk/observability/session.py +0 -0
- {airbyte_agent_amazon_ads-0.1.1 → airbyte_agent_amazon_ads-0.1.4}/airbyte_agent_amazon_ads/_vendored/connector_sdk/performance/__init__.py +0 -0
- {airbyte_agent_amazon_ads-0.1.1 → airbyte_agent_amazon_ads-0.1.4}/airbyte_agent_amazon_ads/_vendored/connector_sdk/performance/instrumentation.py +0 -0
- {airbyte_agent_amazon_ads-0.1.1 → airbyte_agent_amazon_ads-0.1.4}/airbyte_agent_amazon_ads/_vendored/connector_sdk/performance/metrics.py +0 -0
- {airbyte_agent_amazon_ads-0.1.1 → airbyte_agent_amazon_ads-0.1.4}/airbyte_agent_amazon_ads/_vendored/connector_sdk/schema/__init__.py +0 -0
- {airbyte_agent_amazon_ads-0.1.1 → airbyte_agent_amazon_ads-0.1.4}/airbyte_agent_amazon_ads/_vendored/connector_sdk/schema/base.py +0 -0
- {airbyte_agent_amazon_ads-0.1.1 → airbyte_agent_amazon_ads-0.1.4}/airbyte_agent_amazon_ads/_vendored/connector_sdk/schema/components.py +0 -0
- {airbyte_agent_amazon_ads-0.1.1 → airbyte_agent_amazon_ads-0.1.4}/airbyte_agent_amazon_ads/_vendored/connector_sdk/schema/connector.py +0 -0
- {airbyte_agent_amazon_ads-0.1.1 → airbyte_agent_amazon_ads-0.1.4}/airbyte_agent_amazon_ads/_vendored/connector_sdk/schema/extensions.py +0 -0
- {airbyte_agent_amazon_ads-0.1.1 → airbyte_agent_amazon_ads-0.1.4}/airbyte_agent_amazon_ads/_vendored/connector_sdk/schema/operations.py +0 -0
- {airbyte_agent_amazon_ads-0.1.1 → airbyte_agent_amazon_ads-0.1.4}/airbyte_agent_amazon_ads/_vendored/connector_sdk/schema/security.py +0 -0
- {airbyte_agent_amazon_ads-0.1.1 → airbyte_agent_amazon_ads-0.1.4}/airbyte_agent_amazon_ads/_vendored/connector_sdk/secrets.py +0 -0
- {airbyte_agent_amazon_ads-0.1.1 → airbyte_agent_amazon_ads-0.1.4}/airbyte_agent_amazon_ads/_vendored/connector_sdk/telemetry/__init__.py +0 -0
- {airbyte_agent_amazon_ads-0.1.1 → airbyte_agent_amazon_ads-0.1.4}/airbyte_agent_amazon_ads/_vendored/connector_sdk/telemetry/config.py +0 -0
- {airbyte_agent_amazon_ads-0.1.1 → airbyte_agent_amazon_ads-0.1.4}/airbyte_agent_amazon_ads/_vendored/connector_sdk/telemetry/events.py +0 -0
- {airbyte_agent_amazon_ads-0.1.1 → airbyte_agent_amazon_ads-0.1.4}/airbyte_agent_amazon_ads/_vendored/connector_sdk/telemetry/tracker.py +0 -0
- {airbyte_agent_amazon_ads-0.1.1 → airbyte_agent_amazon_ads-0.1.4}/airbyte_agent_amazon_ads/_vendored/connector_sdk/types.py +0 -0
- {airbyte_agent_amazon_ads-0.1.1 → airbyte_agent_amazon_ads-0.1.4}/airbyte_agent_amazon_ads/_vendored/connector_sdk/utils.py +0 -0
- {airbyte_agent_amazon_ads-0.1.1 → airbyte_agent_amazon_ads-0.1.4}/airbyte_agent_amazon_ads/_vendored/connector_sdk/validation.py +0 -0
- {airbyte_agent_amazon_ads-0.1.1 → airbyte_agent_amazon_ads-0.1.4}/airbyte_agent_amazon_ads/connector.py +0 -0
- {airbyte_agent_amazon_ads-0.1.1 → airbyte_agent_amazon_ads-0.1.4}/airbyte_agent_amazon_ads/connector_model.py +0 -0
- {airbyte_agent_amazon_ads-0.1.1 → airbyte_agent_amazon_ads-0.1.4}/airbyte_agent_amazon_ads/models.py +0 -0
- {airbyte_agent_amazon_ads-0.1.1 → airbyte_agent_amazon_ads-0.1.4}/airbyte_agent_amazon_ads/types.py +0 -0
|
@@ -0,0 +1,103 @@
|
|
|
1
|
+
# Amazon-Ads authentication and configuration
|
|
2
|
+
|
|
3
|
+
This page documents the authentication and configuration options for the Amazon-Ads agent connector.
|
|
4
|
+
|
|
5
|
+
## Authentication
|
|
6
|
+
|
|
7
|
+
### Open source execution
|
|
8
|
+
|
|
9
|
+
In open source mode, you provide API credentials directly to the connector.
|
|
10
|
+
|
|
11
|
+
#### OAuth
|
|
12
|
+
|
|
13
|
+
| Field Name | Type | Required | Description |
|
|
14
|
+
|------------|------|----------|-------------|
|
|
15
|
+
| `client_id` | `str` | Yes | The client ID of your Amazon Ads API application |
|
|
16
|
+
| `client_secret` | `str` | Yes | The client secret of your Amazon Ads API application |
|
|
17
|
+
| `refresh_token` | `str` | Yes | The refresh token obtained from the OAuth authorization flow |
|
|
18
|
+
|
|
19
|
+
```python
|
|
20
|
+
from airbyte_agent_amazon-ads import AmazonAdsConnector
|
|
21
|
+
from airbyte_agent_amazon-ads.models import AmazonAdsAuthConfig
|
|
22
|
+
|
|
23
|
+
connector = AmazonAdsConnector(
|
|
24
|
+
auth_config=AmazonAdsAuthConfig(
|
|
25
|
+
client_id="<The client ID of your Amazon Ads API application>",
|
|
26
|
+
client_secret="<The client secret of your Amazon Ads API application>",
|
|
27
|
+
refresh_token="<The refresh token obtained from the OAuth authorization flow>"
|
|
28
|
+
)
|
|
29
|
+
)
|
|
30
|
+
```
|
|
31
|
+
|
|
32
|
+
#### Token
|
|
33
|
+
This authentication method is not available for this connector.
|
|
34
|
+
|
|
35
|
+
### Hosted execution
|
|
36
|
+
|
|
37
|
+
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
|
+
|
|
39
|
+
#### OAuth
|
|
40
|
+
|
|
41
|
+
Create a connector with OAuth credentials:
|
|
42
|
+
|
|
43
|
+
```bash
|
|
44
|
+
curl -X POST 'https://api.airbyte.ai/v1/integrations/sources' \
|
|
45
|
+
-H 'Authorization: Bearer <SCOPED_TOKEN>' \
|
|
46
|
+
-H 'Content-Type: application/json' \
|
|
47
|
+
-d '{
|
|
48
|
+
"workspace_id": "<WORKSPACE_ID>",
|
|
49
|
+
"source_template_id": "<SOURCE_TEMPLATE_ID>",
|
|
50
|
+
"name": "My Amazon-Ads Connector",
|
|
51
|
+
"credentials": {
|
|
52
|
+
"client_id": "<The client ID of your Amazon Ads API application>",
|
|
53
|
+
"client_secret": "<The client secret of your Amazon Ads API application>",
|
|
54
|
+
"refresh_token": "<The refresh token obtained from the OAuth authorization flow>"
|
|
55
|
+
}
|
|
56
|
+
}'
|
|
57
|
+
```
|
|
58
|
+
|
|
59
|
+
#### Token
|
|
60
|
+
This authentication method is not available for this connector.
|
|
61
|
+
|
|
62
|
+
#### Execution
|
|
63
|
+
|
|
64
|
+
After creating the connector, execute operations using either the Python SDK or API.
|
|
65
|
+
|
|
66
|
+
**Python SDK**
|
|
67
|
+
|
|
68
|
+
```python
|
|
69
|
+
from airbyte_agent_amazon-ads import AmazonAdsConnector
|
|
70
|
+
|
|
71
|
+
connector = AmazonAdsConnector(
|
|
72
|
+
external_user_id="<your-scoped-token>",
|
|
73
|
+
airbyte_client_id="<your-client-id>",
|
|
74
|
+
airbyte_client_secret="<your-client-secret>"
|
|
75
|
+
)
|
|
76
|
+
|
|
77
|
+
@agent.tool_plain # assumes you're using Pydantic AI
|
|
78
|
+
@AmazonAdsConnector.describe
|
|
79
|
+
async def amazon-ads_execute(entity: str, action: str, params: dict | None = None):
|
|
80
|
+
return await connector.execute(entity, action, params or {})
|
|
81
|
+
```
|
|
82
|
+
|
|
83
|
+
**API**
|
|
84
|
+
|
|
85
|
+
```bash
|
|
86
|
+
curl -X POST 'https://api.airbyte.ai/api/v1/connectors/sources/<connector_id>/execute' \
|
|
87
|
+
-H 'Authorization: Bearer <SCOPED_TOKEN>' \
|
|
88
|
+
-H 'Content-Type: application/json' \
|
|
89
|
+
-d '{"entity": "<entity>", "action": "<action>", "params": {}}'
|
|
90
|
+
```
|
|
91
|
+
|
|
92
|
+
|
|
93
|
+
## Configuration
|
|
94
|
+
|
|
95
|
+
The Amazon-Ads connector requires the following configuration variables. These variables are used to construct the base API URL. Pass them via the `config` parameter when initializing the connector.
|
|
96
|
+
|
|
97
|
+
| Variable | Type | Required | Default | Description |
|
|
98
|
+
|----------|------|----------|---------|-------------|
|
|
99
|
+
| `region_url` | `string` | Yes | https://advertising-api.amazon.com | The Amazon Ads API endpoint URL based on region:
|
|
100
|
+
- NA (North America): https://advertising-api.amazon.com
|
|
101
|
+
- EU (Europe): https://advertising-api-eu.amazon.com
|
|
102
|
+
- FE (Far East): https://advertising-api-fe.amazon.com
|
|
103
|
+
|
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
# Amazon Ads changelog
|
|
2
|
+
|
|
3
|
+
## [0.1.4] - 2026-01-22
|
|
4
|
+
- Updated connector definition (YAML version 1.0.1)
|
|
5
|
+
- Source commit: 49e6dfe9
|
|
6
|
+
- SDK version: 0.1.0
|
|
7
|
+
|
|
8
|
+
## [0.1.3] - 2026-01-22
|
|
9
|
+
- Updated connector definition (YAML version 1.0.1)
|
|
10
|
+
- Source commit: b27328e2
|
|
11
|
+
- SDK version: 0.1.0
|
|
12
|
+
|
|
13
|
+
## [0.1.2] - 2026-01-22
|
|
14
|
+
- Updated connector definition (YAML version 1.0.1)
|
|
15
|
+
- Source commit: 1da193dd
|
|
16
|
+
- SDK version: 0.1.0
|
|
17
|
+
|
|
18
|
+
## [0.1.1] - 2026-01-22
|
|
19
|
+
- Updated connector definition (YAML version 1.0.1)
|
|
20
|
+
- Source commit: c713ec48
|
|
21
|
+
- SDK version: 0.1.0
|
|
22
|
+
|
|
23
|
+
## [0.1.0] - 2026-01-21
|
|
24
|
+
- Updated connector definition (YAML version 1.0.1)
|
|
25
|
+
- Source commit: 5fbc94c3
|
|
26
|
+
- SDK version: 0.1.0
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: airbyte-agent-amazon-ads
|
|
3
|
-
Version: 0.1.
|
|
3
|
+
Version: 0.1.4
|
|
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/
|
|
@@ -67,19 +67,50 @@ uv pip install airbyte-agent-amazon-ads
|
|
|
67
67
|
|
|
68
68
|
## Usage
|
|
69
69
|
|
|
70
|
+
Connectors can run in open source or hosted mode.
|
|
71
|
+
|
|
72
|
+
### Open source
|
|
73
|
+
|
|
74
|
+
In open source mode, you provide API credentials directly to the connector.
|
|
75
|
+
|
|
70
76
|
```python
|
|
71
|
-
from
|
|
77
|
+
from airbyte_agent_amazon-ads import AmazonAdsConnector
|
|
78
|
+
from airbyte_agent_amazon_ads.models import AmazonAdsAuthConfig
|
|
72
79
|
|
|
73
80
|
connector = AmazonAdsConnector(
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
81
|
+
auth_config=AmazonAdsAuthConfig(
|
|
82
|
+
client_id="<The client ID of your Amazon Ads API application>",
|
|
83
|
+
client_secret="<The client secret of your Amazon Ads API application>",
|
|
84
|
+
refresh_token="<The refresh token obtained from the OAuth authorization flow>"
|
|
85
|
+
)
|
|
79
86
|
)
|
|
80
|
-
|
|
87
|
+
|
|
88
|
+
@agent.tool_plain # assumes you're using Pydantic AI
|
|
89
|
+
@AmazonAdsConnector.describe
|
|
90
|
+
async def amazon-ads_execute(entity: str, action: str, params: dict | None = None):
|
|
91
|
+
return await connector.execute(entity, action, params or {})
|
|
81
92
|
```
|
|
82
93
|
|
|
94
|
+
### Hosted
|
|
95
|
+
|
|
96
|
+
In hosted mode, API credentials are stored securely in Airbyte Cloud. You provide your Airbyte credentials instead.
|
|
97
|
+
|
|
98
|
+
This example assumes you've already authenticated your connector with Airbyte. See [Authentication](AUTH.md) to learn more about authenticating. If you need a step-by-step guide, see the [hosted execution tutorial](https://docs.airbyte.com/ai-agents/quickstarts/tutorial-hosted).
|
|
99
|
+
|
|
100
|
+
```python
|
|
101
|
+
from airbyte_agent_amazon-ads import AmazonAdsConnector
|
|
102
|
+
|
|
103
|
+
connector = AmazonAdsConnector(
|
|
104
|
+
external_user_id="<your-scoped-token>",
|
|
105
|
+
airbyte_client_id="<your-client-id>",
|
|
106
|
+
airbyte_client_secret="<your-client-secret>"
|
|
107
|
+
)
|
|
108
|
+
|
|
109
|
+
@agent.tool_plain # assumes you're using Pydantic AI
|
|
110
|
+
@AmazonAdsConnector.describe
|
|
111
|
+
async def amazon-ads_execute(entity: str, action: str, params: dict | None = None):
|
|
112
|
+
return await connector.execute(entity, action, params or {})
|
|
113
|
+
```
|
|
83
114
|
|
|
84
115
|
## Full documentation
|
|
85
116
|
|
|
@@ -92,12 +123,14 @@ This connector supports the following entities and actions.
|
|
|
92
123
|
| Sponsored Product Campaigns | [List](./REFERENCE.md#sponsored-product-campaigns-list), [Get](./REFERENCE.md#sponsored-product-campaigns-get) |
|
|
93
124
|
|
|
94
125
|
|
|
126
|
+
For all authentication options, see the connector's [authentication documentation](AUTH.md).
|
|
127
|
+
|
|
95
128
|
For detailed documentation on available actions and parameters, see this connector's [full reference documentation](./REFERENCE.md).
|
|
96
129
|
|
|
97
130
|
For the service's official API docs, see the [Amazon-Ads API reference](https://advertising.amazon.com/API/docs/en-us).
|
|
98
131
|
|
|
99
132
|
## Version information
|
|
100
133
|
|
|
101
|
-
- **Package version:** 0.1.
|
|
134
|
+
- **Package version:** 0.1.4
|
|
102
135
|
- **Connector version:** 1.0.1
|
|
103
|
-
- **Generated with Connector SDK commit SHA:**
|
|
136
|
+
- **Generated with Connector SDK commit SHA:** 49e6dfe93fc406c8d2ed525372608fa2766ebece
|
|
@@ -0,0 +1,103 @@
|
|
|
1
|
+
# Amazon-Ads agent connector
|
|
2
|
+
|
|
3
|
+
Amazon Ads is Amazon's advertising platform that enables sellers and vendors to promote their
|
|
4
|
+
products across Amazon's marketplace. This connector provides access to advertising profiles
|
|
5
|
+
for managing and analyzing advertising campaigns across different marketplaces.
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
## Example questions
|
|
9
|
+
|
|
10
|
+
The Amazon-Ads connector is optimized to handle prompts like these.
|
|
11
|
+
|
|
12
|
+
- List all my advertising profiles across marketplaces
|
|
13
|
+
- Show me the profiles for my seller accounts
|
|
14
|
+
- What marketplaces do I have advertising profiles in?
|
|
15
|
+
- List all portfolios for a specific profile
|
|
16
|
+
- Show me all sponsored product campaigns
|
|
17
|
+
- What campaigns are currently enabled?
|
|
18
|
+
- Find campaigns with a specific targeting type
|
|
19
|
+
|
|
20
|
+
## Unsupported questions
|
|
21
|
+
|
|
22
|
+
The Amazon-Ads connector isn't currently able to handle prompts like these.
|
|
23
|
+
|
|
24
|
+
- Create a new advertising campaign
|
|
25
|
+
- Update my campaign budget
|
|
26
|
+
- Delete an ad group
|
|
27
|
+
- Generate a performance report
|
|
28
|
+
|
|
29
|
+
## Installation
|
|
30
|
+
|
|
31
|
+
```bash
|
|
32
|
+
uv pip install airbyte-agent-amazon-ads
|
|
33
|
+
```
|
|
34
|
+
|
|
35
|
+
## Usage
|
|
36
|
+
|
|
37
|
+
Connectors can run in open source or hosted mode.
|
|
38
|
+
|
|
39
|
+
### Open source
|
|
40
|
+
|
|
41
|
+
In open source mode, you provide API credentials directly to the connector.
|
|
42
|
+
|
|
43
|
+
```python
|
|
44
|
+
from airbyte_agent_amazon-ads import AmazonAdsConnector
|
|
45
|
+
from airbyte_agent_amazon_ads.models import AmazonAdsAuthConfig
|
|
46
|
+
|
|
47
|
+
connector = AmazonAdsConnector(
|
|
48
|
+
auth_config=AmazonAdsAuthConfig(
|
|
49
|
+
client_id="<The client ID of your Amazon Ads API application>",
|
|
50
|
+
client_secret="<The client secret of your Amazon Ads API application>",
|
|
51
|
+
refresh_token="<The refresh token obtained from the OAuth authorization flow>"
|
|
52
|
+
)
|
|
53
|
+
)
|
|
54
|
+
|
|
55
|
+
@agent.tool_plain # assumes you're using Pydantic AI
|
|
56
|
+
@AmazonAdsConnector.describe
|
|
57
|
+
async def amazon-ads_execute(entity: str, action: str, params: dict | None = None):
|
|
58
|
+
return await connector.execute(entity, action, params or {})
|
|
59
|
+
```
|
|
60
|
+
|
|
61
|
+
### Hosted
|
|
62
|
+
|
|
63
|
+
In hosted mode, API credentials are stored securely in Airbyte Cloud. You provide your Airbyte credentials instead.
|
|
64
|
+
|
|
65
|
+
This example assumes you've already authenticated your connector with Airbyte. See [Authentication](AUTH.md) to learn more about authenticating. If you need a step-by-step guide, see the [hosted execution tutorial](https://docs.airbyte.com/ai-agents/quickstarts/tutorial-hosted).
|
|
66
|
+
|
|
67
|
+
```python
|
|
68
|
+
from airbyte_agent_amazon-ads import AmazonAdsConnector
|
|
69
|
+
|
|
70
|
+
connector = AmazonAdsConnector(
|
|
71
|
+
external_user_id="<your-scoped-token>",
|
|
72
|
+
airbyte_client_id="<your-client-id>",
|
|
73
|
+
airbyte_client_secret="<your-client-secret>"
|
|
74
|
+
)
|
|
75
|
+
|
|
76
|
+
@agent.tool_plain # assumes you're using Pydantic AI
|
|
77
|
+
@AmazonAdsConnector.describe
|
|
78
|
+
async def amazon-ads_execute(entity: str, action: str, params: dict | None = None):
|
|
79
|
+
return await connector.execute(entity, action, params or {})
|
|
80
|
+
```
|
|
81
|
+
|
|
82
|
+
## Full documentation
|
|
83
|
+
|
|
84
|
+
This connector supports the following entities and actions.
|
|
85
|
+
|
|
86
|
+
| Entity | Actions |
|
|
87
|
+
|--------|---------|
|
|
88
|
+
| Profiles | [List](./REFERENCE.md#profiles-list), [Get](./REFERENCE.md#profiles-get) |
|
|
89
|
+
| Portfolios | [List](./REFERENCE.md#portfolios-list), [Get](./REFERENCE.md#portfolios-get) |
|
|
90
|
+
| Sponsored Product Campaigns | [List](./REFERENCE.md#sponsored-product-campaigns-list), [Get](./REFERENCE.md#sponsored-product-campaigns-get) |
|
|
91
|
+
|
|
92
|
+
|
|
93
|
+
For all authentication options, see the connector's [authentication documentation](AUTH.md).
|
|
94
|
+
|
|
95
|
+
For detailed documentation on available actions and parameters, see this connector's [full reference documentation](./REFERENCE.md).
|
|
96
|
+
|
|
97
|
+
For the service's official API docs, see the [Amazon-Ads API reference](https://advertising.amazon.com/API/docs/en-us).
|
|
98
|
+
|
|
99
|
+
## Version information
|
|
100
|
+
|
|
101
|
+
- **Package version:** 0.1.4
|
|
102
|
+
- **Connector version:** 1.0.1
|
|
103
|
+
- **Generated with Connector SDK commit SHA:** 49e6dfe93fc406c8d2ed525372608fa2766ebece
|
|
@@ -311,63 +311,3 @@ curl --location 'https://api.airbyte.ai/api/v1/connectors/sources/{your_source_i
|
|
|
311
311
|
|
|
312
312
|
</details>
|
|
313
313
|
|
|
314
|
-
|
|
315
|
-
|
|
316
|
-
## Configuration
|
|
317
|
-
|
|
318
|
-
The Amazon-Ads connector requires the following configuration variables. These variables are used to construct the base API URL. Pass them via the `config` parameter when initializing the connector.
|
|
319
|
-
|
|
320
|
-
| Variable | Type | Required | Default | Description |
|
|
321
|
-
|----------|------|----------|---------|-------------|
|
|
322
|
-
| `region_url` | `string` | Yes | https://advertising-api.amazon.com | The Amazon Ads API endpoint URL based on region:
|
|
323
|
-
- NA (North America): https://advertising-api.amazon.com
|
|
324
|
-
- EU (Europe): https://advertising-api-eu.amazon.com
|
|
325
|
-
- FE (Far East): https://advertising-api-fe.amazon.com
|
|
326
|
-
|
|
|
327
|
-
|
|
328
|
-
|
|
329
|
-
## Authentication
|
|
330
|
-
|
|
331
|
-
The Amazon-Ads connector supports the following authentication methods.
|
|
332
|
-
|
|
333
|
-
|
|
334
|
-
### OAuth2 Authentication
|
|
335
|
-
|
|
336
|
-
| Field Name | Type | Required | Description |
|
|
337
|
-
|------------|------|----------|-------------|
|
|
338
|
-
| `client_id` | `str` | Yes | The client ID of your Amazon Ads API application |
|
|
339
|
-
| `client_secret` | `str` | Yes | The client secret of your Amazon Ads API application |
|
|
340
|
-
| `refresh_token` | `str` | Yes | The refresh token obtained from the OAuth authorization flow |
|
|
341
|
-
|
|
342
|
-
#### Example
|
|
343
|
-
|
|
344
|
-
**Python SDK**
|
|
345
|
-
|
|
346
|
-
```python
|
|
347
|
-
AmazonAdsConnector(
|
|
348
|
-
auth_config=AmazonAdsAuthConfig(
|
|
349
|
-
client_id="<The client ID of your Amazon Ads API application>",
|
|
350
|
-
client_secret="<The client secret of your Amazon Ads API application>",
|
|
351
|
-
refresh_token="<The refresh token obtained from the OAuth authorization flow>"
|
|
352
|
-
)
|
|
353
|
-
)
|
|
354
|
-
```
|
|
355
|
-
|
|
356
|
-
**API**
|
|
357
|
-
|
|
358
|
-
```bash
|
|
359
|
-
curl --location 'https://api.airbyte.ai/api/v1/integrations/sources' \
|
|
360
|
-
--header 'Content-Type: application/json' \
|
|
361
|
-
--header 'Authorization: Bearer {your_auth_token}' \
|
|
362
|
-
--data '{
|
|
363
|
-
"workspace_id": "{your_workspace_id}",
|
|
364
|
-
"source_template_id": "{source_template_id}",
|
|
365
|
-
"auth_config": {
|
|
366
|
-
"client_id": "<The client ID of your Amazon Ads API application>",
|
|
367
|
-
"client_secret": "<The client secret of your Amazon Ads API application>",
|
|
368
|
-
"refresh_token": "<The refresh token obtained from the OAuth authorization flow>"
|
|
369
|
-
},
|
|
370
|
-
"name": "My Amazon-Ads Connector"
|
|
371
|
-
}'
|
|
372
|
-
```
|
|
373
|
-
|
|
@@ -634,9 +634,7 @@ class OAuth2AuthStrategy(AuthStrategy):
|
|
|
634
634
|
Headers dict with additional headers added
|
|
635
635
|
"""
|
|
636
636
|
# Build template context with extracted secret values
|
|
637
|
-
template_context = {
|
|
638
|
-
key: extract_secret_value(value) for key, value in secrets.items()
|
|
639
|
-
}
|
|
637
|
+
template_context = {key: extract_secret_value(value) for key, value in secrets.items()}
|
|
640
638
|
|
|
641
639
|
for header_name, value_template in additional_headers.items():
|
|
642
640
|
# Use Jinja2 templating for variable substitution
|
|
@@ -694,9 +694,7 @@ class LocalExecutor:
|
|
|
694
694
|
"""
|
|
695
695
|
return {key: value for key, value in params.items() if key in allowed_fields and value is not None}
|
|
696
696
|
|
|
697
|
-
def _extract_header_params(
|
|
698
|
-
self, endpoint: EndpointDefinition, params: dict[str, Any], body: dict[str, Any] | None = None
|
|
699
|
-
) -> dict[str, str]:
|
|
697
|
+
def _extract_header_params(self, endpoint: EndpointDefinition, params: dict[str, Any], body: dict[str, Any] | None = None) -> dict[str, str]:
|
|
700
698
|
"""Extract header parameters from params and schema defaults.
|
|
701
699
|
|
|
702
700
|
Also adds Content-Type header when there's a request body (unless already specified
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
# Amazon Ads changelog
|
|
2
|
-
|
|
3
|
-
## [0.1.1] - 2026-01-22
|
|
4
|
-
- Updated connector definition (YAML version 1.0.1)
|
|
5
|
-
- Source commit: c713ec48
|
|
6
|
-
- SDK version: 0.1.0
|
|
7
|
-
|
|
8
|
-
## [0.1.0] - 2026-01-21
|
|
9
|
-
- Updated connector definition (YAML version 1.0.1)
|
|
10
|
-
- Source commit: 5fbc94c3
|
|
11
|
-
- SDK version: 0.1.0
|
|
@@ -1,70 +0,0 @@
|
|
|
1
|
-
# Amazon-Ads agent connector
|
|
2
|
-
|
|
3
|
-
Amazon Ads is Amazon's advertising platform that enables sellers and vendors to promote their
|
|
4
|
-
products across Amazon's marketplace. This connector provides access to advertising profiles
|
|
5
|
-
for managing and analyzing advertising campaigns across different marketplaces.
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
## Example questions
|
|
9
|
-
|
|
10
|
-
The Amazon-Ads connector is optimized to handle prompts like these.
|
|
11
|
-
|
|
12
|
-
- List all my advertising profiles across marketplaces
|
|
13
|
-
- Show me the profiles for my seller accounts
|
|
14
|
-
- What marketplaces do I have advertising profiles in?
|
|
15
|
-
- List all portfolios for a specific profile
|
|
16
|
-
- Show me all sponsored product campaigns
|
|
17
|
-
- What campaigns are currently enabled?
|
|
18
|
-
- Find campaigns with a specific targeting type
|
|
19
|
-
|
|
20
|
-
## Unsupported questions
|
|
21
|
-
|
|
22
|
-
The Amazon-Ads connector isn't currently able to handle prompts like these.
|
|
23
|
-
|
|
24
|
-
- Create a new advertising campaign
|
|
25
|
-
- Update my campaign budget
|
|
26
|
-
- Delete an ad group
|
|
27
|
-
- Generate a performance report
|
|
28
|
-
|
|
29
|
-
## Installation
|
|
30
|
-
|
|
31
|
-
```bash
|
|
32
|
-
uv pip install airbyte-agent-amazon-ads
|
|
33
|
-
```
|
|
34
|
-
|
|
35
|
-
## Usage
|
|
36
|
-
|
|
37
|
-
```python
|
|
38
|
-
from airbyte_agent_amazon_ads import AmazonAdsConnector, AmazonAdsAuthConfig
|
|
39
|
-
|
|
40
|
-
connector = AmazonAdsConnector(
|
|
41
|
-
auth_config=AmazonAdsAuthConfig(
|
|
42
|
-
client_id="...",
|
|
43
|
-
client_secret="...",
|
|
44
|
-
refresh_token="..."
|
|
45
|
-
)
|
|
46
|
-
)
|
|
47
|
-
result = await connector.profiles.list()
|
|
48
|
-
```
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
## Full documentation
|
|
52
|
-
|
|
53
|
-
This connector supports the following entities and actions.
|
|
54
|
-
|
|
55
|
-
| Entity | Actions |
|
|
56
|
-
|--------|---------|
|
|
57
|
-
| Profiles | [List](./REFERENCE.md#profiles-list), [Get](./REFERENCE.md#profiles-get) |
|
|
58
|
-
| Portfolios | [List](./REFERENCE.md#portfolios-list), [Get](./REFERENCE.md#portfolios-get) |
|
|
59
|
-
| Sponsored Product Campaigns | [List](./REFERENCE.md#sponsored-product-campaigns-list), [Get](./REFERENCE.md#sponsored-product-campaigns-get) |
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
For detailed documentation on available actions and parameters, see this connector's [full reference documentation](./REFERENCE.md).
|
|
63
|
-
|
|
64
|
-
For the service's official API docs, see the [Amazon-Ads API reference](https://advertising.amazon.com/API/docs/en-us).
|
|
65
|
-
|
|
66
|
-
## Version information
|
|
67
|
-
|
|
68
|
-
- **Package version:** 0.1.1
|
|
69
|
-
- **Connector version:** 1.0.1
|
|
70
|
-
- **Generated with Connector SDK commit SHA:** c713ec4833c2b52dc89926ec68caa343423884cd
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{airbyte_agent_amazon_ads-0.1.1 → airbyte_agent_amazon_ads-0.1.4}/airbyte_agent_amazon_ads/models.py
RENAMED
|
File without changes
|
{airbyte_agent_amazon_ads-0.1.1 → airbyte_agent_amazon_ads-0.1.4}/airbyte_agent_amazon_ads/types.py
RENAMED
|
File without changes
|