adloop 0.4.0__tar.gz → 0.4.2__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.
- {adloop-0.4.0 → adloop-0.4.2}/PKG-INFO +6 -2
- {adloop-0.4.0 → adloop-0.4.2}/README.md +5 -1
- {adloop-0.4.0 → adloop-0.4.2}/pyproject.toml +1 -1
- {adloop-0.4.0 → adloop-0.4.2}/src/adloop/__init__.py +6 -2
- adloop-0.4.2/src/adloop/bundled_credentials.json +13 -0
- {adloop-0.4.0 → adloop-0.4.2}/src/adloop/cli.py +33 -30
- adloop-0.4.0/src/adloop/bundled_credentials.json +0 -12
- {adloop-0.4.0 → adloop-0.4.2}/src/adloop/__main__.py +0 -0
- {adloop-0.4.0 → adloop-0.4.2}/src/adloop/ads/__init__.py +0 -0
- {adloop-0.4.0 → adloop-0.4.2}/src/adloop/ads/client.py +0 -0
- {adloop-0.4.0 → adloop-0.4.2}/src/adloop/ads/currency.py +0 -0
- {adloop-0.4.0 → adloop-0.4.2}/src/adloop/ads/forecast.py +0 -0
- {adloop-0.4.0 → adloop-0.4.2}/src/adloop/ads/gaql.py +0 -0
- {adloop-0.4.0 → adloop-0.4.2}/src/adloop/ads/pmax.py +0 -0
- {adloop-0.4.0 → adloop-0.4.2}/src/adloop/ads/read.py +0 -0
- {adloop-0.4.0 → adloop-0.4.2}/src/adloop/ads/write.py +0 -0
- {adloop-0.4.0 → adloop-0.4.2}/src/adloop/auth.py +0 -0
- {adloop-0.4.0 → adloop-0.4.2}/src/adloop/config.py +0 -0
- {adloop-0.4.0 → adloop-0.4.2}/src/adloop/crossref.py +0 -0
- {adloop-0.4.0 → adloop-0.4.2}/src/adloop/ga4/__init__.py +0 -0
- {adloop-0.4.0 → adloop-0.4.2}/src/adloop/ga4/client.py +0 -0
- {adloop-0.4.0 → adloop-0.4.2}/src/adloop/ga4/reports.py +0 -0
- {adloop-0.4.0 → adloop-0.4.2}/src/adloop/ga4/tracking.py +0 -0
- {adloop-0.4.0 → adloop-0.4.2}/src/adloop/safety/__init__.py +0 -0
- {adloop-0.4.0 → adloop-0.4.2}/src/adloop/safety/audit.py +0 -0
- {adloop-0.4.0 → adloop-0.4.2}/src/adloop/safety/guards.py +0 -0
- {adloop-0.4.0 → adloop-0.4.2}/src/adloop/safety/preview.py +0 -0
- {adloop-0.4.0 → adloop-0.4.2}/src/adloop/server.py +0 -0
- {adloop-0.4.0 → adloop-0.4.2}/src/adloop/tracking.py +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.3
|
|
2
2
|
Name: adloop
|
|
3
|
-
Version: 0.4.
|
|
3
|
+
Version: 0.4.2
|
|
4
4
|
Summary: Stop switching between Google Ads, GA4, and your code editor to figure out why conversions dropped.
|
|
5
5
|
Keywords: mcp,google-ads,google-analytics,ga4,cursor,marketing
|
|
6
6
|
Author: Daniel Klose
|
|
@@ -386,12 +386,16 @@ See [CONTRIBUTING.md](CONTRIBUTING.md) for guidelines. The short version: open a
|
|
|
386
386
|
|
|
387
387
|
MIT — see [LICENSE](LICENSE).
|
|
388
388
|
|
|
389
|
+
## Privacy
|
|
390
|
+
|
|
391
|
+
AdLoop runs entirely on your machine. No data is collected, stored, or transmitted to any server. See [PRIVACY.md](PRIVACY.md) for the full privacy policy.
|
|
392
|
+
|
|
389
393
|
---
|
|
390
394
|
|
|
391
395
|
<div align="center">
|
|
392
396
|
|
|
393
397
|
**If AdLoop saves you from switching between Google Ads, GA4, and your code editor — [give it a star](https://github.com/kLOsk/adloop).**
|
|
394
398
|
|
|
395
|
-
Made by [@kLOsk](https://github.com/kLOsk)
|
|
399
|
+
Made by [@kLOsk](https://github.com/kLOsk) | [Privacy Policy](PRIVACY.md)
|
|
396
400
|
|
|
397
401
|
</div>
|
|
@@ -362,12 +362,16 @@ See [CONTRIBUTING.md](CONTRIBUTING.md) for guidelines. The short version: open a
|
|
|
362
362
|
|
|
363
363
|
MIT — see [LICENSE](LICENSE).
|
|
364
364
|
|
|
365
|
+
## Privacy
|
|
366
|
+
|
|
367
|
+
AdLoop runs entirely on your machine. No data is collected, stored, or transmitted to any server. See [PRIVACY.md](PRIVACY.md) for the full privacy policy.
|
|
368
|
+
|
|
365
369
|
---
|
|
366
370
|
|
|
367
371
|
<div align="center">
|
|
368
372
|
|
|
369
373
|
**If AdLoop saves you from switching between Google Ads, GA4, and your code editor — [give it a star](https://github.com/kLOsk/adloop).**
|
|
370
374
|
|
|
371
|
-
Made by [@kLOsk](https://github.com/kLOsk)
|
|
375
|
+
Made by [@kLOsk](https://github.com/kLOsk) | [Privacy Policy](PRIVACY.md)
|
|
372
376
|
|
|
373
377
|
</div>
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
import sys
|
|
4
4
|
|
|
5
|
-
__version__ = "0.4.
|
|
5
|
+
__version__ = "0.4.2"
|
|
6
6
|
|
|
7
7
|
|
|
8
8
|
def main() -> None:
|
|
@@ -14,7 +14,11 @@ def main() -> None:
|
|
|
14
14
|
if len(sys.argv) > 1 and sys.argv[1] == "init":
|
|
15
15
|
from adloop.cli import run_init_wizard
|
|
16
16
|
|
|
17
|
-
|
|
17
|
+
try:
|
|
18
|
+
run_init_wizard()
|
|
19
|
+
except KeyboardInterrupt:
|
|
20
|
+
print("\n\n Setup cancelled.\n")
|
|
21
|
+
sys.exit(130)
|
|
18
22
|
else:
|
|
19
23
|
from adloop.server import mcp
|
|
20
24
|
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
{
|
|
2
|
+
"installed": {
|
|
3
|
+
"client_id": "196969084897-5bk76skhjt474jr2p61vqus3sr5ru3eu.apps.googleusercontent.com",
|
|
4
|
+
"project_id": "adloop-489214",
|
|
5
|
+
"auth_uri": "https://accounts.google.com/o/oauth2/auth",
|
|
6
|
+
"token_uri": "https://oauth2.googleapis.com/token",
|
|
7
|
+
"auth_provider_x509_cert_url": "https://www.googleapis.com/oauth2/v1/certs",
|
|
8
|
+
"client_secret": "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",
|
|
9
|
+
"redirect_uris": [
|
|
10
|
+
"http://localhost"
|
|
11
|
+
]
|
|
12
|
+
}
|
|
13
|
+
}
|
|
@@ -150,39 +150,42 @@ def _generate_config_yaml(
|
|
|
150
150
|
) -> str:
|
|
151
151
|
dry_run_str = "true" if require_dry_run else "false"
|
|
152
152
|
|
|
153
|
-
|
|
153
|
+
lines = [
|
|
154
|
+
"# AdLoop configuration",
|
|
155
|
+
"# Generated by: adloop init",
|
|
156
|
+
"# Docs: https://github.com/kLOsk/adloop",
|
|
157
|
+
"",
|
|
158
|
+
"google:",
|
|
159
|
+
]
|
|
154
160
|
if project_id:
|
|
155
|
-
|
|
161
|
+
lines.append(f' project_id: "{project_id}"')
|
|
156
162
|
if credentials_path:
|
|
157
|
-
|
|
163
|
+
lines.append(f' credentials_path: "{credentials_path}"')
|
|
158
164
|
else:
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
{
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
log_file: "~/.adloop/audit.log"
|
|
184
|
-
blocked_operations: []
|
|
185
|
-
""")
|
|
165
|
+
lines.append(" # Using built-in credentials (no credentials_path needed)")
|
|
166
|
+
lines.append(' token_path: "~/.adloop/token.json"')
|
|
167
|
+
lines += [
|
|
168
|
+
"",
|
|
169
|
+
"ga4:",
|
|
170
|
+
f' property_id: "{property_id}"',
|
|
171
|
+
"",
|
|
172
|
+
"ads:",
|
|
173
|
+
f' developer_token: "{developer_token}"',
|
|
174
|
+
f' customer_id: "{customer_id}"',
|
|
175
|
+
" # MCC / Manager Account ID (required if using a manager account)",
|
|
176
|
+
f' login_customer_id: "{login_customer_id}"',
|
|
177
|
+
"",
|
|
178
|
+
"safety:",
|
|
179
|
+
" # Maximum daily budget AdLoop can set (safety cap)",
|
|
180
|
+
f" max_daily_budget: {max_daily_budget}",
|
|
181
|
+
" max_bid_increase_pct: 100",
|
|
182
|
+
" # When true, confirm_and_apply always runs as dry_run regardless of the parameter",
|
|
183
|
+
f" require_dry_run: {dry_run_str}",
|
|
184
|
+
' log_file: "~/.adloop/audit.log"',
|
|
185
|
+
" blocked_operations: []",
|
|
186
|
+
"",
|
|
187
|
+
]
|
|
188
|
+
return "\n".join(lines)
|
|
186
189
|
|
|
187
190
|
|
|
188
191
|
def _generate_cursor_snippet() -> str:
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"_comment": "PLACEHOLDER — Replace this file with the real OAuth client JSON downloaded from your GCP project. See the plan in .cursor/plans/ for instructions.",
|
|
3
|
-
"installed": {
|
|
4
|
-
"client_id": "REPLACE_ME.apps.googleusercontent.com",
|
|
5
|
-
"project_id": "REPLACE_ME",
|
|
6
|
-
"auth_uri": "https://accounts.google.com/o/oauth2/auth",
|
|
7
|
-
"token_uri": "https://oauth2.googleapis.com/token",
|
|
8
|
-
"auth_provider_x509_cert_url": "https://www.googleapis.com/oauth2/v1/certs",
|
|
9
|
-
"client_secret": "REPLACE_ME",
|
|
10
|
-
"redirect_uris": ["http://localhost"]
|
|
11
|
-
}
|
|
12
|
-
}
|
|
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
|