> Portal Navigation:
> 
> - Append `.md` to any URL under `https://dev.wix.com/docs/` to get its markdown version.
> - Pages are either content pages (article or reference text) or menu pages (a list of links to child pages).
> - To get a menu page, truncate any URL to a parent path and append `.md` (e.g. `https://dev.wix.com/docs/sdk.md`, `https://dev.wix.com/docs/sdk/core-modules.md`).
> - Top-level index of all portals: https://dev.wix.com/docs/llms.txt
> - Full concatenated docs: https://dev.wix.com/docs/llms-full.txt

# GetCampaignDailyBudgetBoundaries

# Package: googleAds

# Namespace: CampaignService

# Method link: https://dev.wix.com/docs/api-reference/business-management/marketing/ads/google-ads/campaign-v1/get-campaign-daily-budget-boundaries.md

## Permission Scopes:
View google ads campaigns: SCOPE.PROMOTE.VIEW-GOOGLE-ADS

## Introduction

Retrieves the minimum and maximum allowed daily budget for the current account and currency.

---

## REST API

### Schema

```
 Method: getCampaignDailyBudgetBoundaries
 Description: Retrieves the minimum and maximum allowed daily budget for the current account and currency.
 URL: https://www.wixapis.com/_serverless/pa-google/v1/campaign/daily-budget-boundaries
 Method: GET
 Return type: GetCampaignDailyBudgetBoundariesResponse
  - name: campaignDailyBudgetBoundaries | type: CampaignDailyBudgetBoundaries | description: The minimum and maximum allowed daily budget for the account's currency and subscription level.  
     - name: minimumDailyBudget | type: number | description: The minimum daily budget for the campaign.  | validation: format double
     - name: maximumDailyBudget | type: number | description: The maximum daily budget for the campaign.  | validation: format double
     - name: minimumDailyBudgetInUsd | type: number | description: The minimum daily budget for the campaign, converted to USD.  Returned only when the account currency isn't one of the currencies natively supported by Google Ads (USD, EUR, GBP, or JPY).  | validation: format double
     - name: maximumDailyBudgetInUsd | type: number | description: The maximum daily budget for the campaign, converted to USD.  Returned only when the account currency isn't one of the currencies natively supported by Google Ads (USD, EUR, GBP, or JPY).  | validation: format double


```

### Examples

### Get Campaign Daily Budget Boundaries
```curl
curl -X GET \
  'https://www.wixapis.com/google-ads/v1/campaign/daily-budget-boundaries' \
  -H 'Authorization: <AUTH>'
```

---

## JavaScript SDK

### Schema

```
 Method: wixClientAdmin.promoteGoogleAds.campaigns.getCampaignDailyBudgetBoundaries()
 Description: Retrieves the minimum and maximum allowed daily budget for the current account and currency.
 Return type: PROMISE<GetCampaignDailyBudgetBoundariesResponse>
  - name: campaignDailyBudgetBoundaries | type: CampaignDailyBudgetBoundaries | description: The minimum and maximum allowed daily budget for the account's currency and subscription level.  
     - name: minimumDailyBudget | type: number | description: The minimum daily budget for the campaign.  
     - name: maximumDailyBudget | type: number | description: The maximum daily budget for the campaign.  
     - name: minimumDailyBudgetInUsd | type: number | description: The minimum daily budget for the campaign, converted to USD.  Returned only when the account currency isn't one of the currencies natively supported by Google Ads (USD, EUR, GBP, or JPY).  
     - name: maximumDailyBudgetInUsd | type: number | description: The maximum daily budget for the campaign, converted to USD.  Returned only when the account currency isn't one of the currencies natively supported by Google Ads (USD, EUR, GBP, or JPY).  


```

### Examples

### Get the allowed daily budget range for campaigns
```javascript
import { campaigns } from '@wix/promote-google-ads';

const response = await campaigns.getCampaignDailyBudgetBoundaries();

/* Promise resolves to:
 * {
 *   "campaignDailyBudgetBoundaries": {
 *     "minimumDailyBudget": 6400000,
 *     "maximumDailyBudget": 127600000,
 *     "minimumDailyBudgetInUsd": 6400000,
 *     "maximumDailyBudgetInUsd": 127600000
 *   }
 * }
 */

```

### getCampaignDailyBudgetBoundaries (self-hosted)
Self-hosted SDK calls require you to [create a client](https://dev.wix.com/docs/sdk/articles/work-with-the-sdk/about-the-wix-client.md).

```javascript
import { createClient } from '@wix/sdk';
import { campaigns } from '@wix/promote-google-ads';
// Import the auth strategy for the relevant access type
// Import the relevant host module if needed

const myWixClient = createClient ({
  modules: { campaigns },
  // Include the auth strategy and host as relevant
});


async function getCampaignDailyBudgetBoundaries() {
  const response = await myWixClient.campaigns.getCampaignDailyBudgetBoundaries();
};
```

---