amazon-ads 0.2.0 → 0.4.0

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 (57) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +24 -13
  3. data/lib/amazon_ads/api.rb +21 -13
  4. data/lib/amazon_ads/apis/ad_associations.rb +1 -2
  5. data/lib/amazon_ads/apis/ad_extensions.rb +1 -2
  6. data/lib/amazon_ads/apis/ad_groups.rb +1 -2
  7. data/lib/amazon_ads/apis/ads.rb +1 -2
  8. data/lib/amazon_ads/apis/advertising_deal_targets.rb +1 -2
  9. data/lib/amazon_ads/apis/advertising_deals.rb +1 -2
  10. data/lib/amazon_ads/apis/brand_store_edition_publish_versions.rb +1 -2
  11. data/lib/amazon_ads/apis/brand_store_editions.rb +0 -1
  12. data/lib/amazon_ads/apis/brand_store_pages.rb +1 -2
  13. data/lib/amazon_ads/apis/brand_stores.rb +1 -2
  14. data/lib/amazon_ads/apis/branded_keywords_pricings.rb +0 -1
  15. data/lib/amazon_ads/apis/campaign_forecasts.rb +0 -1
  16. data/lib/amazon_ads/apis/campaigns.rb +1 -2
  17. data/lib/amazon_ads/apis/commitment_spends.rb +0 -1
  18. data/lib/amazon_ads/apis/commitments.rb +0 -1
  19. data/lib/amazon_ads/apis/keyword_reservation_validations.rb +0 -1
  20. data/lib/amazon_ads/apis/marketing_stream.rb +4 -5
  21. data/lib/amazon_ads/apis/profiles.rb +0 -1
  22. data/lib/amazon_ads/apis/recommendation_types.rb +0 -1
  23. data/lib/amazon_ads/apis/recommendations.rb +0 -1
  24. data/lib/amazon_ads/apis/reporting.rb +0 -1
  25. data/lib/amazon_ads/apis/targets.rb +1 -2
  26. data/lib/amazon_ads/error.rb +41 -0
  27. data/lib/amazon_ads/lwa.rb +7 -13
  28. data/lib/amazon_ads/version.rb +1 -1
  29. data/lib/amazon_ads.rb +28 -32
  30. metadata +7 -33
  31. data/sig/generated/amazon_ads/api.rbs +0 -43
  32. data/sig/generated/amazon_ads/apis/ad_associations.rbs +0 -21
  33. data/sig/generated/amazon_ads/apis/ad_extensions.rbs +0 -17
  34. data/sig/generated/amazon_ads/apis/ad_groups.rbs +0 -21
  35. data/sig/generated/amazon_ads/apis/ads.rbs +0 -21
  36. data/sig/generated/amazon_ads/apis/advertising_deal_targets.rbs +0 -17
  37. data/sig/generated/amazon_ads/apis/advertising_deals.rbs +0 -21
  38. data/sig/generated/amazon_ads/apis/brand_store_edition_publish_versions.rbs +0 -13
  39. data/sig/generated/amazon_ads/apis/brand_store_editions.rbs +0 -9
  40. data/sig/generated/amazon_ads/apis/brand_store_pages.rbs +0 -9
  41. data/sig/generated/amazon_ads/apis/brand_stores.rbs +0 -9
  42. data/sig/generated/amazon_ads/apis/branded_keywords_pricings.rbs +0 -9
  43. data/sig/generated/amazon_ads/apis/campaign_forecasts.rbs +0 -9
  44. data/sig/generated/amazon_ads/apis/campaigns.rbs +0 -21
  45. data/sig/generated/amazon_ads/apis/commitment_spends.rbs +0 -9
  46. data/sig/generated/amazon_ads/apis/commitments.rbs +0 -21
  47. data/sig/generated/amazon_ads/apis/keyword_reservation_validations.rbs +0 -9
  48. data/sig/generated/amazon_ads/apis/marketing_stream.rbs +0 -56
  49. data/sig/generated/amazon_ads/apis/profiles.rbs +0 -22
  50. data/sig/generated/amazon_ads/apis/recommendation_types.rbs +0 -9
  51. data/sig/generated/amazon_ads/apis/recommendations.rbs +0 -9
  52. data/sig/generated/amazon_ads/apis/reporting.rbs +0 -23
  53. data/sig/generated/amazon_ads/apis/sponsored_products.rbs +0 -52
  54. data/sig/generated/amazon_ads/apis/streams.rbs +0 -40
  55. data/sig/generated/amazon_ads/apis/targets.rbs +0 -21
  56. data/sig/generated/amazon_ads/lwa.rbs +0 -37
  57. data/sig/generated/amazon_ads.rbs +0 -30
metadata CHANGED
@@ -1,11 +1,11 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: amazon-ads
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.0
4
+ version: 0.4.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Hakan Ensari
8
- bindir: exe
8
+ bindir: bin
9
9
  cert_chain: []
10
10
  date: 1980-01-02 00:00:00.000000000 Z
11
11
  dependencies:
@@ -29,14 +29,14 @@ dependencies:
29
29
  requirements:
30
30
  - - "~>"
31
31
  - !ruby/object:Gem::Version
32
- version: '5.3'
32
+ version: '6.0'
33
33
  type: :runtime
34
34
  prerelease: false
35
35
  version_requirements: !ruby/object:Gem::Requirement
36
36
  requirements:
37
37
  - - "~>"
38
38
  - !ruby/object:Gem::Version
39
- version: '5.3'
39
+ version: '6.0'
40
40
  - !ruby/object:Gem::Dependency
41
41
  name: zeitwerk
42
42
  requirement: !ruby/object:Gem::Requirement
@@ -83,35 +83,9 @@ files:
83
83
  - lib/amazon_ads/apis/recommendations.rb
84
84
  - lib/amazon_ads/apis/reporting.rb
85
85
  - lib/amazon_ads/apis/targets.rb
86
+ - lib/amazon_ads/error.rb
86
87
  - lib/amazon_ads/lwa.rb
87
88
  - lib/amazon_ads/version.rb
88
- - sig/generated/amazon_ads.rbs
89
- - sig/generated/amazon_ads/api.rbs
90
- - sig/generated/amazon_ads/apis/ad_associations.rbs
91
- - sig/generated/amazon_ads/apis/ad_extensions.rbs
92
- - sig/generated/amazon_ads/apis/ad_groups.rbs
93
- - sig/generated/amazon_ads/apis/ads.rbs
94
- - sig/generated/amazon_ads/apis/advertising_deal_targets.rbs
95
- - sig/generated/amazon_ads/apis/advertising_deals.rbs
96
- - sig/generated/amazon_ads/apis/brand_store_edition_publish_versions.rbs
97
- - sig/generated/amazon_ads/apis/brand_store_editions.rbs
98
- - sig/generated/amazon_ads/apis/brand_store_pages.rbs
99
- - sig/generated/amazon_ads/apis/brand_stores.rbs
100
- - sig/generated/amazon_ads/apis/branded_keywords_pricings.rbs
101
- - sig/generated/amazon_ads/apis/campaign_forecasts.rbs
102
- - sig/generated/amazon_ads/apis/campaigns.rbs
103
- - sig/generated/amazon_ads/apis/commitment_spends.rbs
104
- - sig/generated/amazon_ads/apis/commitments.rbs
105
- - sig/generated/amazon_ads/apis/keyword_reservation_validations.rbs
106
- - sig/generated/amazon_ads/apis/marketing_stream.rbs
107
- - sig/generated/amazon_ads/apis/profiles.rbs
108
- - sig/generated/amazon_ads/apis/recommendation_types.rbs
109
- - sig/generated/amazon_ads/apis/recommendations.rbs
110
- - sig/generated/amazon_ads/apis/reporting.rbs
111
- - sig/generated/amazon_ads/apis/sponsored_products.rbs
112
- - sig/generated/amazon_ads/apis/streams.rbs
113
- - sig/generated/amazon_ads/apis/targets.rbs
114
- - sig/generated/amazon_ads/lwa.rbs
115
89
  homepage: https://github.com/lineofflight/amazon-ads-ruby
116
90
  licenses:
117
91
  - MIT
@@ -127,14 +101,14 @@ required_ruby_version: !ruby/object:Gem::Requirement
127
101
  requirements:
128
102
  - - ">="
129
103
  - !ruby/object:Gem::Version
130
- version: 3.3.0
104
+ version: '3.3'
131
105
  required_rubygems_version: !ruby/object:Gem::Requirement
132
106
  requirements:
133
107
  - - ">="
134
108
  - !ruby/object:Gem::Version
135
109
  version: '0'
136
110
  requirements: []
137
- rubygems_version: 4.0.3
111
+ rubygems_version: 4.0.16
138
112
  specification_version: 4
139
113
  summary: Amazon Ads API client for Ruby
140
114
  test_files: []
@@ -1,43 +0,0 @@
1
- # Generated from lib/amazon_ads/api.rb with RBS::Inline
2
-
3
- module AmazonAds
4
- # Base class for Amazon Ads API endpoints
5
- class API
6
- ENDPOINTS: untyped
7
-
8
- # API endpoint region
9
- attr_reader region: Symbol
10
-
11
- # LWA access token
12
- attr_reader access_token: String
13
-
14
- # Advertiser profile, scopes requests to a marketplace
15
- attr_reader profile_id: String?
16
-
17
- # Advertiser account
18
- attr_reader account_id: String?
19
-
20
- # Number of retries when throttled (default: 0)
21
- attr_reader retries: Integer
22
-
23
- # : (region: Symbol | String, access_token: String, ?profile_id: String?, ?account_id: String?, ?retries: Integer, ?http: untyped) -> void
24
- def initialize: (region: Symbol | String, access_token: String, ?profile_id: String?, ?account_id: String?, ?retries: Integer, ?http: untyped) -> void
25
-
26
- # : () -> URI::HTTPS
27
- def endpoint: () -> URI::HTTPS
28
-
29
- # : () -> HTTP::Client
30
- def http: () -> HTTP::Client
31
-
32
- private
33
-
34
- # : (Symbol, String, **untyped) -> HTTP::Response
35
- def request: (Symbol, String, **untyped) -> HTTP::Response
36
-
37
- # : () -> Hash[String, String]
38
- def default_headers: () -> Hash[String, String]
39
-
40
- # : () -> String
41
- def client_id: () -> String
42
- end
43
- end
@@ -1,21 +0,0 @@
1
- # Generated from lib/amazon_ads/apis/ad_associations.rb with RBS::Inline
2
-
3
- module AmazonAds
4
- class AdAssociations < API
5
- # Create Ad Association
6
- # : (?ad_associations: Array[untyped]?) -> HTTP::Response
7
- def create_ad_association: (?ad_associations: Array[untyped]?) -> HTTP::Response
8
-
9
- # Delete Ad Association
10
- # : (?ad_association_ids: Array[untyped]?) -> HTTP::Response
11
- def delete_ad_association: (?ad_association_ids: Array[untyped]?) -> HTTP::Response
12
-
13
- # Query Ad Association
14
- # : (?ad_association_id_filter: String?, ?ad_group_id_filter: String?, ?ad_id_filter: String?, ?max_results: Integer?, ?next_token: String?) -> HTTP::Response
15
- def query_ad_association: (?ad_association_id_filter: String?, ?ad_group_id_filter: String?, ?ad_id_filter: String?, ?max_results: Integer?, ?next_token: String?) -> HTTP::Response
16
-
17
- # Update Ad Association
18
- # : (?ad_associations: Array[untyped]?) -> HTTP::Response
19
- def update_ad_association: (?ad_associations: Array[untyped]?) -> HTTP::Response
20
- end
21
- end
@@ -1,17 +0,0 @@
1
- # Generated from lib/amazon_ads/apis/ad_extensions.rb with RBS::Inline
2
-
3
- module AmazonAds
4
- class AdExtensions < API
5
- # Create ad extensions - API is in open beta
6
- # : (?ad_extensions: Array[untyped]?) -> HTTP::Response
7
- def create_ad_extension: (?ad_extensions: Array[untyped]?) -> HTTP::Response
8
-
9
- # Query ad_extension - API is in open beta
10
- # : (?ad_extension_id_filter: String?, ?ad_extension_status_filter: String?, ?ad_extension_type_filter: String?, ?ad_group_id_filter: String?, ?ad_id_filter: String?, ?ad_product_filter: String?, ?max_results: Integer?, ?next_token: String?, ?state_filter: String?) -> HTTP::Response
11
- def query_ad_extension: (?ad_extension_id_filter: String?, ?ad_extension_status_filter: String?, ?ad_extension_type_filter: String?, ?ad_group_id_filter: String?, ?ad_id_filter: String?, ?ad_product_filter: String?, ?max_results: Integer?, ?next_token: String?, ?state_filter: String?) -> HTTP::Response
12
-
13
- # Update ad_extension - API is in open beta
14
- # : (?ad_extensions: Array[untyped]?) -> HTTP::Response
15
- def update_ad_extension: (?ad_extensions: Array[untyped]?) -> HTTP::Response
16
- end
17
- end
@@ -1,21 +0,0 @@
1
- # Generated from lib/amazon_ads/apis/ad_groups.rb with RBS::Inline
2
-
3
- module AmazonAds
4
- class AdGroups < API
5
- # Create ad groups
6
- # : (?ad_groups: Array[untyped]?) -> HTTP::Response
7
- def create_ad_group: (?ad_groups: Array[untyped]?) -> HTTP::Response
8
-
9
- # Delete ad groups
10
- # : (?ad_group_ids: Array[untyped]?) -> HTTP::Response
11
- def delete_ad_group: (?ad_group_ids: Array[untyped]?) -> HTTP::Response
12
-
13
- # List ad groups
14
- # : (ad_product_filter: String, ?ad_group_id_filter: String?, ?campaign_id_filter: String?, ?marketplace_scope_filter: String?, ?max_results: Integer?, ?name_filter: String?, ?next_token: String?, ?state_filter: String?) -> HTTP::Response
15
- def query_ad_group: (ad_product_filter: String, ?ad_group_id_filter: String?, ?campaign_id_filter: String?, ?marketplace_scope_filter: String?, ?max_results: Integer?, ?name_filter: String?, ?next_token: String?, ?state_filter: String?) -> HTTP::Response
16
-
17
- # Update ad groups
18
- # : (?ad_groups: Array[untyped]?) -> HTTP::Response
19
- def update_ad_group: (?ad_groups: Array[untyped]?) -> HTTP::Response
20
- end
21
- end
@@ -1,21 +0,0 @@
1
- # Generated from lib/amazon_ads/apis/ads.rb with RBS::Inline
2
-
3
- module AmazonAds
4
- class Ads < API
5
- # Create ads
6
- # : (?ads: Array[untyped]?) -> HTTP::Response
7
- def create_ad: (?ads: Array[untyped]?) -> HTTP::Response
8
-
9
- # Delete ads
10
- # : (?ad_ids: Array[untyped]?) -> HTTP::Response
11
- def delete_ad: (?ad_ids: Array[untyped]?) -> HTTP::Response
12
-
13
- # List ads
14
- # : (ad_product_filter: String, ?ad_group_id_filter: String?, ?ad_id_filter: String?, ?campaign_id_filter: String?, ?marketplace_scope_filter: String?, ?max_results: Integer?, ?name_filter: String?, ?next_token: String?, ?state_filter: String?) -> HTTP::Response
15
- def query_ad: (ad_product_filter: String, ?ad_group_id_filter: String?, ?ad_id_filter: String?, ?campaign_id_filter: String?, ?marketplace_scope_filter: String?, ?max_results: Integer?, ?name_filter: String?, ?next_token: String?, ?state_filter: String?) -> HTTP::Response
16
-
17
- # Update ads
18
- # : (?ads: Array[untyped]?) -> HTTP::Response
19
- def update_ad: (?ads: Array[untyped]?) -> HTTP::Response
20
- end
21
- end
@@ -1,17 +0,0 @@
1
- # Generated from lib/amazon_ads/apis/advertising_deal_targets.rb with RBS::Inline
2
-
3
- module AmazonAds
4
- class AdvertisingDealTargets < API
5
- # Create advertisingDealTarget
6
- # : (?advertising_deal_targets: Array[untyped]?) -> HTTP::Response
7
- def sb_create_advertising_deal_target: (?advertising_deal_targets: Array[untyped]?) -> HTTP::Response
8
-
9
- # Delete advertisingDealTarget
10
- # : (?advertising_deal_target_ids: Array[untyped]?) -> HTTP::Response
11
- def sb_delete_advertising_deal_target: (?advertising_deal_target_ids: Array[untyped]?) -> HTTP::Response
12
-
13
- # Query advertisingDealTarget
14
- # : (advertising_deal_id_filter: String, ?max_results: Integer?, ?next_token: String?) -> HTTP::Response
15
- def sb_query_advertising_deal_target: (advertising_deal_id_filter: String, ?max_results: Integer?, ?next_token: String?) -> HTTP::Response
16
- end
17
- end
@@ -1,21 +0,0 @@
1
- # Generated from lib/amazon_ads/apis/advertising_deals.rb with RBS::Inline
2
-
3
- module AmazonAds
4
- class AdvertisingDeals < API
5
- # Create advertisingDeal
6
- # : (?advertising_deals: Array[untyped]?) -> HTTP::Response
7
- def sb_create_advertising_deal: (?advertising_deals: Array[untyped]?) -> HTTP::Response
8
-
9
- # Delete advertisingDeal
10
- # : (?advertising_deal_ids: Array[untyped]?) -> HTTP::Response
11
- def sb_delete_advertising_deal: (?advertising_deal_ids: Array[untyped]?) -> HTTP::Response
12
-
13
- # Query advertisingDeal
14
- # : (?advertising_deal_id_filter: String?, ?max_results: Integer?, ?name_filter: String?, ?next_token: String?) -> HTTP::Response
15
- def sb_query_advertising_deal: (?advertising_deal_id_filter: String?, ?max_results: Integer?, ?name_filter: String?, ?next_token: String?) -> HTTP::Response
16
-
17
- # Update advertisingDeal
18
- # : (?advertising_deals: Array[untyped]?) -> HTTP::Response
19
- def sb_update_advertising_deal: (?advertising_deals: Array[untyped]?) -> HTTP::Response
20
- end
21
- end
@@ -1,13 +0,0 @@
1
- # Generated from lib/amazon_ads/apis/brand_store_edition_publish_versions.rb with RBS::Inline
2
-
3
- module AmazonAds
4
- class BrandStoreEditionPublishVersions < API
5
- # Query store edition publish versions
6
- # : (edition_id_filter: String, publish_status_filter: String, store_id_filter: String, ?max_results: Integer?, ?next_token: String?) -> HTTP::Response
7
- def query_brand_store_edition_publish_version: (edition_id_filter: String, publish_status_filter: String, store_id_filter: String, ?max_results: Integer?, ?next_token: String?) -> HTTP::Response
8
-
9
- # Update store edition publish versions
10
- # : (?brand_store_edition_publish_versions: Array[untyped]?) -> HTTP::Response
11
- def update_brand_store_edition_publish_version: (?brand_store_edition_publish_versions: Array[untyped]?) -> HTTP::Response
12
- end
13
- end
@@ -1,9 +0,0 @@
1
- # Generated from lib/amazon_ads/apis/brand_store_editions.rb with RBS::Inline
2
-
3
- module AmazonAds
4
- class BrandStoreEditions < API
5
- # Retrieve brand store page content
6
- # : (brand_store_id: String, ?next_token: String?, ?max_results: Integer?) -> HTTP::Response
7
- def list_brand_store_edition: (brand_store_id: String, ?next_token: String?, ?max_results: Integer?) -> HTTP::Response
8
- end
9
- end
@@ -1,9 +0,0 @@
1
- # Generated from lib/amazon_ads/apis/brand_store_pages.rb with RBS::Inline
2
-
3
- module AmazonAds
4
- class BrandStorePages < API
5
- # Retrieve brand store page content
6
- # : (edition_id_filter: String, page_id_filter: String, store_id_filter: String, ?max_results: Integer?, ?next_token: String?, ?store_edition_publish_id_filter: String?) -> HTTP::Response
7
- def query_brand_store_page: (edition_id_filter: String, page_id_filter: String, store_id_filter: String, ?max_results: Integer?, ?next_token: String?, ?store_edition_publish_id_filter: String?) -> HTTP::Response
8
- end
9
- end
@@ -1,9 +0,0 @@
1
- # Generated from lib/amazon_ads/apis/brand_stores.rb with RBS::Inline
2
-
3
- module AmazonAds
4
- class BrandStores < API
5
- # Query brand store content
6
- # : (store_name_filter: String, ?max_results: Integer?, ?next_token: String?, ?sort: Array[untyped]?) -> HTTP::Response
7
- def query_brand_store: (store_name_filter: String, ?max_results: Integer?, ?next_token: String?, ?sort: Array[untyped]?) -> HTTP::Response
8
- end
9
- end
@@ -1,9 +0,0 @@
1
- # Generated from lib/amazon_ads/apis/branded_keywords_pricings.rb with RBS::Inline
2
-
3
- module AmazonAds
4
- class BrandedKeywordsPricings < API
5
- # Create brandedKeywords pricing
6
- # : (?branded_keywords_pricings: Array[untyped]?) -> HTTP::Response
7
- def sb_create_branded_keywords_pricing: (?branded_keywords_pricings: Array[untyped]?) -> HTTP::Response
8
- end
9
- end
@@ -1,9 +0,0 @@
1
- # Generated from lib/amazon_ads/apis/campaign_forecasts.rb with RBS::Inline
2
-
3
- module AmazonAds
4
- class CampaignForecasts < API
5
- # Retrieve campaign forecast
6
- # : (?campaign_forecast_descriptions: Array[untyped]?) -> HTTP::Response
7
- def dsp_retrieve_campaign_forecast: (?campaign_forecast_descriptions: Array[untyped]?) -> HTTP::Response
8
- end
9
- end
@@ -1,21 +0,0 @@
1
- # Generated from lib/amazon_ads/apis/campaigns.rb with RBS::Inline
2
-
3
- module AmazonAds
4
- class Campaigns < API
5
- # Create campaigns
6
- # : (?campaigns: Array[untyped]?) -> HTTP::Response
7
- def create_campaign: (?campaigns: Array[untyped]?) -> HTTP::Response
8
-
9
- # Delete campaigns
10
- # : (?campaign_ids: Array[untyped]?) -> HTTP::Response
11
- def delete_campaign: (?campaign_ids: Array[untyped]?) -> HTTP::Response
12
-
13
- # Query campaign
14
- # : (ad_product_filter: String, ?campaign_id_filter: String?, ?goal_filter: String?, ?marketplace_scope_filter: String?, ?max_results: Integer?, ?name_filter: String?, ?next_token: String?, ?portfolio_id_filter: String?, ?state_filter: String?) -> HTTP::Response
15
- def query_campaign: (ad_product_filter: String, ?campaign_id_filter: String?, ?goal_filter: String?, ?marketplace_scope_filter: String?, ?max_results: Integer?, ?name_filter: String?, ?next_token: String?, ?portfolio_id_filter: String?, ?state_filter: String?) -> HTTP::Response
16
-
17
- # Update campaign
18
- # : (?campaigns: Array[untyped]?) -> HTTP::Response
19
- def update_campaign: (?campaigns: Array[untyped]?) -> HTTP::Response
20
- end
21
- end
@@ -1,9 +0,0 @@
1
- # Generated from lib/amazon_ads/apis/commitment_spends.rb with RBS::Inline
2
-
3
- module AmazonAds
4
- class CommitmentSpends < API
5
- # Retrieve commitment spend
6
- # : (?commitment_ids: Array[untyped]?) -> HTTP::Response
7
- def dsp_retrieve_commitment_spend: (?commitment_ids: Array[untyped]?) -> HTTP::Response
8
- end
9
- end
@@ -1,21 +0,0 @@
1
- # Generated from lib/amazon_ads/apis/commitments.rb with RBS::Inline
2
-
3
- module AmazonAds
4
- class Commitments < API
5
- # Create commitments
6
- # : (?commitments: Array[untyped]?) -> HTTP::Response
7
- def dsp_create_commitment: (?commitments: Array[untyped]?) -> HTTP::Response
8
-
9
- # List commitments
10
- # : (?next_token: String?, ?max_results: Integer?) -> HTTP::Response
11
- def dsp_list_commitment: (?next_token: String?, ?max_results: Integer?) -> HTTP::Response
12
-
13
- # Get Commitments
14
- # : (?commitment_ids: Array[untyped]?) -> HTTP::Response
15
- def dsp_retrieve_commitment: (?commitment_ids: Array[untyped]?) -> HTTP::Response
16
-
17
- # Update commitments
18
- # : (?commitments: Array[untyped]?) -> HTTP::Response
19
- def dsp_update_commitment: (?commitments: Array[untyped]?) -> HTTP::Response
20
- end
21
- end
@@ -1,9 +0,0 @@
1
- # Generated from lib/amazon_ads/apis/keyword_reservation_validations.rb with RBS::Inline
2
-
3
- module AmazonAds
4
- class KeywordReservationValidations < API
5
- # Validate keyword reservation
6
- # : (?keyword_reservation_validations: Array[untyped]?) -> HTTP::Response
7
- def sb_create_keyword_reservation_validation: (?keyword_reservation_validations: Array[untyped]?) -> HTTP::Response
8
- end
9
- end
@@ -1,56 +0,0 @@
1
- # Generated from lib/amazon_ads/apis/marketing_stream.rb with RBS::Inline
2
-
3
- module AmazonAds
4
- # Amazon Marketing Stream
5
- class MarketingStream < API
6
- # Create a new subscription Note: trailing slash in request uri is not allowed
7
- # @rbs client_request_token: String -- Unique value supplied by the caller used to track identical API requests. Should request be re-tried, the caller should supply the same value. We recommend using GUID.
8
- # @rbs data_set_id: String -- Identifier of data set, callers can be subscribed to. Please refer to https://advertising.amazon.com/API/docs/en-us/amazon-marketing-stream/data-guide for the list of all data sets.
9
- # @rbs destination_arn: String -- AWS ARN of the destination endpoint associated with the subscription. Supported destination types: - SQS
10
- # @rbs notes: String -- Additional details associated with the subscription
11
- # : (client_request_token: String, data_set_id: String, ?destination: String?, ?destination_arn: String?, ?notes: String?) -> HTTP::Response
12
- def create_dsp_stream_subscription: (client_request_token: String, data_set_id: String, ?destination: String?, ?destination_arn: String?, ?notes: String?) -> HTTP::Response
13
-
14
- # Create a new subscription Note: trailing slash in request uri is not allowed
15
- # @rbs client_request_token: String -- Unique value supplied by the caller used to track identical API requests. Should request be re-tried, the caller should supply the same value. We recommend using GUID.
16
- # @rbs data_set_id: String -- Identifier of data set, callers can be subscribed to. Please refer to https://advertising.amazon.com/API/docs/en-us/amazon-marketing-stream/data-guide for the list of all data sets.
17
- # @rbs destination_arn: String -- AWS ARN of the destination endpoint associated with the subscription. Supported destination types: - SQS
18
- # @rbs notes: String -- Additional details associated with the subscription
19
- # : (client_request_token: String, data_set_id: String, ?destination: String?, ?destination_arn: String?, ?notes: String?) -> HTTP::Response
20
- def create_stream_subscription: (client_request_token: String, data_set_id: String, ?destination: String?, ?destination_arn: String?, ?notes: String?) -> HTTP::Response
21
-
22
- # Fetch a specific subscription by Id Note: trailing slash in request uri is not allowed
23
- # @rbs subscription_id: String -- Unique subscription identifier
24
- # : (String) -> HTTP::Response
25
- def get_dsp_stream_subscription: (String) -> HTTP::Response
26
-
27
- # Fetch a specific subscription by Id Note: trailing slash in request uri is not allowed
28
- # @rbs subscription_id: String -- Unique subscription identifier
29
- # : (String) -> HTTP::Response
30
- def get_stream_subscription: (String) -> HTTP::Response
31
-
32
- # List subscriptions Note: trailing slash in request uri is not allowed
33
- # @rbs max_results: Numeric -- desired number of entries in the response, defaults to maximum value
34
- # @rbs starting_token: String -- Token which can be used to get the next page of results, if more entries exist
35
- # : (?max_results: Numeric?, ?starting_token: String?) -> HTTP::Response
36
- def list_dsp_stream_subscriptions: (?max_results: Numeric?, ?starting_token: String?) -> HTTP::Response
37
-
38
- # List subscriptions Note: trailing slash in request uri is not allowed
39
- # @rbs max_results: Numeric -- desired number of entries in the response, defaults to maximum value
40
- # @rbs starting_token: String -- Token which can be used to get the next page of results, if more entries exist
41
- # : (?max_results: Numeric?, ?starting_token: String?) -> HTTP::Response
42
- def list_stream_subscriptions: (?max_results: Numeric?, ?starting_token: String?) -> HTTP::Response
43
-
44
- # Update an existing subscription Note: trailing slash in request uri is not allowed
45
- # @rbs subscription_id: String -- Unique subscription identifier
46
- # @rbs notes: String -- Additional details associated with the subscription
47
- # : (String, ?notes: String?, ?status: String?) -> HTTP::Response
48
- def update_dsp_stream_subscription: (String, ?notes: String?, ?status: String?) -> HTTP::Response
49
-
50
- # Update an existing subscription Note: trailing slash in request uri is not allowed
51
- # @rbs subscription_id: String -- Unique subscription identifier
52
- # @rbs notes: String -- Additional details associated with the subscription
53
- # : (String, ?notes: String?, ?status: String?) -> HTTP::Response
54
- def update_stream_subscription: (String, ?notes: String?, ?status: String?) -> HTTP::Response
55
- end
56
- end
@@ -1,22 +0,0 @@
1
- # Generated from lib/amazon_ads/apis/profiles.rb with RBS::Inline
2
-
3
- module AmazonAds
4
- # Amazon Ads API - Profiles
5
- class Profiles < API
6
- # Gets a profile specified by identifier.
7
- # : (Integer) -> HTTP::Response
8
- def get_profile_by_id: (Integer) -> HTTP::Response
9
-
10
- # Gets a list of profiles.
11
- # @rbs api_program: String -- Filters response to include profiles that have permissions for the specified Advertising API program only. Setting `apiProgram=billing` filters the response to include only profiles to which the user and application associated with the access token have permission to view or edit billing information.
12
- # @rbs access_level: String -- Filters response to include profiles that have specified permissions for the specified Advertising API program only. Currently, the only supported access level is `view` and `edit`. Setting `accessLevel=view` filters the response to include only profiles to which the user and application associated with the access token have view permission to the provided api program.
13
- # @rbs profile_type_filter: String -- Filters response to include profiles that are of the specified types in the comma-delimited list. Default is all types. Note that this filter performs an inclusive AND operation on the types.
14
- # @rbs valid_payment_method_filter: String -- Filter response to include profiles that have valid payment methods. Default is to include all profiles. Setting this filter to `true` returns only profiles with either no `validPaymentMethod` field, or the `validPaymentMethod` field set to `true`. Setting this to `false` returns profiles with the `validPaymentMethod` field set to `false` only.
15
- # : (?api_program: String?, ?access_level: String?, ?profile_type_filter: String?, ?valid_payment_method_filter: String?) -> HTTP::Response
16
- def list_profiles: (?api_program: String?, ?access_level: String?, ?profile_type_filter: String?, ?valid_payment_method_filter: String?) -> HTTP::Response
17
-
18
- # Update the daily budget for one or more profiles.
19
- # : (?json: untyped) -> HTTP::Response
20
- def update_profiles: (?json: untyped) -> HTTP::Response
21
- end
22
- end
@@ -1,9 +0,0 @@
1
- # Generated from lib/amazon_ads/apis/recommendation_types.rb with RBS::Inline
2
-
3
- module AmazonAds
4
- class RecommendationTypes < API
5
- # Query RecommendationTypes
6
- # : (?max_results: Integer?, ?next_token: String?) -> HTTP::Response
7
- def sb_query_recommendation_type: (?max_results: Integer?, ?next_token: String?) -> HTTP::Response
8
- end
9
- end
@@ -1,9 +0,0 @@
1
- # Generated from lib/amazon_ads/apis/recommendations.rb with RBS::Inline
2
-
3
- module AmazonAds
4
- class Recommendations < API
5
- # Create recommendations
6
- # : (?recommendations: Array[untyped]?) -> HTTP::Response
7
- def sb_create_recommendation: (?recommendations: Array[untyped]?) -> HTTP::Response
8
- end
9
- end
@@ -1,23 +0,0 @@
1
- # Generated from lib/amazon_ads/apis/reporting.rb with RBS::Inline
2
-
3
- module AmazonAds
4
- # Offline Report
5
- class Reporting < API
6
- # Creates a report request
7
- # @rbs end_date: String -- YYYY-MM-DD format. The maximum lookback window supported depends on the selection of reportTypeId. Most report types support `95 days` as lookback window.
8
- # @rbs name: String -- The name of the report.
9
- # @rbs start_date: String -- YYYY-MM-DD format. The maximum lookback window supported depends on the selection of reportTypeId. Most report types support `95 days` as lookback window.
10
- # : (configuration: untyped, end_date: String, start_date: String, ?name: String?) -> HTTP::Response
11
- def create_async_report: (configuration: untyped, end_date: String, start_date: String, ?name: String?) -> HTTP::Response
12
-
13
- # Deletes a report by id
14
- # @rbs report_id: String -- The identifier of the requested report.
15
- # : (String) -> HTTP::Response
16
- def delete_async_report: (String) -> HTTP::Response
17
-
18
- # Gets a generation status of report by id
19
- # @rbs report_id: String -- The identifier of the requested report.
20
- # : (String) -> HTTP::Response
21
- def get_async_report: (String) -> HTTP::Response
22
- end
23
- end
@@ -1,52 +0,0 @@
1
- # Generated from lib/amazon_ads/apis/sponsored_products.rb with RBS::Inline
2
-
3
- module AmazonAds
4
- # Amazon Ads API - Sponsored Products
5
- #
6
- # @see https://advertising.amazon.com/API/docs/en-us/sponsored-products
7
- class SponsoredProducts < API
8
- # Gets a bid recommendation for an ad group. [PLANNED DEPRECATION 3/27/2024]
9
- # : (Numeric) -> untyped
10
- def get_ad_group_bid_recommendations: (Numeric) -> untyped
11
-
12
- # Gets a bid recommendation for a keyword. [PLANNED DEPRECATION 3/27/2024]
13
- # : (Numeric) -> untyped
14
- def get_keyword_bid_recommendations: (Numeric) -> untyped
15
-
16
- # Gets bid recommendations for keywords. [PLANNED DEPRECATION 3/27/2024]
17
- # : (?body: Hash[String, untyped]) -> untyped
18
- def create_keyword_bid_recommendations: (?body: Hash[String, untyped]) -> untyped
19
-
20
- # Gets suggested keywords for the specified ad group.
21
- # : (Numeric, ?max_num_suggestions: Integer?, ?ad_state_filter: String?) -> untyped
22
- def get_ad_group_suggested_keywords: (Numeric, ?max_num_suggestions: Integer?, ?ad_state_filter: String?) -> untyped
23
-
24
- # Gets suggested keywords with extended data for the specified ad group.
25
- # : (Numeric, ?max_num_suggestions: Integer?, ?suggest_bids: String?, ?ad_state_filter: String?) -> untyped
26
- def get_ad_group_suggested_keywords_ex: (Numeric, ?max_num_suggestions: Integer?, ?suggest_bids: String?, ?ad_state_filter: String?) -> untyped
27
-
28
- # Gets suggested keywords for the specified ASIN.
29
- # : (String, ?max_num_suggestions: Integer?) -> untyped
30
- def get_asin_suggested_keywords: (String, ?max_num_suggestions: Integer?) -> untyped
31
-
32
- # Gets suggested keyword for a specified list of ASINs.
33
- # : (?body: Hash[String, untyped]) -> untyped
34
- def bulk_get_asin_suggested_keywords: (?body: Hash[String, untyped]) -> untyped
35
-
36
- # Gets a list of bid recommendations for keyword, product, or auto targeting expressions.
37
- # : (?body: Hash[String, untyped]) -> untyped
38
- def get_bid_recommendations: (?body: Hash[String, untyped]) -> untyped
39
-
40
- # Request a snapshot
41
- # : (String, ?body: Hash[String, untyped]) -> untyped
42
- def request_snapshot: (String, ?body: Hash[String, untyped]) -> untyped
43
-
44
- # Get the status of a requested snapshot
45
- # : (Numeric) -> untyped
46
- def get_snapshot_status: (Numeric) -> untyped
47
-
48
- # Download requested snapshot
49
- # : (Numeric) -> untyped
50
- def download_snapshot: (Numeric) -> untyped
51
- end
52
- end
@@ -1,40 +0,0 @@
1
- # Generated from lib/amazon_ads/apis/streams.rb with RBS::Inline
2
-
3
- module AmazonAds
4
- # Amazon Marketing Stream subscription management
5
- class Streams < API
6
- CONTENT_TYPE: ::String
7
-
8
- # Lists stream subscriptions
9
- # : (?max_results: Integer?, ?starting_token: String?) -> HTTP::Response
10
- def list_subscriptions: (?max_results: Integer?, ?starting_token: String?) -> HTTP::Response
11
-
12
- # Creates a new stream subscription
13
- # : (?json: untyped) -> HTTP::Response
14
- def create_subscription: (?json: untyped) -> HTTP::Response
15
-
16
- # Fetches a specific subscription by ID
17
- # : (String) -> HTTP::Response
18
- def get_subscription: (String) -> HTTP::Response
19
-
20
- # Updates an existing subscription
21
- # : (String, ?json: untyped) -> HTTP::Response
22
- def update_subscription: (String, ?json: untyped) -> HTTP::Response
23
-
24
- # Lists DSP stream subscriptions
25
- # : (?max_results: Integer?, ?starting_token: String?) -> HTTP::Response
26
- def dsp_list_subscriptions: (?max_results: Integer?, ?starting_token: String?) -> HTTP::Response
27
-
28
- # Creates a new DSP stream subscription
29
- # : (?json: untyped) -> HTTP::Response
30
- def dsp_create_subscription: (?json: untyped) -> HTTP::Response
31
-
32
- # Fetches a specific DSP subscription by ID
33
- # : (String) -> HTTP::Response
34
- def dsp_get_subscription: (String) -> HTTP::Response
35
-
36
- # Updates an existing DSP subscription
37
- # : (String, ?json: untyped) -> HTTP::Response
38
- def dsp_update_subscription: (String, ?json: untyped) -> HTTP::Response
39
- end
40
- end
@@ -1,21 +0,0 @@
1
- # Generated from lib/amazon_ads/apis/targets.rb with RBS::Inline
2
-
3
- module AmazonAds
4
- class Targets < API
5
- # Create target
6
- # : (?targets: Array[untyped]?) -> HTTP::Response
7
- def create_target: (?targets: Array[untyped]?) -> HTTP::Response
8
-
9
- # Delete target
10
- # : (?target_ids: Array[untyped]?) -> HTTP::Response
11
- def delete_target: (?target_ids: Array[untyped]?) -> HTTP::Response
12
-
13
- # List target
14
- # : (ad_product_filter: String, ?ad_group_id_filter: String?, ?campaign_id_filter: String?, ?keyword_filter: String?, ?marketplace_scope_filter: String?, ?match_type_filter: String?, ?max_results: Integer?, ?native_language_locale_filter: String?, ?negative_filter: String?, ?next_token: String?, ?product_id_filter: String?, ?state_filter: String?, ?target_id_filter: String?, ?target_type_filter: String?) -> HTTP::Response
15
- def query_target: (ad_product_filter: String, ?ad_group_id_filter: String?, ?campaign_id_filter: String?, ?keyword_filter: String?, ?marketplace_scope_filter: String?, ?match_type_filter: String?, ?max_results: Integer?, ?native_language_locale_filter: String?, ?negative_filter: String?, ?next_token: String?, ?product_id_filter: String?, ?state_filter: String?, ?target_id_filter: String?, ?target_type_filter: String?) -> HTTP::Response
16
-
17
- # Update target
18
- # : (?targets: Array[untyped]?) -> HTTP::Response
19
- def update_target: (?targets: Array[untyped]?) -> HTTP::Response
20
- end
21
- end