mcm-cli 1.6.0__tar.gz → 1.6.1__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 (38) hide show
  1. {mcm_cli-1.6.0/mcm_cli.egg-info → mcm_cli-1.6.1}/PKG-INFO +1 -1
  2. {mcm_cli-1.6.0 → mcm_cli-1.6.1/mcm_cli.egg-info}/PKG-INFO +1 -1
  3. {mcm_cli-1.6.0 → mcm_cli-1.6.1}/mcmcli/__main__.py +1 -1
  4. {mcm_cli-1.6.0 → mcm_cli-1.6.1}/mcmcli/command/campaign.py +4 -4
  5. {mcm_cli-1.6.0 → mcm_cli-1.6.1}/setup.py +1 -1
  6. {mcm_cli-1.6.0 → mcm_cli-1.6.1}/LICENSE +0 -0
  7. {mcm_cli-1.6.0 → mcm_cli-1.6.1}/NOTICE +0 -0
  8. {mcm_cli-1.6.0 → mcm_cli-1.6.1}/README.md +0 -0
  9. {mcm_cli-1.6.0 → mcm_cli-1.6.1}/mcm_cli.egg-info/SOURCES.txt +0 -0
  10. {mcm_cli-1.6.0 → mcm_cli-1.6.1}/mcm_cli.egg-info/dependency_links.txt +0 -0
  11. {mcm_cli-1.6.0 → mcm_cli-1.6.1}/mcm_cli.egg-info/entry_points.txt +0 -0
  12. {mcm_cli-1.6.0 → mcm_cli-1.6.1}/mcm_cli.egg-info/requires.txt +0 -0
  13. {mcm_cli-1.6.0 → mcm_cli-1.6.1}/mcm_cli.egg-info/top_level.txt +0 -0
  14. {mcm_cli-1.6.0 → mcm_cli-1.6.1}/mcmcli/__init__.py +0 -0
  15. {mcm_cli-1.6.0 → mcm_cli-1.6.1}/mcmcli/command/account.py +0 -0
  16. {mcm_cli-1.6.0 → mcm_cli-1.6.1}/mcmcli/command/admin.py +0 -0
  17. {mcm_cli-1.6.0 → mcm_cli-1.6.1}/mcmcli/command/auth.py +0 -0
  18. {mcm_cli-1.6.0 → mcm_cli-1.6.1}/mcmcli/command/config.py +0 -0
  19. {mcm_cli-1.6.0 → mcm_cli-1.6.1}/mcmcli/command/decision.py +0 -0
  20. {mcm_cli-1.6.0 → mcm_cli-1.6.1}/mcmcli/command/report.py +0 -0
  21. {mcm_cli-1.6.0 → mcm_cli-1.6.1}/mcmcli/command/wallet.py +0 -0
  22. {mcm_cli-1.6.0 → mcm_cli-1.6.1}/mcmcli/data/account.py +0 -0
  23. {mcm_cli-1.6.0 → mcm_cli-1.6.1}/mcmcli/data/account_user.py +0 -0
  24. {mcm_cli-1.6.0 → mcm_cli-1.6.1}/mcmcli/data/campaign.py +0 -0
  25. {mcm_cli-1.6.0 → mcm_cli-1.6.1}/mcmcli/data/decision.py +0 -0
  26. {mcm_cli-1.6.0 → mcm_cli-1.6.1}/mcmcli/data/error.py +0 -0
  27. {mcm_cli-1.6.0 → mcm_cli-1.6.1}/mcmcli/data/item.py +0 -0
  28. {mcm_cli-1.6.0 → mcm_cli-1.6.1}/mcmcli/data/item_blocking_result.py +0 -0
  29. {mcm_cli-1.6.0 → mcm_cli-1.6.1}/mcmcli/data/platform_user.py +0 -0
  30. {mcm_cli-1.6.0 → mcm_cli-1.6.1}/mcmcli/data/report.py +0 -0
  31. {mcm_cli-1.6.0 → mcm_cli-1.6.1}/mcmcli/data/seller.py +0 -0
  32. {mcm_cli-1.6.0 → mcm_cli-1.6.1}/mcmcli/data/token.py +0 -0
  33. {mcm_cli-1.6.0 → mcm_cli-1.6.1}/mcmcli/data/user_join_request.py +0 -0
  34. {mcm_cli-1.6.0 → mcm_cli-1.6.1}/mcmcli/data/wallet.py +0 -0
  35. {mcm_cli-1.6.0 → mcm_cli-1.6.1}/mcmcli/logging.py +0 -0
  36. {mcm_cli-1.6.0 → mcm_cli-1.6.1}/mcmcli/requests.py +0 -0
  37. {mcm_cli-1.6.0 → mcm_cli-1.6.1}/setup.cfg +0 -0
  38. {mcm_cli-1.6.0 → mcm_cli-1.6.1}/tests/test_config.py +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: mcm-cli
3
- Version: 1.6.0
3
+ Version: 1.6.1
4
4
  Summary: A command-line interface for Moloco Commerde Media
5
5
  Home-page: https://github.com/moloco-mcm/mcm-cli
6
6
  Author: Moloco MCM Team
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: mcm-cli
3
- Version: 1.6.0
3
+ Version: 1.6.1
4
4
  Summary: A command-line interface for Moloco Commerde Media
5
5
  Home-page: https://github.com/moloco-mcm/mcm-cli
6
6
  Author: Moloco MCM Team
@@ -37,7 +37,7 @@ def version():
37
37
  """
38
38
  Show the tool version
39
39
  """
40
- typer.echo(f"Version: mcm-cli v1.6.0")
40
+ typer.echo(f"Version: mcm-cli v1.6.1")
41
41
 
42
42
  app.add_typer(mcmcli.command.account.app, name="account", help="Ad account management")
43
43
  app.add_typer(mcmcli.command.admin.app, name="admin", help="Platform administration")
@@ -110,7 +110,7 @@ def update_campaign(
110
110
  target_roas: int = typer.Option(None, help='Target ROAS (%) – Applies only to campaigns with the Optimize ROAS goal type.'),
111
111
  target_cpc: float = typer.Option(None, help='Target CPC – Set in the platform currency. Applies only to campaigns with the Manual CPC goal type.'),
112
112
  budget_period: BudgetPeriod = typer.Option(None, help='Budget Period – Choose between DAILY or WEEKLY.'),
113
- budget_amount: int = typer.Option(None, help='Budget Amount – Set the spending limit for the chosen period.'),
113
+ budget_amount: float = typer.Option(None, help='Budget Amount – Set the spending limit for the chosen period.'),
114
114
  profile: str = typer.Option("default", help="Profile Name – The MCM CLI configuration profile to use."),
115
115
  ):
116
116
  """
@@ -148,6 +148,9 @@ def update_campaign(
148
148
  raise typer.BadParameter(f"The campaign goal type is not FIXED_CPC and cannot update the target CPC. Ad Account ID = {account_id}, Campaign ID = {campaign_id}")
149
149
  goal['optimize_fixed_cpc']['target_cpc']['amount_micro'] = int(target_cpc * 1_000_000)
150
150
 
151
+ # Remove 'daily_budget' as it's unnecessary
152
+ c.root.pop("daily_budget", None)
153
+
151
154
  _, error, c = command.update_campaign(c)
152
155
  if error:
153
156
  print(f"ERROR: {error.message}", file=sys.stderr, flush=True)
@@ -320,9 +323,6 @@ class CampaignCommand:
320
323
  if campaign is None:
321
324
  return Error(code=0, message="invalid campaign info"), None
322
325
 
323
- # Remove 'daily_budget' as it's unnecessary
324
- campaign.root.pop("daily_budget", None)
325
-
326
326
  _api_url = f"{self.api_base_url}/ad-accounts/{campaign.root['ad_account_id']}/campaigns/{campaign.root['id']}"
327
327
  _payload = {
328
328
  "campaign": campaign.model_dump()
@@ -18,7 +18,7 @@ from setuptools import setup, find_packages
18
18
 
19
19
  setup(
20
20
  name='mcm-cli',
21
- version='1.6.0',
21
+ version='1.6.1',
22
22
  description='A command-line interface for Moloco Commerde Media',
23
23
  long_description=open('README.md').read(),
24
24
  long_description_content_type='text/markdown',
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