GET/ad_campaign/suggest_budget
Note: This method is only supported for Promoted Offsite campaigns. Sellers can use the getAdvertisingEligibility method of the Account API v1 to determine if they are eligible for offsite campaigns.
This method allows sellers to retrieve the suggested budget for an offsite campaign.
Input
Resource URI
This method is supported in Sandbox environment. To access the endpoint, just replace the api.ebay.com
root URI with api.sandbox.ebay.com
URI parameters
This method has no URI parameters.
HTTP request headers
All requests made to eBay REST operations require you to provide the Authorization
HTTP header for authentication authorization.
The table below shows additional HTTP request headers that are either required, conditionally required, or strongly recommended for this method. Other standard HTTP request headers- opens rest request components page (not in this table) can also be used, but they are optional.
Header | Type | Description |
---|---|---|
X-EBAY-C-MARKETPLACE-ID | string | This header identifies the seller's eBay marketplace. Note: If a marketplace ID value is not provided, the default value of EBAY_US is used.See MarketplaceIdEnum for supported values. Occurrence: Required |
OAuth scope
This request requires an access token created with the authorization code grant flow, using one or more scopes from the following list (please check your Application Keys page for a list of OAuth scopes available to your application):
https://api.ebay.com/oauth/api_scope/sell.marketing
See OAuth access tokens for more information.
Request payload
This call has no payload.
Request fields
This call has no field definitions.
Output
HTTP response headers
This call has no response headers.
Response payload
Response fields
Output container/field | Type | Description |
---|---|---|
suggestedBudget | array of BudgetRecommendationResponse | The suggested allocated daily budget for an offsite campaign. Occurrence: Conditional |
suggestedBudget.budget | CampaignBudget | The allocated daily budget for the Cost Per Click (CPC) Promoted Listings campaign. Occurrence: Conditional |
suggestedBudget.budget.daily | Budget | The daily budget limit for the Cost Per Click (CPC) Promoted Listings campaign.
Occurrence: Conditional |
suggestedBudget.budget.daily.amount | Amount | The allocated budget amount for a CPC Promoted Listings campaign. Occurrence: Conditional |
suggestedBudget.budget.daily.amount.currency | CurrencyCodeEnum | The base currency applied to the value field to establish a monetary amount. Occurrence: Conditional |
suggestedBudget.budget.daily.amount.value | string | The monetary amount in the specified currency. Occurrence: Conditional |
suggestedBudget.budget.daily.budgetStatus | BudgetStatusEnum | The budget status for a CPC Promoted Listings campaign. Occurrence: Conditional |
suggestedBudget.campaignId | string | The unique eBay-assigned ID for a campaign. This ID is generated when a campaign is created. Occurrence: Conditional |
suggestedBudget.channels | array of ChannelEnum | The channel for the campaign. This value indicates whether the campaign is an Onsite or Offsite advertising campaign.
Occurrence: Conditional |
HTTP status codes
This call can return one of the following HTTP status codes. For an overview of the status codes, see HTTP status codes in Using eBay RESTful APIs.
Status | Meaning |
---|---|
200 | Success |
400 | Bad Request |
404 | Not Found |
409 | Business error |
500 | Internal Server error |
Error codes
For more on errors, plus the codes of other common errors, see Handling errors.
Code | Domain | Category | Meaning |
---|---|---|---|
35001 | API_MARKETING | APPLICATION | There was a problem with an eBay internal system or process. Contact eBay Developer Technical Support for assistance. |
35002 | API_MARKETING | APPLICATION | Internal error. Please wait a few minutes and try the call again. |
35041 | API_MARKETING | REQUEST | The 'marketplaceId' is required. |
35095 | API_MARKETING | BUSINESS | 'marketplaceId' {marketplaceId} is not supported. Offsite Ads is supported only on these marketplaces: {supportedMarketplaces}. |
Warnings
This call has no warnings.
Samples
New to making API calls? Please see Making a Call.
Note: Identifiers, such as order IDs or user IDs, and personal data in these samples might be anonymized or may no longer be active on eBay. If necessary, substitute current, relevant eBay data in your requests.
Sample 1: Retrieve Suggested Budget for an Offsite Campaign
This example retrieves the suggested budget for a Promoted Offsite campaign.
Input
This method does not have a request payload.
GEThttps://api.ebay.com/sell/marketing/v1/ad_campaign/suggest_budget
Output
If the call is successful, the suggested budget for the offsite campaign is returned, alongside the associated campaignId.
In this sample, the Promoted Offsite campaign has a suggested allocated budget of 20 USD per day.