ebay-api 8.5.1 → 8.6.1
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.
- package/README.md +2 -2
- package/dist/api/apiFactory.d.ts +0 -3
- package/dist/api/apiFactory.js +0 -4
- package/dist/api/base.d.ts +0 -3
- package/dist/api/base.js +0 -3
- package/dist/api/digitalSignature.d.ts +0 -33
- package/dist/api/digitalSignature.js +1 -41
- package/dist/api/index.d.ts +0 -3
- package/dist/api/index.js +0 -3
- package/dist/api/restful/buy/browse/index.d.ts +0 -66
- package/dist/api/restful/buy/browse/index.js +0 -73
- package/dist/api/restful/buy/deal/index.d.ts +0 -32
- package/dist/api/restful/buy/deal/index.js +0 -32
- package/dist/api/restful/buy/feed/index.d.ts +0 -33
- package/dist/api/restful/buy/feed/index.js +0 -33
- package/dist/api/restful/buy/marketing/index.d.ts +0 -18
- package/dist/api/restful/buy/marketing/index.js +0 -22
- package/dist/api/restful/buy/marketplaceInsights/index.d.ts +0 -21
- package/dist/api/restful/buy/marketplaceInsights/index.js +0 -21
- package/dist/api/restful/buy/offer/index.d.ts +0 -15
- package/dist/api/restful/buy/offer/index.js +0 -15
- package/dist/api/restful/buy/order/index.d.ts +0 -227
- package/dist/api/restful/buy/order/index.js +0 -227
- package/dist/api/restful/commerce/catalog/index.d.ts +0 -54
- package/dist/api/restful/commerce/catalog/index.js +0 -54
- package/dist/api/restful/commerce/charity/index.d.ts +0 -21
- package/dist/api/restful/commerce/charity/index.js +0 -21
- package/dist/api/restful/commerce/identity/index.d.ts +0 -7
- package/dist/api/restful/commerce/identity/index.js +0 -7
- package/dist/api/restful/commerce/notification/index.d.ts +0 -93
- package/dist/api/restful/commerce/notification/index.js +0 -93
- package/dist/api/restful/commerce/taxonomy/index.d.ts +0 -64
- package/dist/api/restful/commerce/taxonomy/index.js +0 -64
- package/dist/api/restful/commerce/translation/index.d.ts +0 -8
- package/dist/api/restful/commerce/translation/index.js +0 -8
- package/dist/api/restful/developer/analytics/index.d.ts +0 -15
- package/dist/api/restful/developer/analytics/index.js +0 -15
- package/dist/api/restful/developer/keyManagement/index.d.ts +0 -15
- package/dist/api/restful/developer/keyManagement/index.js +0 -15
- package/dist/api/restful/index.d.ts +0 -16
- package/dist/api/restful/index.js +1 -23
- package/dist/api/restful/postOrder/cancellation/index.d.ts +0 -43
- package/dist/api/restful/postOrder/cancellation/index.js +1 -46
- package/dist/api/restful/postOrder/case/index.d.ts +0 -46
- package/dist/api/restful/postOrder/case/index.js +0 -46
- package/dist/api/restful/postOrder/inquiry/index.d.ts +0 -64
- package/dist/api/restful/postOrder/inquiry/index.js +0 -64
- package/dist/api/restful/postOrder/return/index.d.ts +0 -190
- package/dist/api/restful/postOrder/return/index.js +0 -190
- package/dist/api/restful/sell/account/index.d.ts +0 -241
- package/dist/api/restful/sell/account/index.js +0 -241
- package/dist/api/restful/sell/analytics/index.d.ts +0 -26
- package/dist/api/restful/sell/analytics/index.js +0 -26
- package/dist/api/restful/sell/compliance/index.d.ts +0 -23
- package/dist/api/restful/sell/compliance/index.js +0 -23
- package/dist/api/restful/sell/feed/index.d.ts +0 -135
- package/dist/api/restful/sell/feed/index.js +0 -135
- package/dist/api/restful/sell/finances/index.d.ts +0 -51
- package/dist/api/restful/sell/finances/index.js +0 -51
- package/dist/api/restful/sell/fulfillment/index.d.ts +0 -108
- package/dist/api/restful/sell/fulfillment/index.js +0 -108
- package/dist/api/restful/sell/inventory/index.d.ts +0 -197
- package/dist/api/restful/sell/inventory/index.js +0 -197
- package/dist/api/restful/sell/listing/index.d.ts +0 -8
- package/dist/api/restful/sell/listing/index.js +0 -8
- package/dist/api/restful/sell/logistics/index.d.ts +0 -33
- package/dist/api/restful/sell/logistics/index.js +0 -33
- package/dist/api/restful/sell/marketing/index.d.ts +16 -495
- package/dist/api/restful/sell/marketing/index.js +48 -494
- package/dist/api/restful/sell/metadata/index.d.ts +0 -65
- package/dist/api/restful/sell/metadata/index.js +0 -65
- package/dist/api/restful/sell/negotiation/index.d.ts +0 -14
- package/dist/api/restful/sell/negotiation/index.js +0 -14
- package/dist/api/restful/sell/recommendation/index.d.ts +0 -15
- package/dist/api/restful/sell/recommendation/index.js +0 -15
- package/dist/api/traditional/XMLRequest.d.ts +0 -44
- package/dist/api/traditional/XMLRequest.js +0 -46
- package/dist/api/traditional/clientAlerts/index.js +0 -1
- package/dist/api/traditional/index.d.ts +0 -3
- package/dist/api/traditional/index.js +0 -5
- package/dist/api/traditional/shopping/index.js +0 -1
- package/dist/auth/authNAuth.d.ts +0 -5
- package/dist/auth/authNAuth.js +0 -5
- package/dist/auth/index.d.ts +0 -3
- package/dist/auth/index.js +0 -3
- package/dist/auth/oAuth2.d.ts +0 -52
- package/dist/auth/oAuth2.js +0 -53
- package/dist/eBayApi.d.ts +0 -11
- package/dist/eBayApi.js +0 -14
- package/dist/ebay-api.min.mjs +1 -1
- package/dist/enums/restfulEnums.d.ts +0 -5
- package/dist/enums/restfulEnums.js +0 -5
- package/dist/errors/index.d.ts +0 -19
- package/dist/errors/index.js +1 -21
- package/dist/types/restful/specs/buy_browse_v1_oas3.d.ts +0 -697
- package/dist/types/restful/specs/buy_browse_v1_oas3.js +0 -4
- package/dist/types/restful/specs/buy_deal_v1_oas3.d.ts +0 -189
- package/dist/types/restful/specs/buy_deal_v1_oas3.js +0 -4
- package/dist/types/restful/specs/buy_feed_v1_beta_oas3.d.ts +0 -229
- package/dist/types/restful/specs/buy_feed_v1_beta_oas3.js +0 -4
- package/dist/types/restful/specs/buy_marketing_v1_beta_oas3.d.ts +0 -101
- package/dist/types/restful/specs/buy_marketing_v1_beta_oas3.js +0 -4
- package/dist/types/restful/specs/buy_marketplace_insights_v1_beta_oas3.d.ts +0 -150
- package/dist/types/restful/specs/buy_marketplace_insights_v1_beta_oas3.js +0 -4
- package/dist/types/restful/specs/buy_offer_v1_beta_oas3.d.ts +0 -62
- package/dist/types/restful/specs/buy_offer_v1_beta_oas3.js +0 -4
- package/dist/types/restful/specs/buy_order_v1_beta_oas3.d.ts +0 -600
- package/dist/types/restful/specs/buy_order_v1_beta_oas3.js +0 -4
- package/dist/types/restful/specs/cancellation_oas3.d.ts +0 -29
- package/dist/types/restful/specs/cancellation_oas3.js +0 -4
- package/dist/types/restful/specs/case_oas3.d.ts +0 -31
- package/dist/types/restful/specs/case_oas3.js +0 -4
- package/dist/types/restful/specs/commerce_catalog_v1_beta_oas3.d.ts +0 -331
- package/dist/types/restful/specs/commerce_catalog_v1_beta_oas3.js +0 -4
- package/dist/types/restful/specs/commerce_charity_v1_oas3.d.ts +0 -85
- package/dist/types/restful/specs/commerce_charity_v1_oas3.js +0 -4
- package/dist/types/restful/specs/commerce_identity_v1_oas3.d.ts +0 -63
- package/dist/types/restful/specs/commerce_identity_v1_oas3.js +0 -4
- package/dist/types/restful/specs/commerce_notification_v1_oas3.d.ts +0 -236
- package/dist/types/restful/specs/commerce_notification_v1_oas3.js +0 -4
- package/dist/types/restful/specs/commerce_taxonomy_v1_oas3.d.ts +0 -219
- package/dist/types/restful/specs/commerce_taxonomy_v1_oas3.js +0 -4
- package/dist/types/restful/specs/commerce_translation_v1_beta_oas3.d.ts +0 -36
- package/dist/types/restful/specs/commerce_translation_v1_beta_oas3.js +0 -4
- package/dist/types/restful/specs/developer_analytics_v1_beta_oas3.d.ts +0 -57
- package/dist/types/restful/specs/developer_analytics_v1_beta_oas3.js +0 -4
- package/dist/types/restful/specs/developer_key_management_v1_oas3.d.ts +0 -60
- package/dist/types/restful/specs/developer_key_management_v1_oas3.js +0 -4
- package/dist/types/restful/specs/inquiry_oas3.d.ts +0 -45
- package/dist/types/restful/specs/inquiry_oas3.js +0 -4
- package/dist/types/restful/specs/return_oas3.d.ts +0 -130
- package/dist/types/restful/specs/return_oas3.js +0 -4
- package/dist/types/restful/specs/sell_account_v1_oas3.d.ts +0 -751
- package/dist/types/restful/specs/sell_account_v1_oas3.js +0 -4
- package/dist/types/restful/specs/sell_analytics_v1_oas3.d.ts +0 -130
- package/dist/types/restful/specs/sell_analytics_v1_oas3.js +0 -4
- package/dist/types/restful/specs/sell_compliance_v1_oas3.d.ts +0 -102
- package/dist/types/restful/specs/sell_compliance_v1_oas3.js +0 -4
- package/dist/types/restful/specs/sell_feed_v1_oas3.d.ts +0 -461
- package/dist/types/restful/specs/sell_feed_v1_oas3.js +0 -4
- package/dist/types/restful/specs/sell_finances_v1_oas3.d.ts +0 -255
- package/dist/types/restful/specs/sell_finances_v1_oas3.js +0 -4
- package/dist/types/restful/specs/sell_fulfillment_v1_oas3.d.ts +0 -595
- package/dist/types/restful/specs/sell_fulfillment_v1_oas3.js +0 -4
- package/dist/types/restful/specs/sell_inventory_v1_oas3.d.ts +0 -844
- package/dist/types/restful/specs/sell_inventory_v1_oas3.js +0 -4
- package/dist/types/restful/specs/sell_listing_v1_beta_oas3.d.ts +0 -57
- package/dist/types/restful/specs/sell_listing_v1_beta_oas3.js +0 -4
- package/dist/types/restful/specs/sell_logistics_v1_oas3.d.ts +0 -173
- package/dist/types/restful/specs/sell_logistics_v1_oas3.js +0 -4
- package/dist/types/restful/specs/sell_marketing_v1_oas3.d.ts +454 -1411
- package/dist/types/restful/specs/sell_marketing_v1_oas3.js +0 -4
- package/dist/types/restful/specs/sell_metadata_v1_oas3.d.ts +0 -147
- package/dist/types/restful/specs/sell_metadata_v1_oas3.js +0 -4
- package/dist/types/restful/specs/sell_negotiation_v1_oas3.d.ts +0 -94
- package/dist/types/restful/specs/sell_negotiation_v1_oas3.js +0 -4
- package/dist/types/restful/specs/sell_recommendation_v1_oas3.d.ts +0 -60
- package/dist/types/restful/specs/sell_recommendation_v1_oas3.js +0 -4
- package/dist/types/restfulTypes.d.ts +3 -0
- package/lib/api/apiFactory.d.ts +0 -3
- package/lib/api/apiFactory.js +0 -4
- package/lib/api/base.d.ts +0 -3
- package/lib/api/base.js +0 -3
- package/lib/api/digitalSignature.d.ts +0 -33
- package/lib/api/digitalSignature.js +1 -41
- package/lib/api/index.d.ts +0 -3
- package/lib/api/index.js +0 -3
- package/lib/api/restful/buy/browse/index.d.ts +0 -66
- package/lib/api/restful/buy/browse/index.js +0 -73
- package/lib/api/restful/buy/deal/index.d.ts +0 -32
- package/lib/api/restful/buy/deal/index.js +0 -32
- package/lib/api/restful/buy/feed/index.d.ts +0 -33
- package/lib/api/restful/buy/feed/index.js +0 -33
- package/lib/api/restful/buy/marketing/index.d.ts +0 -18
- package/lib/api/restful/buy/marketing/index.js +0 -22
- package/lib/api/restful/buy/marketplaceInsights/index.d.ts +0 -21
- package/lib/api/restful/buy/marketplaceInsights/index.js +0 -21
- package/lib/api/restful/buy/offer/index.d.ts +0 -15
- package/lib/api/restful/buy/offer/index.js +0 -15
- package/lib/api/restful/buy/order/index.d.ts +0 -227
- package/lib/api/restful/buy/order/index.js +0 -227
- package/lib/api/restful/commerce/catalog/index.d.ts +0 -54
- package/lib/api/restful/commerce/catalog/index.js +0 -54
- package/lib/api/restful/commerce/charity/index.d.ts +0 -21
- package/lib/api/restful/commerce/charity/index.js +0 -21
- package/lib/api/restful/commerce/identity/index.d.ts +0 -7
- package/lib/api/restful/commerce/identity/index.js +0 -7
- package/lib/api/restful/commerce/notification/index.d.ts +0 -93
- package/lib/api/restful/commerce/notification/index.js +0 -93
- package/lib/api/restful/commerce/taxonomy/index.d.ts +0 -64
- package/lib/api/restful/commerce/taxonomy/index.js +0 -64
- package/lib/api/restful/commerce/translation/index.d.ts +0 -8
- package/lib/api/restful/commerce/translation/index.js +0 -8
- package/lib/api/restful/developer/analytics/index.d.ts +0 -15
- package/lib/api/restful/developer/analytics/index.js +0 -15
- package/lib/api/restful/developer/keyManagement/index.d.ts +0 -15
- package/lib/api/restful/developer/keyManagement/index.js +0 -15
- package/lib/api/restful/index.d.ts +0 -16
- package/lib/api/restful/index.js +1 -23
- package/lib/api/restful/postOrder/cancellation/index.d.ts +0 -43
- package/lib/api/restful/postOrder/cancellation/index.js +1 -46
- package/lib/api/restful/postOrder/case/index.d.ts +0 -46
- package/lib/api/restful/postOrder/case/index.js +0 -46
- package/lib/api/restful/postOrder/inquiry/index.d.ts +0 -64
- package/lib/api/restful/postOrder/inquiry/index.js +0 -64
- package/lib/api/restful/postOrder/return/index.d.ts +0 -190
- package/lib/api/restful/postOrder/return/index.js +0 -190
- package/lib/api/restful/sell/account/index.d.ts +0 -241
- package/lib/api/restful/sell/account/index.js +0 -241
- package/lib/api/restful/sell/analytics/index.d.ts +0 -26
- package/lib/api/restful/sell/analytics/index.js +0 -26
- package/lib/api/restful/sell/compliance/index.d.ts +0 -23
- package/lib/api/restful/sell/compliance/index.js +0 -23
- package/lib/api/restful/sell/feed/index.d.ts +0 -135
- package/lib/api/restful/sell/feed/index.js +0 -135
- package/lib/api/restful/sell/finances/index.d.ts +0 -51
- package/lib/api/restful/sell/finances/index.js +0 -51
- package/lib/api/restful/sell/fulfillment/index.d.ts +0 -108
- package/lib/api/restful/sell/fulfillment/index.js +0 -108
- package/lib/api/restful/sell/inventory/index.d.ts +0 -197
- package/lib/api/restful/sell/inventory/index.js +0 -197
- package/lib/api/restful/sell/listing/index.d.ts +0 -8
- package/lib/api/restful/sell/listing/index.js +0 -8
- package/lib/api/restful/sell/logistics/index.d.ts +0 -33
- package/lib/api/restful/sell/logistics/index.js +0 -33
- package/lib/api/restful/sell/marketing/index.d.ts +16 -495
- package/lib/api/restful/sell/marketing/index.js +48 -494
- package/lib/api/restful/sell/metadata/index.d.ts +0 -65
- package/lib/api/restful/sell/metadata/index.js +0 -65
- package/lib/api/restful/sell/negotiation/index.d.ts +0 -14
- package/lib/api/restful/sell/negotiation/index.js +0 -14
- package/lib/api/restful/sell/recommendation/index.d.ts +0 -15
- package/lib/api/restful/sell/recommendation/index.js +0 -15
- package/lib/api/traditional/XMLRequest.d.ts +0 -44
- package/lib/api/traditional/XMLRequest.js +0 -46
- package/lib/api/traditional/clientAlerts/index.js +0 -1
- package/lib/api/traditional/index.d.ts +0 -3
- package/lib/api/traditional/index.js +0 -5
- package/lib/api/traditional/shopping/index.js +0 -1
- package/lib/auth/authNAuth.d.ts +0 -5
- package/lib/auth/authNAuth.js +0 -5
- package/lib/auth/index.d.ts +0 -3
- package/lib/auth/index.js +0 -3
- package/lib/auth/oAuth2.d.ts +0 -52
- package/lib/auth/oAuth2.js +0 -53
- package/lib/eBayApi.d.ts +0 -11
- package/lib/eBayApi.js +0 -14
- package/lib/ebay-api.min.js +1 -1
- package/lib/enums/restfulEnums.d.ts +0 -5
- package/lib/enums/restfulEnums.js +0 -5
- package/lib/errors/index.d.ts +0 -19
- package/lib/errors/index.js +1 -21
- package/lib/types/restful/specs/buy_browse_v1_oas3.d.ts +0 -697
- package/lib/types/restful/specs/buy_browse_v1_oas3.js +0 -4
- package/lib/types/restful/specs/buy_deal_v1_oas3.d.ts +0 -189
- package/lib/types/restful/specs/buy_deal_v1_oas3.js +0 -4
- package/lib/types/restful/specs/buy_feed_v1_beta_oas3.d.ts +0 -229
- package/lib/types/restful/specs/buy_feed_v1_beta_oas3.js +0 -4
- package/lib/types/restful/specs/buy_marketing_v1_beta_oas3.d.ts +0 -101
- package/lib/types/restful/specs/buy_marketing_v1_beta_oas3.js +0 -4
- package/lib/types/restful/specs/buy_marketplace_insights_v1_beta_oas3.d.ts +0 -150
- package/lib/types/restful/specs/buy_marketplace_insights_v1_beta_oas3.js +0 -4
- package/lib/types/restful/specs/buy_offer_v1_beta_oas3.d.ts +0 -62
- package/lib/types/restful/specs/buy_offer_v1_beta_oas3.js +0 -4
- package/lib/types/restful/specs/buy_order_v1_beta_oas3.d.ts +0 -600
- package/lib/types/restful/specs/buy_order_v1_beta_oas3.js +0 -4
- package/lib/types/restful/specs/cancellation_oas3.d.ts +0 -29
- package/lib/types/restful/specs/cancellation_oas3.js +0 -4
- package/lib/types/restful/specs/case_oas3.d.ts +0 -31
- package/lib/types/restful/specs/case_oas3.js +0 -4
- package/lib/types/restful/specs/commerce_catalog_v1_beta_oas3.d.ts +0 -331
- package/lib/types/restful/specs/commerce_catalog_v1_beta_oas3.js +0 -4
- package/lib/types/restful/specs/commerce_charity_v1_oas3.d.ts +0 -85
- package/lib/types/restful/specs/commerce_charity_v1_oas3.js +0 -4
- package/lib/types/restful/specs/commerce_identity_v1_oas3.d.ts +0 -63
- package/lib/types/restful/specs/commerce_identity_v1_oas3.js +0 -4
- package/lib/types/restful/specs/commerce_notification_v1_oas3.d.ts +0 -236
- package/lib/types/restful/specs/commerce_notification_v1_oas3.js +0 -4
- package/lib/types/restful/specs/commerce_taxonomy_v1_oas3.d.ts +0 -219
- package/lib/types/restful/specs/commerce_taxonomy_v1_oas3.js +0 -4
- package/lib/types/restful/specs/commerce_translation_v1_beta_oas3.d.ts +0 -36
- package/lib/types/restful/specs/commerce_translation_v1_beta_oas3.js +0 -4
- package/lib/types/restful/specs/developer_analytics_v1_beta_oas3.d.ts +0 -57
- package/lib/types/restful/specs/developer_analytics_v1_beta_oas3.js +0 -4
- package/lib/types/restful/specs/developer_key_management_v1_oas3.d.ts +0 -60
- package/lib/types/restful/specs/developer_key_management_v1_oas3.js +0 -4
- package/lib/types/restful/specs/inquiry_oas3.d.ts +0 -45
- package/lib/types/restful/specs/inquiry_oas3.js +0 -4
- package/lib/types/restful/specs/return_oas3.d.ts +0 -130
- package/lib/types/restful/specs/return_oas3.js +0 -4
- package/lib/types/restful/specs/sell_account_v1_oas3.d.ts +0 -751
- package/lib/types/restful/specs/sell_account_v1_oas3.js +0 -4
- package/lib/types/restful/specs/sell_analytics_v1_oas3.d.ts +0 -130
- package/lib/types/restful/specs/sell_analytics_v1_oas3.js +0 -4
- package/lib/types/restful/specs/sell_compliance_v1_oas3.d.ts +0 -102
- package/lib/types/restful/specs/sell_compliance_v1_oas3.js +0 -4
- package/lib/types/restful/specs/sell_feed_v1_oas3.d.ts +0 -461
- package/lib/types/restful/specs/sell_feed_v1_oas3.js +0 -4
- package/lib/types/restful/specs/sell_finances_v1_oas3.d.ts +0 -255
- package/lib/types/restful/specs/sell_finances_v1_oas3.js +0 -4
- package/lib/types/restful/specs/sell_fulfillment_v1_oas3.d.ts +0 -595
- package/lib/types/restful/specs/sell_fulfillment_v1_oas3.js +0 -4
- package/lib/types/restful/specs/sell_inventory_v1_oas3.d.ts +0 -844
- package/lib/types/restful/specs/sell_inventory_v1_oas3.js +0 -4
- package/lib/types/restful/specs/sell_listing_v1_beta_oas3.d.ts +0 -57
- package/lib/types/restful/specs/sell_listing_v1_beta_oas3.js +0 -4
- package/lib/types/restful/specs/sell_logistics_v1_oas3.d.ts +0 -173
- package/lib/types/restful/specs/sell_logistics_v1_oas3.js +0 -4
- package/lib/types/restful/specs/sell_marketing_v1_oas3.d.ts +454 -1411
- package/lib/types/restful/specs/sell_marketing_v1_oas3.js +0 -4
- package/lib/types/restful/specs/sell_metadata_v1_oas3.d.ts +0 -147
- package/lib/types/restful/specs/sell_metadata_v1_oas3.js +0 -4
- package/lib/types/restful/specs/sell_negotiation_v1_oas3.d.ts +0 -94
- package/lib/types/restful/specs/sell_negotiation_v1_oas3.js +0 -4
- package/lib/types/restful/specs/sell_recommendation_v1_oas3.d.ts +0 -60
- package/lib/types/restful/specs/sell_recommendation_v1_oas3.js +0 -4
- package/lib/types/restfulTypes.d.ts +3 -0
- package/package.json +2 -2
|
@@ -4,120 +4,49 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
4
4
|
};
|
|
5
5
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
6
|
const index_js_1 = __importDefault(require("../../index.js"));
|
|
7
|
-
/**
|
|
8
|
-
* <p>The <i>Marketing API </i> offers two platforms that sellers can use to promote and advertise their products:
|
|
9
|
-
* </p> <ul><li><b>Promoted Listings</b> is an eBay ad service that lets sellers set up <i>ad campaigns </i>
|
|
10
|
-
* for the products they want to promote. eBay displays the ads in search results and in other
|
|
11
|
-
* marketing modules as <b>SPONSORED</b> listings.
|
|
12
|
-
*/
|
|
13
7
|
class Marketing extends index_js_1.default {
|
|
14
8
|
get basePath() {
|
|
15
9
|
return '/sell/marketing/v1';
|
|
16
10
|
}
|
|
17
|
-
/**
|
|
18
|
-
* This method creates an ad for each inventory reference ID specified in the request and associates the newly
|
|
19
|
-
* created ads with the specified campaign.
|
|
20
|
-
*
|
|
21
|
-
* @param campaignId A unique eBay-assigned ID for an ad campaign that's generated when a campaign is created.
|
|
22
|
-
* @param body This type defines the fields for the bulkCreateAdsByInventoryReference request.
|
|
23
|
-
*/
|
|
24
11
|
bulkCreateAdsByInventoryReference(campaignId, body) {
|
|
25
12
|
campaignId = encodeURIComponent(campaignId);
|
|
26
13
|
return this.post(`/ad_campaign/${campaignId}/bulk_create_ads_by_inventory_reference`, body);
|
|
27
14
|
}
|
|
28
|
-
/**
|
|
29
|
-
* This method creates an ad for each listing ID specified in the request and associates the newly created ads with
|
|
30
|
-
* the specified campaign.
|
|
31
|
-
*
|
|
32
|
-
* @param campaignId A unique eBay-assigned ID for an ad campaign that's generated when a campaign is created. Get
|
|
33
|
-
* a seller's campaign IDs by calling getCampaigns.
|
|
34
|
-
* @param body The container for the bulk request to create ads for eBay listing IDs. eBay listing IDs are
|
|
35
|
-
* generated when the listing is created on eBay.
|
|
36
|
-
*/
|
|
37
15
|
bulkCreateAdsByListingId(campaignId, body) {
|
|
38
16
|
campaignId = encodeURIComponent(campaignId);
|
|
39
17
|
return this.post(`/ad_campaign/${campaignId}/bulk_create_ads_by_listing_id`, body);
|
|
40
18
|
}
|
|
41
|
-
/**
|
|
42
|
-
* This method deletes a set of ads, as specified by a list of inventory reference IDs, from the specified
|
|
43
|
-
* campaign.
|
|
44
|
-
*
|
|
45
|
-
* @param campaignId A unique eBay-assigned ID for an ad campaign that's generated when a campaign is created. Get
|
|
46
|
-
* a seller's campaign IDs by calling getCampaigns.
|
|
47
|
-
* @param body This type defines the fields for a bulkDeleteAdsByInventoryReference request.
|
|
48
|
-
*/
|
|
49
19
|
bulkDeleteAdsByInventoryReference(campaignId, body) {
|
|
50
20
|
campaignId = encodeURIComponent(campaignId);
|
|
51
21
|
return this.post(`/ad_campaign/${campaignId}/bulk_delete_ads_by_inventory_reference`, body);
|
|
52
22
|
}
|
|
53
|
-
/**
|
|
54
|
-
* This method deletes a set of ads, as specified by a list of listing IDs, from the specified campaign.
|
|
55
|
-
*
|
|
56
|
-
* @param campaignId A unique eBay-assigned ID for an ad campaign that's generated when a campaign is created. Get
|
|
57
|
-
* a seller's campaign IDs by calling getCampaigns.
|
|
58
|
-
* @param body This type defines the fields for the bulkDeleteAdsByListingId request.
|
|
59
|
-
*/
|
|
60
23
|
bulkDeleteAdsByListingId(campaignId, body) {
|
|
61
24
|
campaignId = encodeURIComponent(campaignId);
|
|
62
25
|
return this.post(`/ad_campaign/${campaignId}/bulk_delete_ads_by_listing_id`, body);
|
|
63
26
|
}
|
|
64
|
-
/**
|
|
65
|
-
* This method replaces an ad bid based on a list of inventory references IDs associated with the specified
|
|
66
|
-
* campaign.
|
|
67
|
-
*
|
|
68
|
-
* @param campaignId A unique eBay-assigned ID for an ad campaign that's generated when a campaign is created.
|
|
69
|
-
* @param body This type defines the fields for the BulkCreateAdsByInventoryReference request.
|
|
70
|
-
*/
|
|
71
27
|
bulkUpdateAdsBidByInventoryReference(campaignId, body) {
|
|
72
28
|
campaignId = encodeURIComponent(campaignId);
|
|
73
29
|
return this.post(`/ad_campaign/${campaignId}/bulk_update_ads_bid_by_inventory_reference`, body);
|
|
74
30
|
}
|
|
75
|
-
/**
|
|
76
|
-
* This method replaces an ad bid based on a supplied list of listing IDs that are associated with the specified
|
|
77
|
-
* campaign.
|
|
78
|
-
*
|
|
79
|
-
* @param campaignId A unique eBay-assigned ID for an ad campaign that's generated when a campaign is created. Get
|
|
80
|
-
* a seller's campaign IDs by calling getCampaigns.
|
|
81
|
-
* @param body Container for the bulk request to update ads.
|
|
82
|
-
*/
|
|
83
31
|
bulkUpdateAdsBidByListingId(campaignId, body) {
|
|
84
32
|
campaignId = encodeURIComponent(campaignId);
|
|
85
33
|
return this.post(`/ad_campaign/${campaignId}/bulk_update_ads_bid_by_listing_id`, body);
|
|
86
34
|
}
|
|
87
|
-
/**
|
|
88
|
-
* This method is only available for select partners who have been approved for the eBay Promoted Listings Advanced (PLA) program.
|
|
89
|
-
*
|
|
90
|
-
* @param campaignId A unique eBay-assigned ID for an ad campaign that's generated when a campaign is created. Get
|
|
91
|
-
* a seller's campaign IDs by calling getCampaigns.
|
|
92
|
-
* @param body The bulk request to update the ads.
|
|
93
|
-
*/
|
|
94
35
|
bulkUpdateAdsStatus(campaignId, body) {
|
|
95
36
|
campaignId = encodeURIComponent(campaignId);
|
|
96
37
|
return this.post(`/ad_campaign/${campaignId}/bulk_update_ads_status`, body);
|
|
97
38
|
}
|
|
98
|
-
/**
|
|
99
|
-
* This method is only available for select partners who have been approved for the eBay Promoted Listings Advanced (PLA) program.
|
|
100
|
-
*
|
|
101
|
-
* @param campaignId A unique eBay-assigned ID for an ad campaign that's generated when a campaign is created. Get
|
|
102
|
-
* a seller's campaign IDs by calling getCampaigns.
|
|
103
|
-
* @param body The bulk request to update ads.
|
|
104
|
-
*/
|
|
105
39
|
bulkUpdateAdsStatusByListingId(campaignId, body) {
|
|
106
40
|
campaignId = encodeURIComponent(campaignId);
|
|
107
41
|
return this.post(`/ad_campaign/${campaignId}/bulk_update_ads_status_by_listing_id`, body);
|
|
108
42
|
}
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
* @param listingIds A comma separated list of eBay listing IDs. The response includes only active ads (ads
|
|
117
|
-
* associated with a RUNNING campaign).
|
|
118
|
-
* @param offset Specifies the number of ads to skip in the result set before returning the first ad in the
|
|
119
|
-
* paginated response.
|
|
120
|
-
*/
|
|
43
|
+
launchCampaign(campaignId) {
|
|
44
|
+
campaignId = encodeURIComponent(campaignId);
|
|
45
|
+
return this.post(`/ad_campaign/${campaignId}/launch`);
|
|
46
|
+
}
|
|
47
|
+
setupQuickCampaign(body) {
|
|
48
|
+
return this.post(`/ad_campaign/setup_quick_campaign`, body);
|
|
49
|
+
}
|
|
121
50
|
getAds(campaignId, { limit, listingIds, offset } = {}) {
|
|
122
51
|
campaignId = encodeURIComponent(campaignId);
|
|
123
52
|
return this.get(`/ad_campaign/${campaignId}/ad`, {
|
|
@@ -128,74 +57,28 @@ class Marketing extends index_js_1.default {
|
|
|
128
57
|
}
|
|
129
58
|
});
|
|
130
59
|
}
|
|
131
|
-
/**
|
|
132
|
-
* This method creates an ad for the specified listing ID, sets the bid percentage for that specific item, and
|
|
133
|
-
* associates the ad with the specified campaign.
|
|
134
|
-
*
|
|
135
|
-
* @param campaignId A unique eBay-assigned ID for an ad campaign that's generated when a campaign is created. Get
|
|
136
|
-
* a seller's campaign IDs by calling getCampaigns.
|
|
137
|
-
* @param body This type defines the fields for the createAd request.
|
|
138
|
-
*/
|
|
139
60
|
createAdByListingId(campaignId, body) {
|
|
140
61
|
campaignId = encodeURIComponent(campaignId);
|
|
141
62
|
return this.post(`/ad_campaign/${campaignId}/ad`, body);
|
|
142
63
|
}
|
|
143
|
-
/**
|
|
144
|
-
* This method creates an ad for the specified inventory reference ID, sets the bid percentage for that specific
|
|
145
|
-
* item, and associates the ad with the specified campaign.
|
|
146
|
-
*
|
|
147
|
-
* @param campaignId A unique eBay-assigned ID for an ad campaign that's generated when a campaign is created. Get
|
|
148
|
-
* a seller's campaign IDs by calling getCampaigns.
|
|
149
|
-
* @param body This type defines the fields for the createAdsByInventoryReference request.
|
|
150
|
-
*/
|
|
151
64
|
createAdsByInventoryReference(campaignId, body) {
|
|
152
65
|
campaignId = encodeURIComponent(campaignId);
|
|
153
66
|
return this.post(`/ad_campaign/${campaignId}/create_ads_by_inventory_reference`, body);
|
|
154
67
|
}
|
|
155
|
-
/**
|
|
156
|
-
* This method retrieves the specified ad from the specified campaign.
|
|
157
|
-
*
|
|
158
|
-
* @param campaignId A unique eBay-assigned ID for an ad campaign that's generated when a campaign is created. Get
|
|
159
|
-
* a seller's campaign IDs by calling getCampaigns.
|
|
160
|
-
* @param adId Identifier of an ad. This ID was generated when the ad was created.
|
|
161
|
-
*/
|
|
162
68
|
getAd(campaignId, adId) {
|
|
163
69
|
campaignId = encodeURIComponent(campaignId);
|
|
164
70
|
adId = encodeURIComponent(adId);
|
|
165
71
|
return this.get(`/ad_campaign/${campaignId}/ad/${adId}`);
|
|
166
72
|
}
|
|
167
|
-
/**
|
|
168
|
-
* This method retrieves the specified ad from the specified campaign.
|
|
169
|
-
*
|
|
170
|
-
* @param campaignId A unique eBay-assigned ID for an ad campaign that's generated when a campaign is created.
|
|
171
|
-
* @param adId Identifier of an ad. This ID was generated when the ad was created.
|
|
172
|
-
*/
|
|
173
73
|
deleteAd(campaignId, adId) {
|
|
174
74
|
campaignId = encodeURIComponent(campaignId);
|
|
175
75
|
adId = encodeURIComponent(adId);
|
|
176
76
|
return this.delete(`/ad_campaign/${campaignId}/ad/${adId}`);
|
|
177
77
|
}
|
|
178
|
-
/**
|
|
179
|
-
* This method deletes ads using a list of seller inventory reference IDs that are associated with the specified
|
|
180
|
-
* campaign ID.
|
|
181
|
-
*
|
|
182
|
-
* @param campaignId A unique eBay-assigned ID for an ad campaign that's generated when a campaign is created. Get
|
|
183
|
-
* a seller's campaign IDs by calling getCampaigns.
|
|
184
|
-
*/
|
|
185
78
|
deleteAdsByInventoryReference(campaignId) {
|
|
186
79
|
campaignId = encodeURIComponent(campaignId);
|
|
187
80
|
return this.post(`/ad_campaign/${campaignId}/delete_ads_by_inventory_reference`);
|
|
188
81
|
}
|
|
189
|
-
/**
|
|
190
|
-
* This method retrieves ads from the specified campaign using the seller's inventory reference ID and inventory
|
|
191
|
-
* reference type.
|
|
192
|
-
*
|
|
193
|
-
* @param campaignId A unique eBay-assigned ID for an ad campaign that's generated when a campaign is created. Get
|
|
194
|
-
* a seller's campaign IDs by calling getCampaigns.
|
|
195
|
-
* @param inventoryReferenceId The inventory reference ID associated with the ad you want returned.
|
|
196
|
-
* @param inventoryReferenceType The type of the inventory reference ID. Set this value to either INVENTORY_ITEM (a
|
|
197
|
-
* single listing) or INVENTORY_ITEM_GROUP (a multi-variation listing).
|
|
198
|
-
*/
|
|
199
82
|
getAdsByInventoryReference(campaignId, inventoryReferenceId, inventoryReferenceType) {
|
|
200
83
|
campaignId = encodeURIComponent(campaignId);
|
|
201
84
|
return this.get(`/ad_campaign/${campaignId}/get_ads_by_inventory_reference`, {
|
|
@@ -205,28 +88,11 @@ class Marketing extends index_js_1.default {
|
|
|
205
88
|
}
|
|
206
89
|
});
|
|
207
90
|
}
|
|
208
|
-
/**
|
|
209
|
-
* This method updates the bid for the specified ad in the specified campaign. In the request, supply the
|
|
210
|
-
* campaign_id and ad_id as a URI parameters.
|
|
211
|
-
*
|
|
212
|
-
* @param campaignId A unique eBay-assigned ID for an ad campaign that's generated when a campaign is created. Get
|
|
213
|
-
* a seller's campaign IDs by calling getCampaigns.
|
|
214
|
-
* @param adId A unique eBay-assigned ID for an ad that's generated when an ad is created.
|
|
215
|
-
* @param body This type defines the fields for the updateBid request.
|
|
216
|
-
*/
|
|
217
91
|
updateBid(campaignId, adId, body) {
|
|
218
92
|
campaignId = encodeURIComponent(campaignId);
|
|
219
93
|
adId = encodeURIComponent(adId);
|
|
220
94
|
return this.post(`/ad_campaign/${campaignId}/ad/${adId}/update_bid`, body);
|
|
221
95
|
}
|
|
222
|
-
/**
|
|
223
|
-
*
|
|
224
|
-
* @param campaignId A unique eBay-assigned ID for an ad campaign that's generated when a campaign is created. Get
|
|
225
|
-
* a seller's campaign IDs by calling getCampaigns.
|
|
226
|
-
* @param adGroupStatus A comma-separated list of ad group statuses.
|
|
227
|
-
* @param limit The number of results, from the current result set, to be returned in a single page.
|
|
228
|
-
* @param offset The number of results that will be skipped in the result set.
|
|
229
|
-
*/
|
|
230
96
|
getAdGroups(campaignId, { adGroupStatus, limit, offset } = {}) {
|
|
231
97
|
campaignId = encodeURIComponent(campaignId);
|
|
232
98
|
return this.get(`/ad_campaign/${campaignId}/ad_group`, {
|
|
@@ -237,90 +103,34 @@ class Marketing extends index_js_1.default {
|
|
|
237
103
|
}
|
|
238
104
|
});
|
|
239
105
|
}
|
|
240
|
-
/**
|
|
241
|
-
*
|
|
242
|
-
* @param campaignId A unique eBay-assigned ID for an ad campaign that's generated when a campaign is created. Get
|
|
243
|
-
* a seller's campaign IDs by calling getCampaigns.
|
|
244
|
-
* @param body This type defines the fields for the <b>createAdGroup</b> request.
|
|
245
|
-
*/
|
|
246
106
|
createAdGroup(campaignId, body) {
|
|
247
107
|
campaignId = encodeURIComponent(campaignId);
|
|
248
108
|
return this.post(`/ad_campaign/${campaignId}/ad_group`, body);
|
|
249
109
|
}
|
|
250
|
-
/**
|
|
251
|
-
*
|
|
252
|
-
* @param campaignId A unique eBay-assigned ID for an ad campaign that's generated when a campaign is created. Get
|
|
253
|
-
* a seller's campaign IDs by calling getCampaigns.
|
|
254
|
-
* @param adGroupId The ID of the ad group that shall be retrieved.
|
|
255
|
-
*/
|
|
256
110
|
getAdGroup(campaignId, adGroupId) {
|
|
257
111
|
adGroupId = encodeURIComponent(adGroupId);
|
|
258
112
|
campaignId = encodeURIComponent(campaignId);
|
|
259
113
|
return this.get(`/ad_campaign/${campaignId}/ad_group/${adGroupId}`);
|
|
260
114
|
}
|
|
261
|
-
/**
|
|
262
|
-
*
|
|
263
|
-
* @param campaignId A unique eBay-assigned ID for an ad campaign that's generated when a campaign is created. Get
|
|
264
|
-
* a seller's campaign IDs by calling getCampaigns.
|
|
265
|
-
* @param adGroupId The ID of the ad group that shall be retrieved.
|
|
266
|
-
* @param body This type defines the fields for the <b>UpdateAdGroup</b> request.
|
|
267
|
-
*/
|
|
268
115
|
updateAdGroup(campaignId, adGroupId, body) {
|
|
269
116
|
adGroupId = encodeURIComponent(adGroupId);
|
|
270
117
|
campaignId = encodeURIComponent(campaignId);
|
|
271
118
|
return this.put(`/ad_campaign/${campaignId}/ad_group/${adGroupId}`, body);
|
|
272
119
|
}
|
|
273
|
-
/**
|
|
274
|
-
*
|
|
275
|
-
* @param campaignId A unique eBay-assigned ID for an ad campaign that's generated when a campaign is created. Get
|
|
276
|
-
* a seller's campaign IDs by calling getCampaigns.
|
|
277
|
-
* @param adGroupId The ID of the ad group that shall be retrieved.
|
|
278
|
-
* @param body The data requested to retrieve the suggested bids.
|
|
279
|
-
*/
|
|
280
120
|
suggestBids(campaignId, adGroupId, body) {
|
|
281
121
|
adGroupId = encodeURIComponent(adGroupId);
|
|
282
122
|
campaignId = encodeURIComponent(campaignId);
|
|
283
123
|
return this.post(`/ad_campaign/${campaignId}/ad_group/${adGroupId}/suggest_bids`, body);
|
|
284
124
|
}
|
|
285
|
-
/**
|
|
286
|
-
*
|
|
287
|
-
* @param campaignId A unique eBay-assigned ID for an ad campaign that's generated when a campaign is created. Get
|
|
288
|
-
* a seller's campaign IDs by calling getCampaigns.
|
|
289
|
-
* @param adGroupId The ID of the ad group that shall be retrieved.
|
|
290
|
-
* @param body The required data to retrieve suggested keywords.
|
|
291
|
-
*/
|
|
292
125
|
suggestKeywords(campaignId, adGroupId, body) {
|
|
293
126
|
adGroupId = encodeURIComponent(adGroupId);
|
|
294
127
|
campaignId = encodeURIComponent(campaignId);
|
|
295
128
|
return this.post(`/ad_campaign/${campaignId}/ad_group/${adGroupId}/suggest_keywords`, body);
|
|
296
129
|
}
|
|
297
|
-
/**
|
|
298
|
-
* This method clones (makes a copy of) the specified campaign.
|
|
299
|
-
*
|
|
300
|
-
* @param campaignId A unique eBay-assigned ID for an ad campaign that's generated when a campaign is created. Get
|
|
301
|
-
* a seller's campaign IDs by calling getCampaigns.
|
|
302
|
-
* @param body This type defines the fields for a clone campaign request.
|
|
303
|
-
*/
|
|
304
130
|
cloneCampaign(campaignId, body) {
|
|
305
131
|
campaignId = encodeURIComponent(campaignId);
|
|
306
132
|
return this.post(`/ad_campaign/${campaignId}/clone`, body);
|
|
307
133
|
}
|
|
308
|
-
/**
|
|
309
|
-
* This method retrieves the details for all the campaigns of a seller, including the campaign's the selection
|
|
310
|
-
* rules.
|
|
311
|
-
*
|
|
312
|
-
* @param campaignName Specifies the campaign name. The results are filtered to include only the campaign by the
|
|
313
|
-
* specified name.
|
|
314
|
-
* @param campaignStatus Specifies the campaign status. The results are filtered to include only campaigns that are
|
|
315
|
-
* in the specified states.
|
|
316
|
-
* @param endDateRange Specifies the range of a campaign's end date. The results are filtered to include only
|
|
317
|
-
* campaigns with an end date that is within specified range.
|
|
318
|
-
* @param limit Specifies the maximum number of campaigns to return on a page in the paginated response. Default:
|
|
319
|
-
* 10 Maximum: 500
|
|
320
|
-
* @param offset Specifies the number of campaigns to skip in the result set before returning the first report in
|
|
321
|
-
* the paginated response.
|
|
322
|
-
* @param startDateRange Specifies the range of a campaign's start date in which to filter the results.
|
|
323
|
-
*/
|
|
324
134
|
getCampaigns({ campaignName, campaignStatus, endDateRange, limit, offset, startDateRange } = {}) {
|
|
325
135
|
return this.get(`/ad_campaign`, {
|
|
326
136
|
params: {
|
|
@@ -333,55 +143,21 @@ class Marketing extends index_js_1.default {
|
|
|
333
143
|
}
|
|
334
144
|
});
|
|
335
145
|
}
|
|
336
|
-
/**
|
|
337
|
-
* This method retrieves the details of a single campaign, as specified with the campaign_id query parameter.
|
|
338
|
-
*
|
|
339
|
-
* @param campaignId A unique eBay-assigned ID for an ad campaign that's generated when a campaign is created. Get
|
|
340
|
-
* a seller's campaign IDs by calling getCampaigns.
|
|
341
|
-
*/
|
|
342
146
|
getCampaign(campaignId) {
|
|
343
147
|
campaignId = encodeURIComponent(campaignId);
|
|
344
148
|
return this.get(`/ad_campaign/${campaignId}`);
|
|
345
149
|
}
|
|
346
|
-
/**
|
|
347
|
-
* This method creates a Promoted Listings ad campaign.
|
|
348
|
-
*
|
|
349
|
-
* @param body his type defines the fields for the create campaign request.
|
|
350
|
-
*/
|
|
351
150
|
createCampaign(body) {
|
|
352
151
|
return this.post(`/ad_campaign`, body);
|
|
353
152
|
}
|
|
354
|
-
/**
|
|
355
|
-
* This method deletes the campaign specified by the campaign_id query parameter.
|
|
356
|
-
*
|
|
357
|
-
* @param campaignId A unique eBay-assigned ID for an ad campaign that's generated when a campaign is created. Get
|
|
358
|
-
* a seller's campaign IDs by calling getCampaigns.
|
|
359
|
-
*/
|
|
360
153
|
deleteCampaign(campaignId) {
|
|
361
154
|
campaignId = encodeURIComponent(campaignId);
|
|
362
155
|
return this.delete(`/ad_campaign/${campaignId}`);
|
|
363
156
|
}
|
|
364
|
-
/**
|
|
365
|
-
* This method ends an active (RUNNINGM) or paused campaign. Specify the campaign you want to end by supplying its
|
|
366
|
-
* campaign ID in a query parameter.
|
|
367
|
-
*
|
|
368
|
-
* @param campaignId A unique eBay-assigned ID for an ad campaign that's generated when a campaign is created. Get
|
|
369
|
-
* a seller's campaign IDs by calling getCampaigns.
|
|
370
|
-
*/
|
|
371
157
|
endCampaign(campaignId) {
|
|
372
158
|
campaignId = encodeURIComponent(campaignId);
|
|
373
159
|
return this.post(`/ad_campaign/${campaignId}/end`);
|
|
374
160
|
}
|
|
375
|
-
/**
|
|
376
|
-
* This method retrieves the campaign containing the listing that is specified using either an eBay listing ID or
|
|
377
|
-
* an inventory reference ID and inventory reference type.
|
|
378
|
-
*
|
|
379
|
-
* @param inventoryReferenceId The seller's inventory reference ID of the listing to be used to find the campaign
|
|
380
|
-
* in which it is associated.
|
|
381
|
-
* @param inventoryReferenceType The type of the seller's inventory reference ID, which is a listing or group of
|
|
382
|
-
* items.
|
|
383
|
-
* @param listingId Identifier of the eBay listing associated with the ad.
|
|
384
|
-
*/
|
|
385
161
|
findCampaignByAdReference({ inventoryReferenceId, inventoryReferenceType, listingId } = {}) {
|
|
386
162
|
return this.get(`/ad_campaign/find_campaign_by_ad_reference`, {
|
|
387
163
|
params: {
|
|
@@ -391,11 +167,6 @@ class Marketing extends index_js_1.default {
|
|
|
391
167
|
}
|
|
392
168
|
});
|
|
393
169
|
}
|
|
394
|
-
/**
|
|
395
|
-
* This method retrieves the details of a single campaign, as specified with the campaign_name query parameter.
|
|
396
|
-
*
|
|
397
|
-
* @param campaignName Name of the campaign.
|
|
398
|
-
*/
|
|
399
170
|
getCampaignByName(campaignName) {
|
|
400
171
|
return this.get(`/ad_campaign/get_campaign_by_name`, {
|
|
401
172
|
params: {
|
|
@@ -403,34 +174,14 @@ class Marketing extends index_js_1.default {
|
|
|
403
174
|
}
|
|
404
175
|
});
|
|
405
176
|
}
|
|
406
|
-
/**
|
|
407
|
-
* This method pauses an active (RUNNING) campaign. You can restarted by calling resumeCampaign, as long as the
|
|
408
|
-
* campaign's end date is in the future..
|
|
409
|
-
*
|
|
410
|
-
* @param campaignId A unique eBay-assigned ID for an ad campaign that's generated when a campaign is created. Get
|
|
411
|
-
* a seller's campaign IDs by calling getCampaigns.
|
|
412
|
-
*/
|
|
413
177
|
pauseCampaign(campaignId) {
|
|
414
178
|
campaignId = encodeURIComponent(campaignId);
|
|
415
179
|
return this.post(`/ad_campaign/${campaignId}/pause`);
|
|
416
180
|
}
|
|
417
|
-
/**
|
|
418
|
-
* This method resumes a paused campaign, as long as it's end date is in the future.
|
|
419
|
-
*
|
|
420
|
-
* @param campaignId A unique eBay-assigned ID for an ad campaign that's generated when a campaign is created. Get
|
|
421
|
-
* a seller's campaign IDs by calling getCampaigns.
|
|
422
|
-
*/
|
|
423
181
|
resumeCampaign(campaignId) {
|
|
424
182
|
campaignId = encodeURIComponent(campaignId);
|
|
425
183
|
return this.post(`/ad_campaign/${campaignId}/resume`);
|
|
426
184
|
}
|
|
427
|
-
/**
|
|
428
|
-
*
|
|
429
|
-
* @param campaignId A unique eBay-assigned ID for an ad campaign that is generated when a campaign is created.
|
|
430
|
-
* @param categoryIds Specifies the category ID that is used to limit the results.
|
|
431
|
-
* @param limit Specifies the maximum number of campaigns to return on a page in the paginated response.
|
|
432
|
-
* @param offset Specifies the number of campaigns to skip in the result set before returning the first report in the paginated response.
|
|
433
|
-
*/
|
|
434
185
|
suggestItems(campaignId, { categoryIds, limit, offset } = {}) {
|
|
435
186
|
campaignId = encodeURIComponent(campaignId);
|
|
436
187
|
return this.get(`/ad_campaign/${campaignId}/suggest_items`, {
|
|
@@ -441,64 +192,26 @@ class Marketing extends index_js_1.default {
|
|
|
441
192
|
}
|
|
442
193
|
});
|
|
443
194
|
}
|
|
444
|
-
/**
|
|
445
|
-
*
|
|
446
|
-
* @param campaignId A unique eBay-assigned ID for an ad campaign that is generated when a campaign is created.
|
|
447
|
-
* @param body This type defines the request fields for the ad rate strategy that shall be updated.
|
|
448
|
-
*/
|
|
449
195
|
updateAdRateStrategy(campaignId, body) {
|
|
450
196
|
campaignId = encodeURIComponent(campaignId);
|
|
451
197
|
return this.post(`/ad_campaign/${campaignId}/update_ad_rate_strategy`, body);
|
|
452
198
|
}
|
|
453
|
-
/**
|
|
454
|
-
*
|
|
455
|
-
* @param campaignId A unique eBay-assigned ID for an ad campaign that is generated when a campaign is created.
|
|
456
|
-
* @param body This type defines the request fields for the budget details that shall be updated.
|
|
457
|
-
*/
|
|
458
199
|
updateCampaignBudget(campaignId, body) {
|
|
459
200
|
campaignId = encodeURIComponent(campaignId);
|
|
460
201
|
return this.post(`/ad_campaign/${campaignId}/update_campaign_budget`, body);
|
|
461
202
|
}
|
|
462
|
-
/**
|
|
463
|
-
* This method replaces the name and the start and end dates of a campaign.
|
|
464
|
-
*
|
|
465
|
-
* @param campaignId A unique eBay-assigned ID for an ad campaign that's generated when a campaign is created. Get
|
|
466
|
-
* a seller's campaign IDs by calling getCampaigns.
|
|
467
|
-
* @param body This type defines the fields to updated the campaign name and start and end dates.
|
|
468
|
-
*/
|
|
469
203
|
updateCampaignIdentification(campaignId, body) {
|
|
470
204
|
campaignId = encodeURIComponent(campaignId);
|
|
471
205
|
return this.post(`/ad_campaign/${campaignId}/update_campaign_identification`, body);
|
|
472
206
|
}
|
|
473
|
-
/**
|
|
474
|
-
*
|
|
475
|
-
* @param campaignId A unique eBay-assigned ID for an ad campaign that's generated when a campaign is created. Get
|
|
476
|
-
* a seller's campaign IDs by calling getCampaigns.
|
|
477
|
-
* @param body A type that defines the fields for the bulk request to create keywords.
|
|
478
|
-
*/
|
|
479
207
|
bulkCreateKeyword(campaignId, body) {
|
|
480
208
|
campaignId = encodeURIComponent(campaignId);
|
|
481
209
|
return this.post(`/ad_campaign/${campaignId}/bulk_create_keyword`, body);
|
|
482
210
|
}
|
|
483
|
-
/**
|
|
484
|
-
*
|
|
485
|
-
* @param campaignId A unique eBay-assigned ID for an ad campaign that's generated when a campaign is created. Get
|
|
486
|
-
* a seller's campaign IDs by calling getCampaigns.
|
|
487
|
-
* @param body A type that defines the fields for the bulk request to update keywords.
|
|
488
|
-
*/
|
|
489
211
|
bulkUpdateKeyword(campaignId, body) {
|
|
490
212
|
campaignId = encodeURIComponent(campaignId);
|
|
491
213
|
return this.post(`/ad_campaign/${campaignId}/bulk_update_keyword`, body);
|
|
492
214
|
}
|
|
493
|
-
/**
|
|
494
|
-
*
|
|
495
|
-
* @param campaignId A unique eBay-assigned ID for an ad campaign that's generated when a campaign is created. Get
|
|
496
|
-
* a seller's campaign IDs by calling getCampaigns.
|
|
497
|
-
* @param adGroupIds A comma-separated list of ad group IDs.
|
|
498
|
-
* @param keywordStatus A comma-separated list of keyword statuses.
|
|
499
|
-
* @param limit Specifies the maximum number of results to return on a page in the paginated response.
|
|
500
|
-
* @param offset Specifies the number of results to skip in the result set before returning the first report in the paginated response.
|
|
501
|
-
*/
|
|
502
215
|
getKeywords(campaignId, { adGroupIds, keywordStatus, limit, offset } = {}) {
|
|
503
216
|
campaignId = encodeURIComponent(campaignId);
|
|
504
217
|
return this.get(`/ad_campaign/${campaignId}/keyword`, {
|
|
@@ -510,61 +223,26 @@ class Marketing extends index_js_1.default {
|
|
|
510
223
|
}
|
|
511
224
|
});
|
|
512
225
|
}
|
|
513
|
-
/**
|
|
514
|
-
*
|
|
515
|
-
* @param campaignId A unique eBay-assigned ID for an ad campaign that's generated when a campaign is created. Get
|
|
516
|
-
* a seller's campaign IDs by calling getCampaigns.
|
|
517
|
-
* @param body A type that defines the fields for the request to create a keyword.
|
|
518
|
-
*/
|
|
519
226
|
createKeyword(campaignId, body) {
|
|
520
227
|
campaignId = encodeURIComponent(campaignId);
|
|
521
228
|
return this.post(`/ad_campaign/${campaignId}/keyword`, body);
|
|
522
229
|
}
|
|
523
|
-
/**
|
|
524
|
-
*
|
|
525
|
-
* @param campaignId A unique eBay-assigned ID for an ad campaign that's generated when a campaign is created. Get
|
|
526
|
-
* a seller's campaign IDs by calling getCampaigns.
|
|
527
|
-
* @param keywordId This path parameter is used to identify the keyword to retrieve.
|
|
528
|
-
*/
|
|
529
230
|
getKeyword(campaignId, keywordId) {
|
|
530
231
|
campaignId = encodeURIComponent(campaignId);
|
|
531
232
|
keywordId = encodeURIComponent(keywordId);
|
|
532
233
|
return this.get(`/ad_campaign/${campaignId}/keyword/${keywordId}`);
|
|
533
234
|
}
|
|
534
|
-
/**
|
|
535
|
-
*
|
|
536
|
-
* @param campaignId A unique eBay-assigned ID for an ad campaign that's generated when a campaign is created. Get
|
|
537
|
-
* a seller's campaign IDs by calling getCampaigns.
|
|
538
|
-
* @param keywordId This path parameter is used to identify the keyword to retrieve.
|
|
539
|
-
* @param body A type that defines the fields for the request to update a keyword.
|
|
540
|
-
*/
|
|
541
235
|
updateKeyword(campaignId, keywordId, body) {
|
|
542
236
|
campaignId = encodeURIComponent(campaignId);
|
|
543
237
|
keywordId = encodeURIComponent(keywordId);
|
|
544
238
|
return this.put(`/ad_campaign/${campaignId}/keyword/${keywordId}`, body);
|
|
545
239
|
}
|
|
546
|
-
/**
|
|
547
|
-
*
|
|
548
|
-
* @param body A type that defines the fields for the bulk request to create negative keywords.
|
|
549
|
-
*/
|
|
550
240
|
bulkCreateNegativeKeyword(body) {
|
|
551
241
|
return this.post(`/bulk_create_negative_keyword`, body);
|
|
552
242
|
}
|
|
553
|
-
/**
|
|
554
|
-
*
|
|
555
|
-
* @param body A type that defines the fields for the bulk request to create negative keywords.
|
|
556
|
-
*/
|
|
557
243
|
bulkUpdateNegativeKeyword(body) {
|
|
558
244
|
return this.post(`/bulk_update_negative_keyword`, body);
|
|
559
245
|
}
|
|
560
|
-
/**
|
|
561
|
-
*
|
|
562
|
-
* @param adGroupIds A comma-separated list of ad group IDs.
|
|
563
|
-
* @param campaignIds A unique eBay-assigned ID for an ad campaign that is generated when a campaign is created.
|
|
564
|
-
* @param limit The number of results, from the current result set, to be returned in a single page.
|
|
565
|
-
* @param negativeKeywordStatus A comma-separated list of negative keyword statuses.
|
|
566
|
-
* @param offset The number of results that will be skipped in the result set.
|
|
567
|
-
*/
|
|
568
246
|
getNegativeKeywords({ adGroupIds, campaignIds, limit, negativeKeywordStatus, offset } = {}) {
|
|
569
247
|
return this.get(`/negative_keyword`, {
|
|
570
248
|
params: {
|
|
@@ -574,66 +252,28 @@ class Marketing extends index_js_1.default {
|
|
|
574
252
|
}
|
|
575
253
|
});
|
|
576
254
|
}
|
|
577
|
-
/**
|
|
578
|
-
*
|
|
579
|
-
* @param body A type that defines the fields for the request to create a negative keyword.
|
|
580
|
-
*/
|
|
581
255
|
createNegativeKeyword(body) {
|
|
582
256
|
return this.post(`/negative_keyword`, body);
|
|
583
257
|
}
|
|
584
|
-
/**
|
|
585
|
-
*
|
|
586
|
-
* @param negativeKeywordId The unique identifier for the negative keyword.
|
|
587
|
-
*/
|
|
588
258
|
getNegativeKeyword(negativeKeywordId) {
|
|
589
259
|
negativeKeywordId = encodeURIComponent(negativeKeywordId);
|
|
590
260
|
return this.get(`/negative_keyword/${negativeKeywordId}`);
|
|
591
261
|
}
|
|
592
|
-
/**
|
|
593
|
-
*
|
|
594
|
-
* @param negativeKeywordId The unique identifier for the negative keyword.
|
|
595
|
-
* @param body A type that defines the fields for the request to update a negative keyword.
|
|
596
|
-
*/
|
|
597
262
|
updateNegativeKeyword(negativeKeywordId, body) {
|
|
598
263
|
negativeKeywordId = encodeURIComponent(negativeKeywordId);
|
|
599
264
|
return this.put(`/negative_keyword/${negativeKeywordId}`, body);
|
|
600
265
|
}
|
|
601
|
-
/**
|
|
602
|
-
* This call downloads the report as specified by the report_id path parameter.
|
|
603
|
-
*
|
|
604
|
-
* @param reportId The unique ID of the Promoted Listings report you want to get. This ID is generated by eBay when
|
|
605
|
-
* you run a report task with a call to createReportTask.
|
|
606
|
-
*/
|
|
607
266
|
getReport(reportId) {
|
|
608
267
|
reportId = encodeURIComponent(reportId);
|
|
609
268
|
return this.get(`/ad_report/${reportId}`);
|
|
610
269
|
}
|
|
611
|
-
/**
|
|
612
|
-
* This call retrieves information that details the fields used in each of the Promoted Listings reports.
|
|
613
|
-
*/
|
|
614
270
|
getReportMetadata() {
|
|
615
271
|
return this.get(`/ad_report_metadata`);
|
|
616
272
|
}
|
|
617
|
-
/**
|
|
618
|
-
* This call retrieves metadata that details the fields used by the Promoted Listings report type that's specified
|
|
619
|
-
* by the report_type path parameter.
|
|
620
|
-
*
|
|
621
|
-
* @param reportType The name of the report type whose metadata you want to get.
|
|
622
|
-
*/
|
|
623
273
|
getReportMetadataForReportType(reportType) {
|
|
624
274
|
reportType = encodeURIComponent(reportType);
|
|
625
275
|
return this.get(`/ad_report_metadata/${reportType}`);
|
|
626
276
|
}
|
|
627
|
-
/**
|
|
628
|
-
* This method returns information on all the existing report tasks related to a seller.
|
|
629
|
-
*
|
|
630
|
-
* @param limit Specifies the maximum number of report tasks to return on a page in the paginated response.
|
|
631
|
-
* Default: 10 Maximum: 500
|
|
632
|
-
* @param offset Specifies the number of report tasks to skip in the result set before returning the first report
|
|
633
|
-
* in the paginated response.
|
|
634
|
-
* @param reportTaskStatuses This parameter filters the returned report tasks by their status. Supply a
|
|
635
|
-
* comma-separated list of the report statuses you want returned.
|
|
636
|
-
*/
|
|
637
277
|
getReportTasks({ limit, offset, reportTaskStatuses } = {}) {
|
|
638
278
|
return this.get(`/ad_report_task`, {
|
|
639
279
|
params: {
|
|
@@ -643,128 +283,47 @@ class Marketing extends index_js_1.default {
|
|
|
643
283
|
}
|
|
644
284
|
});
|
|
645
285
|
}
|
|
646
|
-
/**
|
|
647
|
-
* This call returns the details of a specific Promoted Listings report task, as specified by the report_task_id
|
|
648
|
-
* path parameter. T
|
|
649
|
-
*
|
|
650
|
-
* @param reportTaskId A unique eBay-assigned ID for the report task that's generated when the report task is
|
|
651
|
-
* created by a call to createReportTask.
|
|
652
|
-
*/
|
|
653
286
|
getReportTask(reportTaskId) {
|
|
654
287
|
reportTaskId = encodeURIComponent(reportTaskId);
|
|
655
288
|
return this.get(`/ad_report_task/${reportTaskId}`);
|
|
656
289
|
}
|
|
657
|
-
/**
|
|
658
|
-
* This method creates a report task, which generates a Promoted Listings report based on the values specified in
|
|
659
|
-
* the call.
|
|
660
|
-
*
|
|
661
|
-
* @param body The container for the fields that define the report task.
|
|
662
|
-
*/
|
|
663
290
|
createReportTask(body) {
|
|
664
291
|
return this.post(`/ad_report_task`, body);
|
|
665
292
|
}
|
|
666
|
-
/**
|
|
667
|
-
* This call deletes the report task specified by the report_task_id path parameter.
|
|
668
|
-
*
|
|
669
|
-
* @param reportTaskId A unique eBay-assigned ID for the report task that's generated when the report task is
|
|
670
|
-
* created by a call to createReportTask.
|
|
671
|
-
*/
|
|
672
293
|
deleteReportTask(reportTaskId) {
|
|
673
294
|
reportTaskId = encodeURIComponent(reportTaskId);
|
|
674
295
|
return this.delete(`/ad_report_task/${reportTaskId}`);
|
|
675
296
|
}
|
|
676
|
-
/**
|
|
677
|
-
* This method creates an item price markdown promotion (know simply as a "markdown promotion") where a
|
|
678
|
-
* discount amount is applied directly to the items included the promotion.
|
|
679
|
-
*
|
|
680
|
-
* @param body This type defines the fields that describe an item price markdown promotion.
|
|
681
|
-
*/
|
|
682
297
|
createItemPriceMarkdownPromotion(body) {
|
|
683
298
|
return this.post(`/item_price_markdown`, body);
|
|
684
299
|
}
|
|
685
|
-
/**
|
|
686
|
-
* This method updates the specified item price markdown promotion with the new configuration that you supply in
|
|
687
|
-
* the payload of the request.
|
|
688
|
-
*
|
|
689
|
-
* @param promotionId The ID of the promotion you want to update.
|
|
690
|
-
* @param body This type defines the fields that describe an item price markdown promotion.
|
|
691
|
-
*/
|
|
692
300
|
updateItemPriceMarkdownPromotion(promotionId, body) {
|
|
693
301
|
promotionId = encodeURIComponent(promotionId);
|
|
694
302
|
return this.put(`/item_price_markdown/${promotionId}`, body);
|
|
695
303
|
}
|
|
696
|
-
/**
|
|
697
|
-
* This method deletes the item price markdown promotion specified by the promotion_id path parameter.
|
|
698
|
-
*
|
|
699
|
-
* @param promotionId The ID of the promotion you want to delete.
|
|
700
|
-
*/
|
|
701
304
|
deleteItemPriceMarkdownPromotion(promotionId) {
|
|
702
305
|
promotionId = encodeURIComponent(promotionId);
|
|
703
306
|
return this.delete(`/item_price_markdown/${promotionId}`);
|
|
704
307
|
}
|
|
705
|
-
/**
|
|
706
|
-
* This method returns the complete details of the item price markdown promotion that's indicated by the
|
|
707
|
-
* promotion_id path parameter.
|
|
708
|
-
*
|
|
709
|
-
* @param promotionId The ID of the promotion you want to retrieve.
|
|
710
|
-
*/
|
|
711
308
|
getItemPriceMarkdownPromotion(promotionId) {
|
|
712
309
|
promotionId = encodeURIComponent(promotionId);
|
|
713
310
|
return this.get(`/item_price_markdown/${promotionId}`);
|
|
714
311
|
}
|
|
715
|
-
/**
|
|
716
|
-
* This method creates an item promotion (known casually as a "threshold promotion") where the buyer
|
|
717
|
-
* receives a discount when they meet the buying criteria that's set for the promotion.
|
|
718
|
-
*
|
|
719
|
-
* @param body This type defines the fields that describe an item promotion.
|
|
720
|
-
*/
|
|
721
312
|
createItemPromotion(body) {
|
|
722
313
|
return this.post(`/item_promotion`, body);
|
|
723
314
|
}
|
|
724
|
-
/**
|
|
725
|
-
* This method updates the specified threshold promotion with the new configuration that you supply in the request.
|
|
726
|
-
*
|
|
727
|
-
* @param promotionId The ID of the promotion you want to retrieve. The promotion ID is a unique eBay-assigned
|
|
728
|
-
* value that's generated when the promotion is created.
|
|
729
|
-
* @param body type defines the fields that describe an item promotion.
|
|
730
|
-
*/
|
|
731
315
|
updateItemPromotion(promotionId, body) {
|
|
732
316
|
promotionId = encodeURIComponent(promotionId);
|
|
733
317
|
return this.put(`/item_promotion/${promotionId}`, body);
|
|
734
318
|
}
|
|
735
|
-
/**
|
|
736
|
-
* This method deletes the threshold promotion specified by the promotion_id path parameter.
|
|
737
|
-
*
|
|
738
|
-
* @param promotionId The ID of the promotion you want to retrieve. The promotion ID is a unique eBay-assigned
|
|
739
|
-
* value that's generated when the promotion is created.
|
|
740
|
-
*/
|
|
741
319
|
deleteItemPromotion(promotionId) {
|
|
742
320
|
promotionId = encodeURIComponent(promotionId);
|
|
743
321
|
return this.delete(`/item_promotion/${promotionId}`);
|
|
744
322
|
}
|
|
745
|
-
/**
|
|
746
|
-
* This method returns the complete details of the threshold promotion specified by the promotion_id path
|
|
747
|
-
* parameter.
|
|
748
|
-
*
|
|
749
|
-
* @param promotionId The ID of the promotion you want to retrieve. The promotion ID is a unique eBay-assigned
|
|
750
|
-
* value that's generated when the promotion is created.
|
|
751
|
-
*/
|
|
752
323
|
getItemPromotion(promotionId) {
|
|
753
324
|
promotionId = encodeURIComponent(promotionId);
|
|
754
325
|
return this.get(`/item_promotion/${promotionId}`);
|
|
755
326
|
}
|
|
756
|
-
/**
|
|
757
|
-
* This method returns the set of listings associated with the promotion_id specified in the path parameter.
|
|
758
|
-
*
|
|
759
|
-
* @param promotionId The ID of the promotion whose associated listings you want to retrieve.
|
|
760
|
-
* @param limit Specifies the maximum number of promotions returned on a page from the result set. Default: 200
|
|
761
|
-
* Maximum: 200
|
|
762
|
-
* @param offset Specifies the number of promotions to skip in the result set before returning the first promotion
|
|
763
|
-
* in the paginated response.
|
|
764
|
-
* @param q Reserved for future use.
|
|
765
|
-
* @param sort Specifies the order in which to sort the associated listings in the response.
|
|
766
|
-
* @param status This query parameter applies only to markdown promotions.
|
|
767
|
-
*/
|
|
768
327
|
getListingSet(promotionId, { limit, offset, q, sort, status } = {}) {
|
|
769
328
|
promotionId = encodeURIComponent(promotionId);
|
|
770
329
|
return this.get(`/promotion/${promotionId}/get_listing_set`, {
|
|
@@ -777,19 +336,6 @@ class Marketing extends index_js_1.default {
|
|
|
777
336
|
}
|
|
778
337
|
});
|
|
779
338
|
}
|
|
780
|
-
/**
|
|
781
|
-
* This method returns a list of a seller's undeleted promotions.
|
|
782
|
-
*
|
|
783
|
-
* @param marketplaceId The eBay marketplace ID of the site where the promotion is hosted.
|
|
784
|
-
* @param limit Specifies the maximum number of promotions returned on a page from the result set. Default: 200
|
|
785
|
-
* Maximum: 200
|
|
786
|
-
* @param offset Specifies the number of promotions to skip in the result set before returning the first promotion
|
|
787
|
-
* in the paginated response.
|
|
788
|
-
* @param promotionStatus Specifies the promotion state by which you want to filter the results.
|
|
789
|
-
* @param promotionType Filters the returned promotions based on the their campaign promotion type.
|
|
790
|
-
* @param q A string consisting of one or more keywords.
|
|
791
|
-
* @param sort Specifies the order for how to sort the response.
|
|
792
|
-
*/
|
|
793
339
|
getPromotions(marketplaceId, { limit, offset, promotionStatus, promotionType, q, sort } = {}) {
|
|
794
340
|
return this.get(`/promotion`, {
|
|
795
341
|
params: {
|
|
@@ -803,42 +349,14 @@ class Marketing extends index_js_1.default {
|
|
|
803
349
|
}
|
|
804
350
|
});
|
|
805
351
|
}
|
|
806
|
-
/**
|
|
807
|
-
* This method pauses a currently-active (RUNNING) threshold promotion and changes the state of the promotion from
|
|
808
|
-
* RUNNING to PAUSED.
|
|
809
|
-
*
|
|
810
|
-
* @param promotionId Identifier of the promotion you want to pause.
|
|
811
|
-
*/
|
|
812
352
|
pausePromotion(promotionId) {
|
|
813
353
|
const id = encodeURIComponent(promotionId);
|
|
814
354
|
return this.post(`/promotion/${id}/pause`);
|
|
815
355
|
}
|
|
816
|
-
/**
|
|
817
|
-
* This method restarts a threshold promotion that was previously paused and changes the state of the promotion
|
|
818
|
-
* from PAUSED to RUNNING.
|
|
819
|
-
*
|
|
820
|
-
* @param promotionId Identifier of the promotion you want to make active. The ID is a unique eBay-assigned value
|
|
821
|
-
* that's generated when the promotion is created.
|
|
822
|
-
*/
|
|
823
356
|
resumePromotion(promotionId) {
|
|
824
357
|
const id = encodeURIComponent(promotionId);
|
|
825
358
|
return this.post(`/promotion/${id}/resume`);
|
|
826
359
|
}
|
|
827
|
-
/**
|
|
828
|
-
* This method generates a report that lists the seller's running, paused, and ended promotions for the specified
|
|
829
|
-
* eBay marketplace.
|
|
830
|
-
*
|
|
831
|
-
* @param marketplaceId The eBay marketplace ID of the siteId for which you want the promotions report.
|
|
832
|
-
* @param limit Specifies the maximum number of promotions returned on a page from the result set. Default: 200
|
|
833
|
-
* Maximum: 200
|
|
834
|
-
* @param offset Specifies the number of promotions to skip in the result set before returning the first promotion
|
|
835
|
-
* in the paginated response.
|
|
836
|
-
* @param promotionStatus Limits the results to the promotions that are in the state specified by this query
|
|
837
|
-
* parameter.
|
|
838
|
-
* @param promotionType Filters the returned promotions in the report based on the their campaign promotion type.
|
|
839
|
-
* @param q A string consisting of one or more keywords. eBay filters the response by returning only the promotions
|
|
840
|
-
* that contain the supplied keywords in the promotion title.
|
|
841
|
-
*/
|
|
842
360
|
getPromotionReports(marketplaceId, { limit, offset, promotionStatus, promotionType, q } = {}) {
|
|
843
361
|
return this.get(`/promotion_report`, {
|
|
844
362
|
params: {
|
|
@@ -851,11 +369,6 @@ class Marketing extends index_js_1.default {
|
|
|
851
369
|
}
|
|
852
370
|
});
|
|
853
371
|
}
|
|
854
|
-
/**
|
|
855
|
-
* This method generates a report that summarizes the seller's promotions for the specified eBay marketplace.
|
|
856
|
-
*
|
|
857
|
-
* @param marketplaceId The eBay marketplace ID of the siteId you for which you want a promotion summary report.
|
|
858
|
-
*/
|
|
859
372
|
getPromotionSummaryReport(marketplaceId) {
|
|
860
373
|
return this.get(`/promotion_summary_report`, {
|
|
861
374
|
params: {
|
|
@@ -863,6 +376,47 @@ class Marketing extends index_js_1.default {
|
|
|
863
376
|
}
|
|
864
377
|
});
|
|
865
378
|
}
|
|
379
|
+
getEmailCampaign(emailCampaignId) {
|
|
380
|
+
emailCampaignId = encodeURIComponent(emailCampaignId);
|
|
381
|
+
return this.get(`/email_campaign/${emailCampaignId}`);
|
|
382
|
+
}
|
|
383
|
+
getEmailCampaigns({ limit, q, offset, sort } = {}) {
|
|
384
|
+
return this.get(`/email_campaign`, {
|
|
385
|
+
params: {
|
|
386
|
+
limit,
|
|
387
|
+
offset,
|
|
388
|
+
q,
|
|
389
|
+
sort
|
|
390
|
+
}
|
|
391
|
+
});
|
|
392
|
+
}
|
|
393
|
+
createEmailCampaign(body) {
|
|
394
|
+
return this.post(`/email_campaign`, body);
|
|
395
|
+
}
|
|
396
|
+
updateEmailCampaign(emailCampaignId, body) {
|
|
397
|
+
emailCampaignId = encodeURIComponent(emailCampaignId);
|
|
398
|
+
return this.put(`/email_campaign/${emailCampaignId}`, body);
|
|
399
|
+
}
|
|
400
|
+
deleteEmailCampaign(emailCampaignId) {
|
|
401
|
+
emailCampaignId = encodeURIComponent(emailCampaignId);
|
|
402
|
+
return this.delete(`/email_campaign/${emailCampaignId}`);
|
|
403
|
+
}
|
|
404
|
+
getEmailPreview(emailCampaignId) {
|
|
405
|
+
emailCampaignId = encodeURIComponent(emailCampaignId);
|
|
406
|
+
return this.get(`/email_campaign/${emailCampaignId}/email_preview`);
|
|
407
|
+
}
|
|
408
|
+
getAudiences() {
|
|
409
|
+
return this.get(`/email_campaign/audience`);
|
|
410
|
+
}
|
|
411
|
+
;
|
|
412
|
+
getEmailReport(startDate, endDate) {
|
|
413
|
+
return this.get(`/email_campaign/report`, {
|
|
414
|
+
params: {
|
|
415
|
+
startDate,
|
|
416
|
+
endDate
|
|
417
|
+
}
|
|
418
|
+
});
|
|
419
|
+
}
|
|
866
420
|
}
|
|
867
421
|
Marketing.id = 'Marketing';
|
|
868
422
|
exports.default = Marketing;
|