late-sdk 0.0.952 → 0.0.954

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.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: eed8e34a9d28c6ef98df32373b486797e6dae1892c1dcf3156c6d5a37b531115
4
- data.tar.gz: 3559a8687037d49da50acf85a1b8bb9bfae801020408710f5b46660a08fa204c
3
+ metadata.gz: d478030911a4eaf3e1d62d522cdc2cfea66f726769f2d3e3245fc933a26991be
4
+ data.tar.gz: e709dd1af44949a0675e26229695b10ebcf8a46083353d47b198438ea17e6811
5
5
  SHA512:
6
- metadata.gz: 46d5db8b6ea45da7bd1ad175c75b0fe770199ecb5ec48fb97aba1d13801e498e6c2f788d33e2a52e0d538d981a04d557c15da75e795503ba8257f114c0574fbb
7
- data.tar.gz: 4155725a1c179eb38a721795887824d177b098d94d146c522ba209f87649086d1d336ca6dddccbc4110912f303d8f2d0e4dc77b87ea2d557fc1deda3c8cbbefc
6
+ metadata.gz: af88a66eb0464dae89b7c373318e4abddd62af32d6edf92b21698039e5db8a19e8163bcdd29eebada718dde99eb8615264462c538ad15938976930a4fa845259
7
+ data.tar.gz: bbb5647a2df9132c8bef5db8bb8aa75a544511fd33f1a9431d4a8c50ce2adaec5739db2cf6fd545f31eb99ca1541812cc4e39901971e58bca0e67739fac1ac2e
@@ -4,8 +4,8 @@
4
4
 
5
5
  | Name | Type | Description | Notes |
6
6
  | ---- | ---- | ----------- | ----- |
7
- | **pixel_id** | **String** | TikTok Pixel. Either the numeric pixel id or the alphanumeric pixel code from Events Manager, which is resolved for you. | [optional] |
8
- | **custom_event_type** | **String** | Optimization event, as a TikTok optimization_event code (e.g. ON_WEB_ORDER, SHOPPING, FORM) or the exact event name shown in Events Manager, which is resolved to its code. Omit to let TikTok optimize for the ad group default. | [optional] |
7
+ | **pixel_id** | **String** | TikTok Pixel. Either the numeric pixel id or the alphanumeric pixel code from Events Manager, which is resolved for you. | |
8
+ | **custom_event_type** | **String** | Optimization event, as a TikTok optimization_event code (e.g. ON_WEB_ORDER, SHOPPING, FORM) or the exact event name shown in Events Manager, which is resolved to its code. The event must already exist on that pixel, or TikTok rejects the ad group. | |
9
9
 
10
10
  ## Example
11
11
 
data/docs/CommentsApi.md CHANGED
@@ -27,7 +27,7 @@ All URIs are relative to *https://zernio.com/api*
27
27
 
28
28
  Delete comment
29
29
 
30
- Delete a comment on a post. Supported by Facebook, Instagram, Bluesky, Reddit, YouTube, and LinkedIn. Requires accountId and commentId query parameters.
30
+ Delete a comment on a post. Supported by Facebook, Instagram, Threads, LinkedIn, Reddit, Bluesky, X (Twitter), YouTube, and TikTok (accounts connected through the TikTok for Business app). Not supported on Google Business (reviews only). Requires accountId and commentId query parameters.
31
31
 
32
32
  ### Examples
33
33
 
@@ -10,7 +10,7 @@
10
10
  | **goal** | **String** | Mapped to the ODAX objective (same mapping as POST /v1/ads/create). | |
11
11
  | **is_skadnetwork_attribution** | **Boolean** | Meta app promotion only. Immutable campaign flag. Set true for iOS 14+ SKAdNetwork campaigns and supply promotedObject.applicationId plus promotedObject.objectStoreUrl. The campaign receives promotedObject only when this flag is true. Cannot be changed on an existing campaign. | [optional] |
12
12
  | **promoted_object** | [**AdPromotedObject**](AdPromotedObject.md) | | [optional] |
13
- | **buying_type** | **String** | Meta only. Defaults to AUCTION and is explicitly sent on new campaigns, including validateOnly. SKAdNetwork app promotion requires AUCTION. | [optional][default to 'AUCTION'] |
13
+ | **buying_type** | **String** | Meta only. OMIT on non-Meta platforms (Google Ads, etc.): any value is rejected with a 400. On Meta the server applies AUCTION when omitted, so it does not need to be sent; RESERVED = Reach & Frequency. SKAdNetwork app promotion requires AUCTION. | [optional] |
14
14
  | **validate_only** | **Boolean** | Meta only. Runs campaign validation without creating or persisting a campaign; Idempotency-Key storage is bypassed. Returns HTTP 200 with validateOnly true and status VALIDATED. | [optional] |
15
15
  | **special_ad_categories** | **Array<String>** | | [optional] |
16
16
  | **budget_amount** | **Float** | Campaign-level (CBO) budget in WHOLE currency units (USD: 50 = $50.00), NOT cents. Meta's own Marketing API takes this same number in minor units, so it is an easy and expensive mix-up. Requires budgetType. | [optional] |
@@ -20,7 +20,7 @@ module Zernio
20
20
  @api_client = api_client
21
21
  end
22
22
  # Delete comment
23
- # Delete a comment on a post. Supported by Facebook, Instagram, Bluesky, Reddit, YouTube, and LinkedIn. Requires accountId and commentId query parameters.
23
+ # Delete a comment on a post. Supported by Facebook, Instagram, Threads, LinkedIn, Reddit, Bluesky, X (Twitter), YouTube, and TikTok (accounts connected through the TikTok for Business app). Not supported on Google Business (reviews only). Requires accountId and commentId query parameters.
24
24
  # @param post_id [String] Zernio post ID or platform-specific post ID. LinkedIn third-party posts accept full activity URN or numeric ID.
25
25
  # @param account_id [String]
26
26
  # @param comment_id [String] For LinkedIn, accepts either the numeric comment ID or the composite comment URN returned by the comments listing (e.g. urn:li:comment:(threadUrn,id))
@@ -32,7 +32,7 @@ module Zernio
32
32
  end
33
33
 
34
34
  # Delete comment
35
- # Delete a comment on a post. Supported by Facebook, Instagram, Bluesky, Reddit, YouTube, and LinkedIn. Requires accountId and commentId query parameters.
35
+ # Delete a comment on a post. Supported by Facebook, Instagram, Threads, LinkedIn, Reddit, Bluesky, X (Twitter), YouTube, and TikTok (accounts connected through the TikTok for Business app). Not supported on Google Business (reviews only). Requires accountId and commentId query parameters.
36
36
  # @param post_id [String] Zernio post ID or platform-specific post ID. LinkedIn third-party posts accept full activity URN or numeric ID.
37
37
  # @param account_id [String]
38
38
  # @param comment_id [String] For LinkedIn, accepts either the numeric comment ID or the composite comment URN returned by the comments listing (e.g. urn:li:comment:(threadUrn,id))
@@ -14,12 +14,12 @@ require 'date'
14
14
  require 'time'
15
15
 
16
16
  module Zernio
17
- # TikTok-only on this endpoint. The pixel a Website Conversion ad group optimizes toward, so a Spark Ad built from an existing organic post can optimize for a conversion instead of only engagement or traffic. Required when `goal` is `conversions`; ignored on every other goal, because only a WEB_CONVERSIONS ad group accepts these fields. Combine freely with `platformPostId` + `sparkAuthCode`: the pixel lives on the ad group and the Spark item on the creative, so they never conflict.
17
+ # TikTok-only on this endpoint. The pixel a Website Conversion ad group optimizes toward, so a Spark Ad built from an existing organic post can optimize for a conversion instead of only engagement or traffic. Required when `goal` is `conversions`, and BOTH fields are required: TikTok refuses a conversion ad group with no pixel (\"Please select a pixel\") and equally one that has a pixel but no event (\"Select a pixel event.\"), because the event is what the ad group optimizes toward. Ignored on every other goal, since only a WEB_CONVERSIONS ad group accepts them. Combine freely with `platformPostId` + `sparkAuthCode`: the pixel lives on the ad group and the Spark item on the creative, so they never conflict.
18
18
  class BoostPostRequestPromotedObject < ApiModelBase
19
19
  # TikTok Pixel. Either the numeric pixel id or the alphanumeric pixel code from Events Manager, which is resolved for you.
20
20
  attr_accessor :pixel_id
21
21
 
22
- # Optimization event, as a TikTok optimization_event code (e.g. ON_WEB_ORDER, SHOPPING, FORM) or the exact event name shown in Events Manager, which is resolved to its code. Omit to let TikTok optimize for the ad group default.
22
+ # Optimization event, as a TikTok optimization_event code (e.g. ON_WEB_ORDER, SHOPPING, FORM) or the exact event name shown in Events Manager, which is resolved to its code. The event must already exist on that pixel, or TikTok rejects the ad group.
23
23
  attr_accessor :custom_event_type
24
24
 
25
25
  # Attribute mapping from ruby-style variable name to JSON key.
@@ -72,10 +72,14 @@ module Zernio
72
72
 
73
73
  if attributes.key?(:'pixel_id')
74
74
  self.pixel_id = attributes[:'pixel_id']
75
+ else
76
+ self.pixel_id = nil
75
77
  end
76
78
 
77
79
  if attributes.key?(:'custom_event_type')
78
80
  self.custom_event_type = attributes[:'custom_event_type']
81
+ else
82
+ self.custom_event_type = nil
79
83
  end
80
84
  end
81
85
 
@@ -84,6 +88,14 @@ module Zernio
84
88
  def list_invalid_properties
85
89
  warn '[DEPRECATED] the `list_invalid_properties` method is obsolete'
86
90
  invalid_properties = Array.new
91
+ if @pixel_id.nil?
92
+ invalid_properties.push('invalid value for "pixel_id", pixel_id cannot be nil.')
93
+ end
94
+
95
+ if @custom_event_type.nil?
96
+ invalid_properties.push('invalid value for "custom_event_type", custom_event_type cannot be nil.')
97
+ end
98
+
87
99
  invalid_properties
88
100
  end
89
101
 
@@ -91,9 +103,31 @@ module Zernio
91
103
  # @return true if the model is valid
92
104
  def valid?
93
105
  warn '[DEPRECATED] the `valid?` method is obsolete'
106
+ return false if @pixel_id.nil?
107
+ return false if @custom_event_type.nil?
94
108
  true
95
109
  end
96
110
 
111
+ # Custom attribute writer method with validation
112
+ # @param [Object] pixel_id Value to be assigned
113
+ def pixel_id=(pixel_id)
114
+ if pixel_id.nil?
115
+ fail ArgumentError, 'pixel_id cannot be nil'
116
+ end
117
+
118
+ @pixel_id = pixel_id
119
+ end
120
+
121
+ # Custom attribute writer method with validation
122
+ # @param [Object] custom_event_type Value to be assigned
123
+ def custom_event_type=(custom_event_type)
124
+ if custom_event_type.nil?
125
+ fail ArgumentError, 'custom_event_type cannot be nil'
126
+ end
127
+
128
+ @custom_event_type = custom_event_type
129
+ end
130
+
97
131
  # Checks equality by comparing each attribute.
98
132
  # @param [Object] Object to be compared
99
133
  def ==(o)
@@ -31,7 +31,7 @@ module Zernio
31
31
 
32
32
  attr_accessor :promoted_object
33
33
 
34
- # Meta only. Defaults to AUCTION and is explicitly sent on new campaigns, including validateOnly. SKAdNetwork app promotion requires AUCTION.
34
+ # Meta only. OMIT on non-Meta platforms (Google Ads, etc.): any value is rejected with a 400. On Meta the server applies AUCTION when omitted, so it does not need to be sent; RESERVED = Reach & Frequency. SKAdNetwork app promotion requires AUCTION.
35
35
  attr_accessor :buying_type
36
36
 
37
37
  # Meta only. Runs campaign validation without creating or persisting a campaign; Idempotency-Key storage is bypassed. Returns HTTP 200 with validateOnly true and status VALIDATED.
@@ -190,8 +190,6 @@ module Zernio
190
190
 
191
191
  if attributes.key?(:'buying_type')
192
192
  self.buying_type = attributes[:'buying_type']
193
- else
194
- self.buying_type = 'AUCTION'
195
193
  end
196
194
 
197
195
  if attributes.key?(:'validate_only')
@@ -11,5 +11,5 @@ Generator version: 7.19.0
11
11
  =end
12
12
 
13
13
  module Zernio
14
- VERSION = '0.0.952'
14
+ VERSION = '0.0.954'
15
15
  end
data/openapi.yaml CHANGED
@@ -31886,7 +31886,7 @@ paths:
31886
31886
  operationId: deleteInboxComment
31887
31887
  summary: Delete comment
31888
31888
  description: |
31889
- Delete a comment on a post. Supported by Facebook, Instagram, Bluesky, Reddit, YouTube, and LinkedIn.
31889
+ Delete a comment on a post. Supported by Facebook, Instagram, Threads, LinkedIn, Reddit, Bluesky, X (Twitter), YouTube, and TikTok (accounts connected through the TikTok for Business app). Not supported on Google Business (reviews only).
31890
31890
  Requires accountId and commentId query parameters.
31891
31891
  tags: [Comments]
31892
31892
  security: [{ bearerAuth: [] }]
@@ -44325,8 +44325,7 @@ paths:
44325
44325
  buyingType:
44326
44326
  type: string
44327
44327
  enum: [AUCTION, RESERVED]
44328
- default: AUCTION
44329
- description: 'Meta only. Defaults to AUCTION and is explicitly sent on new campaigns, including validateOnly. SKAdNetwork app promotion requires AUCTION.'
44328
+ description: 'Meta only. OMIT on non-Meta platforms (Google Ads, etc.): any value is rejected with a 400. On Meta the server applies AUCTION when omitted, so it does not need to be sent; RESERVED = Reach & Frequency. SKAdNetwork app promotion requires AUCTION.'
44330
44329
  validateOnly:
44331
44330
  type: boolean
44332
44331
  description: 'Meta only. Runs campaign validation without creating or persisting a campaign; Idempotency-Key storage is bypassed. Returns HTTP 200 with validateOnly true and status VALIDATED.'
@@ -51660,19 +51659,24 @@ paths:
51660
51659
  description: |
51661
51660
  TikTok-only on this endpoint. The pixel a Website Conversion ad group
51662
51661
  optimizes toward, so a Spark Ad built from an existing organic post can
51663
- optimize for a conversion instead of only engagement or traffic. Required
51664
- when `goal` is `conversions`; ignored on every other goal, because only a
51665
- WEB_CONVERSIONS ad group accepts these fields.
51662
+ optimize for a conversion instead of only engagement or traffic.
51663
+
51664
+ Required when `goal` is `conversions`, and BOTH fields are required:
51665
+ TikTok refuses a conversion ad group with no pixel ("Please select a
51666
+ pixel") and equally one that has a pixel but no event ("Select a pixel
51667
+ event."), because the event is what the ad group optimizes toward. Ignored
51668
+ on every other goal, since only a WEB_CONVERSIONS ad group accepts them.
51666
51669
 
51667
51670
  Combine freely with `platformPostId` + `sparkAuthCode`: the pixel lives on
51668
51671
  the ad group and the Spark item on the creative, so they never conflict.
51672
+ required: [pixelId, customEventType]
51669
51673
  properties:
51670
51674
  pixelId:
51671
51675
  type: string
51672
51676
  description: 'TikTok Pixel. Either the numeric pixel id or the alphanumeric pixel code from Events Manager, which is resolved for you.'
51673
51677
  customEventType:
51674
51678
  type: string
51675
- description: 'Optimization event, as a TikTok optimization_event code (e.g. ON_WEB_ORDER, SHOPPING, FORM) or the exact event name shown in Events Manager, which is resolved to its code. Omit to let TikTok optimize for the ad group default.'
51679
+ description: 'Optimization event, as a TikTok optimization_event code (e.g. ON_WEB_ORDER, SHOPPING, FORM) or the exact event name shown in Events Manager, which is resolved to its code. The event must already exist on that pixel, or TikTok rejects the ad group.'
51676
51680
  dsaBeneficiary:
51677
51681
  type: string
51678
51682
  maxLength: 100
@@ -34,7 +34,7 @@ describe 'CommentsApi' do
34
34
 
35
35
  # unit tests for delete_inbox_comment
36
36
  # Delete comment
37
- # Delete a comment on a post. Supported by Facebook, Instagram, Bluesky, Reddit, YouTube, and LinkedIn. Requires accountId and commentId query parameters.
37
+ # Delete a comment on a post. Supported by Facebook, Instagram, Threads, LinkedIn, Reddit, Bluesky, X (Twitter), YouTube, and TikTok (accounts connected through the TikTok for Business app). Not supported on Google Business (reviews only). Requires accountId and commentId query parameters.
38
38
  # @param post_id Zernio post ID or platform-specific post ID. LinkedIn third-party posts accept full activity URN or numeric ID.
39
39
  # @param account_id
40
40
  # @param comment_id For LinkedIn, accepts either the numeric comment ID or the composite comment URN returned by the comments listing (e.g. urn:li:comment:(threadUrn,id))
Binary file
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: late-sdk
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.952
4
+ version: 0.0.954
5
5
  platform: ruby
6
6
  authors:
7
7
  - OpenAPI-Generator
@@ -6475,7 +6475,7 @@ files:
6475
6475
  - spec/models/you_tube_video_retention_response_retention_curve_inner_spec.rb
6476
6476
  - spec/models/you_tube_video_retention_response_spec.rb
6477
6477
  - spec/spec_helper.rb
6478
- - zernio-sdk-0.0.952.gem
6478
+ - zernio-sdk-0.0.954.gem
6479
6479
  - zernio-sdk.gemspec
6480
6480
  homepage: https://openapi-generator.tech
6481
6481
  licenses:
Binary file