late-sdk 0.0.715 → 0.0.717

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 (508) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +96 -10
  3. data/docs/AccountsApi.md +142 -1
  4. data/docs/AdAnalyticsResponse.md +22 -0
  5. data/docs/{GetAdAnalytics200ResponseAd.md → AdAnalyticsResponseAd.md} +2 -4
  6. data/docs/AdCampaignsApi.md +34 -22
  7. data/docs/AdCreative.md +2 -0
  8. data/docs/AdDailyMetrics.md +1 -1
  9. data/docs/AdEngagementCounts.md +4 -4
  10. data/docs/AdInsightsApi.md +172 -8
  11. data/docs/AdMetrics.md +1 -1
  12. data/docs/AdTargetingApi.md +3 -3
  13. data/docs/AdTreeCampaign.md +1 -1
  14. data/docs/AdTreeResponse.md +22 -0
  15. data/docs/AddBroadcastRecipientsRequest.md +1 -1
  16. data/docs/AdsListResponse.md +22 -0
  17. data/docs/AdsTimelineResponse.md +20 -0
  18. data/docs/{GetAdsTimeline200ResponseRowsInner.md → AdsTimelineResponseRowsInner.md} +2 -2
  19. data/docs/AnalyticsListResponsePostsInner.md +1 -1
  20. data/docs/AnalyticsListResponsePostsInnerMediaItemsInner.md +24 -0
  21. data/docs/AnalyticsSinglePostResponseMediaItemsInner.md +7 -3
  22. data/docs/BillingSnapshot.md +2 -0
  23. data/docs/BillingSnapshotPlan.md +3 -1
  24. data/docs/Blog.md +24 -0
  25. data/docs/BlogArticle.md +44 -0
  26. data/docs/BlogArticleImage.md +20 -0
  27. data/docs/BlogsApi.md +747 -0
  28. data/docs/BlueskyPlatformData.md +2 -0
  29. data/docs/BoostPostRequest.md +2 -2
  30. data/docs/CampaignAnalyticsResponse.md +22 -0
  31. data/docs/{GetCampaignAnalytics200ResponseAnalytics.md → CampaignAnalyticsResponseAnalytics.md} +3 -3
  32. data/docs/{GetCampaignAnalytics200ResponseAnalyticsDailyInner.md → CampaignAnalyticsResponseAnalyticsDailyInner.md} +3 -3
  33. data/docs/{GetCampaignAnalytics200ResponseCampaign.md → CampaignAnalyticsResponseCampaign.md} +2 -2
  34. data/docs/CommentsApi.md +8 -8
  35. data/docs/ConnectApi.md +149 -1
  36. data/docs/ConnectShopifyWithToken200Response.md +18 -0
  37. data/docs/ConnectShopifyWithToken200ResponseAccount.md +26 -0
  38. data/docs/ConnectShopifyWithTokenRequest.md +22 -0
  39. data/docs/CreateBlog201Response.md +20 -0
  40. data/docs/CreateBlogArticle201Response.md +20 -0
  41. data/docs/CreateBlogArticleRequest.md +36 -0
  42. data/docs/CreateBlogArticleRequestImage.md +20 -0
  43. data/docs/CreateBlogArticleRequestSeo.md +20 -0
  44. data/docs/CreateBlogRequest.md +20 -0
  45. data/docs/CreateCallAdRequest.md +1 -1
  46. data/docs/CreateInboxConversationRequest.md +2 -0
  47. data/docs/CreateMessagingAdRequest.md +1 -1
  48. data/docs/CreatePostRequest.md +1 -1
  49. data/docs/CreateStandaloneAdRequest.md +10 -6
  50. data/docs/CreateStandaloneAdRequestPromotedObject.md +2 -2
  51. data/docs/CreateStandaloneAdRequestVideo.md +1 -1
  52. data/docs/CtwaAdRequestBody.md +1 -1
  53. data/docs/ExternalPostMediaItem.md +7 -3
  54. data/docs/ExternalPostSummary.md +0 -2
  55. data/docs/ExternalPostSummaryAnalytics.md +1 -1
  56. data/docs/GetAccountHealth200Response.md +3 -1
  57. data/docs/GetAccountHealth200ResponsePlatformConnection.md +24 -0
  58. data/docs/GetAccountHealth200ResponsePlatformConnectionMetaError.md +22 -0
  59. data/docs/GetAdAnalytics202Response.md +22 -0
  60. data/docs/GetAdTree202Response.md +22 -0
  61. data/docs/GetAdsTimeline202Response.md +20 -0
  62. data/docs/GetBlueskySettings200Response.md +18 -0
  63. data/docs/GetCampaignAnalytics202Response.md +22 -0
  64. data/docs/GetInboxPostComments200ResponseCommentsInner.md +4 -2
  65. data/docs/GetLinkedInPostAnalytics200ResponseAnalytics.md +1 -1
  66. data/docs/GetPhoneNumberKycForm200Response.md +3 -1
  67. data/docs/GetWhatsAppNumberKycForm200Response.md +3 -1
  68. data/docs/LinkedInAggregateAnalyticsTotalResponseAnalytics.md +1 -1
  69. data/docs/LinkedInPlatformData.md +4 -2
  70. data/docs/LinkedInPlatformDataPoll.md +22 -0
  71. data/docs/ListAds202Response.md +22 -0
  72. data/docs/ListBlogArticles200Response.md +22 -0
  73. data/docs/ListBlogs200Response.md +22 -0
  74. data/docs/ListInboxConversations200ResponseDataInnerMetadata.md +3 -3
  75. data/docs/ListLeads200ResponseLeadsInner.md +3 -3
  76. data/docs/ListLocalServicesLeadConversations200Response.md +22 -0
  77. data/docs/ListLocalServicesLeadConversations200ResponseDataInner.md +28 -0
  78. data/docs/ListLocalServicesLeadConversations200ResponseDataInnerMessage.md +20 -0
  79. data/docs/ListLocalServicesLeadConversations200ResponseDataInnerPhoneCall.md +20 -0
  80. data/docs/ListLocalServicesLeads200Response.md +22 -0
  81. data/docs/ListLocalServicesLeads200ResponseDataInner.md +38 -0
  82. data/docs/ListLocalServicesLeads200ResponseDataInnerContact.md +22 -0
  83. data/docs/ListPhoneNumbers200ResponseConnectedInner.md +3 -1
  84. data/docs/ListPhoneNumbers200ResponseNumbersInner.md +2 -0
  85. data/docs/ListWhatsAppAccountEvents200Response.md +18 -0
  86. data/docs/ListWhatsAppAccountEvents200ResponseEventsInner.md +28 -0
  87. data/docs/MessagesApi.md +4 -4
  88. data/docs/OnVerificationApprovedRequest.md +1 -1
  89. data/docs/OnVerificationFailedRequest.md +1 -1
  90. data/docs/OnWhatsAppAutomaticEventRequest.md +1 -1
  91. data/docs/OnWhatsAppNumberActionRequiredRequest.md +1 -1
  92. data/docs/OnWhatsAppNumberActivatedRequest.md +1 -1
  93. data/docs/OnWhatsAppNumberDeclinedRequest.md +1 -1
  94. data/docs/OnWhatsAppNumberKycSubmittedRequest.md +1 -1
  95. data/docs/OnWhatsAppNumberReactivatedRequest.md +1 -1
  96. data/docs/OnWhatsAppNumberReleasedRequest.md +1 -1
  97. data/docs/OnWhatsAppNumberSuspendedRequest.md +1 -1
  98. data/docs/OnWhatsAppNumberVerificationRequiredRequest.md +1 -1
  99. data/docs/PlatformTarget.md +2 -2
  100. data/docs/PostAnalytics.md +3 -3
  101. data/docs/PostsApi.md +1 -1
  102. data/docs/SMSApi.md +1 -1
  103. data/docs/SearchAdTargeting200ResponseResultsInner.md +1 -1
  104. data/docs/SendInboxMessageRequest.md +4 -2
  105. data/docs/SubmitPhoneNumberKycRequest.md +1 -1
  106. data/docs/SubmitPhoneNumberKycRequestAddress.md +2 -0
  107. data/docs/SubmitWhatsAppNumberKycRequest.md +1 -1
  108. data/docs/TwitterPlatformData.md +2 -0
  109. data/docs/UpdateAdCampaignStatus200Response.md +6 -6
  110. data/docs/UpdateAdSet200Response.md +7 -3
  111. data/docs/UpdateAdSetRequest.md +1 -1
  112. data/docs/UpdateAdSetStatus200Response.md +9 -3
  113. data/docs/UpdateBlogArticleRequest.md +36 -0
  114. data/docs/UpdateBlogRequest.md +20 -0
  115. data/docs/UpdateBlueskySettingsRequest.md +18 -0
  116. data/docs/ValidatePhoneNumberKycAddressRequest.md +2 -0
  117. data/docs/WebhookEventsApi.md +138 -0
  118. data/docs/WebhookPayloadAccountAdsInitialSyncCompleted.md +1 -1
  119. data/docs/WebhookPayloadAccountConnected.md +1 -1
  120. data/docs/WebhookPayloadAccountDisconnected.md +1 -1
  121. data/docs/WebhookPayloadAdStatusChanged.md +1 -1
  122. data/docs/WebhookPayloadCallEnded.md +1 -1
  123. data/docs/WebhookPayloadCallEndedCall.md +4 -0
  124. data/docs/WebhookPayloadCallFailed.md +1 -1
  125. data/docs/WebhookPayloadCallPermissionRequest.md +1 -1
  126. data/docs/WebhookPayloadCallReceived.md +1 -1
  127. data/docs/WebhookPayloadComment.md +1 -1
  128. data/docs/WebhookPayloadCommentCommentAuthor.md +2 -0
  129. data/docs/WebhookPayloadConversationStarted.md +1 -1
  130. data/docs/WebhookPayloadExternalPost.md +1 -1
  131. data/docs/WebhookPayloadLead.md +1 -1
  132. data/docs/WebhookPayloadMessage.md +1 -1
  133. data/docs/WebhookPayloadMessageDeleted.md +1 -1
  134. data/docs/WebhookPayloadMessageDeliveryStatus.md +1 -1
  135. data/docs/WebhookPayloadMessageEdited.md +1 -1
  136. data/docs/WebhookPayloadMessageMetadata.md +5 -1
  137. data/docs/WebhookPayloadMessageMetadataReferral.md +5 -3
  138. data/docs/WebhookPayloadMessageMetadataUnsupported.md +22 -0
  139. data/docs/WebhookPayloadMessageSent.md +1 -1
  140. data/docs/WebhookPayloadPost.md +1 -1
  141. data/docs/WebhookPayloadPostPlatform.md +1 -1
  142. data/docs/WebhookPayloadReaction.md +1 -1
  143. data/docs/WebhookPayloadReferral.md +30 -0
  144. data/docs/WebhookPayloadReferralReferral.md +28 -0
  145. data/docs/WebhookPayloadReferralReferralAdsContextData.md +28 -0
  146. data/docs/WebhookPayloadReferralSender.md +20 -0
  147. data/docs/WebhookPayloadReviewNew.md +1 -1
  148. data/docs/WebhookPayloadReviewUpdated.md +1 -1
  149. data/docs/WebhookPayloadTest.md +1 -1
  150. data/docs/WebhookPayloadWhatsAppTemplateCategoryUpdated.md +26 -0
  151. data/docs/WebhookPayloadWhatsAppTemplateCategoryUpdatedTemplate.md +32 -0
  152. data/docs/WebhookPayloadWhatsAppTemplateStatusUpdated.md +1 -1
  153. data/docs/WhatsAppApi.md +74 -0
  154. data/docs/WorkflowNode.md +3 -1
  155. data/docs/XArticle.md +24 -0
  156. data/docs/XArticleBlock.md +28 -0
  157. data/docs/XArticleBlockData.md +24 -0
  158. data/docs/XArticleContentState.md +20 -0
  159. data/docs/XArticleCover.md +20 -0
  160. data/docs/XArticleEntity.md +57 -0
  161. data/docs/XArticleEntityOneOf.md +20 -0
  162. data/docs/XArticleEntityOneOf1.md +20 -0
  163. data/docs/XArticleEntityOneOf1Value.md +22 -0
  164. data/docs/XArticleEntityOneOf1ValueData.md +18 -0
  165. data/docs/XArticleEntityOneOf2.md +20 -0
  166. data/docs/XArticleEntityOneOf2Value.md +22 -0
  167. data/docs/XArticleEntityOneOf2ValueData.md +22 -0
  168. data/docs/XArticleEntityOneOf3.md +20 -0
  169. data/docs/XArticleEntityOneOf3Value.md +22 -0
  170. data/docs/XArticleEntityOneOf3ValueData.md +18 -0
  171. data/docs/XArticleEntityOneOf4.md +20 -0
  172. data/docs/XArticleEntityOneOf4Value.md +22 -0
  173. data/docs/XArticleEntityOneOf4ValueData.md +18 -0
  174. data/docs/XArticleEntityOneOf5.md +20 -0
  175. data/docs/XArticleEntityOneOf5Value.md +22 -0
  176. data/docs/XArticleEntityOneOfValue.md +22 -0
  177. data/docs/XArticleEntityOneOfValueData.md +18 -0
  178. data/docs/XArticleEntityRange.md +22 -0
  179. data/docs/XArticleInlineStyleRange.md +22 -0
  180. data/docs/XArticleTextRange.md +22 -0
  181. data/docs/YouTubeVideoRetentionResponse.md +1 -1
  182. data/docs/YouTubeVideoRetentionResponseRetentionCurveInner.md +2 -2
  183. data/lib/zernio-sdk/api/accounts_api.rb +139 -2
  184. data/lib/zernio-sdk/api/ad_campaigns_api.rb +44 -17
  185. data/lib/zernio-sdk/api/ad_insights_api.rb +171 -6
  186. data/lib/zernio-sdk/api/ad_targeting_api.rb +5 -5
  187. data/lib/zernio-sdk/api/blogs_api.rb +845 -0
  188. data/lib/zernio-sdk/api/comments_api.rb +10 -10
  189. data/lib/zernio-sdk/api/connect_api.rb +149 -0
  190. data/lib/zernio-sdk/api/messages_api.rb +4 -4
  191. data/lib/zernio-sdk/api/posts_api.rb +2 -2
  192. data/lib/zernio-sdk/api/sms_api.rb +2 -2
  193. data/lib/zernio-sdk/api/webhook_events_api.rb +132 -0
  194. data/lib/zernio-sdk/api/whats_app_api.rb +75 -0
  195. data/lib/zernio-sdk/models/account_with_follower_stats.rb +2 -2
  196. data/lib/zernio-sdk/models/{get_ad_analytics200_response.rb → ad_analytics_response.rb} +15 -15
  197. data/lib/zernio-sdk/models/{get_ad_analytics200_response_ad.rb → ad_analytics_response_ad.rb} +4 -47
  198. data/lib/zernio-sdk/models/ad_creative.rb +12 -1
  199. data/lib/zernio-sdk/models/ad_daily_metrics.rb +1 -1
  200. data/lib/zernio-sdk/models/ad_engagement_counts.rb +5 -5
  201. data/lib/zernio-sdk/models/ad_metrics.rb +1 -1
  202. data/lib/zernio-sdk/models/ad_tree_campaign.rb +1 -1
  203. data/lib/zernio-sdk/models/{get_ad_tree200_response.rb → ad_tree_response.rb} +17 -17
  204. data/lib/zernio-sdk/models/add_broadcast_recipients_request.rb +1 -1
  205. data/lib/zernio-sdk/models/{list_ads200_response.rb → ads_list_response.rb} +17 -17
  206. data/lib/zernio-sdk/models/{get_ads_timeline200_response.rb → ads_timeline_response.rb} +17 -17
  207. data/lib/zernio-sdk/models/{get_ads_timeline200_response_rows_inner.rb → ads_timeline_response_rows_inner.rb} +3 -3
  208. data/lib/zernio-sdk/models/analytics_list_response_posts_inner.rb +1 -1
  209. data/lib/zernio-sdk/models/analytics_list_response_posts_inner_media_items_inner.rb +211 -0
  210. data/lib/zernio-sdk/models/analytics_single_post_response_media_items_inner.rb +52 -6
  211. data/lib/zernio-sdk/models/billing_snapshot.rb +14 -3
  212. data/lib/zernio-sdk/models/billing_snapshot_plan.rb +14 -4
  213. data/lib/zernio-sdk/models/blog.rb +211 -0
  214. data/lib/zernio-sdk/models/blog_article.rb +315 -0
  215. data/lib/zernio-sdk/models/blog_article_image.rb +158 -0
  216. data/lib/zernio-sdk/models/bluesky_platform_data.rb +42 -2
  217. data/lib/zernio-sdk/models/boost_post_request.rb +30 -1
  218. data/lib/zernio-sdk/models/{get_campaign_analytics200_response.rb → campaign_analytics_response.rb} +15 -15
  219. data/lib/zernio-sdk/models/{get_campaign_analytics200_response_analytics.rb → campaign_analytics_response_analytics.rb} +4 -4
  220. data/lib/zernio-sdk/models/{get_campaign_analytics200_response_analytics_daily_inner.rb → campaign_analytics_response_analytics_daily_inner.rb} +4 -4
  221. data/lib/zernio-sdk/models/{get_campaign_analytics200_response_campaign.rb → campaign_analytics_response_campaign.rb} +3 -3
  222. data/lib/zernio-sdk/models/connect_shopify_with_token200_response.rb +147 -0
  223. data/lib/zernio-sdk/models/connect_shopify_with_token200_response_account.rb +218 -0
  224. data/lib/zernio-sdk/models/connect_shopify_with_token_request.rb +219 -0
  225. data/lib/zernio-sdk/models/create_blog201_response.rb +190 -0
  226. data/lib/zernio-sdk/models/create_blog_article201_response.rb +190 -0
  227. data/lib/zernio-sdk/models/create_blog_article_request.rb +262 -0
  228. data/lib/zernio-sdk/models/create_blog_article_request_image.rb +174 -0
  229. data/lib/zernio-sdk/models/create_blog_article_request_seo.rb +157 -0
  230. data/lib/zernio-sdk/models/create_blog_request.rb +202 -0
  231. data/lib/zernio-sdk/models/create_call_ad_request.rb +1 -1
  232. data/lib/zernio-sdk/models/create_inbox_conversation_request.rb +13 -1
  233. data/lib/zernio-sdk/models/create_messaging_ad_request.rb +1 -1
  234. data/lib/zernio-sdk/models/create_post_request.rb +1 -1
  235. data/lib/zernio-sdk/models/create_standalone_ad_request.rb +67 -6
  236. data/lib/zernio-sdk/models/create_standalone_ad_request_creatives_inner_video.rb +1 -1
  237. data/lib/zernio-sdk/models/create_standalone_ad_request_promoted_object.rb +3 -3
  238. data/lib/zernio-sdk/models/create_standalone_ad_request_video.rb +1 -1
  239. data/lib/zernio-sdk/models/ctwa_ad_request_body.rb +1 -1
  240. data/lib/zernio-sdk/models/external_post_media_item.rb +48 -16
  241. data/lib/zernio-sdk/models/external_post_summary.rb +1 -11
  242. data/lib/zernio-sdk/models/external_post_summary_analytics.rb +1 -0
  243. data/lib/zernio-sdk/models/facebook_settings.rb +5 -5
  244. data/lib/zernio-sdk/models/get_account_health200_response.rb +13 -4
  245. data/lib/zernio-sdk/models/get_account_health200_response_platform_connection.rb +213 -0
  246. data/lib/zernio-sdk/models/get_account_health200_response_platform_connection_meta_error.rb +168 -0
  247. data/lib/zernio-sdk/models/get_ad_analytics202_response.rb +213 -0
  248. data/lib/zernio-sdk/models/get_ad_tree202_response.rb +215 -0
  249. data/lib/zernio-sdk/models/get_ads_timeline202_response.rb +206 -0
  250. data/lib/zernio-sdk/models/get_bluesky_settings200_response.rb +150 -0
  251. data/lib/zernio-sdk/models/get_campaign_analytics202_response.rb +213 -0
  252. data/lib/zernio-sdk/models/get_inbox_post_comments200_response_comments_inner.rb +13 -2
  253. data/lib/zernio-sdk/models/get_linked_in_post_analytics200_response_analytics.rb +1 -1
  254. data/lib/zernio-sdk/models/get_phone_number_kyc_form200_response.rb +14 -4
  255. data/lib/zernio-sdk/models/get_whats_app_number_kyc_form200_response.rb +14 -4
  256. data/lib/zernio-sdk/models/inbox_webhook_message.rb +2 -2
  257. data/lib/zernio-sdk/models/linked_in_aggregate_analytics_total_response_analytics.rb +1 -1
  258. data/lib/zernio-sdk/models/linked_in_platform_data.rb +15 -6
  259. data/lib/zernio-sdk/models/linked_in_platform_data_poll.rb +277 -0
  260. data/lib/zernio-sdk/models/list_ads202_response.rb +215 -0
  261. data/lib/zernio-sdk/models/list_blog_articles200_response.rb +203 -0
  262. data/lib/zernio-sdk/models/list_blogs200_response.rb +203 -0
  263. data/lib/zernio-sdk/models/list_broadcast_recipients200_response_recipients_inner.rb +1 -0
  264. data/lib/zernio-sdk/models/list_inbox_conversations200_response_data_inner_metadata.rb +4 -4
  265. data/lib/zernio-sdk/models/list_leads200_response_leads_inner.rb +3 -2
  266. data/lib/zernio-sdk/models/list_local_services_lead_conversations200_response.rb +167 -0
  267. data/lib/zernio-sdk/models/list_local_services_lead_conversations200_response_data_inner.rb +198 -0
  268. data/lib/zernio-sdk/models/list_local_services_lead_conversations200_response_data_inner_message.rb +160 -0
  269. data/lib/zernio-sdk/models/list_local_services_lead_conversations200_response_data_inner_phone_call.rb +159 -0
  270. data/lib/zernio-sdk/models/list_local_services_leads200_response.rb +167 -0
  271. data/lib/zernio-sdk/models/list_local_services_leads200_response_data_inner.rb +249 -0
  272. data/lib/zernio-sdk/models/list_local_services_leads200_response_data_inner_contact.rb +169 -0
  273. data/lib/zernio-sdk/models/list_phone_numbers200_response_connected_inner.rb +15 -5
  274. data/lib/zernio-sdk/models/list_phone_numbers200_response_numbers_inner.rb +11 -1
  275. data/lib/zernio-sdk/models/list_sequence_enrollments200_response_enrollments_inner.rb +3 -0
  276. data/lib/zernio-sdk/models/list_whats_app_account_events200_response.rb +149 -0
  277. data/lib/zernio-sdk/models/list_whats_app_account_events200_response_events_inner.rb +228 -0
  278. data/lib/zernio-sdk/models/on_verification_approved_request.rb +1 -0
  279. data/lib/zernio-sdk/models/on_verification_failed_request.rb +1 -0
  280. data/lib/zernio-sdk/models/on_whats_app_automatic_event_request.rb +1 -0
  281. data/lib/zernio-sdk/models/on_whats_app_number_action_required_request.rb +1 -0
  282. data/lib/zernio-sdk/models/on_whats_app_number_activated_request.rb +1 -0
  283. data/lib/zernio-sdk/models/on_whats_app_number_declined_request.rb +1 -0
  284. data/lib/zernio-sdk/models/on_whats_app_number_kyc_submitted_request.rb +1 -0
  285. data/lib/zernio-sdk/models/on_whats_app_number_reactivated_request.rb +1 -0
  286. data/lib/zernio-sdk/models/on_whats_app_number_released_request.rb +1 -0
  287. data/lib/zernio-sdk/models/on_whats_app_number_suspended_request.rb +1 -0
  288. data/lib/zernio-sdk/models/on_whats_app_number_verification_required_request.rb +1 -0
  289. data/lib/zernio-sdk/models/platform_target.rb +5 -4
  290. data/lib/zernio-sdk/models/post_analytics.rb +2 -1
  291. data/lib/zernio-sdk/models/search_ad_targeting200_response_results_inner.rb +1 -1
  292. data/lib/zernio-sdk/models/send_inbox_message_request.rb +15 -3
  293. data/lib/zernio-sdk/models/social_account.rb +2 -2
  294. data/lib/zernio-sdk/models/submit_phone_number_kyc_request.rb +1 -1
  295. data/lib/zernio-sdk/models/submit_phone_number_kyc_request_address.rb +11 -1
  296. data/lib/zernio-sdk/models/submit_whats_app_number_kyc_request.rb +1 -1
  297. data/lib/zernio-sdk/models/twitter_platform_data.rb +11 -2
  298. data/lib/zernio-sdk/models/update_ad_campaign_status200_response.rb +50 -15
  299. data/lib/zernio-sdk/models/update_ad_set200_response.rb +26 -1
  300. data/lib/zernio-sdk/models/update_ad_set_request.rb +1 -1
  301. data/lib/zernio-sdk/models/update_ad_set_status200_response.rb +72 -4
  302. data/lib/zernio-sdk/models/update_blog_article_request.rb +257 -0
  303. data/lib/zernio-sdk/models/update_blog_request.rb +196 -0
  304. data/lib/zernio-sdk/models/update_bluesky_settings_request.rb +176 -0
  305. data/lib/zernio-sdk/models/validate_phone_number_kyc_address_request.rb +11 -1
  306. data/lib/zernio-sdk/models/webhook_payload_account_ads_initial_sync_completed.rb +1 -0
  307. data/lib/zernio-sdk/models/webhook_payload_account_connected.rb +1 -0
  308. data/lib/zernio-sdk/models/webhook_payload_account_disconnected.rb +1 -0
  309. data/lib/zernio-sdk/models/webhook_payload_ad_status_changed.rb +1 -1
  310. data/lib/zernio-sdk/models/webhook_payload_call_ended.rb +1 -0
  311. data/lib/zernio-sdk/models/webhook_payload_call_ended_call.rb +23 -1
  312. data/lib/zernio-sdk/models/webhook_payload_call_failed.rb +1 -0
  313. data/lib/zernio-sdk/models/webhook_payload_call_permission_request.rb +1 -0
  314. data/lib/zernio-sdk/models/webhook_payload_call_received.rb +1 -0
  315. data/lib/zernio-sdk/models/webhook_payload_comment.rb +1 -0
  316. data/lib/zernio-sdk/models/webhook_payload_comment_comment_author.rb +11 -1
  317. data/lib/zernio-sdk/models/webhook_payload_conversation_started.rb +1 -0
  318. data/lib/zernio-sdk/models/webhook_payload_external_post.rb +1 -0
  319. data/lib/zernio-sdk/models/webhook_payload_lead.rb +1 -0
  320. data/lib/zernio-sdk/models/webhook_payload_message.rb +1 -0
  321. data/lib/zernio-sdk/models/webhook_payload_message_deleted.rb +1 -0
  322. data/lib/zernio-sdk/models/webhook_payload_message_delivery_status.rb +2 -1
  323. data/lib/zernio-sdk/models/webhook_payload_message_edited.rb +1 -0
  324. data/lib/zernio-sdk/models/webhook_payload_message_message.rb +2 -2
  325. data/lib/zernio-sdk/models/webhook_payload_message_metadata.rb +23 -4
  326. data/lib/zernio-sdk/models/webhook_payload_message_metadata_referral.rb +15 -5
  327. data/lib/zernio-sdk/models/webhook_payload_message_metadata_unsupported.rb +169 -0
  328. data/lib/zernio-sdk/models/webhook_payload_message_sent.rb +1 -0
  329. data/lib/zernio-sdk/models/webhook_payload_post.rb +1 -0
  330. data/lib/zernio-sdk/models/webhook_payload_post_platform.rb +1 -0
  331. data/lib/zernio-sdk/models/webhook_payload_reaction.rb +1 -0
  332. data/lib/zernio-sdk/models/webhook_payload_reaction_reaction_sender.rb +1 -1
  333. data/lib/zernio-sdk/models/webhook_payload_referral.rb +347 -0
  334. data/lib/zernio-sdk/models/webhook_payload_referral_referral.rb +198 -0
  335. data/lib/zernio-sdk/models/webhook_payload_referral_referral_ads_context_data.rb +193 -0
  336. data/lib/zernio-sdk/models/webhook_payload_referral_sender.rb +176 -0
  337. data/lib/zernio-sdk/models/webhook_payload_review_new.rb +1 -0
  338. data/lib/zernio-sdk/models/webhook_payload_review_updated.rb +1 -0
  339. data/lib/zernio-sdk/models/webhook_payload_test.rb +1 -0
  340. data/lib/zernio-sdk/models/webhook_payload_whats_app_template_category_updated.rb +295 -0
  341. data/lib/zernio-sdk/models/webhook_payload_whats_app_template_category_updated_template.rb +353 -0
  342. data/lib/zernio-sdk/models/webhook_payload_whats_app_template_status_updated.rb +1 -1
  343. data/lib/zernio-sdk/models/workflow_node.rb +42 -4
  344. data/lib/zernio-sdk/models/x_article.rb +255 -0
  345. data/lib/zernio-sdk/models/x_article_block.rb +273 -0
  346. data/lib/zernio-sdk/models/x_article_block_data.rb +182 -0
  347. data/lib/zernio-sdk/models/x_article_content_state.rb +204 -0
  348. data/lib/zernio-sdk/models/x_article_cover.rb +204 -0
  349. data/lib/zernio-sdk/models/x_article_entity.rb +109 -0
  350. data/lib/zernio-sdk/models/x_article_entity_one_of.rb +199 -0
  351. data/lib/zernio-sdk/models/x_article_entity_one_of1.rb +199 -0
  352. data/lib/zernio-sdk/models/x_article_entity_one_of1_value.rb +242 -0
  353. data/lib/zernio-sdk/models/x_article_entity_one_of1_value_data.rb +164 -0
  354. data/lib/zernio-sdk/models/x_article_entity_one_of2.rb +199 -0
  355. data/lib/zernio-sdk/models/x_article_entity_one_of2_value.rb +242 -0
  356. data/lib/zernio-sdk/models/x_article_entity_one_of2_value_data.rb +214 -0
  357. data/lib/zernio-sdk/models/x_article_entity_one_of3.rb +199 -0
  358. data/lib/zernio-sdk/models/x_article_entity_one_of3_value.rb +242 -0
  359. data/lib/zernio-sdk/models/x_article_entity_one_of3_value_data.rb +173 -0
  360. data/lib/zernio-sdk/models/x_article_entity_one_of4.rb +199 -0
  361. data/lib/zernio-sdk/models/x_article_entity_one_of4_value.rb +242 -0
  362. data/lib/zernio-sdk/models/x_article_entity_one_of4_value_data.rb +164 -0
  363. data/lib/zernio-sdk/models/x_article_entity_one_of5.rb +199 -0
  364. data/lib/zernio-sdk/models/x_article_entity_one_of5_value.rb +242 -0
  365. data/lib/zernio-sdk/models/x_article_entity_one_of_value.rb +242 -0
  366. data/lib/zernio-sdk/models/x_article_entity_one_of_value_data.rb +173 -0
  367. data/lib/zernio-sdk/models/x_article_entity_range.rb +245 -0
  368. data/lib/zernio-sdk/models/x_article_inline_style_range.rb +259 -0
  369. data/lib/zernio-sdk/models/x_article_text_range.rb +237 -0
  370. data/lib/zernio-sdk/models/you_tube_video_retention_response.rb +1 -1
  371. data/lib/zernio-sdk/models/you_tube_video_retention_response_retention_curve_inner.rb +2 -2
  372. data/lib/zernio-sdk/version.rb +1 -1
  373. data/lib/zernio-sdk.rb +80 -10
  374. data/openapi.yaml +2141 -282
  375. data/spec/api/accounts_api_spec.rb +26 -1
  376. data/spec/api/ad_campaigns_api_spec.rb +12 -7
  377. data/spec/api/ad_insights_api_spec.rb +36 -2
  378. data/spec/api/ad_targeting_api_spec.rb +2 -2
  379. data/spec/api/blogs_api_spec.rb +174 -0
  380. data/spec/api/comments_api_spec.rb +5 -5
  381. data/spec/api/connect_api_spec.rb +27 -0
  382. data/spec/api/messages_api_spec.rb +2 -2
  383. data/spec/api/posts_api_spec.rb +1 -1
  384. data/spec/api/sms_api_spec.rb +1 -1
  385. data/spec/api/whats_app_api_spec.rb +13 -0
  386. data/spec/models/account_with_follower_stats_spec.rb +1 -1
  387. data/spec/models/{get_campaign_analytics200_response_campaign_spec.rb → ad_analytics_response_ad_spec.rb} +6 -6
  388. data/spec/models/{get_ad_analytics200_response_spec.rb → ad_analytics_response_spec.rb} +8 -8
  389. data/spec/models/ad_creative_spec.rb +6 -0
  390. data/spec/models/{get_ad_tree200_response_spec.rb → ad_tree_response_spec.rb} +8 -8
  391. data/spec/models/{list_ads200_response_spec.rb → ads_list_response_spec.rb} +8 -8
  392. data/spec/models/{get_ads_timeline200_response_rows_inner_spec.rb → ads_timeline_response_rows_inner_spec.rb} +6 -6
  393. data/spec/models/{get_ads_timeline200_response_spec.rb → ads_timeline_response_spec.rb} +8 -8
  394. data/spec/models/analytics_list_response_posts_inner_media_items_inner_spec.rb +58 -0
  395. data/spec/models/analytics_single_post_response_media_items_inner_spec.rb +20 -0
  396. data/spec/models/billing_snapshot_plan_spec.rb +6 -0
  397. data/spec/models/billing_snapshot_spec.rb +7 -1
  398. data/spec/models/blog_article_image_spec.rb +42 -0
  399. data/spec/models/blog_article_spec.rb +118 -0
  400. data/spec/models/blog_spec.rb +58 -0
  401. data/spec/models/bluesky_platform_data_spec.rb +6 -0
  402. data/spec/models/{get_campaign_analytics200_response_analytics_daily_inner_spec.rb → campaign_analytics_response_analytics_daily_inner_spec.rb} +6 -6
  403. data/spec/models/{get_campaign_analytics200_response_analytics_spec.rb → campaign_analytics_response_analytics_spec.rb} +6 -6
  404. data/spec/models/campaign_analytics_response_campaign_spec.rb +60 -0
  405. data/spec/models/{get_campaign_analytics200_response_spec.rb → campaign_analytics_response_spec.rb} +8 -8
  406. data/spec/models/connect_shopify_with_token200_response_account_spec.rb +64 -0
  407. data/spec/models/connect_shopify_with_token200_response_spec.rb +36 -0
  408. data/spec/models/connect_shopify_with_token_request_spec.rb +48 -0
  409. data/spec/models/create_blog201_response_spec.rb +46 -0
  410. data/spec/models/create_blog_article201_response_spec.rb +46 -0
  411. data/spec/models/create_blog_article_request_image_spec.rb +42 -0
  412. data/spec/models/create_blog_article_request_seo_spec.rb +42 -0
  413. data/spec/models/create_blog_article_request_spec.rb +90 -0
  414. data/spec/models/create_blog_request_spec.rb +42 -0
  415. data/spec/models/create_inbox_conversation_request_spec.rb +6 -0
  416. data/spec/models/create_standalone_ad_request_spec.rb +16 -0
  417. data/spec/models/create_webhook_settings_request_spec.rb +1 -1
  418. data/spec/models/external_post_media_item_spec.rb +20 -0
  419. data/spec/models/external_post_summary_spec.rb +0 -6
  420. data/spec/models/get_account_health200_response_platform_connection_meta_error_spec.rb +48 -0
  421. data/spec/models/get_account_health200_response_platform_connection_spec.rb +58 -0
  422. data/spec/models/get_account_health200_response_spec.rb +6 -0
  423. data/spec/models/get_ad_analytics202_response_spec.rb +52 -0
  424. data/spec/models/get_ad_tree202_response_spec.rb +52 -0
  425. data/spec/models/get_ads_timeline202_response_spec.rb +46 -0
  426. data/spec/models/get_bluesky_settings200_response_spec.rb +36 -0
  427. data/spec/models/get_campaign_analytics202_response_spec.rb +52 -0
  428. data/spec/models/get_inbox_post_comments200_response_comments_inner_spec.rb +6 -0
  429. data/spec/models/get_phone_number_kyc_form200_response_spec.rb +6 -0
  430. data/spec/models/get_whats_app_number_kyc_form200_response_spec.rb +6 -0
  431. data/spec/models/inbox_webhook_message_spec.rb +1 -1
  432. data/spec/models/linked_in_platform_data_poll_spec.rb +52 -0
  433. data/spec/models/linked_in_platform_data_spec.rb +6 -0
  434. data/spec/models/list_ads202_response_spec.rb +52 -0
  435. data/spec/models/list_blog_articles200_response_spec.rb +52 -0
  436. data/spec/models/list_blogs200_response_spec.rb +52 -0
  437. data/spec/models/list_local_services_lead_conversations200_response_data_inner_message_spec.rb +42 -0
  438. data/spec/models/list_local_services_lead_conversations200_response_data_inner_phone_call_spec.rb +42 -0
  439. data/spec/models/list_local_services_lead_conversations200_response_data_inner_spec.rb +66 -0
  440. data/spec/models/list_local_services_lead_conversations200_response_spec.rb +48 -0
  441. data/spec/models/list_local_services_leads200_response_data_inner_contact_spec.rb +48 -0
  442. data/spec/models/list_local_services_leads200_response_data_inner_spec.rb +96 -0
  443. data/spec/models/list_local_services_leads200_response_spec.rb +48 -0
  444. data/spec/models/list_phone_numbers200_response_connected_inner_spec.rb +6 -0
  445. data/spec/models/list_phone_numbers200_response_numbers_inner_spec.rb +6 -0
  446. data/spec/models/list_whats_app_account_events200_response_events_inner_spec.rb +70 -0
  447. data/spec/models/list_whats_app_account_events200_response_spec.rb +36 -0
  448. data/spec/models/platform_target_spec.rb +1 -1
  449. data/spec/models/send_inbox_message_request_spec.rb +6 -0
  450. data/spec/models/social_account_spec.rb +1 -1
  451. data/spec/models/submit_phone_number_kyc_request_address_spec.rb +6 -0
  452. data/spec/models/twitter_platform_data_spec.rb +6 -0
  453. data/spec/models/update_ad_campaign_status200_response_spec.rb +8 -4
  454. data/spec/models/update_ad_set200_response_spec.rb +12 -0
  455. data/spec/models/update_ad_set_status200_response_spec.rb +22 -0
  456. data/spec/models/update_blog_article_request_spec.rb +90 -0
  457. data/spec/models/update_blog_request_spec.rb +42 -0
  458. data/spec/models/update_bluesky_settings_request_spec.rb +36 -0
  459. data/spec/models/update_webhook_settings_request_spec.rb +1 -1
  460. data/spec/models/validate_phone_number_kyc_address_request_spec.rb +6 -0
  461. data/spec/models/webhook_payload_call_ended_call_spec.rb +12 -0
  462. data/spec/models/webhook_payload_comment_comment_author_spec.rb +6 -0
  463. data/spec/models/webhook_payload_message_message_spec.rb +1 -1
  464. data/spec/models/webhook_payload_message_metadata_referral_spec.rb +6 -0
  465. data/spec/models/webhook_payload_message_metadata_spec.rb +12 -0
  466. data/spec/models/webhook_payload_message_metadata_unsupported_spec.rb +48 -0
  467. data/spec/models/webhook_payload_referral_referral_ads_context_data_spec.rb +66 -0
  468. data/spec/models/webhook_payload_referral_referral_spec.rb +66 -0
  469. data/spec/models/webhook_payload_referral_sender_spec.rb +42 -0
  470. data/spec/models/webhook_payload_referral_spec.rb +76 -0
  471. data/spec/models/webhook_payload_whats_app_template_category_updated_spec.rb +64 -0
  472. data/spec/models/webhook_payload_whats_app_template_category_updated_template_spec.rb +94 -0
  473. data/spec/models/webhook_spec.rb +1 -1
  474. data/spec/models/workflow_node_spec.rb +6 -0
  475. data/spec/models/x_article_block_data_spec.rb +54 -0
  476. data/spec/models/{get_ad_analytics200_response_ad_spec.rb → x_article_block_spec.rb} +16 -16
  477. data/spec/models/x_article_content_state_spec.rb +42 -0
  478. data/spec/models/x_article_cover_spec.rb +42 -0
  479. data/spec/models/x_article_entity_one_of1_spec.rb +42 -0
  480. data/spec/models/x_article_entity_one_of1_value_data_spec.rb +36 -0
  481. data/spec/models/x_article_entity_one_of1_value_spec.rb +56 -0
  482. data/spec/models/x_article_entity_one_of2_spec.rb +42 -0
  483. data/spec/models/x_article_entity_one_of2_value_data_spec.rb +48 -0
  484. data/spec/models/x_article_entity_one_of2_value_spec.rb +56 -0
  485. data/spec/models/x_article_entity_one_of3_spec.rb +42 -0
  486. data/spec/models/x_article_entity_one_of3_value_data_spec.rb +36 -0
  487. data/spec/models/x_article_entity_one_of3_value_spec.rb +56 -0
  488. data/spec/models/x_article_entity_one_of4_spec.rb +42 -0
  489. data/spec/models/x_article_entity_one_of4_value_data_spec.rb +36 -0
  490. data/spec/models/x_article_entity_one_of4_value_spec.rb +56 -0
  491. data/spec/models/x_article_entity_one_of5_spec.rb +42 -0
  492. data/spec/models/x_article_entity_one_of5_value_spec.rb +56 -0
  493. data/spec/models/x_article_entity_one_of_spec.rb +42 -0
  494. data/spec/models/x_article_entity_one_of_value_data_spec.rb +36 -0
  495. data/spec/models/x_article_entity_one_of_value_spec.rb +56 -0
  496. data/spec/models/x_article_entity_range_spec.rb +48 -0
  497. data/spec/models/x_article_entity_spec.rb +32 -0
  498. data/spec/models/x_article_inline_style_range_spec.rb +52 -0
  499. data/spec/models/x_article_spec.rb +58 -0
  500. data/spec/models/x_article_text_range_spec.rb +48 -0
  501. data/zernio-sdk-0.0.717.gem +0 -0
  502. metadata +1914 -1634
  503. data/docs/GetAdAnalytics200Response.md +0 -22
  504. data/docs/GetAdTree200Response.md +0 -22
  505. data/docs/GetAdsTimeline200Response.md +0 -20
  506. data/docs/GetCampaignAnalytics200Response.md +0 -22
  507. data/docs/ListAds200Response.md +0 -22
  508. data/zernio-sdk-0.0.715.gem +0 -0
@@ -20,9 +20,10 @@ module Zernio
20
20
  @api_client = api_client
21
21
  end
22
22
  # Boost post as ad
23
- # Creates a paid ad from an existing published post, keeping the post's engagement. By default it provisions the whole hierarchy (campaign, ad set, ad). **Attach shape (Meta).** Send `adSetId` to put the ad under an EXISTING ad set instead, so that ad set keeps its learning phase. It then owns `budget`, `schedule` and `targeting`, and sending any of those alongside `adSetId` is a 400 rather than a silent drop. `budget` is required only without `adSetId`. `instagramAccountId`, `destinationType` and `adSetId` are Meta-only and return 400 on other platforms.
23
+ # Creates a paid ad from an existing published post, keeping the post's engagement. By default it provisions the whole hierarchy (campaign, ad set, ad). **Attach shape (Meta).** Send `adSetId` to put the ad under an EXISTING ad set instead, so that ad set keeps its learning phase. It then owns `budget`, `schedule` and `targeting`, and sending any of those alongside `adSetId` is a 400 rather than a silent drop. `budget` is required only without `adSetId`. `instagramAccountId`, `destinationType` and `adSetId` are Meta-only and return 400 on other platforms. **Retries.** Boosts are NOT idempotent and can take minutes when Meta requires re-hosting an Instagram video, so do not retry on client timeout. Send an Idempotency-Key header to make retries safe: same key and body replays the original 201, and distinct keys always create distinct ads. Without the header, an identical request is treated as a retry: while one is in flight it returns 409, and within 10 minutes of a completed boost it returns the already-created ad instead of creating another. To intentionally duplicate an ad, send distinct Idempotency-Keys (or vary the body, e.g. the name).
24
24
  # @param boost_post_request [BoostPostRequest]
25
25
  # @param [Hash] opts the optional parameters
26
+ # @option opts [String] :idempotency_key Optional client-generated unique key (e.g. a UUID) that makes retries safe. Same key + same body replays the original response; same key + different body → 422; key still processing → 409.
26
27
  # @return [UpdateAd200Response]
27
28
  def boost_post(boost_post_request, opts = {})
28
29
  data, _status_code, _headers = boost_post_with_http_info(boost_post_request, opts)
@@ -30,9 +31,10 @@ module Zernio
30
31
  end
31
32
 
32
33
  # Boost post as ad
33
- # Creates a paid ad from an existing published post, keeping the post's engagement. By default it provisions the whole hierarchy (campaign, ad set, ad). **Attach shape (Meta).** Send `adSetId` to put the ad under an EXISTING ad set instead, so that ad set keeps its learning phase. It then owns `budget`, `schedule` and `targeting`, and sending any of those alongside `adSetId` is a 400 rather than a silent drop. `budget` is required only without `adSetId`. `instagramAccountId`, `destinationType` and `adSetId` are Meta-only and return 400 on other platforms.
34
+ # Creates a paid ad from an existing published post, keeping the post's engagement. By default it provisions the whole hierarchy (campaign, ad set, ad). **Attach shape (Meta).** Send `adSetId` to put the ad under an EXISTING ad set instead, so that ad set keeps its learning phase. It then owns `budget`, `schedule` and `targeting`, and sending any of those alongside `adSetId` is a 400 rather than a silent drop. `budget` is required only without `adSetId`. `instagramAccountId`, `destinationType` and `adSetId` are Meta-only and return 400 on other platforms. **Retries.** Boosts are NOT idempotent and can take minutes when Meta requires re-hosting an Instagram video, so do not retry on client timeout. Send an Idempotency-Key header to make retries safe: same key and body replays the original 201, and distinct keys always create distinct ads. Without the header, an identical request is treated as a retry: while one is in flight it returns 409, and within 10 minutes of a completed boost it returns the already-created ad instead of creating another. To intentionally duplicate an ad, send distinct Idempotency-Keys (or vary the body, e.g. the name).
34
35
  # @param boost_post_request [BoostPostRequest]
35
36
  # @param [Hash] opts the optional parameters
37
+ # @option opts [String] :idempotency_key Optional client-generated unique key (e.g. a UUID) that makes retries safe. Same key + same body replays the original response; same key + different body → 422; key still processing → 409.
36
38
  # @return [Array<(UpdateAd200Response, Integer, Hash)>] UpdateAd200Response data, response status code and response headers
37
39
  def boost_post_with_http_info(boost_post_request, opts = {})
38
40
  if @api_client.config.debugging
@@ -42,6 +44,10 @@ module Zernio
42
44
  if @api_client.config.client_side_validation && boost_post_request.nil?
43
45
  fail ArgumentError, "Missing the required parameter 'boost_post_request' when calling AdCampaignsApi.boost_post"
44
46
  end
47
+ if @api_client.config.client_side_validation && !opts[:'idempotency_key'].nil? && opts[:'idempotency_key'].to_s.length > 255
48
+ fail ArgumentError, 'invalid value for "opts[:"idempotency_key"]" when calling AdCampaignsApi.boost_post, the character length must be smaller than or equal to 255.'
49
+ end
50
+
45
51
  # resource path
46
52
  local_var_path = '/v1/ads/boost'
47
53
 
@@ -57,6 +63,7 @@ module Zernio
57
63
  if !content_type.nil?
58
64
  header_params['Content-Type'] = content_type
59
65
  end
66
+ header_params[:'Idempotency-Key'] = opts[:'idempotency_key'] if !opts[:'idempotency_key'].nil?
60
67
 
61
68
  # form parameters
62
69
  form_params = opts[:form_params] || {}
@@ -830,12 +837,14 @@ module Zernio
830
837
  # @option opts [String] :account_id Social account ID
831
838
  # @option opts [String] :profile_id Profile ID
832
839
  # @option opts [String] :campaign_id Restrict the tree to a single campaign by its platform campaign id (the id the platform assigns, e.g. Meta&#39;s numeric campaign id). Filters the campaign set itself, so it works regardless of account size and pagination — pass this when you already hold a campaign id instead of paging the tree to find it. Mirrors the &#x60;campaignId&#x60; filter on GET /v1/ads.
833
- # @option opts [Date] :from_date Start of the METRICS date range (YYYY-MM-DD). Affects only the spend/impression numbers overlaid on each node, NOT which campaigns are returned. Defaults to 90 days ago.
840
+ # @option opts [Date] :from_date Start of the METRICS date range (YYYY-MM-DD). On its own it affects only the spend/impression numbers overlaid on each node, not which campaigns are returned — pass &#x60;hasDelivery&#x60; or &#x60;minSpend&#x60; to also filter the campaign set to this window. Defaults to 90 days ago.
834
841
  # @option opts [Date] :to_date End of metrics date range (YYYY-MM-DD). Defaults to today. Max 730-day range.
842
+ # @option opts [Boolean] :has_delivery Return only campaigns that delivered between &#x60;fromDate&#x60; and &#x60;toDate&#x60; — spend above zero, or impressions served at zero spend. Unlike &#x60;status&#x60;, which reads a campaign&#39;s CURRENT state, this filters on what happened inside the window, so a campaign that spent then and is paused today is still returned. Filters the campaign set itself, so &#x60;pagination.total&#x60; counts only matching campaigns.
843
+ # @option opts [Float] :min_spend Return only campaigns whose spend between &#x60;fromDate&#x60; and &#x60;toDate&#x60; reaches this amount. Expressed in each campaign&#39;s OWN currency (the &#x60;currency&#x60; field on the campaign node): spend is stored per ad account in its native currency and one response can span several. Implies &#x60;hasDelivery&#x60;; &#x60;minSpend&#x3D;0&#x60; applies no filter.
835
844
  # @option opts [String] :sort Campaign-level sort order. &#x60;newest&#x60; (default) / &#x60;oldest&#x60; order by the campaign&#39;s newest-ad createdAt. &#x60;spend_desc&#x60; / &#x60;spend_asc&#x60; order by aggregated spend in the requested date range; campaigns with no spend land at the end. (default to 'newest')
836
845
  # @option opts [Integer] :time_increment Set to &#x60;1&#x60; to also return a daily breakdown. Mirrors Meta Insights&#39; &#x60;time_increment&#x3D;1&#x60;: each node gains a &#x60;daily[]&#x60; array of per-day metrics (same fields as the aggregated &#x60;metrics&#x60;) alongside the range total, so you get per-entity daily trends in ONE call instead of calling the tree once per day. Only &#x60;1&#x60; (daily) is supported. The daily series covers the same date range and uses the same source data as &#x60;metrics&#x60;, except &#x60;reach&#x60; on Meta and TikTok: the range total is the platform&#39;s de-duplicated value, so daily reach does not sum to it. See &#x60;dailyLevel&#x60; to control which levels carry it.
837
846
  # @option opts [String] :daily_level Which tree levels get the &#x60;daily[]&#x60; series when &#x60;timeIncrement&#x3D;1&#x60;. &#x60;campaign&#x60; (default) attaches it on campaign nodes only — the common per-campaign-trend case, and the smallest payload. &#x60;adset&#x60; adds it on ad sets too; &#x60;ad&#x60; adds it on every ad in &#x60;ads[]&#x60; as well (heaviest — a long range × up to 100 ads per ad set). Scope with &#x60;campaignId&#x60; to keep &#x60;ad&#x60;-level responses small. Ignored when &#x60;timeIncrement&#x60; is unset. (default to 'campaign')
838
- # @return [GetAdTree200Response]
847
+ # @return [AdTreeResponse]
839
848
  def get_ad_tree(opts = {})
840
849
  data, _status_code, _headers = get_ad_tree_with_http_info(opts)
841
850
  data
@@ -854,12 +863,14 @@ module Zernio
854
863
  # @option opts [String] :account_id Social account ID
855
864
  # @option opts [String] :profile_id Profile ID
856
865
  # @option opts [String] :campaign_id Restrict the tree to a single campaign by its platform campaign id (the id the platform assigns, e.g. Meta&#39;s numeric campaign id). Filters the campaign set itself, so it works regardless of account size and pagination — pass this when you already hold a campaign id instead of paging the tree to find it. Mirrors the &#x60;campaignId&#x60; filter on GET /v1/ads.
857
- # @option opts [Date] :from_date Start of the METRICS date range (YYYY-MM-DD). Affects only the spend/impression numbers overlaid on each node, NOT which campaigns are returned. Defaults to 90 days ago.
866
+ # @option opts [Date] :from_date Start of the METRICS date range (YYYY-MM-DD). On its own it affects only the spend/impression numbers overlaid on each node, not which campaigns are returned — pass &#x60;hasDelivery&#x60; or &#x60;minSpend&#x60; to also filter the campaign set to this window. Defaults to 90 days ago.
858
867
  # @option opts [Date] :to_date End of metrics date range (YYYY-MM-DD). Defaults to today. Max 730-day range.
868
+ # @option opts [Boolean] :has_delivery Return only campaigns that delivered between &#x60;fromDate&#x60; and &#x60;toDate&#x60; — spend above zero, or impressions served at zero spend. Unlike &#x60;status&#x60;, which reads a campaign&#39;s CURRENT state, this filters on what happened inside the window, so a campaign that spent then and is paused today is still returned. Filters the campaign set itself, so &#x60;pagination.total&#x60; counts only matching campaigns.
869
+ # @option opts [Float] :min_spend Return only campaigns whose spend between &#x60;fromDate&#x60; and &#x60;toDate&#x60; reaches this amount. Expressed in each campaign&#39;s OWN currency (the &#x60;currency&#x60; field on the campaign node): spend is stored per ad account in its native currency and one response can span several. Implies &#x60;hasDelivery&#x60;; &#x60;minSpend&#x3D;0&#x60; applies no filter.
859
870
  # @option opts [String] :sort Campaign-level sort order. &#x60;newest&#x60; (default) / &#x60;oldest&#x60; order by the campaign&#39;s newest-ad createdAt. &#x60;spend_desc&#x60; / &#x60;spend_asc&#x60; order by aggregated spend in the requested date range; campaigns with no spend land at the end. (default to 'newest')
860
871
  # @option opts [Integer] :time_increment Set to &#x60;1&#x60; to also return a daily breakdown. Mirrors Meta Insights&#39; &#x60;time_increment&#x3D;1&#x60;: each node gains a &#x60;daily[]&#x60; array of per-day metrics (same fields as the aggregated &#x60;metrics&#x60;) alongside the range total, so you get per-entity daily trends in ONE call instead of calling the tree once per day. Only &#x60;1&#x60; (daily) is supported. The daily series covers the same date range and uses the same source data as &#x60;metrics&#x60;, except &#x60;reach&#x60; on Meta and TikTok: the range total is the platform&#39;s de-duplicated value, so daily reach does not sum to it. See &#x60;dailyLevel&#x60; to control which levels carry it.
861
872
  # @option opts [String] :daily_level Which tree levels get the &#x60;daily[]&#x60; series when &#x60;timeIncrement&#x3D;1&#x60;. &#x60;campaign&#x60; (default) attaches it on campaign nodes only — the common per-campaign-trend case, and the smallest payload. &#x60;adset&#x60; adds it on ad sets too; &#x60;ad&#x60; adds it on every ad in &#x60;ads[]&#x60; as well (heaviest — a long range × up to 100 ads per ad set). Scope with &#x60;campaignId&#x60; to keep &#x60;ad&#x60;-level responses small. Ignored when &#x60;timeIncrement&#x60; is unset. (default to 'campaign')
862
- # @return [Array<(GetAdTree200Response, Integer, Hash)>] GetAdTree200Response data, response status code and response headers
873
+ # @return [Array<(AdTreeResponse, Integer, Hash)>] AdTreeResponse data, response status code and response headers
863
874
  def get_ad_tree_with_http_info(opts = {})
864
875
  if @api_client.config.debugging
865
876
  @api_client.config.logger.debug 'Calling API: AdCampaignsApi.get_ad_tree ...'
@@ -884,6 +895,10 @@ module Zernio
884
895
  if @api_client.config.client_side_validation && opts[:'platform'] && !allowable_values.include?(opts[:'platform'])
885
896
  fail ArgumentError, "invalid value for \"platform\", must be one of #{allowable_values}"
886
897
  end
898
+ if @api_client.config.client_side_validation && !opts[:'min_spend'].nil? && opts[:'min_spend'] < 0
899
+ fail ArgumentError, 'invalid value for "opts[:"min_spend"]" when calling AdCampaignsApi.get_ad_tree, must be greater than or equal to 0.'
900
+ end
901
+
887
902
  allowable_values = ["newest", "oldest", "spend_desc", "spend_asc"]
888
903
  if @api_client.config.client_side_validation && opts[:'sort'] && !allowable_values.include?(opts[:'sort'])
889
904
  fail ArgumentError, "invalid value for \"sort\", must be one of #{allowable_values}"
@@ -913,6 +928,8 @@ module Zernio
913
928
  query_params[:'campaignId'] = opts[:'campaign_id'] if !opts[:'campaign_id'].nil?
914
929
  query_params[:'fromDate'] = opts[:'from_date'] if !opts[:'from_date'].nil?
915
930
  query_params[:'toDate'] = opts[:'to_date'] if !opts[:'to_date'].nil?
931
+ query_params[:'hasDelivery'] = opts[:'has_delivery'] if !opts[:'has_delivery'].nil?
932
+ query_params[:'minSpend'] = opts[:'min_spend'] if !opts[:'min_spend'].nil?
916
933
  query_params[:'sort'] = opts[:'sort'] if !opts[:'sort'].nil?
917
934
  query_params[:'timeIncrement'] = opts[:'time_increment'] if !opts[:'time_increment'].nil?
918
935
  query_params[:'dailyLevel'] = opts[:'daily_level'] if !opts[:'daily_level'].nil?
@@ -929,7 +946,7 @@ module Zernio
929
946
  post_body = opts[:debug_body]
930
947
 
931
948
  # return_type
932
- return_type = opts[:debug_return_type] || 'GetAdTree200Response'
949
+ return_type = opts[:debug_return_type] || 'AdTreeResponse'
933
950
 
934
951
  # auth_names
935
952
  auth_names = opts[:debug_auth_names] || ['bearerAuth']
@@ -959,7 +976,7 @@ module Zernio
959
976
  # @option opts [Date] :from_date Inclusive start of metrics range (YYYY-MM-DD). Defaults to 90 days ago.
960
977
  # @option opts [Date] :to_date Inclusive end of metrics range (YYYY-MM-DD). Defaults to today. Max 730-day range.
961
978
  # @option opts [String] :platform Restrict to one platform.
962
- # @return [GetAdsTimeline200Response]
979
+ # @return [AdsTimelineResponse]
963
980
  def get_ads_timeline(account_id, opts = {})
964
981
  data, _status_code, _headers = get_ads_timeline_with_http_info(account_id, opts)
965
982
  data
@@ -973,7 +990,7 @@ module Zernio
973
990
  # @option opts [Date] :from_date Inclusive start of metrics range (YYYY-MM-DD). Defaults to 90 days ago.
974
991
  # @option opts [Date] :to_date Inclusive end of metrics range (YYYY-MM-DD). Defaults to today. Max 730-day range.
975
992
  # @option opts [String] :platform Restrict to one platform.
976
- # @return [Array<(GetAdsTimeline200Response, Integer, Hash)>] GetAdsTimeline200Response data, response status code and response headers
993
+ # @return [Array<(AdsTimelineResponse, Integer, Hash)>] AdsTimelineResponse data, response status code and response headers
977
994
  def get_ads_timeline_with_http_info(account_id, opts = {})
978
995
  if @api_client.config.debugging
979
996
  @api_client.config.logger.debug 'Calling API: AdCampaignsApi.get_ads_timeline ...'
@@ -1009,7 +1026,7 @@ module Zernio
1009
1026
  post_body = opts[:debug_body]
1010
1027
 
1011
1028
  # return_type
1012
- return_type = opts[:debug_return_type] || 'GetAdsTimeline200Response'
1029
+ return_type = opts[:debug_return_type] || 'AdsTimelineResponse'
1013
1030
 
1014
1031
  # auth_names
1015
1032
  auth_names = opts[:debug_auth_names] || ['bearerAuth']
@@ -1046,6 +1063,8 @@ module Zernio
1046
1063
  # @option opts [String] :profile_id Profile ID
1047
1064
  # @option opts [Date] :from_date Start of metrics date range (YYYY-MM-DD, inclusive). Defaults to 90 days ago when both date params are omitted.
1048
1065
  # @option opts [Date] :to_date End of metrics date range (YYYY-MM-DD, inclusive). Defaults to today. Max 730-day range.
1066
+ # @option opts [Boolean] :has_delivery Return only campaigns that delivered between &#x60;fromDate&#x60; and &#x60;toDate&#x60; — spend above zero, or impressions served at zero spend. Unlike &#x60;status&#x60;, which reads a campaign&#39;s CURRENT state, this filters on what happened inside the window. Filters the campaign set itself, so &#x60;pagination.total&#x60; counts only matching campaigns. Mirrors the same filter on /v1/ads/tree.
1067
+ # @option opts [Float] :min_spend Return only campaigns whose spend between &#x60;fromDate&#x60; and &#x60;toDate&#x60; reaches this amount, in each campaign&#39;s OWN currency (the &#x60;currency&#x60; field on the campaign). Implies &#x60;hasDelivery&#x60;; &#x60;minSpend&#x3D;0&#x60; applies no filter. Mirrors the same filter on /v1/ads/tree.
1049
1068
  # @return [ListAdCampaigns200Response]
1050
1069
  def list_ad_campaigns(opts = {})
1051
1070
  data, _status_code, _headers = list_ad_campaigns_with_http_info(opts)
@@ -1067,6 +1086,8 @@ module Zernio
1067
1086
  # @option opts [String] :profile_id Profile ID
1068
1087
  # @option opts [Date] :from_date Start of metrics date range (YYYY-MM-DD, inclusive). Defaults to 90 days ago when both date params are omitted.
1069
1088
  # @option opts [Date] :to_date End of metrics date range (YYYY-MM-DD, inclusive). Defaults to today. Max 730-day range.
1089
+ # @option opts [Boolean] :has_delivery Return only campaigns that delivered between &#x60;fromDate&#x60; and &#x60;toDate&#x60; — spend above zero, or impressions served at zero spend. Unlike &#x60;status&#x60;, which reads a campaign&#39;s CURRENT state, this filters on what happened inside the window. Filters the campaign set itself, so &#x60;pagination.total&#x60; counts only matching campaigns. Mirrors the same filter on /v1/ads/tree.
1090
+ # @option opts [Float] :min_spend Return only campaigns whose spend between &#x60;fromDate&#x60; and &#x60;toDate&#x60; reaches this amount, in each campaign&#39;s OWN currency (the &#x60;currency&#x60; field on the campaign). Implies &#x60;hasDelivery&#x60;; &#x60;minSpend&#x3D;0&#x60; applies no filter. Mirrors the same filter on /v1/ads/tree.
1070
1091
  # @return [Array<(ListAdCampaigns200Response, Integer, Hash)>] ListAdCampaigns200Response data, response status code and response headers
1071
1092
  def list_ad_campaigns_with_http_info(opts = {})
1072
1093
  if @api_client.config.debugging
@@ -1092,6 +1113,10 @@ module Zernio
1092
1113
  if @api_client.config.client_side_validation && opts[:'platform'] && !allowable_values.include?(opts[:'platform'])
1093
1114
  fail ArgumentError, "invalid value for \"platform\", must be one of #{allowable_values}"
1094
1115
  end
1116
+ if @api_client.config.client_side_validation && !opts[:'min_spend'].nil? && opts[:'min_spend'] < 0
1117
+ fail ArgumentError, 'invalid value for "opts[:"min_spend"]" when calling AdCampaignsApi.list_ad_campaigns, must be greater than or equal to 0.'
1118
+ end
1119
+
1095
1120
  # resource path
1096
1121
  local_var_path = '/v1/ads/campaigns'
1097
1122
 
@@ -1109,6 +1134,8 @@ module Zernio
1109
1134
  query_params[:'profileId'] = opts[:'profile_id'] if !opts[:'profile_id'].nil?
1110
1135
  query_params[:'fromDate'] = opts[:'from_date'] if !opts[:'from_date'].nil?
1111
1136
  query_params[:'toDate'] = opts[:'to_date'] if !opts[:'to_date'].nil?
1137
+ query_params[:'hasDelivery'] = opts[:'has_delivery'] if !opts[:'has_delivery'].nil?
1138
+ query_params[:'minSpend'] = opts[:'min_spend'] if !opts[:'min_spend'].nil?
1112
1139
 
1113
1140
  # header parameters
1114
1141
  header_params = opts[:header_params] || {}
@@ -1276,7 +1303,7 @@ module Zernio
1276
1303
  # @option opts [String] :effective_instagram_media_id Instagram media ID of the boosted post (Meta &#x60;effective_instagram_media_id&#x60;). Use to map a Business-Manager-visible IG post back to the Zernio ad.
1277
1304
  # @option opts [Date] :from_date Start of metrics date range (YYYY-MM-DD). Defaults to 90 days ago.
1278
1305
  # @option opts [Date] :to_date End of metrics date range (YYYY-MM-DD). Defaults to today. Max 730-day range.
1279
- # @return [ListAds200Response]
1306
+ # @return [AdsListResponse]
1280
1307
  def list_ads(opts = {})
1281
1308
  data, _status_code, _headers = list_ads_with_http_info(opts)
1282
1309
  data
@@ -1300,7 +1327,7 @@ module Zernio
1300
1327
  # @option opts [String] :effective_instagram_media_id Instagram media ID of the boosted post (Meta &#x60;effective_instagram_media_id&#x60;). Use to map a Business-Manager-visible IG post back to the Zernio ad.
1301
1328
  # @option opts [Date] :from_date Start of metrics date range (YYYY-MM-DD). Defaults to 90 days ago.
1302
1329
  # @option opts [Date] :to_date End of metrics date range (YYYY-MM-DD). Defaults to today. Max 730-day range.
1303
- # @return [Array<(ListAds200Response, Integer, Hash)>] ListAds200Response data, response status code and response headers
1330
+ # @return [Array<(AdsListResponse, Integer, Hash)>] AdsListResponse data, response status code and response headers
1304
1331
  def list_ads_with_http_info(opts = {})
1305
1332
  if @api_client.config.debugging
1306
1333
  @api_client.config.logger.debug 'Calling API: AdCampaignsApi.list_ads ...'
@@ -1358,7 +1385,7 @@ module Zernio
1358
1385
  post_body = opts[:debug_body]
1359
1386
 
1360
1387
  # return_type
1361
- return_type = opts[:debug_return_type] || 'ListAds200Response'
1388
+ return_type = opts[:debug_return_type] || 'AdsListResponse'
1362
1389
 
1363
1390
  # auth_names
1364
1391
  auth_names = opts[:debug_auth_names] || ['bearerAuth']
@@ -1529,7 +1556,7 @@ module Zernio
1529
1556
  end
1530
1557
 
1531
1558
  # Pause or resume a campaign
1532
- # Updates the status of all ads in a campaign. Makes one platform API call (not per-ad) since status cascades through the campaign hierarchy. Ads in terminal statuses (rejected, completed, cancelled) are automatically skipped.
1559
+ # Writes the campaign's own on/off switch, then lets the platform cascade delivery to its ad sets and ads. Makes one platform API call, not one per ad. The switch is always written, whatever delivery status the ads underneath report: an ad still in review does not block resuming its campaign. The echoed `status` is the confirmation that it landed. `updated` / `skipped` describe only the ads whose own stored status CHANGED alongside it, so `updated: 0` is a normal successful response, not a no-op. Ads are skipped when they are in a terminal status (rejected, completed, cancelled), already in the target state, or switched on but not yet delivering — the last group keeps its `pending_review` / `error` status until the platform reports what it became. `skippedReasons` names which case applies. On Meta this flips the campaign only. An ad set paused in its own right stays paused, so pair this with PUT /v1/ads/ad-sets/{adSetId}/status when you also need the ad set switched back on.
1533
1560
  # @param campaign_id [String] Platform campaign ID
1534
1561
  # @param update_ad_campaign_status_request [UpdateAdCampaignStatusRequest]
1535
1562
  # @param [Hash] opts the optional parameters
@@ -1540,7 +1567,7 @@ module Zernio
1540
1567
  end
1541
1568
 
1542
1569
  # Pause or resume a campaign
1543
- # Updates the status of all ads in a campaign. Makes one platform API call (not per-ad) since status cascades through the campaign hierarchy. Ads in terminal statuses (rejected, completed, cancelled) are automatically skipped.
1570
+ # Writes the campaign&#39;s own on/off switch, then lets the platform cascade delivery to its ad sets and ads. Makes one platform API call, not one per ad. The switch is always written, whatever delivery status the ads underneath report: an ad still in review does not block resuming its campaign. The echoed &#x60;status&#x60; is the confirmation that it landed. &#x60;updated&#x60; / &#x60;skipped&#x60; describe only the ads whose own stored status CHANGED alongside it, so &#x60;updated: 0&#x60; is a normal successful response, not a no-op. Ads are skipped when they are in a terminal status (rejected, completed, cancelled), already in the target state, or switched on but not yet delivering — the last group keeps its &#x60;pending_review&#x60; / &#x60;error&#x60; status until the platform reports what it became. &#x60;skippedReasons&#x60; names which case applies. On Meta this flips the campaign only. An ad set paused in its own right stays paused, so pair this with PUT /v1/ads/ad-sets/{adSetId}/status when you also need the ad set switched back on.
1544
1571
  # @param campaign_id [String] Platform campaign ID
1545
1572
  # @param update_ad_campaign_status_request [UpdateAdCampaignStatusRequest]
1546
1573
  # @param [Hash] opts the optional parameters
@@ -1677,7 +1704,7 @@ module Zernio
1677
1704
  end
1678
1705
 
1679
1706
  # Pause or resume a single ad set
1680
- # Ad-set-scoped pause/resume (doesn't touch sibling ad sets). Thin wrapper over PUT /v1/ads/ad-sets/{adSetId} for callers that only want the status toggle and prefer a symmetric URL to /v1/ads/campaigns/{campaignId}/status.
1707
+ # Ad-set-scoped pause/resume (doesn't touch sibling ad sets). Thin wrapper over PUT /v1/ads/ad-sets/{adSetId} for callers that only want the status toggle and prefer a symmetric URL to /v1/ads/campaigns/{campaignId}/status. On Meta and LinkedIn this writes the ad set's own on/off switch (Meta: `configured_status`), whatever delivery status its ads report — an ad still in review does not block resuming its ad set. The echoed `status` is the confirmation that it landed. Where the platform has no ad-set switch (TikTok and others) the toggle is emulated by flipping the child ads; a call with no actionable ad then writes nothing and returns a `message` with no `status`. `updated` / `skipped` describe only the ads whose own stored status CHANGED alongside the switch, so `updated: 0` is a normal successful response. See `skippedReasons` for which of the three cases applies (terminal, already in the target state, or switched on but not yet delivering). A campaign created paused needs its campaign resumed as well: pair this with PUT /v1/ads/campaigns/{campaignId}/status.
1681
1708
  # @param ad_set_id [String] Platform ad set ID
1682
1709
  # @param update_ad_campaign_status_request [UpdateAdCampaignStatusRequest]
1683
1710
  # @param [Hash] opts the optional parameters
@@ -1688,7 +1715,7 @@ module Zernio
1688
1715
  end
1689
1716
 
1690
1717
  # Pause or resume a single ad set
1691
- # Ad-set-scoped pause/resume (doesn&#39;t touch sibling ad sets). Thin wrapper over PUT /v1/ads/ad-sets/{adSetId} for callers that only want the status toggle and prefer a symmetric URL to /v1/ads/campaigns/{campaignId}/status.
1718
+ # Ad-set-scoped pause/resume (doesn&#39;t touch sibling ad sets). Thin wrapper over PUT /v1/ads/ad-sets/{adSetId} for callers that only want the status toggle and prefer a symmetric URL to /v1/ads/campaigns/{campaignId}/status. On Meta and LinkedIn this writes the ad set&#39;s own on/off switch (Meta: &#x60;configured_status&#x60;), whatever delivery status its ads report — an ad still in review does not block resuming its ad set. The echoed &#x60;status&#x60; is the confirmation that it landed. Where the platform has no ad-set switch (TikTok and others) the toggle is emulated by flipping the child ads; a call with no actionable ad then writes nothing and returns a &#x60;message&#x60; with no &#x60;status&#x60;. &#x60;updated&#x60; / &#x60;skipped&#x60; describe only the ads whose own stored status CHANGED alongside the switch, so &#x60;updated: 0&#x60; is a normal successful response. See &#x60;skippedReasons&#x60; for which of the three cases applies (terminal, already in the target state, or switched on but not yet delivering). A campaign created paused needs its campaign resumed as well: pair this with PUT /v1/ads/campaigns/{campaignId}/status.
1692
1719
  # @param ad_set_id [String] Platform ad set ID
1693
1720
  # @param update_ad_campaign_status_request [UpdateAdCampaignStatusRequest]
1694
1721
  # @param [Hash] opts the optional parameters
@@ -230,7 +230,7 @@ module Zernio
230
230
  # @option opts [Date] :from_date Start of date range (YYYY-MM-DD). Defaults to 90 days ago.
231
231
  # @option opts [Date] :to_date End of date range (YYYY-MM-DD). Defaults to today. Max 730-day range.
232
232
  # @option opts [String] :breakdowns Comma-separated breakdown dimensions. **Meta**: age, gender, country, publisher_platform, device_platform, region. **TikTok**: gender, age, country_code, platform, ac, language. **LinkedIn** (firmographics): job_title, job_function, seniority, industry, company, company_size, country, region. Rows carry the raw pivot &#x60;value&#x60; plus a resolved &#x60;name&#x60;. LinkedIn serves these aggregated over the whole range, delays the data 12-24h, and omits segments with fewer than 3 events.
233
- # @return [GetAdAnalytics200Response]
233
+ # @return [AdAnalyticsResponse]
234
234
  def get_ad_analytics(ad_id, opts = {})
235
235
  data, _status_code, _headers = get_ad_analytics_with_http_info(ad_id, opts)
236
236
  data
@@ -243,7 +243,7 @@ module Zernio
243
243
  # @option opts [Date] :from_date Start of date range (YYYY-MM-DD). Defaults to 90 days ago.
244
244
  # @option opts [Date] :to_date End of date range (YYYY-MM-DD). Defaults to today. Max 730-day range.
245
245
  # @option opts [String] :breakdowns Comma-separated breakdown dimensions. **Meta**: age, gender, country, publisher_platform, device_platform, region. **TikTok**: gender, age, country_code, platform, ac, language. **LinkedIn** (firmographics): job_title, job_function, seniority, industry, company, company_size, country, region. Rows carry the raw pivot &#x60;value&#x60; plus a resolved &#x60;name&#x60;. LinkedIn serves these aggregated over the whole range, delays the data 12-24h, and omits segments with fewer than 3 events.
246
- # @return [Array<(GetAdAnalytics200Response, Integer, Hash)>] GetAdAnalytics200Response data, response status code and response headers
246
+ # @return [Array<(AdAnalyticsResponse, Integer, Hash)>] AdAnalyticsResponse data, response status code and response headers
247
247
  def get_ad_analytics_with_http_info(ad_id, opts = {})
248
248
  if @api_client.config.debugging
249
249
  @api_client.config.logger.debug 'Calling API: AdInsightsApi.get_ad_analytics ...'
@@ -273,7 +273,7 @@ module Zernio
273
273
  post_body = opts[:debug_body]
274
274
 
275
275
  # return_type
276
- return_type = opts[:debug_return_type] || 'GetAdAnalytics200Response'
276
+ return_type = opts[:debug_return_type] || 'AdAnalyticsResponse'
277
277
 
278
278
  # auth_names
279
279
  auth_names = opts[:debug_auth_names] || ['bearerAuth']
@@ -469,7 +469,7 @@ module Zernio
469
469
  # @option opts [Date] :from_date Start of date range (YYYY-MM-DD). Defaults to 90 days ago.
470
470
  # @option opts [Date] :to_date End of date range (YYYY-MM-DD). Defaults to today. Max 730-day range.
471
471
  # @option opts [String] :breakdowns Comma-separated breakdown dimensions. **Meta**: age, gender, country, publisher_platform, device_platform, region, platform_position, impression_device, video_asset, image_asset, body_asset, title_asset. **LinkedIn** (firmographics): job_title, job_function, seniority, industry, company, company_size, country, region. Rows carry the raw pivot &#x60;value&#x60; plus a resolved &#x60;name&#x60;. LinkedIn serves these aggregated over the whole range, delays the data 12-24h, and omits segments with fewer than 3 events.
472
- # @return [GetCampaignAnalytics200Response]
472
+ # @return [CampaignAnalyticsResponse]
473
473
  def get_campaign_analytics(campaign_id, opts = {})
474
474
  data, _status_code, _headers = get_campaign_analytics_with_http_info(campaign_id, opts)
475
475
  data
@@ -483,7 +483,7 @@ module Zernio
483
483
  # @option opts [Date] :from_date Start of date range (YYYY-MM-DD). Defaults to 90 days ago.
484
484
  # @option opts [Date] :to_date End of date range (YYYY-MM-DD). Defaults to today. Max 730-day range.
485
485
  # @option opts [String] :breakdowns Comma-separated breakdown dimensions. **Meta**: age, gender, country, publisher_platform, device_platform, region, platform_position, impression_device, video_asset, image_asset, body_asset, title_asset. **LinkedIn** (firmographics): job_title, job_function, seniority, industry, company, company_size, country, region. Rows carry the raw pivot &#x60;value&#x60; plus a resolved &#x60;name&#x60;. LinkedIn serves these aggregated over the whole range, delays the data 12-24h, and omits segments with fewer than 3 events.
486
- # @return [Array<(GetCampaignAnalytics200Response, Integer, Hash)>] GetCampaignAnalytics200Response data, response status code and response headers
486
+ # @return [Array<(CampaignAnalyticsResponse, Integer, Hash)>] CampaignAnalyticsResponse data, response status code and response headers
487
487
  def get_campaign_analytics_with_http_info(campaign_id, opts = {})
488
488
  if @api_client.config.debugging
489
489
  @api_client.config.logger.debug 'Calling API: AdInsightsApi.get_campaign_analytics ...'
@@ -514,7 +514,7 @@ module Zernio
514
514
  post_body = opts[:debug_body]
515
515
 
516
516
  # return_type
517
- return_type = opts[:debug_return_type] || 'GetCampaignAnalytics200Response'
517
+ return_type = opts[:debug_return_type] || 'CampaignAnalyticsResponse'
518
518
 
519
519
  # auth_names
520
520
  auth_names = opts[:debug_auth_names] || ['bearerAuth']
@@ -536,6 +536,171 @@ module Zernio
536
536
  return data, status_code, headers
537
537
  end
538
538
 
539
+ # Conversations of a Local Services lead
540
+ # Conversation entries of one Local Services lead: phone calls (duration, recording URL) and messages (text, attachment URLs), oldest first. Read live from `local_services_lead_conversation`, always scoped to a single lead. Call-recording URLs require read access on the Google Ads account. Draws on the shared Google Ads operations budget.
541
+ # @param lead_id [String] Numeric lead id from /v1/ads/local-services/leads.
542
+ # @param account_id [String] Google ads SocialAccount id.
543
+ # @param [Hash] opts the optional parameters
544
+ # @option opts [String] :customer_id Numeric Google Ads customer id (no dashes). Defaults to the account&#39;s connected customer.
545
+ # @option opts [String] :page_token Cursor from paging.nextPageToken of the previous page.
546
+ # @return [ListLocalServicesLeadConversations200Response]
547
+ def list_local_services_lead_conversations(lead_id, account_id, opts = {})
548
+ data, _status_code, _headers = list_local_services_lead_conversations_with_http_info(lead_id, account_id, opts)
549
+ data
550
+ end
551
+
552
+ # Conversations of a Local Services lead
553
+ # Conversation entries of one Local Services lead: phone calls (duration, recording URL) and messages (text, attachment URLs), oldest first. Read live from &#x60;local_services_lead_conversation&#x60;, always scoped to a single lead. Call-recording URLs require read access on the Google Ads account. Draws on the shared Google Ads operations budget.
554
+ # @param lead_id [String] Numeric lead id from /v1/ads/local-services/leads.
555
+ # @param account_id [String] Google ads SocialAccount id.
556
+ # @param [Hash] opts the optional parameters
557
+ # @option opts [String] :customer_id Numeric Google Ads customer id (no dashes). Defaults to the account&#39;s connected customer.
558
+ # @option opts [String] :page_token Cursor from paging.nextPageToken of the previous page.
559
+ # @return [Array<(ListLocalServicesLeadConversations200Response, Integer, Hash)>] ListLocalServicesLeadConversations200Response data, response status code and response headers
560
+ def list_local_services_lead_conversations_with_http_info(lead_id, account_id, opts = {})
561
+ if @api_client.config.debugging
562
+ @api_client.config.logger.debug 'Calling API: AdInsightsApi.list_local_services_lead_conversations ...'
563
+ end
564
+ # verify the required parameter 'lead_id' is set
565
+ if @api_client.config.client_side_validation && lead_id.nil?
566
+ fail ArgumentError, "Missing the required parameter 'lead_id' when calling AdInsightsApi.list_local_services_lead_conversations"
567
+ end
568
+ # verify the required parameter 'account_id' is set
569
+ if @api_client.config.client_side_validation && account_id.nil?
570
+ fail ArgumentError, "Missing the required parameter 'account_id' when calling AdInsightsApi.list_local_services_lead_conversations"
571
+ end
572
+ # resource path
573
+ local_var_path = '/v1/ads/local-services/leads/{leadId}/conversations'.sub('{' + 'leadId' + '}', CGI.escape(lead_id.to_s))
574
+
575
+ # query parameters
576
+ query_params = opts[:query_params] || {}
577
+ query_params[:'accountId'] = account_id
578
+ query_params[:'customerId'] = opts[:'customer_id'] if !opts[:'customer_id'].nil?
579
+ query_params[:'pageToken'] = opts[:'page_token'] if !opts[:'page_token'].nil?
580
+
581
+ # header parameters
582
+ header_params = opts[:header_params] || {}
583
+ # HTTP header 'Accept' (if needed)
584
+ header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
585
+
586
+ # form parameters
587
+ form_params = opts[:form_params] || {}
588
+
589
+ # http body (model)
590
+ post_body = opts[:debug_body]
591
+
592
+ # return_type
593
+ return_type = opts[:debug_return_type] || 'ListLocalServicesLeadConversations200Response'
594
+
595
+ # auth_names
596
+ auth_names = opts[:debug_auth_names] || ['bearerAuth']
597
+
598
+ new_options = opts.merge(
599
+ :operation => :"AdInsightsApi.list_local_services_lead_conversations",
600
+ :header_params => header_params,
601
+ :query_params => query_params,
602
+ :form_params => form_params,
603
+ :body => post_body,
604
+ :auth_names => auth_names,
605
+ :return_type => return_type
606
+ )
607
+
608
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
609
+ if @api_client.config.debugging
610
+ @api_client.config.logger.debug "API called: AdInsightsApi#list_local_services_lead_conversations\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
611
+ end
612
+ return data, status_code, headers
613
+ end
614
+
615
+ # Google Local Services Ads leads
616
+ # Leads generated by Local Services Ads (phone calls, messages, bookings), read live from Google's `local_services_lead` resource, newest first. No persistence: Google is the source of truth and lead/credit statuses keep changing server-side. Google never returns healthcare-category leads, and `WIPED_OUT` leads arrive with contact erased (`contact` is null). Draws on the shared Google Ads operations budget.
617
+ # @param account_id [String] Google ads SocialAccount id.
618
+ # @param [Hash] opts the optional parameters
619
+ # @option opts [String] :customer_id Numeric Google Ads customer id (no dashes). Defaults to the account&#39;s connected customer.
620
+ # @option opts [Date] :from_date Leads created at/after this day.
621
+ # @option opts [Date] :to_date Leads created at/before this day.
622
+ # @option opts [String] :lead_type
623
+ # @option opts [String] :lead_status Google LocalServicesLeadStatus enum value (e.g. NEW, BOOKED, WIPED_OUT).
624
+ # @option opts [Boolean] :charged_only true &#x3D; only leads Google charged for.
625
+ # @option opts [String] :page_token Cursor from paging.nextPageToken of the previous page.
626
+ # @return [ListLocalServicesLeads200Response]
627
+ def list_local_services_leads(account_id, opts = {})
628
+ data, _status_code, _headers = list_local_services_leads_with_http_info(account_id, opts)
629
+ data
630
+ end
631
+
632
+ # Google Local Services Ads leads
633
+ # Leads generated by Local Services Ads (phone calls, messages, bookings), read live from Google&#39;s &#x60;local_services_lead&#x60; resource, newest first. No persistence: Google is the source of truth and lead/credit statuses keep changing server-side. Google never returns healthcare-category leads, and &#x60;WIPED_OUT&#x60; leads arrive with contact erased (&#x60;contact&#x60; is null). Draws on the shared Google Ads operations budget.
634
+ # @param account_id [String] Google ads SocialAccount id.
635
+ # @param [Hash] opts the optional parameters
636
+ # @option opts [String] :customer_id Numeric Google Ads customer id (no dashes). Defaults to the account&#39;s connected customer.
637
+ # @option opts [Date] :from_date Leads created at/after this day.
638
+ # @option opts [Date] :to_date Leads created at/before this day.
639
+ # @option opts [String] :lead_type
640
+ # @option opts [String] :lead_status Google LocalServicesLeadStatus enum value (e.g. NEW, BOOKED, WIPED_OUT).
641
+ # @option opts [Boolean] :charged_only true &#x3D; only leads Google charged for.
642
+ # @option opts [String] :page_token Cursor from paging.nextPageToken of the previous page.
643
+ # @return [Array<(ListLocalServicesLeads200Response, Integer, Hash)>] ListLocalServicesLeads200Response data, response status code and response headers
644
+ def list_local_services_leads_with_http_info(account_id, opts = {})
645
+ if @api_client.config.debugging
646
+ @api_client.config.logger.debug 'Calling API: AdInsightsApi.list_local_services_leads ...'
647
+ end
648
+ # verify the required parameter 'account_id' is set
649
+ if @api_client.config.client_side_validation && account_id.nil?
650
+ fail ArgumentError, "Missing the required parameter 'account_id' when calling AdInsightsApi.list_local_services_leads"
651
+ end
652
+ allowable_values = ["PHONE_CALL", "MESSAGE", "BOOKING"]
653
+ if @api_client.config.client_side_validation && opts[:'lead_type'] && !allowable_values.include?(opts[:'lead_type'])
654
+ fail ArgumentError, "invalid value for \"lead_type\", must be one of #{allowable_values}"
655
+ end
656
+ # resource path
657
+ local_var_path = '/v1/ads/local-services/leads'
658
+
659
+ # query parameters
660
+ query_params = opts[:query_params] || {}
661
+ query_params[:'accountId'] = account_id
662
+ query_params[:'customerId'] = opts[:'customer_id'] if !opts[:'customer_id'].nil?
663
+ query_params[:'fromDate'] = opts[:'from_date'] if !opts[:'from_date'].nil?
664
+ query_params[:'toDate'] = opts[:'to_date'] if !opts[:'to_date'].nil?
665
+ query_params[:'leadType'] = opts[:'lead_type'] if !opts[:'lead_type'].nil?
666
+ query_params[:'leadStatus'] = opts[:'lead_status'] if !opts[:'lead_status'].nil?
667
+ query_params[:'chargedOnly'] = opts[:'charged_only'] if !opts[:'charged_only'].nil?
668
+ query_params[:'pageToken'] = opts[:'page_token'] if !opts[:'page_token'].nil?
669
+
670
+ # header parameters
671
+ header_params = opts[:header_params] || {}
672
+ # HTTP header 'Accept' (if needed)
673
+ header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
674
+
675
+ # form parameters
676
+ form_params = opts[:form_params] || {}
677
+
678
+ # http body (model)
679
+ post_body = opts[:debug_body]
680
+
681
+ # return_type
682
+ return_type = opts[:debug_return_type] || 'ListLocalServicesLeads200Response'
683
+
684
+ # auth_names
685
+ auth_names = opts[:debug_auth_names] || ['bearerAuth']
686
+
687
+ new_options = opts.merge(
688
+ :operation => :"AdInsightsApi.list_local_services_leads",
689
+ :header_params => header_params,
690
+ :query_params => query_params,
691
+ :form_params => form_params,
692
+ :body => post_body,
693
+ :auth_names => auth_names,
694
+ :return_type => return_type
695
+ )
696
+
697
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
698
+ if @api_client.config.debugging
699
+ @api_client.config.logger.debug "API called: AdInsightsApi#list_local_services_leads\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
700
+ end
701
+ return data, status_code, headers
702
+ end
703
+
539
704
  # Flexible live insights query
540
705
  # Live, flexible insights query. The account's platform picks the contract: **Meta (facebook/instagram)**: forwards caller-chosen `fields`, `breakdowns` and `filtering` to any Meta insights node and returns Meta's rows verbatim. `objectId` (required) selects the node; `level` sets row granularity. Semantic validation is Meta's: an unknown field or invalid breakdown combination returns a 400 carrying Meta's message. For long ranges or agency-scale accounts prefer the async variant (POST /v1/ads/insights/reports). **Google Ads (googleads)**: raw GAQL passthrough. Send any read-only GAQL SELECT via `query` (campaign/keyword/search-term/geo/demographic/asset/shopping resources, `change_event`, any `segments.*`) and rows come back verbatim (camelCase, counters as strings). Results are paged at a fixed 10,000 rows; follow `paging.nextPageToken` with `pageToken`. `customerId` is only needed when the connection has several Google Ads accounts. Semantic validation is Google's: an invalid query returns a 400 carrying Google's message (note: selecting `segments.date` requires a finite date filter).
541
706
  # @param account_id [String] Zernio SocialAccount id (posting or ads variant); its platform selects the Meta or Google contract.
@@ -295,12 +295,12 @@ module Zernio
295
295
  end
296
296
 
297
297
  # Search targeting options
298
- # Resolve a human-readable query into the platform's opaque targeting ids used in the `TargetingSpec` (`countries`/`regions`/`cities`/`zips`/`metros` geo keys, and `interests`/`behaviors` entity ids) on `POST /v1/ads/create`, `POST /v1/ads/targeting/reach-estimate`, and `saved_targeting` audiences. The `dimension` param selects what is searched, `geo` (locations, further scoped by `geoType`), `interest`, `behavior`, or `income`. Availability of each dimension varies by platform (e.g. behaviours are Meta/TikTok only). Results are normalized across platforms into a single shape, so the same client code consumes Meta, TikTok, LinkedIn, X, Pinterest, and Google results. TikTok geo searches return every matching level in one list (`type` is `country`, `region`, `city`, `district`, or `metro` for DMA areas) — `geoType` is not applied. Results are scoped to the advertiser's targetable markets, and every id is usable in `regions`/`cities`/`metros` keys on `POST /v1/ads/create`. For geo queries, `q` should contain only the locality name (e.g. `\"Amsterdam\"`, not `\"Amsterdam, NL\"`). Use `countryCode` to disambiguate.
298
+ # Resolve a human-readable query into the platform's opaque targeting ids used in the `TargetingSpec` (`countries`/`regions`/`cities`/`zips`/`metros` geo keys, and `interests`/`behaviors` entity ids) on `POST /v1/ads/create`, `POST /v1/ads/targeting/reach-estimate`, and `saved_targeting` audiences. The `dimension` param selects what is searched, `geo` (locations, further scoped by `geoType`), `interest`, `behavior`, or `income`. Availability of each dimension varies by platform (e.g. behaviours are Meta/TikTok only). Results are normalized across platforms into a single shape, so the same client code consumes Meta, TikTok, LinkedIn, X, Pinterest, and Google results. TikTok geo searches return every matching level in one list (`type` is `country`, `region`, `city`, `district`, or `metro` for DMA areas) — `geoType` is not applied. Results are scoped to the advertiser's targetable markets, and every id is usable in `regions`/`cities`/`metros` keys on `POST /v1/ads/create`. LinkedIn geo searches also return every matching level in one list, and neither `geoType` nor `countryCode` is applied: LinkedIn's typeahead only returns a name and a URN per result, with no level or country field to filter on. Every result has `type` set to `location`, and its id is a `urn:li:geo:*` URN usable as a `regions[].key` on `POST /v1/ads/create`, `POST /v1/ads/boost` and `POST /v1/ads/targeting/reach-estimate`. Pinterest resolves against three whole-catalog endpoints (interests, locations, regions) with no server-side query or pagination, so matching, ranking and the `limit` cutoff all happen in Zernio; the catalog is independent of any ad account and results never carry `audienceSize`. Names come back localized to the connected Pinterest account's language (there is no way to force a locale), so match against whatever language that account returns. `geoType` routes to a different catalog: `country` and `metro_area` read the locations catalog (`type` is `country` or `metro`); `region` reads the regions catalog (`type` is `region`, its id a `regions[].key` on `POST /v1/ads/create`); `all` and the default `city` merge both catalogs with honest per-entry `type`s, since Pinterest has no city-level catalog and `city` is an alias for `all`, not a literal city search. `zip`, `subcity`, `neighborhood`, `place` and `geo_market` return a 400: Pinterest exposes no postal-code catalog, pass postal codes directly as `targeting.zips: [{ key }]` on `POST /v1/ads/create`. For geo queries, `q` should contain only the locality name (e.g. `\"Amsterdam\"`, not `\"Amsterdam, NL\"`). Use `countryCode` to disambiguate.
299
299
  # @param account_id [String] Social account ID (a connected account on the target ad platform).
300
300
  # @param q [String] Search query. For geo, the locality name only (no region/country suffix).
301
301
  # @param [Hash] opts the optional parameters
302
302
  # @option opts [String] :dimension What to search. &#x60;geo&#x60; resolves locations (scope further with &#x60;geoType&#x60;), &#x60;interest&#x60;/&#x60;behavior&#x60; resolve audience entities, &#x60;income&#x60; resolves income-tier options. Defaults to &#x60;interest&#x60; for backward compatibility with the deprecated /v1/ads/interests alias. (default to 'interest')
303
- # @option opts [String] :geo_type Only used when &#x60;dimension&#x3D;geo&#x60;. The kind of location to resolve. Defaults to &#x60;city&#x60;. (default to 'city')
303
+ # @option opts [String] :geo_type Only used when &#x60;dimension&#x3D;geo&#x60;. The kind of location to resolve. &#x60;all&#x60; searches every type in one relevance-ranked call. Defaults to &#x60;city&#x60;. (default to 'city')
304
304
  # @option opts [String] :country_code ISO 3166-1 alpha-2 country code (e.g. NL) to scope a geo search.
305
305
  # @option opts [Integer] :limit Maximum results to return. (default to 25)
306
306
  # @return [SearchAdTargeting200Response]
@@ -310,12 +310,12 @@ module Zernio
310
310
  end
311
311
 
312
312
  # Search targeting options
313
- # Resolve a human-readable query into the platform&#39;s opaque targeting ids used in the &#x60;TargetingSpec&#x60; (&#x60;countries&#x60;/&#x60;regions&#x60;/&#x60;cities&#x60;/&#x60;zips&#x60;/&#x60;metros&#x60; geo keys, and &#x60;interests&#x60;/&#x60;behaviors&#x60; entity ids) on &#x60;POST /v1/ads/create&#x60;, &#x60;POST /v1/ads/targeting/reach-estimate&#x60;, and &#x60;saved_targeting&#x60; audiences. The &#x60;dimension&#x60; param selects what is searched, &#x60;geo&#x60; (locations, further scoped by &#x60;geoType&#x60;), &#x60;interest&#x60;, &#x60;behavior&#x60;, or &#x60;income&#x60;. Availability of each dimension varies by platform (e.g. behaviours are Meta/TikTok only). Results are normalized across platforms into a single shape, so the same client code consumes Meta, TikTok, LinkedIn, X, Pinterest, and Google results. TikTok geo searches return every matching level in one list (&#x60;type&#x60; is &#x60;country&#x60;, &#x60;region&#x60;, &#x60;city&#x60;, &#x60;district&#x60;, or &#x60;metro&#x60; for DMA areas) — &#x60;geoType&#x60; is not applied. Results are scoped to the advertiser&#39;s targetable markets, and every id is usable in &#x60;regions&#x60;/&#x60;cities&#x60;/&#x60;metros&#x60; keys on &#x60;POST /v1/ads/create&#x60;. For geo queries, &#x60;q&#x60; should contain only the locality name (e.g. &#x60;\&quot;Amsterdam\&quot;&#x60;, not &#x60;\&quot;Amsterdam, NL\&quot;&#x60;). Use &#x60;countryCode&#x60; to disambiguate.
313
+ # Resolve a human-readable query into the platform&#39;s opaque targeting ids used in the &#x60;TargetingSpec&#x60; (&#x60;countries&#x60;/&#x60;regions&#x60;/&#x60;cities&#x60;/&#x60;zips&#x60;/&#x60;metros&#x60; geo keys, and &#x60;interests&#x60;/&#x60;behaviors&#x60; entity ids) on &#x60;POST /v1/ads/create&#x60;, &#x60;POST /v1/ads/targeting/reach-estimate&#x60;, and &#x60;saved_targeting&#x60; audiences. The &#x60;dimension&#x60; param selects what is searched, &#x60;geo&#x60; (locations, further scoped by &#x60;geoType&#x60;), &#x60;interest&#x60;, &#x60;behavior&#x60;, or &#x60;income&#x60;. Availability of each dimension varies by platform (e.g. behaviours are Meta/TikTok only). Results are normalized across platforms into a single shape, so the same client code consumes Meta, TikTok, LinkedIn, X, Pinterest, and Google results. TikTok geo searches return every matching level in one list (&#x60;type&#x60; is &#x60;country&#x60;, &#x60;region&#x60;, &#x60;city&#x60;, &#x60;district&#x60;, or &#x60;metro&#x60; for DMA areas) — &#x60;geoType&#x60; is not applied. Results are scoped to the advertiser&#39;s targetable markets, and every id is usable in &#x60;regions&#x60;/&#x60;cities&#x60;/&#x60;metros&#x60; keys on &#x60;POST /v1/ads/create&#x60;. LinkedIn geo searches also return every matching level in one list, and neither &#x60;geoType&#x60; nor &#x60;countryCode&#x60; is applied: LinkedIn&#39;s typeahead only returns a name and a URN per result, with no level or country field to filter on. Every result has &#x60;type&#x60; set to &#x60;location&#x60;, and its id is a &#x60;urn:li:geo:*&#x60; URN usable as a &#x60;regions[].key&#x60; on &#x60;POST /v1/ads/create&#x60;, &#x60;POST /v1/ads/boost&#x60; and &#x60;POST /v1/ads/targeting/reach-estimate&#x60;. Pinterest resolves against three whole-catalog endpoints (interests, locations, regions) with no server-side query or pagination, so matching, ranking and the &#x60;limit&#x60; cutoff all happen in Zernio; the catalog is independent of any ad account and results never carry &#x60;audienceSize&#x60;. Names come back localized to the connected Pinterest account&#39;s language (there is no way to force a locale), so match against whatever language that account returns. &#x60;geoType&#x60; routes to a different catalog: &#x60;country&#x60; and &#x60;metro_area&#x60; read the locations catalog (&#x60;type&#x60; is &#x60;country&#x60; or &#x60;metro&#x60;); &#x60;region&#x60; reads the regions catalog (&#x60;type&#x60; is &#x60;region&#x60;, its id a &#x60;regions[].key&#x60; on &#x60;POST /v1/ads/create&#x60;); &#x60;all&#x60; and the default &#x60;city&#x60; merge both catalogs with honest per-entry &#x60;type&#x60;s, since Pinterest has no city-level catalog and &#x60;city&#x60; is an alias for &#x60;all&#x60;, not a literal city search. &#x60;zip&#x60;, &#x60;subcity&#x60;, &#x60;neighborhood&#x60;, &#x60;place&#x60; and &#x60;geo_market&#x60; return a 400: Pinterest exposes no postal-code catalog, pass postal codes directly as &#x60;targeting.zips: [{ key }]&#x60; on &#x60;POST /v1/ads/create&#x60;. For geo queries, &#x60;q&#x60; should contain only the locality name (e.g. &#x60;\&quot;Amsterdam\&quot;&#x60;, not &#x60;\&quot;Amsterdam, NL\&quot;&#x60;). Use &#x60;countryCode&#x60; to disambiguate.
314
314
  # @param account_id [String] Social account ID (a connected account on the target ad platform).
315
315
  # @param q [String] Search query. For geo, the locality name only (no region/country suffix).
316
316
  # @param [Hash] opts the optional parameters
317
317
  # @option opts [String] :dimension What to search. &#x60;geo&#x60; resolves locations (scope further with &#x60;geoType&#x60;), &#x60;interest&#x60;/&#x60;behavior&#x60; resolve audience entities, &#x60;income&#x60; resolves income-tier options. Defaults to &#x60;interest&#x60; for backward compatibility with the deprecated /v1/ads/interests alias. (default to 'interest')
318
- # @option opts [String] :geo_type Only used when &#x60;dimension&#x3D;geo&#x60;. The kind of location to resolve. Defaults to &#x60;city&#x60;. (default to 'city')
318
+ # @option opts [String] :geo_type Only used when &#x60;dimension&#x3D;geo&#x60;. The kind of location to resolve. &#x60;all&#x60; searches every type in one relevance-ranked call. Defaults to &#x60;city&#x60;. (default to 'city')
319
319
  # @option opts [String] :country_code ISO 3166-1 alpha-2 country code (e.g. NL) to scope a geo search.
320
320
  # @option opts [Integer] :limit Maximum results to return. (default to 25)
321
321
  # @return [Array<(SearchAdTargeting200Response, Integer, Hash)>] SearchAdTargeting200Response data, response status code and response headers
@@ -335,7 +335,7 @@ module Zernio
335
335
  if @api_client.config.client_side_validation && opts[:'dimension'] && !allowable_values.include?(opts[:'dimension'])
336
336
  fail ArgumentError, "invalid value for \"dimension\", must be one of #{allowable_values}"
337
337
  end
338
- allowable_values = ["country", "region", "city", "zip", "metro"]
338
+ allowable_values = ["all", "country", "region", "city", "subcity", "neighborhood", "place", "zip", "metro_area", "geo_market"]
339
339
  if @api_client.config.client_side_validation && opts[:'geo_type'] && !allowable_values.include?(opts[:'geo_type'])
340
340
  fail ArgumentError, "invalid value for \"geo_type\", must be one of #{allowable_values}"
341
341
  end