Home
GET/ad_campaign/{campaign_id}/keyword/{keyword_id}
Note: This method is only available for select partners who have been approved for the eBay Promoted Listings Advanced (PLA) program. For information about how to request access to this program, refer to Promoted Listings Advanced Access Requests in the Promoted Listings Playbook. To determine if a seller qualifies for PLA, use the getAdvertisingEligibility method in Account API.
This method retrieves details on a specific keyword from an ad group within a PLA campaign that uses the Cost Per Click (CPC) funding model.
In the request, specify the campaign_id and keyword_id as path parameters.
Call the getCampaigns method to retrieve a list of current campaign IDs for a seller and call the getKeywords method to retrieve their keyword IDs.
This method is supported in Sandbox environment. To access the endpoint, just replace the api.ebay.com
root URI with api.sandbox.ebay.com
Parameter | Type | Description |
---|---|---|
campaign_id | string | A unique eBay-assigned ID for an ad campaign that is generated when a campaign is created. Note: You can retrieve the campaign IDs for a specified seller using the getCampaigns method. Occurrence: Required |
keyword_id | string | This path parameter is used to identify the keyword to retrieve. Occurrence: Required |
All requests made to eBay REST operations require you to provide the Authorization
HTTP header for authentication authorization.
All other standard RESTful request headers are optional. For more information on standard RESTful request headers, see the HTTP request headers- opens rest request components page table.
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.readonly
https://api.ebay.com/oauth/api_scope/sell.marketing
See OAuth access tokens for more information.
This call has no payload.
This call has no field definitions.
This call has no response headers.
Output container/field | Type | Description |
---|---|---|
adGroupId | string | This field identifies the ad group that the keyword is associated with. Occurrence: Always |
bid | Amount | The bid associated with the keyword. This container will not be returned if the keyword does not have a defined bid value. Occurrence: Conditional |
bid.currency | CurrencyCodeEnum | The base currency applied to the value field to establish a monetary amount. Occurrence: Conditional |
bid.value | string | The monetary amount in the specified currency. Occurrence: Conditional |
keywordId | string | The unique identifier of a keyword. Occurrence: Always |
keywordStatus | KeywordStatusEnum | The status of the keyword.
Occurrence: Always |
keywordText | string | The text of the keyword. Occurrence: Always |
matchType | MatchTypeEnum | A field that defines the match type for the keyword.
Occurrence: Always |
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 |
404 | Not Found |
409 | Business error |
500 | Internal Server error |
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. |
35045 | API_MARKETING | REQUEST | No campaign found for campaign id {campaign_id}. |
36310 | API_MARKETING | REQUEST | No keyword found for keyword id {keyword_id}. |
This call has no warnings.
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.
This example retrieves the details for a specific keyword from an ad group within a Promoted Listings Advanced (PLA) campaign.
The inputs for this sample are the campaign_id of the PLA ad campaign with which the keyword is associated, as well as the keyword_id of the keyword for which the details shall be retrieved.
GEThttps://api.ebay.com/sell/marketing/v1/ad_campaign/1********4/keyword/1********9
If the call is successful, the details for the specified keyword are returned.