pinterest_sdk 1.1.0 → 2.1.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2579) hide show
  1. checksums.yaml +4 -4
  2. data/Gemfile.lock +107 -32
  3. data/README.md +1308 -80
  4. data/bin/byebug +1 -12
  5. data/bin/coderay +1 -12
  6. data/bin/htmldiff +1 -12
  7. data/bin/ldiff +1 -12
  8. data/bin/pry +1 -12
  9. data/bin/racc +16 -0
  10. data/bin/rake +1 -12
  11. data/bin/rspec +1 -12
  12. data/bin/rubocop +1 -12
  13. data/bin/ruby-parse +1 -12
  14. data/bin/ruby-rewrite +1 -12
  15. data/docs/Account.md +20 -4
  16. data/docs/AccountTemplate.md +76 -0
  17. data/docs/Ad.md +94 -0
  18. data/docs/AdAccount.md +13 -5
  19. data/docs/AdAccountAnalyticsItems.md +20 -0
  20. data/docs/AdAccountCountriesGet200Response.md +18 -0
  21. data/docs/AdAccountCreate.md +26 -0
  22. data/docs/AdAccountEntityType.md +15 -0
  23. data/docs/AdAccountOwner.md +2 -0
  24. data/docs/AdAccountToAdAccountSharedAudience.md +22 -0
  25. data/docs/AdAccountToAdAccountSharedAudienceUpdateWithRequiredBody.md +22 -0
  26. data/docs/AdAccountToBusinessSharedAudience.md +22 -0
  27. data/docs/AdAccountToBusinessSharedAudienceUpdateWithRequiredBody.md +22 -0
  28. data/docs/AdAccountsApi.md +442 -292
  29. data/docs/AdAccountsAudience.md +42 -0
  30. data/docs/AdAccountsAudienceCreate.md +26 -0
  31. data/docs/AdAccountsAudienceRule.md +56 -0
  32. data/docs/AdAccountsAudienceUpdate.md +28 -0
  33. data/docs/AdAccountsAudiencesSharedAccountsList200Response.md +20 -0
  34. data/docs/AdAccountsCountry.md +24 -0
  35. data/docs/AdAccountsList200Response.md +20 -0
  36. data/docs/AdAccountsSubscriptionsGetList200Response.md +20 -0
  37. data/docs/AdAdsAnalyticsAsyncTargetingTypes.md +15 -0
  38. data/docs/AdBatchItem.md +20 -0
  39. data/docs/AdBatchUpdate.md +72 -0
  40. data/docs/AdBatchWriteResponseModel.md +18 -0
  41. data/docs/AdCollectionsHeaderType.md +15 -0
  42. data/docs/AdCreate.md +70 -0
  43. data/docs/AdCreateRequest.md +62 -0
  44. data/docs/AdDisapprovalReasons.md +15 -0
  45. data/docs/AdGroup.md +92 -0
  46. data/docs/AdGroupAudienceSizing.md +20 -0
  47. data/docs/AdGroupAudienceSizingCreate.md +28 -0
  48. data/docs/AdGroupAudienceSizingCreativeTypes.md +15 -0
  49. data/docs/AdGroupAudienceSizingKeyword.md +20 -0
  50. data/docs/AdGroupBase.md +84 -0
  51. data/docs/AdGroupCreate.md +92 -0
  52. data/docs/AdGroupCreateCreate.md +76 -0
  53. data/docs/AdGroupCreateRequest.md +62 -0
  54. data/docs/AdGroupCreateRequestAllOf1.md +24 -0
  55. data/docs/AdGroupDeliveryEstimates.md +34 -0
  56. data/docs/AdGroupDeliveryEstimatesKeywordsItems.md +20 -0
  57. data/docs/AdGroupTrackingURLs.md +26 -0
  58. data/docs/AdGroupUpdate.md +92 -0
  59. data/docs/AdGroupUpdateBatchUpdate.md +80 -0
  60. data/docs/AdGroupUpdateRequest.md +66 -0
  61. data/docs/AdGroupUpdateRequestAllOf1.md +22 -0
  62. data/docs/AdGroupsAnalyticsMetrics.md +20 -0
  63. data/docs/AdGroupsApi.md +1035 -0
  64. data/docs/AdGroupsCreate200Response.md +18 -0
  65. data/docs/AdGroupsCreate200ResponseItemsInner.md +20 -0
  66. data/docs/AdGroupsList200Response.md +20 -0
  67. data/docs/AdPinAnalytics.md +20 -0
  68. data/docs/AdPinPreviewCreativeType.md +15 -0
  69. data/docs/AdPreviewRequest.md +51 -0
  70. data/docs/AdPreviewShopping.md +38 -0
  71. data/docs/AdPreviewSourceImage.md +22 -0
  72. data/docs/AdPreviewSourcePinId.md +20 -0
  73. data/docs/AdPreviewURLResponse.md +18 -0
  74. data/docs/AdReviewStatus.md +15 -0
  75. data/docs/AdShoppingPreviewCreativeType.md +15 -0
  76. data/docs/AdUpdateRequest.md +64 -0
  77. data/docs/AdUpdateRequestAllOf1.md +20 -0
  78. data/docs/AdeColumnType.md +15 -0
  79. data/docs/AdgroupPlacementGroupType.md +15 -0
  80. data/docs/AdgroupTrackingFeatureType.md +15 -0
  81. data/docs/AdgroupTrackingFeatures.md +18 -0
  82. data/docs/AdsAnalytics.md +20 -0
  83. data/docs/AdsAnalyticsAccountTargetingType.md +15 -0
  84. data/docs/AdsAnalyticsAdGroupTargetingType.md +15 -0
  85. data/docs/AdsAnalyticsAdTargetingType.md +15 -0
  86. data/docs/AdsAnalyticsCampaignTargetingType.md +15 -0
  87. data/docs/AdsAnalyticsCreateAsyncRequest.md +53 -37
  88. data/docs/AdsAnalyticsCreateAsyncResponse.md +4 -4
  89. data/docs/AdsAnalyticsGetAsyncResponse.md +4 -4
  90. data/docs/AdsAnalyticsMetricsFilter.md +3 -3
  91. data/docs/AdsApi.md +805 -0
  92. data/docs/AdsCreditDiscountType.md +15 -0
  93. data/docs/AdsCreditDiscountsResponse.md +30 -0
  94. data/docs/AdsCreditRedeem.md +22 -0
  95. data/docs/AdsCreditRedeemCreate.md +20 -0
  96. data/docs/AdsCreditsDiscountsGet200Response.md +20 -0
  97. data/docs/AdsList200Response.md +20 -0
  98. data/docs/AdvancedAuctionApi.md +155 -0
  99. data/docs/AdvancedAuctionBidOptions.md +22 -0
  100. data/docs/AdvancedAuctionItem.md +24 -0
  101. data/docs/AdvancedAuctionItems.md +20 -0
  102. data/docs/AdvancedAuctionItemsGetRequest.md +20 -0
  103. data/docs/AdvancedAuctionItemsSubmitDeleteRecord.md +26 -0
  104. data/docs/AdvancedAuctionItemsSubmitRecord.md +79 -0
  105. data/docs/AdvancedAuctionItemsSubmitRequest.md +20 -0
  106. data/docs/AdvancedAuctionItemsSubmitUpsertRecord.md +30 -0
  107. data/docs/AdvancedAuctionKey.md +22 -0
  108. data/docs/AdvancedAuctionOperationError.md +20 -0
  109. data/docs/AdvancedAuctionProcessedItems.md +20 -0
  110. data/docs/AdvertiserDefinedEvent.md +20 -0
  111. data/docs/AdvertiserDefinedEventInput.md +20 -0
  112. data/docs/AdvertiserDefinedEventMappingType.md +15 -0
  113. data/docs/AdvertiserDefinedEventProcessingRecord.md +22 -0
  114. data/docs/AdvertiserDefinedEventsCreate200Response.md +18 -0
  115. data/docs/AdvertiserDefinedEventsCreateRequest.md +18 -0
  116. data/docs/AdvertiserDefinedEventsGet200Response.md +18 -0
  117. data/docs/AgeBucketMultipliers.md +18 -0
  118. data/docs/AgeTrendsBucket.md +15 -0
  119. data/docs/AggregatedPinComment.md +54 -0
  120. data/docs/AiDisclosureItem.md +15 -0
  121. data/docs/AiDisclosures.md +18 -0
  122. data/docs/AiDisclosuresUpdate.md +18 -0
  123. data/docs/AmazonConnectRequest.md +30 -0
  124. data/docs/AmazonConnectResponse.md +18 -0
  125. data/docs/AnalyticsDailyMetrics.md +22 -0
  126. data/docs/AnalyticsMetricsResponse.md +2 -2
  127. data/docs/AppTypeMultipliers.md +18 -0
  128. data/docs/AppsflyerAudience.md +22 -0
  129. data/docs/AppsflyerAudienceCreate.md +20 -0
  130. data/docs/AppsflyerAudienceSyncCreate.md +22 -0
  131. data/docs/AppsflyerPlatform.md +15 -0
  132. data/docs/AssetAccessRequestError.md +20 -0
  133. data/docs/AssetGroupBinding.md +38 -0
  134. data/docs/AssetGroupDeleteError.md +22 -0
  135. data/docs/AssetGroupDeletion.md +20 -0
  136. data/docs/AssetGroupDeletionDelete.md +18 -0
  137. data/docs/AssetGroupInput.md +18 -0
  138. data/docs/AssetGroupInputCreate.md +24 -0
  139. data/docs/AssetGroupModification.md +20 -0
  140. data/docs/AssetGroupModificationReadOrUpdate.md +22 -0
  141. data/docs/AssetGroupType.md +15 -0
  142. data/docs/AssetGroupUpdateError.md +22 -0
  143. data/docs/AssetGroupUpdateItemReadOrUpdateItem.md +28 -0
  144. data/docs/AssetIdPermissions.md +24 -0
  145. data/docs/AssetIdWithPermissions.md +20 -0
  146. data/docs/AssetPermissionType.md +15 -0
  147. data/docs/AssetSearchBy.md +15 -0
  148. data/docs/AssetSortBy.md +15 -0
  149. data/docs/AssetTypeResponse.md +15 -0
  150. data/docs/AttributionActionType.md +15 -0
  151. data/docs/AttributionMatchType.md +15 -0
  152. data/docs/AttributionModel.md +15 -0
  153. data/docs/AttributionScope.md +15 -0
  154. data/docs/AttributionWindows.md +22 -0
  155. data/docs/Audience.md +42 -0
  156. data/docs/AudienceAccountType.md +15 -0
  157. data/docs/AudienceCategory.md +28 -0
  158. data/docs/AudienceDefinition.md +22 -0
  159. data/docs/AudienceDemographicValue.md +22 -0
  160. data/docs/AudienceDemographics.md +26 -0
  161. data/docs/AudienceInsightType.md +15 -0
  162. data/docs/AudienceInsights.md +28 -0
  163. data/docs/AudienceInsightsApi.md +155 -0
  164. data/docs/AudienceInsightsScopeAndTypeGet200Response.md +18 -0
  165. data/docs/AudienceObjectiveType.md +15 -0
  166. data/docs/AudienceOwnershipType.md +15 -0
  167. data/docs/AudienceRule.md +56 -0
  168. data/docs/AudienceSharingApi.md +536 -0
  169. data/docs/AudienceStatus.md +15 -0
  170. data/docs/AudienceSubcategory.md +26 -0
  171. data/docs/AudienceType.md +15 -0
  172. data/docs/AudienceUpdateOperationType.md +15 -0
  173. data/docs/AudiencesApi.md +313 -0
  174. data/docs/AudiencesList200Response.md +20 -0
  175. data/docs/AuthRespondInviteAction.md +20 -0
  176. data/docs/AuthRespondInvitesBody.md +18 -0
  177. data/docs/AuthRespondInvitesBodyItem.md +20 -0
  178. data/docs/AvailabilityFilter.md +1 -1
  179. data/docs/BaseBusinessAssets.md +24 -0
  180. data/docs/BaseInviteDataResponse.md +24 -0
  181. data/docs/BasePreferredMediaType.md +15 -0
  182. data/docs/BidFloor.md +20 -0
  183. data/docs/BidFloorCreate.md +20 -0
  184. data/docs/BidFloorObjectiveType.md +15 -0
  185. data/docs/BidFloorSpec.md +28 -0
  186. data/docs/BidOptionsAgeBucketMultipliers.md +30 -0
  187. data/docs/BidOptionsAppTypeMultipliers.md +28 -0
  188. data/docs/BidOptionsAudienceMultipliers.md +20 -0
  189. data/docs/BidOptionsGenderMultipliers.md +20 -0
  190. data/docs/BidOptionsPlacementMultipliers.md +22 -0
  191. data/docs/BidStrategyType.md +15 -0
  192. data/docs/BillingApi.md +833 -0
  193. data/docs/BillingInvoice.md +46 -0
  194. data/docs/BillingInvoiceDocumentType.md +15 -0
  195. data/docs/BillingInvoiceDownloadResponse.md +20 -0
  196. data/docs/BillingInvoiceSortField.md +15 -0
  197. data/docs/BillingInvoiceStatus.md +15 -0
  198. data/docs/BillingInvoicesGet200Response.md +20 -0
  199. data/docs/BillingProfileCardType.md +15 -0
  200. data/docs/BillingProfilePaymentMethodBrand.md +15 -0
  201. data/docs/BillingProfileStatus.md +15 -0
  202. data/docs/BillingProfilesGet200Response.md +20 -0
  203. data/docs/BillingProfilesResponse.md +28 -0
  204. data/docs/BillingType.md +15 -0
  205. data/docs/Board.md +19 -5
  206. data/docs/BoardBase.md +38 -0
  207. data/docs/BoardCreate.md +24 -0
  208. data/docs/BoardMedia.md +20 -0
  209. data/docs/BoardPrivacy.md +15 -0
  210. data/docs/BoardPrivacyFilter.md +15 -0
  211. data/docs/BoardSection.md +2 -2
  212. data/docs/BoardSectionCreate.md +20 -0
  213. data/docs/BoardSectionUpdateWithRequiredBody.md +20 -0
  214. data/docs/BoardSectionsList200Response.md +20 -0
  215. data/docs/BoardUpdatePrivacy.md +15 -0
  216. data/docs/BoardWithUpdatePrivacy.md +40 -0
  217. data/docs/BoardWithUpdatePrivacyUpdate.md +22 -0
  218. data/docs/BoardsApi.md +157 -94
  219. data/docs/BoardsList200Response.md +20 -0
  220. data/docs/BoardsListPins200Response.md +20 -0
  221. data/docs/BookClosed.md +20 -0
  222. data/docs/BrandAccount.md +18 -0
  223. data/docs/BrandAccountCreate.md +28 -0
  224. data/docs/BrandAccountProfileImage.md +20 -0
  225. data/docs/BrandAccountProfileImageUpdate.md +20 -0
  226. data/docs/BrandAccountUpdate.md +28 -0
  227. data/docs/BrandFilter.md +1 -1
  228. data/docs/BudgetDurationType.md +15 -0
  229. data/docs/BudgetType.md +15 -0
  230. data/docs/BulkApi.md +230 -0
  231. data/docs/BulkCampaignDeliveryEstimatesItem.md +32 -0
  232. data/docs/BulkCampaignDeliveryEstimatesResponse.md +18 -0
  233. data/docs/BulkDownload.md +18 -0
  234. data/docs/BulkDownloadCampaignFilter.md +26 -0
  235. data/docs/BulkDownloadCreate.md +26 -0
  236. data/docs/BulkEntityType.md +15 -0
  237. data/docs/BulkJobData.md +22 -0
  238. data/docs/BulkOutputFormat.md +15 -0
  239. data/docs/BulkReportingJobStatus.md +15 -0
  240. data/docs/BulkRequestStatus.md +15 -0
  241. data/docs/BulkUpsertRequest.md +20 -0
  242. data/docs/BulkUpsertRequestCreate.md +32 -0
  243. data/docs/BulkUpsertRequestCreateCatalogProductGroupsItems.md +49 -0
  244. data/docs/BulkUpsertRequestUpdate.md +32 -0
  245. data/docs/BulkUpsertRequestUpdateCatalogProductGroupsItems.md +49 -0
  246. data/docs/BulkUpsertResponse.md +18 -0
  247. data/docs/BusinessAccessAssetsApi.md +945 -0
  248. data/docs/BusinessAccessInviteApi.md +447 -0
  249. data/docs/BusinessAccessRelationshipsApi.md +690 -0
  250. data/docs/BusinessAccessRole.md +15 -0
  251. data/docs/BusinessAccessUserSummary.md +22 -0
  252. data/docs/BusinessAssetMembersGet200Response.md +20 -0
  253. data/docs/BusinessAssets.md +26 -0
  254. data/docs/BusinessAssetsGet200Response.md +20 -0
  255. data/docs/BusinessMemberAssetsGetResponse.md +24 -0
  256. data/docs/BusinessMemberAssetsSummary.md +20 -0
  257. data/docs/BusinessMemberSortBy.md +15 -0
  258. data/docs/BusinessMembersAssetAccessDeleteBody.md +18 -0
  259. data/docs/BusinessMembershipMember.md +20 -0
  260. data/docs/BusinessPartnerAssetAccessGet200Response.md +20 -0
  261. data/docs/BusinessRoleForInvite.md +15 -0
  262. data/docs/BusinessRoleForMembers.md +15 -0
  263. data/docs/BusinessSearchBy.md +15 -0
  264. data/docs/BusinessToAdAccountSharedAudience.md +22 -0
  265. data/docs/BusinessToAdAccountSharedAudienceUpdateWithRequiredBody.md +22 -0
  266. data/docs/BusinessToBusinessSharedAudience.md +22 -0
  267. data/docs/BusinessToBusinessSharedAudienceUpdateWithRequiredBody.md +22 -0
  268. data/docs/Campaign.md +68 -0
  269. data/docs/CampaignAdPreview.md +38 -0
  270. data/docs/CampaignAdPreviewCreate.md +18 -0
  271. data/docs/CampaignAdPreviewCreate200ResponseInner.md +18 -0
  272. data/docs/CampaignAdPreviewCreate200ResponseInnerData.md +49 -0
  273. data/docs/CampaignAdPreviewCreate200ResponseInnerDataOneOf.md +18 -0
  274. data/docs/CampaignAdPreviewDelete200ResponseInner.md +18 -0
  275. data/docs/CampaignAdPreviewDelete200ResponseInnerStatus.md +49 -0
  276. data/docs/CampaignAudienceMultipliers.md +18 -0
  277. data/docs/CampaignBatchItem.md +20 -0
  278. data/docs/CampaignBatchResponseData.md +68 -0
  279. data/docs/CampaignBatchUpdateItem.md +62 -0
  280. data/docs/CampaignBatchWriteResponseModel.md +18 -0
  281. data/docs/CampaignBidOptions.md +30 -0
  282. data/docs/CampaignBidOptionsCreate.md +30 -0
  283. data/docs/CampaignBidOptionsUpdate.md +32 -0
  284. data/docs/CampaignBidOptionsUpdateMaskItems.md +15 -0
  285. data/docs/CampaignCreateItem.md +58 -0
  286. data/docs/CampaignCreateRequest.md +54 -0
  287. data/docs/CampaignCreateRequestAllOf1.md +36 -0
  288. data/docs/CampaignDeliveryEstimatesCampaign.md +30 -0
  289. data/docs/CampaignDeliveryEstimatesDerivedMetrics.md +70 -0
  290. data/docs/CampaignDeliveryEstimatesResponse.md +22 -0
  291. data/docs/CampaignObjectiveType.md +15 -0
  292. data/docs/CampaignPlanningAdGroupAudienceSize.md +20 -0
  293. data/docs/CampaignPlanningBudgetRecommendation.md +24 -0
  294. data/docs/CampaignPlanningBudgetRecommendationPoint.md +20 -0
  295. data/docs/CampaignPlanningConfidenceLevelAlert.md +22 -0
  296. data/docs/CampaignPlanningConfidenceLevelAlertReason.md +15 -0
  297. data/docs/CampaignPlanningConfidenceLevelAlertSeverity.md +15 -0
  298. data/docs/CampaignPlanningConversionAttribution.md +22 -0
  299. data/docs/CampaignPlanningConversionAttributionWindowDays.md +15 -0
  300. data/docs/CampaignPlanningConversionEvent.md +15 -0
  301. data/docs/CampaignPlanningConversionRate.md +22 -0
  302. data/docs/CampaignPlanningCurveEstimate.md +20 -0
  303. data/docs/CampaignPlanningEstimationType.md +15 -0
  304. data/docs/CampaignPlanningExperimentBudgetRecommendation.md +24 -0
  305. data/docs/CampaignPlanningPointEstimate.md +26 -0
  306. data/docs/CampaignPlanningResponseError.md +20 -0
  307. data/docs/CampaignPlanningResponseErrorCode.md +15 -0
  308. data/docs/CampaignUpdateRequest.md +56 -0
  309. data/docs/CampaignUpdateRequestAllOf2.md +28 -0
  310. data/docs/CampaignsAnalyticsMetrics.md +20 -0
  311. data/docs/CampaignsApi.md +674 -0
  312. data/docs/CampaignsList200Response.md +20 -0
  313. data/docs/CancelInviteException.md +20 -0
  314. data/docs/CancelInviteResult.md +24 -0
  315. data/docs/CancelInviteResultItem.md +20 -0
  316. data/docs/CancelInviteResultUser.md +22 -0
  317. data/docs/CancelInvitesRequest.md +18 -0
  318. data/docs/CancelInvitesResponse.md +18 -0
  319. data/docs/CarouselSlot.md +22 -0
  320. data/docs/CartingProduct.md +26 -0
  321. data/docs/CartingRetailer.md +20 -0
  322. data/docs/Catalog.md +26 -0
  323. data/docs/CatalogBinding.md +22 -0
  324. data/docs/CatalogCreate.md +20 -0
  325. data/docs/CatalogFeedsApi.md +632 -0
  326. data/docs/CatalogItemsApi.md +235 -0
  327. data/docs/CatalogProductGroupsApi.md +771 -0
  328. data/docs/CatalogReportsApi.md +233 -0
  329. data/docs/CatalogSupplementalApi.md +543 -0
  330. data/docs/CatalogUpdate.md +20 -0
  331. data/docs/CatalogsAiContentDisclosure.md +20 -0
  332. data/docs/CatalogsAiContentDisclosureLabel.md +15 -0
  333. data/docs/CatalogsApi.md +65 -767
  334. data/docs/CatalogsAvailableFilterValues.md +82 -0
  335. data/docs/CatalogsBaseFilterKeys.md +84 -0
  336. data/docs/CatalogsBaseFiltersAllOf.md +18 -0
  337. data/docs/CatalogsBaseFiltersAnyOf.md +18 -0
  338. data/docs/CatalogsCreateCreativeAssetsItem.md +22 -0
  339. data/docs/CatalogsCreateHotelItem.md +22 -0
  340. data/docs/CatalogsCreateReportResponse.md +18 -0
  341. data/docs/CatalogsCreateRetailItem.md +22 -0
  342. data/docs/CatalogsCreativeAssetsAttributes.md +46 -0
  343. data/docs/CatalogsCreativeAssetsAvailableFilterValues.md +20 -0
  344. data/docs/CatalogsCreativeAssetsBatchItem.md +85 -0
  345. data/docs/CatalogsCreativeAssetsBatchRequest.md +26 -0
  346. data/docs/CatalogsCreativeAssetsFeed.md +44 -0
  347. data/docs/CatalogsCreativeAssetsFeedsCreateRequest.md +38 -0
  348. data/docs/CatalogsCreativeAssetsFeedsCreateRequestDefaultLocale.md +15 -0
  349. data/docs/CatalogsCreativeAssetsFeedsUpdateRequest.md +32 -0
  350. data/docs/CatalogsCreativeAssetsFilterValuesMap.md +42 -0
  351. data/docs/CatalogsCreativeAssetsItemErrorResponse.md +24 -0
  352. data/docs/CatalogsCreativeAssetsItemResponse.md +26 -0
  353. data/docs/CatalogsCreativeAssetsItemsBatch.md +28 -0
  354. data/docs/CatalogsCreativeAssetsItemsPostFilter.md +22 -0
  355. data/docs/CatalogsCreativeAssetsListProductsByCatalogBasedFilterRequest.md +22 -0
  356. data/docs/CatalogsCreativeAssetsProduct.md +22 -0
  357. data/docs/CatalogsCreativeAssetsProductGroup.md +32 -0
  358. data/docs/CatalogsCreativeAssetsProductGroupCreateRequest.md +26 -0
  359. data/docs/CatalogsCreativeAssetsProductGroupFilterKeys.md +48 -0
  360. data/docs/CatalogsCreativeAssetsProductGroupFilters.md +20 -0
  361. data/docs/CatalogsCreativeAssetsProductGroupFiltersAllOf.md +18 -0
  362. data/docs/CatalogsCreativeAssetsProductGroupFiltersAnyOf.md +18 -0
  363. data/docs/CatalogsCreativeAssetsProductGroupProductCounts.md +26 -0
  364. data/docs/CatalogsCreativeAssetsProductGroupUpdateRequest.md +24 -0
  365. data/docs/CatalogsCreativeAssetsProductMetadata.md +20 -0
  366. data/docs/CatalogsDeleteCreativeAssetsItem.md +20 -0
  367. data/docs/CatalogsDeleteHotelItem.md +20 -0
  368. data/docs/CatalogsDeleteRetailItem.md +22 -0
  369. data/docs/CatalogsFeed.md +74 -34
  370. data/docs/CatalogsFeedCreateRequestSchema.md +49 -0
  371. data/docs/CatalogsFeedIngestion.md +24 -0
  372. data/docs/CatalogsFeedIngestionDetails.md +3 -1
  373. data/docs/CatalogsFeedIngestionErrors.md +18 -10
  374. data/docs/CatalogsFeedIngestionInfo.md +3 -3
  375. data/docs/CatalogsFeedIngestionWarnings.md +188 -0
  376. data/docs/CatalogsFeedProcessingResult.md +10 -8
  377. data/docs/CatalogsFeedProcessingSchedule.md +2 -2
  378. data/docs/CatalogsFeedProcessingScheduleTimezone.md +15 -0
  379. data/docs/CatalogsFeedProductCounts.md +3 -1
  380. data/docs/CatalogsFeedUpdateRequestSchema.md +49 -0
  381. data/docs/CatalogsFeedValidationErrors.md +56 -58
  382. data/docs/CatalogsFeedValidationWarnings.md +414 -82
  383. data/docs/CatalogsFeedVideoCounts.md +22 -0
  384. data/docs/CatalogsFeedsCreateRequest.md +11 -9
  385. data/docs/CatalogsFeedsUpdateRequest.md +4 -4
  386. data/docs/CatalogsHotelAddress.md +26 -0
  387. data/docs/CatalogsHotelAttributes.md +56 -0
  388. data/docs/CatalogsHotelAvailableFilterValues.md +20 -0
  389. data/docs/CatalogsHotelBatchItem.md +85 -0
  390. data/docs/CatalogsHotelBatchRequest.md +26 -0
  391. data/docs/CatalogsHotelFeed.md +42 -0
  392. data/docs/CatalogsHotelFeedsCreateRequest.md +36 -0
  393. data/docs/CatalogsHotelFeedsUpdateRequest.md +32 -0
  394. data/docs/CatalogsHotelFilterValuesMap.md +28 -0
  395. data/docs/CatalogsHotelGuestRatings.md +24 -0
  396. data/docs/CatalogsHotelItemErrorResponse.md +24 -0
  397. data/docs/CatalogsHotelItemResponse.md +26 -0
  398. data/docs/CatalogsHotelItemsBatch.md +28 -0
  399. data/docs/CatalogsHotelItemsPostFilter.md +22 -0
  400. data/docs/CatalogsHotelListProductsByCatalogBasedFilterRequest.md +22 -0
  401. data/docs/CatalogsHotelMainImage.md +20 -0
  402. data/docs/CatalogsHotelProduct.md +22 -0
  403. data/docs/CatalogsHotelProductGroup.md +34 -0
  404. data/docs/CatalogsHotelProductGroupCreateRequest.md +26 -0
  405. data/docs/CatalogsHotelProductGroupFilterKeys.md +36 -0
  406. data/docs/CatalogsHotelProductGroupFilters.md +20 -0
  407. data/docs/CatalogsHotelProductGroupFiltersAllOf.md +18 -0
  408. data/docs/CatalogsHotelProductGroupFiltersAnyOf.md +18 -0
  409. data/docs/CatalogsHotelProductGroupProductCounts.md +20 -0
  410. data/docs/CatalogsHotelProductGroupType.md +15 -0
  411. data/docs/CatalogsHotelProductGroupUpdateRequest.md +24 -0
  412. data/docs/CatalogsHotelProductMetadata.md +18 -0
  413. data/docs/CatalogsHotelReportParameters.md +20 -0
  414. data/docs/CatalogsHotelReportParametersReport.md +79 -0
  415. data/docs/CatalogsHotelReportStatsParameters.md +20 -0
  416. data/docs/CatalogsHotelReportStatsParametersReport.md +79 -0
  417. data/docs/CatalogsItemValidationDetails.md +20 -0
  418. data/docs/CatalogsItemValidationErrors.md +62 -0
  419. data/docs/CatalogsItemValidationIssue.md +15 -0
  420. data/docs/CatalogsItemValidationIssues.md +24 -0
  421. data/docs/CatalogsItemValidationWarnings.md +428 -0
  422. data/docs/CatalogsItemsBatch.md +72 -16
  423. data/docs/CatalogsItemsBatchPostRequest.md +49 -0
  424. data/docs/CatalogsItemsBatchRequest.md +78 -14
  425. data/docs/CatalogsItemsCreateBatchRequest.md +24 -0
  426. data/docs/CatalogsItemsDeleteBatchRequest.md +24 -0
  427. data/docs/CatalogsItemsDeleteDiscontinuedBatchRequest.md +24 -0
  428. data/docs/CatalogsItemsPostFilters.md +82 -0
  429. data/docs/CatalogsItemsRequest.md +22 -0
  430. data/docs/CatalogsItemsUpdateBatchRequest.md +24 -0
  431. data/docs/CatalogsItemsUpsertBatchRequest.md +24 -0
  432. data/docs/CatalogsList200Response.md +20 -0
  433. data/docs/CatalogsListProductsByFeedBasedFilter.md +20 -0
  434. data/docs/CatalogsListProductsByFilterRequest.md +49 -0
  435. data/docs/CatalogsLocalStoresCreate200ResponseInner.md +18 -0
  436. data/docs/CatalogsLocalStoresCreate200ResponseInnerData.md +49 -0
  437. data/docs/CatalogsLocalStoresCreate200ResponseInnerDataOneOf.md +20 -0
  438. data/docs/CatalogsLocalStoresDelete200ResponseInner.md +20 -0
  439. data/docs/CatalogsLocalStoresList200Response.md +20 -0
  440. data/docs/CatalogsLocale.md +15 -0
  441. data/docs/CatalogsProduct.md +82 -0
  442. data/docs/CatalogsProductGroupCreateRequest.md +7 -5
  443. data/docs/CatalogsProductGroupCurrencyCriteria.md +3 -3
  444. data/docs/CatalogsProductGroupFilterKeys.md +45 -27
  445. data/docs/CatalogsProductGroupFilterOperatorTypeCriteria.md +22 -0
  446. data/docs/CatalogsProductGroupFilters.md +2 -2
  447. data/docs/CatalogsProductGroupFiltersAllOf.md +1 -1
  448. data/docs/CatalogsProductGroupFiltersAnyOf.md +1 -1
  449. data/docs/CatalogsProductGroupFiltersRequest.md +20 -0
  450. data/docs/CatalogsProductGroupFiltersRequestAnyOfItems0.md +18 -0
  451. data/docs/CatalogsProductGroupFiltersRequestAnyOfItems1.md +18 -0
  452. data/docs/CatalogsProductGroupMultipleCountriesCriteria.md +20 -0
  453. data/docs/CatalogsProductGroupMultipleGenderCriteria.md +20 -0
  454. data/docs/CatalogsProductGroupMultipleMediaTypesCriteria.md +20 -0
  455. data/docs/CatalogsProductGroupMultiplePinterestProductCategoryCriteria.md +20 -0
  456. data/docs/CatalogsProductGroupMultipleStringCriteria.md +3 -3
  457. data/docs/CatalogsProductGroupMultipleStringListCriteria.md +4 -4
  458. data/docs/CatalogsProductGroupPinsList200Response.md +20 -0
  459. data/docs/CatalogsProductGroupPricingCriteria.md +4 -4
  460. data/docs/CatalogsProductGroupProductCountsVertical.md +82 -0
  461. data/docs/CatalogsProductGroupUint32Criteria.md +22 -0
  462. data/docs/CatalogsProductGroupUpdateManyRequestItemsOneOfItems0.md +26 -0
  463. data/docs/CatalogsProductGroupUpdateRequest.md +6 -6
  464. data/docs/CatalogsProductGroupsCreateManyRequestItems.md +49 -0
  465. data/docs/CatalogsProductGroupsCreateRequestSchema.md +49 -0
  466. data/docs/CatalogsProductGroupsList200Response.md +20 -0
  467. data/docs/CatalogsProductGroupsUpdateRequestSchema.md +49 -0
  468. data/docs/CatalogsReport.md +22 -0
  469. data/docs/CatalogsReportDistributionIssueFilter.md +20 -0
  470. data/docs/CatalogsReportDistributionStats.md +32 -0
  471. data/docs/CatalogsReportFeedIngestionFilter.md +22 -0
  472. data/docs/CatalogsReportFeedIngestionStats.md +30 -0
  473. data/docs/CatalogsReportParameters.md +79 -0
  474. data/docs/CatalogsReportStats.md +79 -0
  475. data/docs/CatalogsReportStatsParameters.md +79 -0
  476. data/docs/CatalogsRetailAvailableFilterValues.md +20 -0
  477. data/docs/CatalogsRetailBatchRequest.md +26 -0
  478. data/docs/CatalogsRetailBatchRequestItemsItems.md +85 -0
  479. data/docs/CatalogsRetailFeed.md +44 -0
  480. data/docs/CatalogsRetailFeedsCreateRequest.md +40 -0
  481. data/docs/CatalogsRetailFeedsUpdateRequest.md +34 -0
  482. data/docs/CatalogsRetailFilterValuesMap.md +64 -0
  483. data/docs/CatalogsRetailItemErrorResponse.md +24 -0
  484. data/docs/CatalogsRetailItemResponse.md +26 -0
  485. data/docs/CatalogsRetailItemsBatch.md +28 -0
  486. data/docs/CatalogsRetailItemsPostFilter.md +22 -0
  487. data/docs/CatalogsRetailListProductsByCatalogBasedFilterRequest.md +26 -0
  488. data/docs/CatalogsRetailProduct.md +22 -0
  489. data/docs/CatalogsRetailProductGroup.md +44 -0
  490. data/docs/CatalogsRetailProductGroupCreateRequest.md +30 -0
  491. data/docs/CatalogsRetailProductGroupProductCounts.md +28 -0
  492. data/docs/CatalogsRetailProductGroupUpdateRequest.md +28 -0
  493. data/docs/CatalogsRetailProductMetadata.md +28 -0
  494. data/docs/CatalogsRetailReportAllItemsFilter.md +22 -0
  495. data/docs/CatalogsRetailReportParameters.md +20 -0
  496. data/docs/CatalogsRetailReportParametersReport.md +82 -0
  497. data/docs/CatalogsRetailReportStatsParameters.md +20 -0
  498. data/docs/CatalogsRetailReportStatsParametersReport.md +79 -0
  499. data/docs/CatalogsType.md +15 -0
  500. data/docs/CatalogsUpdatableCreativeAssetsAttributes.md +40 -0
  501. data/docs/CatalogsUpdatableHotelAttributes.md +50 -0
  502. data/docs/CatalogsUpdateCreativeAssetsItem.md +22 -0
  503. data/docs/CatalogsUpdateHotelItem.md +22 -0
  504. data/docs/CatalogsUpdateRetailItem.md +24 -0
  505. data/docs/CatalogsUpsertCreativeAssetsItem.md +22 -0
  506. data/docs/CatalogsUpsertHotelItem.md +22 -0
  507. data/docs/CatalogsUpsertRetailItem.md +22 -0
  508. data/docs/CatalogsVerticalBatchRequest.md +82 -0
  509. data/docs/CatalogsVerticalFeedsCreateRequest.md +82 -0
  510. data/docs/CatalogsVerticalFeedsUpdateRequest.md +82 -0
  511. data/docs/CatalogsVerticalProductGroup.md +82 -0
  512. data/docs/CatalogsVerticalProductGroupCreateRequest.md +82 -0
  513. data/docs/CatalogsVerticalProductGroupUpdateRequest.md +82 -0
  514. data/docs/CatalogsVerticalsListProductsByCatalogBasedFilterRequest.md +82 -0
  515. data/docs/ChangeHistoryDataType.md +15 -0
  516. data/docs/ChangeHistoryOperationType.md +15 -0
  517. data/docs/CollectionsHeaderType.md +15 -0
  518. data/docs/ConditionFilter.md +1 -1
  519. data/docs/ContentType.md +15 -0
  520. data/docs/ConversionAccessToken.md +20 -0
  521. data/docs/ConversionApiResponseEventsItems.md +22 -0
  522. data/docs/ConversionDeletionRequest.md +24 -0
  523. data/docs/ConversionDeletionRequestCreate.md +18 -0
  524. data/docs/ConversionDeletionRequestEPIKTargets.md +18 -0
  525. data/docs/ConversionDeletionRequestList200Response.md +20 -0
  526. data/docs/ConversionDeletionRequestStatus.md +15 -0
  527. data/docs/ConversionDeletionRequestTargets.md +20 -0
  528. data/docs/ConversionDeletionRequestUserEmailTargets.md +18 -0
  529. data/docs/ConversionDeletionRequestsApi.md +313 -0
  530. data/docs/ConversionEqsApi.md +88 -0
  531. data/docs/ConversionEvent.md +15 -0
  532. data/docs/ConversionEventAppInfo.md +34 -0
  533. data/docs/ConversionEventDeviceInfo.md +64 -0
  534. data/docs/ConversionEventIngestionSource.md +15 -0
  535. data/docs/ConversionEventResponse.md +26 -0
  536. data/docs/ConversionEvents.md +22 -0
  537. data/docs/ConversionEventsApi.md +86 -0
  538. data/docs/ConversionEventsCreate.md +18 -0
  539. data/docs/ConversionEventsDataItems.md +58 -0
  540. data/docs/ConversionEventsDataItemsCustomData.md +46 -0
  541. data/docs/ConversionEventsDataItemsCustomDataContentsItems.md +30 -0
  542. data/docs/ConversionEventsUserDataProperties.md +48 -0
  543. data/docs/ConversionHealthSelectionItem.md +24 -0
  544. data/docs/ConversionLearningModeType.md +15 -0
  545. data/docs/ConversionMSOTEventsCreate.md +48 -0
  546. data/docs/ConversionObjectiveType.md +15 -0
  547. data/docs/ConversionProductAttributionType.md +15 -0
  548. data/docs/ConversionProductReport.md +26 -0
  549. data/docs/ConversionProductReportBreakdownType.md +15 -0
  550. data/docs/ConversionProductReportCreate.md +46 -0
  551. data/docs/ConversionProductReportGranularity.md +15 -0
  552. data/docs/ConversionProductReportLevel.md +15 -0
  553. data/docs/ConversionProductReportingColumn.md +15 -0
  554. data/docs/ConversionTag.md +34 -0
  555. data/docs/ConversionTagCommon.md +30 -0
  556. data/docs/ConversionTagConfigs.md +34 -0
  557. data/docs/ConversionTagCreate.md +34 -0
  558. data/docs/ConversionTagResponse.md +34 -0
  559. data/docs/ConversionTagType.md +15 -0
  560. data/docs/ConversionTagTypeOptimal.md +15 -0
  561. data/docs/ConversionTagV3GoalMetadata.md +28 -0
  562. data/docs/ConversionTagsApi.md +385 -0
  563. data/docs/ConversionTagsList200Response.md +18 -0
  564. data/docs/ConversionsApi.md +305 -0
  565. data/docs/CountryFilter.md +18 -0
  566. data/docs/CreateAssetAccessRequestBody.md +18 -0
  567. data/docs/CreateAssetAccessRequestItem.md +20 -0
  568. data/docs/CreateAssetAccessRequestResponse.md +20 -0
  569. data/docs/CreateAssetInvitesRequest.md +18 -0
  570. data/docs/CreateAssetInvitesRequestItem.md +22 -0
  571. data/docs/CreateInvitesResultsResponseArray.md +18 -0
  572. data/docs/CreateMembershipOrPartnershipInvitesBody.md +24 -0
  573. data/docs/CreationSource.md +15 -0
  574. data/docs/CreativeAssetsIdFilter.md +18 -0
  575. data/docs/CreativeAssetsProcessingRecord.md +24 -0
  576. data/docs/CreativeAssetsVisibilityType.md +15 -0
  577. data/docs/CreativeType.md +15 -0
  578. data/docs/CurrencyFilter.md +1 -1
  579. data/docs/CustomConversionEventMetrics.md +20 -0
  580. data/docs/CustomLabel0Filter.md +1 -1
  581. data/docs/CustomLabel1Filter.md +1 -1
  582. data/docs/CustomLabel2Filter.md +1 -1
  583. data/docs/CustomLabel3Filter.md +1 -1
  584. data/docs/CustomLabel4Filter.md +1 -1
  585. data/docs/CustomNumber0Filter.md +18 -0
  586. data/docs/CustomNumber1Filter.md +18 -0
  587. data/docs/CustomNumber2Filter.md +18 -0
  588. data/docs/CustomNumber3Filter.md +18 -0
  589. data/docs/CustomNumber4Filter.md +18 -0
  590. data/docs/CustomerList.md +40 -0
  591. data/docs/CustomerListCreate.md +26 -0
  592. data/docs/CustomerListRecordRow.md +32 -0
  593. data/docs/CustomerListStatus.md +15 -0
  594. data/docs/CustomerListUpdateWithRequiredBody.md +22 -0
  595. data/docs/CustomerListUpload.md +34 -0
  596. data/docs/CustomerListUploadCreateRequest.md +20 -0
  597. data/docs/CustomerListUploadCreateResponse.md +20 -0
  598. data/docs/CustomerListUploadsApi.md +229 -0
  599. data/docs/CustomerListsApi.md +308 -0
  600. data/docs/CustomerListsList200Response.md +20 -0
  601. data/docs/CustomerSegment.md +30 -0
  602. data/docs/CustomerSegmentApi.md +232 -0
  603. data/docs/CustomerSegmentCreate.md +20 -0
  604. data/docs/CustomerSegmentList200Response.md +20 -0
  605. data/docs/CustomerSegmentUpdateRequestUpdateWithRequiredBody.md +22 -0
  606. data/docs/CustomizableCTAType.md +15 -0
  607. data/docs/DataStatus.md +15 -0
  608. data/docs/DeleteBusinessMembership200Response.md +18 -0
  609. data/docs/DeleteBusinessMembershipBody.md +18 -0
  610. data/docs/DeleteBusinessMembershipMember.md +20 -0
  611. data/docs/DeleteBusinessPartners.md +18 -0
  612. data/docs/DeleteBusinessPartnersDelete.md +20 -0
  613. data/docs/DeleteMemberAccessResult.md +20 -0
  614. data/docs/DeleteMemberAccessResultsResponseArray.md +18 -0
  615. data/docs/DeleteMemberAssetAccessItem.md +20 -0
  616. data/docs/DeletePartnerAssetAccessBody.md +18 -0
  617. data/docs/DeletePartnerAssetAccessItem.md +22 -0
  618. data/docs/DeletePartnerAssetAccessResult.md +26 -0
  619. data/docs/DeletePartnerAssetAccessResultsResponseArray.md +18 -0
  620. data/docs/DeliveryEstimateObjectiveType.md +15 -0
  621. data/docs/DeliveryMetricsGet200Response.md +18 -0
  622. data/docs/DeliveryMetricsResponseItemsItems.md +24 -0
  623. data/docs/DetailedError.md +22 -0
  624. data/docs/DisclosureType.md +15 -0
  625. data/docs/DiscountStatus.md +15 -0
  626. data/docs/DynamicTitlesDownloadCSV.md +18 -0
  627. data/docs/DynamicTitlesGetStatus.md +22 -0
  628. data/docs/DynamicTitlesProcessCSV.md +20 -0
  629. data/docs/DynamicTitlesProcessCSVCreate.md +18 -0
  630. data/docs/DynamicTitlesProcessCSVError.md +20 -0
  631. data/docs/DynamicTitlesUploadURL.md +22 -0
  632. data/docs/EnhancedMatchStatusType.md +15 -0
  633. data/docs/EntityDataChangeHistory.md +26 -0
  634. data/docs/EntityHistory.md +30 -0
  635. data/docs/EntityLabel.md +24 -0
  636. data/docs/EntityLabelError.md +20 -0
  637. data/docs/EntityLabelStatus.md +15 -0
  638. data/docs/ErrorDetail.md +22 -0
  639. data/docs/EventData.md +38 -0
  640. data/docs/EventProcessingStatus.md +15 -0
  641. data/docs/EventQualityScore.md +26 -0
  642. data/docs/Exception.md +20 -0
  643. data/docs/FeaturedTrend.md +22 -0
  644. data/docs/FeedProcessingResultsList200Response.md +20 -0
  645. data/docs/FeedsList200Response.md +20 -0
  646. data/docs/FilterOperatorType.md +15 -0
  647. data/docs/FollowUser.md +20 -0
  648. data/docs/FollowUserCreate.md +18 -0
  649. data/docs/FollowersList200Response.md +20 -0
  650. data/docs/FormFactor.md +15 -0
  651. data/docs/FreqBidMultiplierTimeWindow.md +15 -0
  652. data/docs/FrequencyGoalMetadata.md +20 -0
  653. data/docs/FrequencyGoalMetadataTimerange.md +15 -0
  654. data/docs/FrequencyMultipliers.md +18 -0
  655. data/docs/Gender.md +15 -0
  656. data/docs/GenderBucket.md +15 -0
  657. data/docs/GenderDemographics.md +22 -0
  658. data/docs/GenderFilter.md +1 -1
  659. data/docs/GenderMultipliers.md +18 -0
  660. data/docs/GetBusinessEmployers200Response.md +20 -0
  661. data/docs/GetInvites200Response.md +20 -0
  662. data/docs/GoogleProductCategory0Filter.md +1 -1
  663. data/docs/GoogleProductCategory1Filter.md +1 -1
  664. data/docs/GoogleProductCategory2Filter.md +1 -1
  665. data/docs/GoogleProductCategory3Filter.md +1 -1
  666. data/docs/GoogleProductCategory4Filter.md +1 -1
  667. data/docs/GoogleProductCategory5Filter.md +1 -1
  668. data/docs/GoogleProductCategory6Filter.md +1 -1
  669. data/docs/GridClickType.md +15 -0
  670. data/docs/HotelIdFilter.md +18 -0
  671. data/docs/HotelProcessingRecord.md +24 -0
  672. data/docs/HttpMethod.md +15 -0
  673. data/docs/ImageDetails.md +3 -3
  674. data/docs/ImageMetadata.md +26 -0
  675. data/docs/ImageSize.md +24 -0
  676. data/docs/IneligibleProductTagErrorItem.md +20 -0
  677. data/docs/IneligibleProductTagReason.md +15 -0
  678. data/docs/IneligibleProductTagsErrorDetails.md +18 -0
  679. data/docs/IngestionSource.md +15 -0
  680. data/docs/IngestionSourceOptions.md +15 -0
  681. data/docs/InnerProductCategoriesMetricsHighlights.md +18 -0
  682. data/docs/IntegrationLog.md +42 -0
  683. data/docs/IntegrationLogClientError.md +34 -0
  684. data/docs/IntegrationLogClientRequest.md +28 -0
  685. data/docs/IntegrationLogEventType.md +15 -0
  686. data/docs/IntegrationLogLevel.md +15 -0
  687. data/docs/IntegrationLogsInvalidLogResponse.md +18 -0
  688. data/docs/IntegrationLogsInvalidLogResponseRejectedLogsItems.md +24 -0
  689. data/docs/IntegrationLogsRequestCreate.md +18 -0
  690. data/docs/IntegrationLogsSuccessResponse.md +18 -0
  691. data/docs/IntegrationMetadata.md +44 -0
  692. data/docs/IntegrationMetadataCreate.md +42 -0
  693. data/docs/IntegrationMetadataUpdate.md +40 -0
  694. data/docs/IntegrationRecord.md +50 -0
  695. data/docs/IntegrationsApi.md +503 -0
  696. data/docs/IntegrationsGetList200Response.md +20 -0
  697. data/docs/IntendedPromotionType.md +15 -0
  698. data/docs/Interest.md +24 -0
  699. data/docs/InterestsEnum.md +15 -0
  700. data/docs/InviteActionResultItem.md +20 -0
  701. data/docs/InviteAssetsSummary.md +20 -0
  702. data/docs/InviteAssetsSummaryItem.md +20 -0
  703. data/docs/InviteBusinessRoleBinding.md +28 -0
  704. data/docs/InviteDataResponse.md +26 -0
  705. data/docs/InviteExceptionResponse.md +24 -0
  706. data/docs/InviteFilterStatus.md +15 -0
  707. data/docs/InviteResponse.md +34 -0
  708. data/docs/InviteStatus.md +15 -0
  709. data/docs/InviteType.md +15 -0
  710. data/docs/ItemAttributes.md +157 -31
  711. data/docs/ItemAttributesRequest.md +232 -0
  712. data/docs/ItemAttributesRequestImageLink.md +49 -0
  713. data/docs/ItemAvailability.md +15 -0
  714. data/docs/ItemCreateBatchRecord.md +20 -0
  715. data/docs/ItemDeleteBatchRecord.md +18 -0
  716. data/docs/ItemDeleteDiscontinuedBatchRecord.md +18 -0
  717. data/docs/ItemGroupIdFilter.md +1 -1
  718. data/docs/ItemIdFilter.md +1 -1
  719. data/docs/ItemIdStoreCodePair.md +20 -0
  720. data/docs/ItemProcessingRecord.md +5 -5
  721. data/docs/ItemResponse.md +91 -0
  722. data/docs/ItemUpdateBatchRecord.md +22 -0
  723. data/docs/ItemUpsertBatchRecord.md +20 -0
  724. data/docs/ItemsIssuesList200Response.md +20 -0
  725. data/docs/ItemsPost200Response.md +18 -0
  726. data/docs/Keyword.md +32 -0
  727. data/docs/KeywordCreateItem.md +22 -0
  728. data/docs/KeywordError.md +20 -0
  729. data/docs/KeywordInfo.md +20 -0
  730. data/docs/KeywordMetrics.md +18 -0
  731. data/docs/KeywordMetricsResponse.md +20 -0
  732. data/docs/KeywordUpdateGenerated.md +22 -0
  733. data/docs/KeywordUpdateItem.md +22 -0
  734. data/docs/Keywords.md +20 -0
  735. data/docs/KeywordsApi.md +403 -0
  736. data/docs/KeywordsCommon.md +22 -0
  737. data/docs/KeywordsCreate.md +20 -0
  738. data/docs/KeywordsGet200Response.md +20 -0
  739. data/docs/KeywordsMetricsArrayResponse.md +18 -0
  740. data/docs/KeywordsRequest.md +20 -0
  741. data/docs/KeywordsUpdate.md +18 -0
  742. data/docs/Label.md +24 -0
  743. data/docs/LabelBulkCreateRequest.md +20 -0
  744. data/docs/LabelBulkUpdateRequest.md +22 -0
  745. data/docs/LabelCreateItem.md +20 -0
  746. data/docs/LabelCreateRequest.md +18 -0
  747. data/docs/LabelError.md +20 -0
  748. data/docs/LabelErrorData.md +24 -0
  749. data/docs/LabelParentType.md +15 -0
  750. data/docs/LabelStatus.md +15 -0
  751. data/docs/LabelStatusBulkUpdate.md +15 -0
  752. data/docs/LabelType.md +15 -0
  753. data/docs/LabelUpdateItem.md +22 -0
  754. data/docs/LabelUpdateRequest.md +18 -0
  755. data/docs/LabeledEntities.md +20 -0
  756. data/docs/LabeledEntitiesCreate.md +18 -0
  757. data/docs/LabelsApi.md +383 -0
  758. data/docs/LabelsList200Response.md +20 -0
  759. data/docs/LabelsResponse.md +20 -0
  760. data/docs/LeadAdsApi.md +302 -0
  761. data/docs/LeadForm.md +40 -0
  762. data/docs/LeadFormBatchUpdate.md +34 -0
  763. data/docs/LeadFormCreate.md +32 -0
  764. data/docs/LeadFormPolicyLink.md +20 -0
  765. data/docs/LeadFormQuestion.md +24 -0
  766. data/docs/LeadFormQuestionFieldType.md +15 -0
  767. data/docs/LeadFormQuestionType.md +15 -0
  768. data/docs/LeadFormStatus.md +15 -0
  769. data/docs/LeadFormTest.md +18 -0
  770. data/docs/LeadFormTestCreate.md +18 -0
  771. data/docs/LeadFormsApi.md +375 -0
  772. data/docs/LeadFormsCreate200Response.md +18 -0
  773. data/docs/LeadFormsCreate200ResponseItemsInner.md +20 -0
  774. data/docs/LeadFormsList200Response.md +20 -0
  775. data/docs/LeadSubscription.md +34 -0
  776. data/docs/LeadSubscriptionCreate.md +20 -0
  777. data/docs/LeadSubscriptionPostParams.md +40 -0
  778. data/docs/LeadSubscriptionPostParamsCreate.md +26 -0
  779. data/docs/LeadsExportApi.md +151 -0
  780. data/docs/LeadsExportResponseData.md +20 -0
  781. data/docs/LeadsExportStatus.md +15 -0
  782. data/docs/LeadsExports.md +18 -0
  783. data/docs/LeadsExportsCreate.md +22 -0
  784. data/docs/LineItem.md +32 -0
  785. data/docs/LinkFilter.md +18 -0
  786. data/docs/LinkedBusiness.md +26 -0
  787. data/docs/LocalInventoryCreateOperation.md +24 -0
  788. data/docs/LocalInventoryDeleteOperation.md +22 -0
  789. data/docs/LocalInventoryItemResponse.md +32 -0
  790. data/docs/LocalInventoryItemsBatch.md +26 -0
  791. data/docs/LocalInventoryItemsBatchCreate.md +18 -0
  792. data/docs/LocalInventoryItemsGet.md +18 -0
  793. data/docs/LocalInventoryItemsGetCreate.md +18 -0
  794. data/docs/LocalInventoryOperation.md +85 -0
  795. data/docs/LocalInventoryOperationResult.md +28 -0
  796. data/docs/LocalInventoryUpdateOperation.md +24 -0
  797. data/docs/LocalInventoryUpsertOperation.md +24 -0
  798. data/docs/LocalStore.md +42 -0
  799. data/docs/LocalStoreBatchUpdate.md +38 -0
  800. data/docs/LocalStoreCreate.md +36 -0
  801. data/docs/LookbackPeriodOptions.md +15 -0
  802. data/docs/MMMReport.md +28 -0
  803. data/docs/MMMReportCreate.md +36 -0
  804. data/docs/MMMReportGranularity.md +15 -0
  805. data/docs/MMMReportLevel.md +15 -0
  806. data/docs/MMMReportingColumn.md +15 -0
  807. data/docs/MMMReportingTargetingType.md +15 -0
  808. data/docs/MatchType.md +15 -0
  809. data/docs/MatchTypeResponse.md +15 -0
  810. data/docs/MaxPriceFilter.md +1 -1
  811. data/docs/Media.md +22 -0
  812. data/docs/MediaApi.md +21 -21
  813. data/docs/MediaList200Response.md +20 -0
  814. data/docs/MediaType.md +15 -0
  815. data/docs/MediaTypeFilter.md +18 -0
  816. data/docs/MediaUpload.md +7 -7
  817. data/docs/MediaUploadCreate.md +18 -0
  818. data/docs/MediaUploadParameters.md +32 -0
  819. data/docs/MemberBusinessRole.md +15 -0
  820. data/docs/MetricsReportingTemplateType.md +15 -0
  821. data/docs/MetricsResponse.md +18 -0
  822. data/docs/MetricsResponseDataItems.md +22 -0
  823. data/docs/MinPriceFilter.md +1 -1
  824. data/docs/MobileAppPlatform.md +15 -0
  825. data/docs/MsotEventName.md +15 -0
  826. data/docs/MsotEventsApi.md +78 -0
  827. data/docs/MultiPinsAnalyticsMetricTypesItem.md +15 -0
  828. data/docs/NetworkType.md +15 -0
  829. data/docs/NonDraftEntityStatus.md +15 -0
  830. data/docs/NotificationApi.md +80 -0
  831. data/docs/NotificationPostRequest.md +49 -0
  832. data/docs/NotificationResponse.md +22 -0
  833. data/docs/NullableCatalogsItemFieldType.md +15 -0
  834. data/docs/NullableEntityStatus.md +15 -0
  835. data/docs/NullableLabelStatus.md +15 -0
  836. data/docs/NullableLabelType.md +15 -0
  837. data/docs/NullableOptimizationGoalMetadata.md +22 -0
  838. data/docs/NullablePartnerType.md +15 -0
  839. data/docs/NullalbleMatchType.md +15 -0
  840. data/docs/NumericFilterOperatorType.md +15 -0
  841. data/docs/OauthAccessToken.md +32 -0
  842. data/docs/OauthApi.md +169 -10
  843. data/docs/OperationType.md +15 -0
  844. data/docs/OptimizationGoalMetadata.md +22 -0
  845. data/docs/OptimizationType.md +15 -0
  846. data/docs/Order.md +15 -0
  847. data/docs/OrderLine.md +40 -0
  848. data/docs/OrderLineMutationError.md +20 -0
  849. data/docs/OrderLineMutationResponse.md +18 -0
  850. data/docs/OrderLineMutationResult.md +20 -0
  851. data/docs/OrderLinePaidType.md +15 -0
  852. data/docs/OrderLineStatus.md +15 -0
  853. data/docs/OrderLinesApi.md +157 -0
  854. data/docs/OrderLinesList200Response.md +20 -0
  855. data/docs/OsFamily.md +15 -0
  856. data/docs/OverallStatusOptions.md +15 -0
  857. data/docs/PageVisitConversionTagsGet200Response.md +20 -0
  858. data/docs/PartnerMetadata.md +18 -0
  859. data/docs/PartnerType.md +15 -0
  860. data/docs/PerformancePlusCampaignSettings.md +20 -0
  861. data/docs/Permissions.md +15 -0
  862. data/docs/PermissionsWithOwner.md +15 -0
  863. data/docs/Pin.md +32 -16
  864. data/docs/PinAnalyticsDailyMetrics.md +22 -0
  865. data/docs/PinAnalyticsMetricsResponse.md +22 -0
  866. data/docs/PinBase.md +46 -0
  867. data/docs/PinCreate.md +38 -0
  868. data/docs/PinFilter.md +15 -0
  869. data/docs/PinMedia.md +78 -8
  870. data/docs/PinMediaMetadata.md +79 -0
  871. data/docs/PinMediaSource.md +10 -0
  872. data/docs/PinMediaSourceImageBase64.md +6 -4
  873. data/docs/PinMediaSourceImageURL.md +3 -1
  874. data/docs/PinMediaSourceImagesBase64.md +22 -0
  875. data/docs/PinMediaSourceImagesBase64Item.md +26 -0
  876. data/docs/PinMediaSourceImagesURL.md +22 -0
  877. data/docs/PinMediaSourceImagesURLItem.md +24 -0
  878. data/docs/PinMediaSourcePinURL.md +20 -0
  879. data/docs/PinMediaSourceVideoID.md +12 -4
  880. data/docs/PinMediaWithImage.md +4 -2
  881. data/docs/PinMediaWithImageAndVideo.md +20 -0
  882. data/docs/PinMediaWithImages.md +20 -0
  883. data/docs/PinMediaWithVideo.md +32 -0
  884. data/docs/PinMediaWithVideos.md +20 -0
  885. data/docs/PinRead.md +54 -0
  886. data/docs/PinType.md +15 -0
  887. data/docs/PinUpdate.md +32 -0
  888. data/docs/PinnerListType.md +15 -0
  889. data/docs/PinsApi.md +393 -35
  890. data/docs/PinsList200Response.md +20 -0
  891. data/docs/PinsSaveRequestCreate.md +20 -0
  892. data/docs/PinterestLibBatchItemException.md +20 -0
  893. data/docs/PinterestLibError.md +20 -0
  894. data/docs/PinterestLibPaginationOrder.md +15 -0
  895. data/docs/PinterestLibStatus204.md +18 -0
  896. data/docs/PinterestProductCategoriesFilter.md +18 -0
  897. data/docs/PlacementMultipliers.md +18 -0
  898. data/docs/PlacementTrafficType.md +15 -0
  899. data/docs/PlacementType.md +15 -0
  900. data/docs/PredictedTimeSeries.md +18 -0
  901. data/docs/PreferredMediaType.md +15 -0
  902. data/docs/PriceFilter.md +18 -0
  903. data/docs/PriceFilterPrice.md +24 -0
  904. data/docs/PrimarySort.md +15 -0
  905. data/docs/ProductAvailability.md +15 -0
  906. data/docs/ProductCategoriesDemographic.md +20 -0
  907. data/docs/ProductCategoriesEngagementType.md +15 -0
  908. data/docs/ProductCategoriesMetricsHighlights.md +22 -0
  909. data/docs/ProductCategoryDetailLookbackWindow.md +15 -0
  910. data/docs/ProductCategoryDetails.md +30 -0
  911. data/docs/ProductCategoryEnum.md +15 -0
  912. data/docs/ProductCategoryRegion.md +15 -0
  913. data/docs/ProductCondition.md +15 -0
  914. data/docs/ProductGroupAnalyticsItems.md +20 -0
  915. data/docs/ProductGroupPromotion.md +66 -0
  916. data/docs/ProductGroupPromotionCreateRequest.md +20 -0
  917. data/docs/ProductGroupPromotionCustomizableCTAType.md +15 -0
  918. data/docs/ProductGroupPromotionResponseItem.md +20 -0
  919. data/docs/ProductGroupPromotionUpdateRequest.md +20 -0
  920. data/docs/ProductGroupPromotions.md +18 -0
  921. data/docs/ProductGroupPromotionsApi.md +402 -0
  922. data/docs/ProductGroupPromotionsCreate.md +20 -0
  923. data/docs/ProductGroupPromotionsList200Response.md +20 -0
  924. data/docs/ProductGroupPromotionsUpdateWithRequiredBody.md +20 -0
  925. data/docs/ProductGroupReferenceFilter.md +18 -0
  926. data/docs/ProductTagItem.md +18 -0
  927. data/docs/ProductTagsApi.md +220 -0
  928. data/docs/ProductTagsBulkAddRequest.md +18 -0
  929. data/docs/ProductTagsBulkDeleteRequest.md +18 -0
  930. data/docs/ProductTagsError.md +22 -0
  931. data/docs/ProductTagsResponse.md +18 -0
  932. data/docs/ProductType0Filter.md +1 -1
  933. data/docs/ProductType1Filter.md +1 -1
  934. data/docs/ProductType2Filter.md +1 -1
  935. data/docs/ProductType3Filter.md +1 -1
  936. data/docs/ProductType4Filter.md +1 -1
  937. data/docs/Promotion.md +42 -0
  938. data/docs/PromotionApplicationLevel.md +15 -0
  939. data/docs/PromotionArrayElement.md +20 -0
  940. data/docs/PromotionBatchUpdate.md +38 -0
  941. data/docs/PromotionCreate.md +36 -0
  942. data/docs/PromotionTemplateValue.md +24 -0
  943. data/docs/PromotionType.md +15 -0
  944. data/docs/PromotionsApi.md +373 -0
  945. data/docs/PromotionsList200Response.md +20 -0
  946. data/docs/PromotionsResponse.md +18 -0
  947. data/docs/PublicTargetingType.md +15 -0
  948. data/docs/QualityComponentDetails.md +22 -0
  949. data/docs/QualityComponentIssue.md +22 -0
  950. data/docs/QualityComponents.md +38 -0
  951. data/docs/QueryLabelEntityStatusesItems.md +15 -0
  952. data/docs/QueryLabelTypesItems.md +15 -0
  953. data/docs/QuerymetrictypesItems.md +15 -0
  954. data/docs/QuerypinanalyticsmetrictypesItems.md +15 -0
  955. data/docs/QueryvideopinmetrictypesItems.md +15 -0
  956. data/docs/QuizPinData.md +24 -0
  957. data/docs/QuizPinOption.md +20 -0
  958. data/docs/QuizPinQuestion.md +22 -0
  959. data/docs/QuizPinResult.md +26 -0
  960. data/docs/RecordCounts.md +22 -0
  961. data/docs/RelatedTerms.md +22 -0
  962. data/docs/RelatedTermsRelatedTermsListItems.md +20 -0
  963. data/docs/ReportType.md +15 -0
  964. data/docs/ReportingColumn.md +15 -0
  965. data/docs/ReportingColumnSync.md +15 -0
  966. data/docs/ReportingTimeZone.md +15 -0
  967. data/docs/ReportsStats200Response.md +20 -0
  968. data/docs/ResourcesApi.md +444 -0
  969. data/docs/RespondToInviteResultItem.md +20 -0
  970. data/docs/RespondToInvitesResponseArray.md +18 -0
  971. data/docs/RetailLocalInventoryItemAttributes.md +24 -0
  972. data/docs/RetailLocalInventoryItemAttributesOptional.md +24 -0
  973. data/docs/Role.md +15 -0
  974. data/docs/S3FilePart.md +20 -0
  975. data/docs/S3MultipartUploadData.md +18 -0
  976. data/docs/SSIOAccount.md +28 -0
  977. data/docs/SSIOAccountAddress.md +24 -0
  978. data/docs/SSIOAccountItem.md +36 -0
  979. data/docs/SSIOAccountPMPName.md +20 -0
  980. data/docs/SSIOInsertionOrder.md +18 -0
  981. data/docs/SSIOInsertionOrderCreate.md +60 -0
  982. data/docs/SSIOInsertionOrderStatus.md +22 -0
  983. data/docs/SSIOInsertionOrderStatusResponse.md +22 -0
  984. data/docs/SSIOInsertionOrderUpdate.md +48 -0
  985. data/docs/SSIOOrderLine.md +60 -0
  986. data/docs/SSIOOrderLineType.md +15 -0
  987. data/docs/Schedule.md +36 -0
  988. data/docs/ScheduleAction.md +15 -0
  989. data/docs/ScheduleAgeBucketMultipliers.md +18 -0
  990. data/docs/ScheduleAppTypeMultipliers.md +18 -0
  991. data/docs/ScheduleAudienceMultipliers.md +18 -0
  992. data/docs/ScheduleBatchUpdate.md +38 -0
  993. data/docs/ScheduleBidMultipliers.md +26 -0
  994. data/docs/ScheduleBidOptions.md +26 -0
  995. data/docs/ScheduleBidOptionsGenderMultipliers.md +18 -0
  996. data/docs/ScheduleBidOptionsPlacementMultipliers.md +22 -0
  997. data/docs/ScheduleCommonDeltaValue.md +49 -0
  998. data/docs/ScheduleCreate.md +34 -0
  999. data/docs/ScheduleCreateRequest.md +34 -0
  1000. data/docs/ScheduleCreateRequestAllOf1.md +20 -0
  1001. data/docs/ScheduleDeltaValue.md +26 -0
  1002. data/docs/ScheduleGenderMultipliers.md +18 -0
  1003. data/docs/SchedulePlacementMultipliers.md +22 -0
  1004. data/docs/ScheduleStatus.md +15 -0
  1005. data/docs/ScheduleType.md +15 -0
  1006. data/docs/ScheduleUpdateRequest.md +36 -0
  1007. data/docs/ScheduleUpdateRequestAllOf1.md +22 -0
  1008. data/docs/SchedulesApi.md +235 -0
  1009. data/docs/SchedulesCreate200ResponseInner.md +18 -0
  1010. data/docs/SchedulesCreate200ResponseInnerData.md +49 -0
  1011. data/docs/SchedulesCreate200ResponseInnerDataOneOf.md +22 -0
  1012. data/docs/SchedulesList200Response.md +20 -0
  1013. data/docs/ScrollupGoalMetadata.md +18 -0
  1014. data/docs/SearchApi.md +244 -0
  1015. data/docs/SearchPartnerPins200Response.md +20 -0
  1016. data/docs/SharedAudienceAccount.md +24 -0
  1017. data/docs/SharedAudiencesForBusinessList200Response.md +20 -0
  1018. data/docs/SingleInterestTargetingOption.md +24 -0
  1019. data/docs/SourcePlatformOptions.md +15 -0
  1020. data/docs/SsioInsertionOrdersStatusGetByAdAccount200Response.md +20 -0
  1021. data/docs/SsioOrderLinesGetByAdAccount200Response.md +20 -0
  1022. data/docs/StandardPinMetricTypes.md +15 -0
  1023. data/docs/StoreMetadata.md +28 -0
  1024. data/docs/SummaryPin.md +28 -0
  1025. data/docs/SummaryStatus.md +15 -0
  1026. data/docs/SupplementalItemBatchOperationStatus.md +15 -0
  1027. data/docs/SupplementalItemProcessingStatus.md +15 -0
  1028. data/docs/SupplementalItemValidationEvent.md +22 -0
  1029. data/docs/SupplementalItemsBatchResponse.md +26 -0
  1030. data/docs/SupplementalOperationResult.md +28 -0
  1031. data/docs/SystemUserUpdateWithRequiredBody.md +18 -0
  1032. data/docs/TargetingAdvertiserCountry.md +15 -0
  1033. data/docs/TargetingSpec.md +46 -0
  1034. data/docs/TargetingSpecAgeBucket.md +15 -0
  1035. data/docs/TargetingSpecAppType.md +15 -0
  1036. data/docs/TargetingSpecGender.md +15 -0
  1037. data/docs/TargetingSpecListOperation.md +15 -0
  1038. data/docs/TargetingSpecOperationAgeBucket.md +22 -0
  1039. data/docs/TargetingSpecOperationAppType.md +22 -0
  1040. data/docs/TargetingSpecOperationAudienceExclude.md +22 -0
  1041. data/docs/TargetingSpecOperationAudienceInclude.md +22 -0
  1042. data/docs/TargetingSpecOperationGender.md +22 -0
  1043. data/docs/TargetingSpecOperationGeo.md +22 -0
  1044. data/docs/TargetingSpecOperationGeoExclude.md +22 -0
  1045. data/docs/TargetingSpecOperationInterest.md +22 -0
  1046. data/docs/TargetingSpecOperationLocale.md +22 -0
  1047. data/docs/TargetingSpecOperationLocation.md +22 -0
  1048. data/docs/TargetingSpecOperationLocationExclude.md +22 -0
  1049. data/docs/TargetingSpecOperationMaximumAge.md +22 -0
  1050. data/docs/TargetingSpecOperationMinimumAge.md +22 -0
  1051. data/docs/TargetingSpecOperationShoppingRetargeting.md +22 -0
  1052. data/docs/TargetingSpecOperations.md +115 -0
  1053. data/docs/TargetingSpecOptimal.md +46 -0
  1054. data/docs/TargetingSpecShoppingRetargeting.md +22 -0
  1055. data/docs/TargetingSpecTargetingStrategyItems.md +15 -0
  1056. data/docs/TargetingStrategy.md +15 -0
  1057. data/docs/TargetingTemplate.md +42 -0
  1058. data/docs/TargetingTemplateApi.md +235 -0
  1059. data/docs/TargetingTemplateAudienceSizing.md +18 -0
  1060. data/docs/TargetingTemplateAudienceSizingReachEstimate.md +22 -0
  1061. data/docs/TargetingTemplateCreate.md +28 -0
  1062. data/docs/TargetingTemplateKeyword.md +20 -0
  1063. data/docs/TargetingTemplateList200Response.md +20 -0
  1064. data/docs/TargetingTemplateStatus.md +15 -0
  1065. data/docs/TargetingTemplateUpdateRequestReadOrUpdate.md +22 -0
  1066. data/docs/TemplateBasedReport.md +24 -0
  1067. data/docs/TemplateBasedReportCreate.md +22 -0
  1068. data/docs/TemplatesList200Response.md +20 -0
  1069. data/docs/TermsApi.md +151 -0
  1070. data/docs/TermsOfService.md +24 -0
  1071. data/docs/TermsOfServiceApi.md +83 -0
  1072. data/docs/TieBreakerType.md +15 -0
  1073. data/docs/TimeSeries.md +18 -0
  1074. data/docs/TitleKeywordsFilter.md +18 -0
  1075. data/docs/TokenGrantType.md +15 -0
  1076. data/docs/TokenTypeHint.md +15 -0
  1077. data/docs/TopPinsAnalyticsResponse.md +22 -0
  1078. data/docs/TopPinsAnalyticsResponseDateAvailability.md +20 -0
  1079. data/docs/TopPinsAnalyticsResponsePinsItems.md +22 -0
  1080. data/docs/TopPinsSortBy.md +15 -0
  1081. data/docs/TopVideoPinsAnalyticsResponse.md +22 -0
  1082. data/docs/TopVideoPinsAnalyticsResponseDateAvailability.md +20 -0
  1083. data/docs/TopVideoPinsAnalyticsResponsePinsItems.md +22 -0
  1084. data/docs/TopVideoPinsSortBy.md +15 -0
  1085. data/docs/TotalCountByEntityStatus.md +22 -0
  1086. data/docs/TrackingUrls.md +6 -6
  1087. data/docs/TrendType.md +15 -0
  1088. data/docs/TrendingKeyword.md +32 -0
  1089. data/docs/TrendingKeywordDemographics.md +20 -0
  1090. data/docs/TrendingKeywordsResponse.md +18 -0
  1091. data/docs/TrendingPin.md +28 -0
  1092. data/docs/TrendingProductCategory.md +28 -0
  1093. data/docs/TrendingTopic.md +32 -0
  1094. data/docs/TrendsAgeBucket.md +15 -0
  1095. data/docs/TrendsAgeDistribution.md +18 -0
  1096. data/docs/TrendsApi.md +318 -0
  1097. data/docs/TrendsEditorial.md +28 -0
  1098. data/docs/TrendsGender.md +15 -0
  1099. data/docs/TrendsGenderDistribution.md +18 -0
  1100. data/docs/TrendsGenderFilter.md +15 -0
  1101. data/docs/TrendsL1Interest.md +15 -0
  1102. data/docs/TrendsSupportedRegion.md +15 -0
  1103. data/docs/UpdatableItemAttributes.md +222 -0
  1104. data/docs/UpdatableItemAttributesGtin.md +49 -0
  1105. data/docs/UpdateBusinessMembershipsResponse.md +18 -0
  1106. data/docs/UpdateInvitesResultsResponseArray.md +18 -0
  1107. data/docs/UpdateMaskBidOptionField.md +15 -0
  1108. data/docs/UpdateMaskFieldType.md +15 -0
  1109. data/docs/UpdateMemberAssetAccessBody.md +18 -0
  1110. data/docs/UpdateMemberAssetAccessItem.md +22 -0
  1111. data/docs/UpdateMemberAssetResultItem.md +18 -0
  1112. data/docs/UpdateMemberAssetsResultsResponseArray.md +18 -0
  1113. data/docs/UpdatePartnerAssetAccessBody.md +18 -0
  1114. data/docs/UpdatePartnerAssetAccessItem.md +22 -0
  1115. data/docs/UpdatePartnerAssetsResult.md +24 -0
  1116. data/docs/UpdatePartnerAssetsResultsResponseArray.md +18 -0
  1117. data/docs/UserAccountApi.md +987 -31
  1118. data/docs/UserAccountFollowedInterests200Response.md +20 -0
  1119. data/docs/UserAccountType.md +15 -0
  1120. data/docs/UserBusinessRoleBinding.md +32 -0
  1121. data/docs/UserFollowingFeedType.md +15 -0
  1122. data/docs/UserListOperationType.md +15 -0
  1123. data/docs/UserListType.md +15 -0
  1124. data/docs/UserSingleAssetBinding.md +20 -0
  1125. data/docs/UserWebsite.md +22 -0
  1126. data/docs/UserWebsiteCreate.md +20 -0
  1127. data/docs/UserWebsiteVerification.md +26 -0
  1128. data/docs/UserWebsitesGet200Response.md +20 -0
  1129. data/docs/UsersForIndividualAssetResponse.md +22 -0
  1130. data/docs/VerticalProductCategory.md +15 -0
  1131. data/docs/VideoMetadataWithItemType.md +30 -0
  1132. data/docs/VideoPinMetricTypes.md +15 -0
  1133. data/docs/WebsiteVerificationMethod.md +15 -0
  1134. data/docs/WorkloadState.md +15 -0
  1135. data/git_push.sh +2 -2
  1136. data/lib/pinterest_sdk/api/ad_accounts_api.rb +603 -632
  1137. data/lib/pinterest_sdk/api/ad_groups_api.rb +1368 -0
  1138. data/lib/pinterest_sdk/api/ads_api.rb +1086 -0
  1139. data/lib/pinterest_sdk/api/advanced_auction_api.rb +182 -0
  1140. data/lib/pinterest_sdk/api/audience_insights_api.rb +173 -0
  1141. data/lib/pinterest_sdk/api/audience_sharing_api.rb +677 -0
  1142. data/lib/pinterest_sdk/api/audiences_api.rb +377 -0
  1143. data/lib/pinterest_sdk/api/billing_api.rb +966 -0
  1144. data/lib/pinterest_sdk/api/boards_api.rb +276 -142
  1145. data/lib/pinterest_sdk/api/bulk_api.rb +269 -0
  1146. data/lib/pinterest_sdk/api/business_access_assets_api.rb +1288 -0
  1147. data/lib/pinterest_sdk/api/business_access_invite_api.rb +529 -0
  1148. data/lib/pinterest_sdk/api/business_access_relationships_api.rb +873 -0
  1149. data/lib/pinterest_sdk/api/campaigns_api.rb +961 -0
  1150. data/lib/pinterest_sdk/api/catalog_feeds_api.rb +718 -0
  1151. data/lib/pinterest_sdk/api/catalog_items_api.rb +262 -0
  1152. data/lib/pinterest_sdk/api/catalog_product_groups_api.rb +909 -0
  1153. data/lib/pinterest_sdk/api/catalog_reports_api.rb +268 -0
  1154. data/lib/pinterest_sdk/api/catalog_supplemental_api.rb +689 -0
  1155. data/lib/pinterest_sdk/api/catalogs_api.rb +103 -788
  1156. data/lib/pinterest_sdk/api/conversion_deletion_requests_api.rb +368 -0
  1157. data/lib/pinterest_sdk/api/conversion_eqs_api.rb +107 -0
  1158. data/lib/pinterest_sdk/api/conversion_events_api.rb +108 -0
  1159. data/lib/pinterest_sdk/api/conversion_tags_api.rb +428 -0
  1160. data/lib/pinterest_sdk/api/conversions_api.rb +339 -0
  1161. data/lib/pinterest_sdk/api/customer_list_uploads_api.rb +316 -0
  1162. data/lib/pinterest_sdk/api/customer_lists_api.rb +382 -0
  1163. data/lib/pinterest_sdk/api/customer_segment_api.rb +283 -0
  1164. data/lib/pinterest_sdk/api/integrations_api.rb +497 -0
  1165. data/lib/pinterest_sdk/api/keywords_api.rb +520 -0
  1166. data/lib/pinterest_sdk/api/labels_api.rb +480 -0
  1167. data/lib/pinterest_sdk/api/lead_ads_api.rb +357 -0
  1168. data/lib/pinterest_sdk/api/lead_forms_api.rb +470 -0
  1169. data/lib/pinterest_sdk/api/leads_export_api.rb +188 -0
  1170. data/lib/pinterest_sdk/api/media_api.rb +34 -34
  1171. data/lib/pinterest_sdk/api/msot_events_api.rb +105 -0
  1172. data/lib/pinterest_sdk/api/notification_api.rb +86 -0
  1173. data/lib/pinterest_sdk/api/oauth_api.rb +156 -17
  1174. data/lib/pinterest_sdk/api/order_lines_api.rb +194 -0
  1175. data/lib/pinterest_sdk/api/pins_api.rb +500 -51
  1176. data/lib/pinterest_sdk/api/product_group_promotions_api.rb +536 -0
  1177. data/lib/pinterest_sdk/api/product_tags_api.rb +248 -0
  1178. data/lib/pinterest_sdk/api/promotions_api.rb +467 -0
  1179. data/lib/pinterest_sdk/api/resources_api.rb +435 -0
  1180. data/lib/pinterest_sdk/api/schedules_api.rb +294 -0
  1181. data/lib/pinterest_sdk/api/search_api.rb +275 -0
  1182. data/lib/pinterest_sdk/api/targeting_template_api.rb +283 -0
  1183. data/lib/pinterest_sdk/api/terms_api.rb +161 -0
  1184. data/lib/pinterest_sdk/api/terms_of_service_api.rb +100 -0
  1185. data/lib/pinterest_sdk/api/trends_api.rb +314 -0
  1186. data/lib/pinterest_sdk/api/user_account_api.rb +1095 -37
  1187. data/lib/pinterest_sdk/api_client.rb +34 -27
  1188. data/lib/pinterest_sdk/api_error.rb +4 -3
  1189. data/lib/pinterest_sdk/api_model_base.rb +88 -0
  1190. data/lib/pinterest_sdk/configuration.rb +60 -16
  1191. data/lib/pinterest_sdk/models/account.rb +143 -119
  1192. data/lib/pinterest_sdk/models/account_template.rb +491 -0
  1193. data/lib/pinterest_sdk/models/action_type.rb +9 -7
  1194. data/lib/pinterest_sdk/models/ad.rb +869 -0
  1195. data/lib/pinterest_sdk/models/ad_account.rb +160 -109
  1196. data/lib/pinterest_sdk/models/ad_account_analytics_items.rb +184 -0
  1197. data/lib/pinterest_sdk/models/ad_account_countries_get200_response.rb +166 -0
  1198. data/lib/pinterest_sdk/models/ad_account_create.rb +249 -0
  1199. data/lib/pinterest_sdk/models/ad_account_entity_type.rb +42 -0
  1200. data/lib/pinterest_sdk/models/ad_account_owner.rb +36 -97
  1201. data/lib/pinterest_sdk/models/ad_account_to_ad_account_shared_audience.rb +217 -0
  1202. data/lib/pinterest_sdk/models/ad_account_to_ad_account_shared_audience_update_with_required_body.rb +254 -0
  1203. data/lib/pinterest_sdk/models/ad_account_to_business_shared_audience.rb +217 -0
  1204. data/lib/pinterest_sdk/models/ad_account_to_business_shared_audience_update_with_required_body.rb +254 -0
  1205. data/lib/pinterest_sdk/models/ad_accounts_audience.rb +343 -0
  1206. data/lib/pinterest_sdk/models/ad_accounts_audience_create.rb +232 -0
  1207. data/lib/pinterest_sdk/models/ad_accounts_audience_rule.rb +394 -0
  1208. data/lib/pinterest_sdk/models/ad_accounts_audience_update.rb +242 -0
  1209. data/lib/pinterest_sdk/models/ad_accounts_audiences_shared_accounts_list200_response.rb +176 -0
  1210. data/lib/pinterest_sdk/models/ad_accounts_country.rb +267 -0
  1211. data/lib/pinterest_sdk/models/ad_accounts_list200_response.rb +176 -0
  1212. data/lib/pinterest_sdk/models/ad_accounts_subscriptions_get_list200_response.rb +176 -0
  1213. data/lib/pinterest_sdk/models/ad_ads_analytics_async_targeting_types.rb +55 -0
  1214. data/lib/pinterest_sdk/models/ad_batch_item.rb +156 -0
  1215. data/lib/pinterest_sdk/models/ad_batch_update.rb +553 -0
  1216. data/lib/pinterest_sdk/models/ad_batch_write_response_model.rb +166 -0
  1217. data/lib/pinterest_sdk/models/ad_collections_header_type.rb +41 -0
  1218. data/lib/pinterest_sdk/models/ad_create.rb +538 -0
  1219. data/lib/pinterest_sdk/models/ad_create_request.rb +496 -0
  1220. data/lib/pinterest_sdk/models/ad_disapproval_reasons.rb +86 -0
  1221. data/lib/pinterest_sdk/models/ad_group.rb +830 -0
  1222. data/lib/pinterest_sdk/models/ad_group_audience_sizing.rb +158 -0
  1223. data/lib/pinterest_sdk/models/ad_group_audience_sizing_create.rb +231 -0
  1224. data/lib/pinterest_sdk/models/ad_group_audience_sizing_creative_types.rb +46 -0
  1225. data/lib/pinterest_sdk/models/ad_group_audience_sizing_keyword.rb +213 -0
  1226. data/lib/pinterest_sdk/models/ad_group_base.rb +759 -0
  1227. data/lib/pinterest_sdk/models/ad_group_create.rb +832 -0
  1228. data/lib/pinterest_sdk/models/ad_group_create_create.rb +617 -0
  1229. data/lib/pinterest_sdk/models/ad_group_create_request.rb +536 -0
  1230. data/lib/pinterest_sdk/models/ad_group_create_request_all_of1.rb +226 -0
  1231. data/lib/pinterest_sdk/models/ad_group_delivery_estimates.rb +275 -0
  1232. data/lib/pinterest_sdk/models/ad_group_delivery_estimates_keywords_items.rb +199 -0
  1233. data/lib/pinterest_sdk/models/ad_group_summary_status.rb +11 -6
  1234. data/lib/pinterest_sdk/models/ad_group_tracking_urls.rb +194 -0
  1235. data/lib/pinterest_sdk/models/ad_group_update.rb +833 -0
  1236. data/lib/pinterest_sdk/models/ad_group_update_batch_update.rb +634 -0
  1237. data/lib/pinterest_sdk/models/ad_group_update_request.rb +546 -0
  1238. data/lib/pinterest_sdk/models/ad_group_update_request_all_of1.rb +226 -0
  1239. data/lib/pinterest_sdk/models/ad_groups_analytics_metrics.rb +179 -0
  1240. data/lib/pinterest_sdk/models/ad_groups_create200_response.rb +166 -0
  1241. data/lib/pinterest_sdk/models/ad_groups_create200_response_items_inner.rb +158 -0
  1242. data/lib/pinterest_sdk/models/ad_groups_list200_response.rb +176 -0
  1243. data/lib/pinterest_sdk/models/ad_pin_analytics.rb +186 -0
  1244. data/lib/pinterest_sdk/models/ad_pin_preview_creative_type.rb +43 -0
  1245. data/lib/pinterest_sdk/models/ad_preview_request.rb +105 -0
  1246. data/lib/pinterest_sdk/models/ad_preview_shopping.rb +338 -0
  1247. data/lib/pinterest_sdk/models/ad_preview_source_image.rb +224 -0
  1248. data/lib/pinterest_sdk/models/ad_preview_source_pin_id.rb +198 -0
  1249. data/lib/pinterest_sdk/models/ad_preview_url_response.rb +148 -0
  1250. data/lib/pinterest_sdk/models/ad_review_status.rb +42 -0
  1251. data/lib/pinterest_sdk/models/ad_shopping_preview_creative_type.rb +42 -0
  1252. data/lib/pinterest_sdk/models/ad_update_request.rb +500 -0
  1253. data/lib/pinterest_sdk/models/ad_update_request_all_of1.rb +204 -0
  1254. data/lib/pinterest_sdk/models/ade_column_type.rb +92 -0
  1255. data/lib/pinterest_sdk/models/adgroup_placement_group_type.rb +42 -0
  1256. data/lib/pinterest_sdk/models/adgroup_tracking_feature_type.rb +42 -0
  1257. data/lib/pinterest_sdk/models/adgroup_tracking_features.rb +150 -0
  1258. data/lib/pinterest_sdk/models/ads_analytics.rb +184 -0
  1259. data/lib/pinterest_sdk/models/ads_analytics_account_targeting_type.rb +51 -0
  1260. data/lib/pinterest_sdk/models/ads_analytics_ad_group_targeting_type.rb +52 -0
  1261. data/lib/pinterest_sdk/models/ads_analytics_ad_targeting_type.rb +52 -0
  1262. data/lib/pinterest_sdk/models/ads_analytics_campaign_targeting_type.rb +53 -0
  1263. data/lib/pinterest_sdk/models/ads_analytics_create_async_request.rb +514 -389
  1264. data/lib/pinterest_sdk/models/ads_analytics_create_async_response.rb +61 -110
  1265. data/lib/pinterest_sdk/models/ads_analytics_filter_column.rb +9 -6
  1266. data/lib/pinterest_sdk/models/ads_analytics_filter_operator.rb +9 -6
  1267. data/lib/pinterest_sdk/models/ads_analytics_get_async_response.rb +62 -111
  1268. data/lib/pinterest_sdk/models/ads_analytics_metrics_filter.rb +95 -99
  1269. data/lib/pinterest_sdk/models/ads_credit_discount_type.rb +58 -0
  1270. data/lib/pinterest_sdk/models/ads_credit_discounts_response.rb +256 -0
  1271. data/lib/pinterest_sdk/models/ads_credit_redeem.rb +171 -0
  1272. data/lib/pinterest_sdk/models/ads_credit_redeem_create.rb +204 -0
  1273. data/lib/pinterest_sdk/models/ads_credits_discounts_get200_response.rb +176 -0
  1274. data/lib/pinterest_sdk/models/ads_list200_response.rb +176 -0
  1275. data/lib/pinterest_sdk/models/advanced_auction_bid_options.rb +170 -0
  1276. data/lib/pinterest_sdk/models/advanced_auction_item.rb +265 -0
  1277. data/lib/pinterest_sdk/models/advanced_auction_items.rb +182 -0
  1278. data/lib/pinterest_sdk/models/advanced_auction_items_get_request.rb +224 -0
  1279. data/lib/pinterest_sdk/models/advanced_auction_items_submit_delete_record.rb +280 -0
  1280. data/lib/pinterest_sdk/models/advanced_auction_items_submit_record.rb +56 -0
  1281. data/lib/pinterest_sdk/models/advanced_auction_items_submit_request.rb +224 -0
  1282. data/lib/pinterest_sdk/models/advanced_auction_items_submit_upsert_record.rb +321 -0
  1283. data/lib/pinterest_sdk/models/advanced_auction_key.rb +240 -0
  1284. data/lib/pinterest_sdk/models/advanced_auction_operation_error.rb +159 -0
  1285. data/lib/pinterest_sdk/models/advanced_auction_processed_items.rb +182 -0
  1286. data/lib/pinterest_sdk/models/advertiser_defined_event.rb +181 -0
  1287. data/lib/pinterest_sdk/models/advertiser_defined_event_input.rb +215 -0
  1288. data/lib/pinterest_sdk/models/advertiser_defined_event_mapping_type.rb +57 -0
  1289. data/lib/pinterest_sdk/models/advertiser_defined_event_processing_record.rb +205 -0
  1290. data/lib/pinterest_sdk/models/advertiser_defined_events_create200_response.rb +166 -0
  1291. data/lib/pinterest_sdk/models/advertiser_defined_events_create_request.rb +177 -0
  1292. data/lib/pinterest_sdk/models/advertiser_defined_events_get200_response.rb +166 -0
  1293. data/lib/pinterest_sdk/models/age_bucket_multipliers.rb +171 -0
  1294. data/lib/pinterest_sdk/models/age_trends_bucket.rb +45 -0
  1295. data/lib/pinterest_sdk/models/aggregated_pin_comment.rb +493 -0
  1296. data/lib/pinterest_sdk/models/ai_disclosure_item.rb +40 -0
  1297. data/lib/pinterest_sdk/models/ai_disclosures.rb +168 -0
  1298. data/lib/pinterest_sdk/models/ai_disclosures_update.rb +151 -0
  1299. data/lib/pinterest_sdk/models/amazon_connect_request.rb +281 -0
  1300. data/lib/pinterest_sdk/models/amazon_connect_response.rb +148 -0
  1301. data/lib/pinterest_sdk/models/analytics_daily_metrics.rb +190 -0
  1302. data/lib/pinterest_sdk/models/analytics_metrics_response.rb +26 -97
  1303. data/lib/pinterest_sdk/models/app_type_multipliers.rb +171 -0
  1304. data/lib/pinterest_sdk/models/appsflyer_audience.rb +242 -0
  1305. data/lib/pinterest_sdk/models/appsflyer_audience_create.rb +215 -0
  1306. data/lib/pinterest_sdk/models/appsflyer_audience_sync_create.rb +186 -0
  1307. data/lib/pinterest_sdk/models/appsflyer_platform.rb +40 -0
  1308. data/lib/pinterest_sdk/models/asset_access_request_error.rb +159 -0
  1309. data/lib/pinterest_sdk/models/asset_group_binding.rb +398 -0
  1310. data/lib/pinterest_sdk/models/asset_group_delete_error.rb +168 -0
  1311. data/lib/pinterest_sdk/models/asset_group_deletion.rb +161 -0
  1312. data/lib/pinterest_sdk/models/asset_group_deletion_delete.rb +184 -0
  1313. data/lib/pinterest_sdk/models/asset_group_input.rb +147 -0
  1314. data/lib/pinterest_sdk/models/asset_group_input_create.rb +230 -0
  1315. data/lib/pinterest_sdk/models/asset_group_modification.rb +162 -0
  1316. data/lib/pinterest_sdk/models/asset_group_modification_read_or_update.rb +174 -0
  1317. data/lib/pinterest_sdk/models/asset_group_type.rb +42 -0
  1318. data/lib/pinterest_sdk/models/asset_group_update_error.rb +165 -0
  1319. data/lib/pinterest_sdk/models/asset_group_update_item_read_or_update_item.rb +221 -0
  1320. data/lib/pinterest_sdk/models/asset_id_permissions.rb +282 -0
  1321. data/lib/pinterest_sdk/models/asset_id_with_permissions.rb +200 -0
  1322. data/lib/pinterest_sdk/models/asset_permission_type.rb +40 -0
  1323. data/lib/pinterest_sdk/models/asset_search_by.rb +43 -0
  1324. data/lib/pinterest_sdk/models/asset_sort_by.rb +41 -0
  1325. data/lib/pinterest_sdk/models/asset_type_response.rb +46 -0
  1326. data/lib/pinterest_sdk/models/attribution_action_type.rb +40 -0
  1327. data/lib/pinterest_sdk/models/attribution_match_type.rb +41 -0
  1328. data/lib/pinterest_sdk/models/attribution_model.rb +42 -0
  1329. data/lib/pinterest_sdk/models/attribution_scope.rb +41 -0
  1330. data/lib/pinterest_sdk/models/attribution_windows.rb +165 -0
  1331. data/lib/pinterest_sdk/models/audience.rb +336 -0
  1332. data/lib/pinterest_sdk/models/audience_account_type.rb +40 -0
  1333. data/lib/pinterest_sdk/models/audience_category.rb +200 -0
  1334. data/lib/pinterest_sdk/models/audience_definition.rb +168 -0
  1335. data/lib/pinterest_sdk/models/audience_demographic_value.rb +169 -0
  1336. data/lib/pinterest_sdk/models/audience_demographics.rb +199 -0
  1337. data/lib/pinterest_sdk/models/audience_insight_type.rb +41 -0
  1338. data/lib/pinterest_sdk/models/audience_insights.rb +239 -0
  1339. data/lib/pinterest_sdk/models/audience_insights_scope_and_type_get200_response.rb +166 -0
  1340. data/lib/pinterest_sdk/models/audience_objective_type.rb +44 -0
  1341. data/lib/pinterest_sdk/models/audience_ownership_type.rb +40 -0
  1342. data/lib/pinterest_sdk/models/audience_rule.rb +415 -0
  1343. data/lib/pinterest_sdk/models/audience_status.rb +44 -0
  1344. data/lib/pinterest_sdk/models/audience_subcategory.rb +183 -0
  1345. data/lib/pinterest_sdk/models/audience_type.rb +43 -0
  1346. data/lib/pinterest_sdk/models/audience_update_operation_type.rb +40 -0
  1347. data/lib/pinterest_sdk/models/audiences_list200_response.rb +176 -0
  1348. data/lib/pinterest_sdk/models/auth_respond_invite_action.rb +177 -0
  1349. data/lib/pinterest_sdk/models/auth_respond_invites_body.rb +185 -0
  1350. data/lib/pinterest_sdk/models/auth_respond_invites_body_item.rb +220 -0
  1351. data/lib/pinterest_sdk/models/availability_filter.rb +37 -96
  1352. data/lib/pinterest_sdk/models/base_business_assets.rb +241 -0
  1353. data/lib/pinterest_sdk/models/base_invite_data_response.rb +199 -0
  1354. data/lib/pinterest_sdk/models/base_preferred_media_type.rb +40 -0
  1355. data/lib/pinterest_sdk/models/batch_operation_status.rb +10 -6
  1356. data/lib/pinterest_sdk/models/bid_floor.rb +163 -0
  1357. data/lib/pinterest_sdk/models/bid_floor_create.rb +178 -0
  1358. data/lib/pinterest_sdk/models/bid_floor_objective_type.rb +44 -0
  1359. data/lib/pinterest_sdk/models/bid_floor_spec.rb +257 -0
  1360. data/lib/pinterest_sdk/models/bid_options_age_bucket_multipliers.rb +202 -0
  1361. data/lib/pinterest_sdk/models/bid_options_app_type_multipliers.rb +193 -0
  1362. data/lib/pinterest_sdk/models/bid_options_audience_multipliers.rb +202 -0
  1363. data/lib/pinterest_sdk/models/bid_options_gender_multipliers.rb +157 -0
  1364. data/lib/pinterest_sdk/models/bid_options_placement_multipliers.rb +166 -0
  1365. data/lib/pinterest_sdk/models/bid_strategy_type.rb +41 -0
  1366. data/lib/pinterest_sdk/models/billing_invoice.rb +355 -0
  1367. data/lib/pinterest_sdk/models/billing_invoice_document_type.rb +40 -0
  1368. data/lib/pinterest_sdk/models/billing_invoice_download_response.rb +158 -0
  1369. data/lib/pinterest_sdk/models/billing_invoice_sort_field.rb +43 -0
  1370. data/lib/pinterest_sdk/models/billing_invoice_status.rb +40 -0
  1371. data/lib/pinterest_sdk/models/billing_invoices_get200_response.rb +176 -0
  1372. data/lib/pinterest_sdk/models/billing_profile_card_type.rb +44 -0
  1373. data/lib/pinterest_sdk/models/billing_profile_payment_method_brand.rb +47 -0
  1374. data/lib/pinterest_sdk/models/billing_profile_status.rb +45 -0
  1375. data/lib/pinterest_sdk/models/billing_profiles_get200_response.rb +176 -0
  1376. data/lib/pinterest_sdk/models/billing_profiles_response.rb +262 -0
  1377. data/lib/pinterest_sdk/models/billing_type.rb +43 -0
  1378. data/lib/pinterest_sdk/models/board.rb +211 -123
  1379. data/lib/pinterest_sdk/models/board_base.rb +350 -0
  1380. data/lib/pinterest_sdk/models/board_create.rb +220 -0
  1381. data/lib/pinterest_sdk/models/board_media.rb +161 -0
  1382. data/lib/pinterest_sdk/models/board_owner.rb +25 -96
  1383. data/lib/pinterest_sdk/models/board_privacy.rb +41 -0
  1384. data/lib/pinterest_sdk/models/board_privacy_filter.rb +43 -0
  1385. data/lib/pinterest_sdk/models/board_section.rb +44 -104
  1386. data/lib/pinterest_sdk/models/board_section_create.rb +192 -0
  1387. data/lib/pinterest_sdk/models/board_section_update_with_required_body.rb +192 -0
  1388. data/lib/pinterest_sdk/models/board_sections_list200_response.rb +176 -0
  1389. data/lib/pinterest_sdk/models/board_update_privacy.rb +40 -0
  1390. data/lib/pinterest_sdk/models/board_with_update_privacy.rb +388 -0
  1391. data/lib/pinterest_sdk/models/board_with_update_privacy_update.rb +190 -0
  1392. data/lib/pinterest_sdk/models/boards_list200_response.rb +176 -0
  1393. data/lib/pinterest_sdk/models/boards_list_pins200_response.rb +176 -0
  1394. data/lib/pinterest_sdk/models/book_closed.rb +192 -0
  1395. data/lib/pinterest_sdk/models/brand_account.rb +164 -0
  1396. data/lib/pinterest_sdk/models/brand_account_create.rb +270 -0
  1397. data/lib/pinterest_sdk/models/brand_account_profile_image.rb +226 -0
  1398. data/lib/pinterest_sdk/models/brand_account_profile_image_update.rb +212 -0
  1399. data/lib/pinterest_sdk/models/brand_account_update.rb +219 -0
  1400. data/lib/pinterest_sdk/models/brand_filter.rb +37 -96
  1401. data/lib/pinterest_sdk/models/budget_duration_type.rb +41 -0
  1402. data/lib/pinterest_sdk/models/budget_type.rb +41 -0
  1403. data/lib/pinterest_sdk/models/bulk_campaign_delivery_estimates_item.rb +245 -0
  1404. data/lib/pinterest_sdk/models/bulk_campaign_delivery_estimates_response.rb +168 -0
  1405. data/lib/pinterest_sdk/models/bulk_download.rb +149 -0
  1406. data/lib/pinterest_sdk/models/bulk_download_campaign_filter.rb +232 -0
  1407. data/lib/pinterest_sdk/models/bulk_download_create.rb +262 -0
  1408. data/lib/pinterest_sdk/models/bulk_entity_type.rb +46 -0
  1409. data/lib/pinterest_sdk/models/bulk_job_data.rb +207 -0
  1410. data/lib/pinterest_sdk/models/bulk_output_format.rb +40 -0
  1411. data/lib/pinterest_sdk/models/bulk_reporting_job_status.rb +44 -0
  1412. data/lib/pinterest_sdk/models/bulk_request_status.rb +41 -0
  1413. data/lib/pinterest_sdk/models/bulk_upsert_request.rb +157 -0
  1414. data/lib/pinterest_sdk/models/bulk_upsert_request_create.rb +227 -0
  1415. data/lib/pinterest_sdk/models/bulk_upsert_request_create_catalog_product_groups_items.rb +104 -0
  1416. data/lib/pinterest_sdk/models/bulk_upsert_request_update.rb +227 -0
  1417. data/lib/pinterest_sdk/models/bulk_upsert_request_update_catalog_product_groups_items.rb +104 -0
  1418. data/lib/pinterest_sdk/models/bulk_upsert_response.rb +148 -0
  1419. data/lib/pinterest_sdk/models/business_access_role.rb +55 -0
  1420. data/lib/pinterest_sdk/models/business_access_user_summary.rb +196 -0
  1421. data/lib/pinterest_sdk/models/business_asset_members_get200_response.rb +176 -0
  1422. data/lib/pinterest_sdk/models/business_assets.rb +257 -0
  1423. data/lib/pinterest_sdk/models/business_assets_get200_response.rb +176 -0
  1424. data/lib/pinterest_sdk/models/business_member_assets_get_response.rb +214 -0
  1425. data/lib/pinterest_sdk/models/business_member_assets_summary.rb +163 -0
  1426. data/lib/pinterest_sdk/models/business_member_sort_by.rb +41 -0
  1427. data/lib/pinterest_sdk/models/business_members_asset_access_delete_body.rb +186 -0
  1428. data/lib/pinterest_sdk/models/business_membership_member.rb +234 -0
  1429. data/lib/pinterest_sdk/models/business_partner_asset_access_get200_response.rb +176 -0
  1430. data/lib/pinterest_sdk/models/business_role_for_invite.rb +41 -0
  1431. data/lib/pinterest_sdk/models/business_role_for_members.rb +40 -0
  1432. data/lib/pinterest_sdk/models/business_search_by.rb +42 -0
  1433. data/lib/pinterest_sdk/models/business_to_ad_account_shared_audience.rb +217 -0
  1434. data/lib/pinterest_sdk/models/business_to_ad_account_shared_audience_update_with_required_body.rb +254 -0
  1435. data/lib/pinterest_sdk/models/business_to_business_shared_audience.rb +217 -0
  1436. data/lib/pinterest_sdk/models/business_to_business_shared_audience_update_with_required_body.rb +254 -0
  1437. data/lib/pinterest_sdk/models/campaign.rb +519 -0
  1438. data/lib/pinterest_sdk/models/campaign_ad_preview.rb +399 -0
  1439. data/lib/pinterest_sdk/models/campaign_ad_preview_create.rb +186 -0
  1440. data/lib/pinterest_sdk/models/campaign_ad_preview_create200_response_inner.rb +164 -0
  1441. data/lib/pinterest_sdk/models/campaign_ad_preview_create200_response_inner_data.rb +105 -0
  1442. data/lib/pinterest_sdk/models/campaign_ad_preview_create200_response_inner_data_one_of.rb +164 -0
  1443. data/lib/pinterest_sdk/models/campaign_ad_preview_delete200_response_inner.rb +164 -0
  1444. data/lib/pinterest_sdk/models/campaign_ad_preview_delete200_response_inner_status.rb +104 -0
  1445. data/lib/pinterest_sdk/models/campaign_audience_multipliers.rb +170 -0
  1446. data/lib/pinterest_sdk/models/campaign_batch_item.rb +161 -0
  1447. data/lib/pinterest_sdk/models/campaign_batch_response_data.rb +467 -0
  1448. data/lib/pinterest_sdk/models/campaign_batch_update_item.rb +474 -0
  1449. data/lib/pinterest_sdk/models/campaign_batch_write_response_model.rb +167 -0
  1450. data/lib/pinterest_sdk/models/campaign_bid_options.rb +237 -0
  1451. data/lib/pinterest_sdk/models/campaign_bid_options_create.rb +237 -0
  1452. data/lib/pinterest_sdk/models/campaign_bid_options_update.rb +266 -0
  1453. data/lib/pinterest_sdk/models/campaign_bid_options_update_mask_items.rb +44 -0
  1454. data/lib/pinterest_sdk/models/campaign_create_item.rb +460 -0
  1455. data/lib/pinterest_sdk/models/campaign_create_request.rb +439 -0
  1456. data/lib/pinterest_sdk/models/campaign_create_request_all_of1.rb +281 -0
  1457. data/lib/pinterest_sdk/models/campaign_delivery_estimates_campaign.rb +349 -0
  1458. data/lib/pinterest_sdk/models/campaign_delivery_estimates_derived_metrics.rb +409 -0
  1459. data/lib/pinterest_sdk/models/campaign_delivery_estimates_response.rb +189 -0
  1460. data/lib/pinterest_sdk/models/campaign_objective_type.rb +49 -0
  1461. data/lib/pinterest_sdk/models/campaign_planning_ad_group_audience_size.rb +197 -0
  1462. data/lib/pinterest_sdk/models/campaign_planning_budget_recommendation.rb +183 -0
  1463. data/lib/pinterest_sdk/models/campaign_planning_budget_recommendation_point.rb +181 -0
  1464. data/lib/pinterest_sdk/models/campaign_planning_confidence_level_alert.rb +191 -0
  1465. data/lib/pinterest_sdk/models/campaign_planning_confidence_level_alert_reason.rb +42 -0
  1466. data/lib/pinterest_sdk/models/campaign_planning_confidence_level_alert_severity.rb +42 -0
  1467. data/lib/pinterest_sdk/models/campaign_planning_conversion_attribution.rb +191 -0
  1468. data/lib/pinterest_sdk/models/campaign_planning_conversion_attribution_window_days.rb +43 -0
  1469. data/lib/pinterest_sdk/models/campaign_planning_conversion_event.rb +42 -0
  1470. data/lib/pinterest_sdk/models/campaign_planning_conversion_rate.rb +240 -0
  1471. data/lib/pinterest_sdk/models/campaign_planning_curve_estimate.rb +201 -0
  1472. data/lib/pinterest_sdk/models/campaign_planning_estimation_type.rb +48 -0
  1473. data/lib/pinterest_sdk/models/campaign_planning_experiment_budget_recommendation.rb +181 -0
  1474. data/lib/pinterest_sdk/models/campaign_planning_point_estimate.rb +218 -0
  1475. data/lib/pinterest_sdk/models/campaign_planning_response_error.rb +180 -0
  1476. data/lib/pinterest_sdk/models/campaign_planning_response_error_code.rb +42 -0
  1477. data/lib/pinterest_sdk/models/campaign_summary_status.rb +11 -6
  1478. data/lib/pinterest_sdk/models/campaign_update_request.rb +440 -0
  1479. data/lib/pinterest_sdk/models/campaign_update_request_all_of2.rb +219 -0
  1480. data/lib/pinterest_sdk/models/campaigns_analytics_metrics.rb +179 -0
  1481. data/lib/pinterest_sdk/models/campaigns_list200_response.rb +176 -0
  1482. data/lib/pinterest_sdk/models/cancel_invite_exception.rb +178 -0
  1483. data/lib/pinterest_sdk/models/cancel_invite_result.rb +195 -0
  1484. data/lib/pinterest_sdk/models/cancel_invite_result_item.rb +158 -0
  1485. data/lib/pinterest_sdk/models/cancel_invite_result_user.rb +197 -0
  1486. data/lib/pinterest_sdk/models/cancel_invites_request.rb +186 -0
  1487. data/lib/pinterest_sdk/models/cancel_invites_response.rb +149 -0
  1488. data/lib/pinterest_sdk/models/carousel_slot.rb +168 -0
  1489. data/lib/pinterest_sdk/models/carting_product.rb +218 -0
  1490. data/lib/pinterest_sdk/models/carting_retailer.rb +192 -0
  1491. data/lib/pinterest_sdk/models/catalog.rb +304 -0
  1492. data/lib/pinterest_sdk/models/catalog_binding.rb +190 -0
  1493. data/lib/pinterest_sdk/models/catalog_create.rb +214 -0
  1494. data/lib/pinterest_sdk/models/catalog_update.rb +180 -0
  1495. data/lib/pinterest_sdk/models/catalogs_ai_content_disclosure.rb +213 -0
  1496. data/lib/pinterest_sdk/models/catalogs_ai_content_disclosure_label.rb +40 -0
  1497. data/lib/pinterest_sdk/models/catalogs_available_filter_values.rb +58 -0
  1498. data/lib/pinterest_sdk/models/catalogs_base_filter_keys.rb +136 -0
  1499. data/lib/pinterest_sdk/models/catalogs_base_filters_all_of.rb +175 -0
  1500. data/lib/pinterest_sdk/models/catalogs_base_filters_any_of.rb +175 -0
  1501. data/lib/pinterest_sdk/models/catalogs_create_creative_assets_item.rb +242 -0
  1502. data/lib/pinterest_sdk/models/catalogs_create_hotel_item.rb +242 -0
  1503. data/lib/pinterest_sdk/models/catalogs_create_report_response.rb +148 -0
  1504. data/lib/pinterest_sdk/models/catalogs_create_retail_item.rb +242 -0
  1505. data/lib/pinterest_sdk/models/catalogs_creative_assets_attributes.rb +306 -0
  1506. data/lib/pinterest_sdk/models/catalogs_creative_assets_available_filter_values.rb +214 -0
  1507. data/lib/pinterest_sdk/models/catalogs_creative_assets_batch_item.rb +60 -0
  1508. data/lib/pinterest_sdk/models/catalogs_creative_assets_batch_request.rb +322 -0
  1509. data/lib/pinterest_sdk/models/catalogs_creative_assets_feed.rb +503 -0
  1510. data/lib/pinterest_sdk/models/catalogs_creative_assets_feeds_create_request.rb +402 -0
  1511. data/lib/pinterest_sdk/models/catalogs_creative_assets_feeds_create_request_default_locale.rb +104 -0
  1512. data/lib/pinterest_sdk/models/catalogs_creative_assets_feeds_update_request.rb +278 -0
  1513. data/lib/pinterest_sdk/models/catalogs_creative_assets_filter_values_map.rb +282 -0
  1514. data/lib/pinterest_sdk/models/catalogs_creative_assets_item_error_response.rb +257 -0
  1515. data/lib/pinterest_sdk/models/catalogs_creative_assets_item_response.rb +265 -0
  1516. data/lib/pinterest_sdk/models/catalogs_creative_assets_items_batch.rb +262 -0
  1517. data/lib/pinterest_sdk/models/catalogs_creative_assets_items_post_filter.rb +265 -0
  1518. data/lib/pinterest_sdk/models/catalogs_creative_assets_list_products_by_catalog_based_filter_request.rb +253 -0
  1519. data/lib/pinterest_sdk/models/catalogs_creative_assets_product.rb +240 -0
  1520. data/lib/pinterest_sdk/models/catalogs_creative_assets_product_group.rb +330 -0
  1521. data/lib/pinterest_sdk/models/catalogs_creative_assets_product_group_create_request.rb +289 -0
  1522. data/lib/pinterest_sdk/models/catalogs_creative_assets_product_group_filter_keys.rb +117 -0
  1523. data/lib/pinterest_sdk/models/catalogs_creative_assets_product_group_filters.rb +104 -0
  1524. data/lib/pinterest_sdk/models/catalogs_creative_assets_product_group_filters_all_of.rb +166 -0
  1525. data/lib/pinterest_sdk/models/catalogs_creative_assets_product_group_filters_any_of.rb +166 -0
  1526. data/lib/pinterest_sdk/models/catalogs_creative_assets_product_group_product_counts.rb +329 -0
  1527. data/lib/pinterest_sdk/models/catalogs_creative_assets_product_group_update_request.rb +211 -0
  1528. data/lib/pinterest_sdk/models/catalogs_creative_assets_product_metadata.rb +214 -0
  1529. data/lib/pinterest_sdk/models/catalogs_delete_creative_assets_item.rb +216 -0
  1530. data/lib/pinterest_sdk/models/catalogs_delete_hotel_item.rb +216 -0
  1531. data/lib/pinterest_sdk/models/catalogs_delete_retail_item.rb +226 -0
  1532. data/lib/pinterest_sdk/models/catalogs_feed.rb +32 -342
  1533. data/lib/pinterest_sdk/models/catalogs_feed_create_request_schema.rb +104 -0
  1534. data/lib/pinterest_sdk/models/catalogs_feed_credentials.rb +50 -97
  1535. data/lib/pinterest_sdk/models/catalogs_feed_ingestion.rb +290 -0
  1536. data/lib/pinterest_sdk/models/catalogs_feed_ingestion_details.rb +79 -100
  1537. data/lib/pinterest_sdk/models/catalogs_feed_ingestion_errors.rb +97 -157
  1538. data/lib/pinterest_sdk/models/catalogs_feed_ingestion_info.rb +31 -99
  1539. data/lib/pinterest_sdk/models/catalogs_feed_ingestion_warnings.rb +998 -0
  1540. data/lib/pinterest_sdk/models/catalogs_feed_processing_result.rb +176 -123
  1541. data/lib/pinterest_sdk/models/catalogs_feed_processing_schedule.rb +31 -110
  1542. data/lib/pinterest_sdk/models/catalogs_feed_processing_schedule_timezone.rb +425 -0
  1543. data/lib/pinterest_sdk/models/catalogs_feed_processing_status.rb +9 -11
  1544. data/lib/pinterest_sdk/models/catalogs_feed_product_counts.rb +37 -98
  1545. data/lib/pinterest_sdk/models/catalogs_feed_update_request_schema.rb +104 -0
  1546. data/lib/pinterest_sdk/models/catalogs_feed_validation_details.rb +49 -96
  1547. data/lib/pinterest_sdk/models/catalogs_feed_validation_errors.rb +231 -278
  1548. data/lib/pinterest_sdk/models/catalogs_feed_validation_warnings.rb +1982 -348
  1549. data/lib/pinterest_sdk/models/catalogs_feed_video_counts.rb +169 -0
  1550. data/lib/pinterest_sdk/models/catalogs_feeds_create_request.rb +145 -139
  1551. data/lib/pinterest_sdk/models/catalogs_feeds_update_request.rb +89 -117
  1552. data/lib/pinterest_sdk/models/catalogs_format.rb +10 -6
  1553. data/lib/pinterest_sdk/models/catalogs_hotel_address.rb +188 -0
  1554. data/lib/pinterest_sdk/models/catalogs_hotel_attributes.rb +366 -0
  1555. data/lib/pinterest_sdk/models/catalogs_hotel_available_filter_values.rb +214 -0
  1556. data/lib/pinterest_sdk/models/catalogs_hotel_batch_item.rb +60 -0
  1557. data/lib/pinterest_sdk/models/catalogs_hotel_batch_request.rb +322 -0
  1558. data/lib/pinterest_sdk/models/catalogs_hotel_feed.rb +469 -0
  1559. data/lib/pinterest_sdk/models/catalogs_hotel_feeds_create_request.rb +376 -0
  1560. data/lib/pinterest_sdk/models/catalogs_hotel_feeds_update_request.rb +278 -0
  1561. data/lib/pinterest_sdk/models/catalogs_hotel_filter_values_map.rb +205 -0
  1562. data/lib/pinterest_sdk/models/catalogs_hotel_guest_ratings.rb +182 -0
  1563. data/lib/pinterest_sdk/models/catalogs_hotel_item_error_response.rb +257 -0
  1564. data/lib/pinterest_sdk/models/catalogs_hotel_item_response.rb +265 -0
  1565. data/lib/pinterest_sdk/models/catalogs_hotel_items_batch.rb +262 -0
  1566. data/lib/pinterest_sdk/models/catalogs_hotel_items_post_filter.rb +265 -0
  1567. data/lib/pinterest_sdk/models/catalogs_hotel_list_products_by_catalog_based_filter_request.rb +253 -0
  1568. data/lib/pinterest_sdk/models/catalogs_hotel_main_image.rb +162 -0
  1569. data/lib/pinterest_sdk/models/catalogs_hotel_product.rb +240 -0
  1570. data/lib/pinterest_sdk/models/catalogs_hotel_product_group.rb +356 -0
  1571. data/lib/pinterest_sdk/models/catalogs_hotel_product_group_create_request.rb +289 -0
  1572. data/lib/pinterest_sdk/models/catalogs_hotel_product_group_filter_keys.rb +111 -0
  1573. data/lib/pinterest_sdk/models/catalogs_hotel_product_group_filters.rb +104 -0
  1574. data/lib/pinterest_sdk/models/catalogs_hotel_product_group_filters_all_of.rb +166 -0
  1575. data/lib/pinterest_sdk/models/catalogs_hotel_product_group_filters_any_of.rb +166 -0
  1576. data/lib/pinterest_sdk/models/catalogs_hotel_product_group_product_counts.rb +224 -0
  1577. data/lib/pinterest_sdk/models/catalogs_hotel_product_group_type.rb +40 -0
  1578. data/lib/pinterest_sdk/models/catalogs_hotel_product_group_update_request.rb +211 -0
  1579. data/lib/pinterest_sdk/models/catalogs_hotel_product_metadata.rb +166 -0
  1580. data/lib/pinterest_sdk/models/catalogs_hotel_report_parameters.rb +215 -0
  1581. data/lib/pinterest_sdk/models/catalogs_hotel_report_parameters_report.rb +55 -0
  1582. data/lib/pinterest_sdk/models/catalogs_hotel_report_stats_parameters.rb +215 -0
  1583. data/lib/pinterest_sdk/models/catalogs_hotel_report_stats_parameters_report.rb +55 -0
  1584. data/lib/pinterest_sdk/models/catalogs_item_validation_details.rb +186 -0
  1585. data/lib/pinterest_sdk/models/catalogs_item_validation_errors.rb +368 -0
  1586. data/lib/pinterest_sdk/models/catalogs_item_validation_issue.rb +267 -0
  1587. data/lib/pinterest_sdk/models/catalogs_item_validation_issues.rb +230 -0
  1588. data/lib/pinterest_sdk/models/catalogs_item_validation_warnings.rb +2198 -0
  1589. data/lib/pinterest_sdk/models/catalogs_items_batch.rb +31 -235
  1590. data/lib/pinterest_sdk/models/catalogs_items_batch_post_request.rb +104 -0
  1591. data/lib/pinterest_sdk/models/catalogs_items_batch_request.rb +35 -222
  1592. data/lib/pinterest_sdk/models/catalogs_items_create_batch_request.rb +291 -0
  1593. data/lib/pinterest_sdk/models/catalogs_items_delete_batch_request.rb +273 -0
  1594. data/lib/pinterest_sdk/models/catalogs_items_delete_discontinued_batch_request.rb +273 -0
  1595. data/lib/pinterest_sdk/models/catalogs_items_post_filters.rb +57 -0
  1596. data/lib/pinterest_sdk/models/catalogs_items_request.rb +242 -0
  1597. data/lib/pinterest_sdk/models/catalogs_items_update_batch_request.rb +291 -0
  1598. data/lib/pinterest_sdk/models/catalogs_items_upsert_batch_request.rb +291 -0
  1599. data/lib/pinterest_sdk/models/catalogs_list200_response.rb +176 -0
  1600. data/lib/pinterest_sdk/models/catalogs_list_products_by_feed_based_filter.rb +203 -0
  1601. data/lib/pinterest_sdk/models/catalogs_list_products_by_filter_request.rb +105 -0
  1602. data/lib/pinterest_sdk/models/catalogs_local_stores_create200_response_inner.rb +164 -0
  1603. data/lib/pinterest_sdk/models/catalogs_local_stores_create200_response_inner_data.rb +105 -0
  1604. data/lib/pinterest_sdk/models/catalogs_local_stores_create200_response_inner_data_one_of.rb +202 -0
  1605. data/lib/pinterest_sdk/models/catalogs_local_stores_delete200_response_inner.rb +202 -0
  1606. data/lib/pinterest_sdk/models/catalogs_local_stores_list200_response.rb +176 -0
  1607. data/lib/pinterest_sdk/models/catalogs_locale.rb +84 -0
  1608. data/lib/pinterest_sdk/models/catalogs_product.rb +57 -0
  1609. data/lib/pinterest_sdk/models/catalogs_product_group_create_request.rb +85 -120
  1610. data/lib/pinterest_sdk/models/catalogs_product_group_currency_criteria.rb +72 -113
  1611. data/lib/pinterest_sdk/models/catalogs_product_group_filter_keys.rb +79 -593
  1612. data/lib/pinterest_sdk/models/catalogs_product_group_filter_operator_type_criteria.rb +206 -0
  1613. data/lib/pinterest_sdk/models/catalogs_product_group_filters.rb +75 -223
  1614. data/lib/pinterest_sdk/models/catalogs_product_group_filters_all_of.rb +42 -96
  1615. data/lib/pinterest_sdk/models/catalogs_product_group_filters_any_of.rb +42 -96
  1616. data/lib/pinterest_sdk/models/catalogs_product_group_filters_request.rb +104 -0
  1617. data/lib/pinterest_sdk/models/catalogs_product_group_filters_request_any_of_items0.rb +175 -0
  1618. data/lib/pinterest_sdk/models/catalogs_product_group_filters_request_any_of_items1.rb +175 -0
  1619. data/lib/pinterest_sdk/models/catalogs_product_group_multiple_countries_criteria.rb +175 -0
  1620. data/lib/pinterest_sdk/models/catalogs_product_group_multiple_gender_criteria.rb +175 -0
  1621. data/lib/pinterest_sdk/models/catalogs_product_group_multiple_media_types_criteria.rb +175 -0
  1622. data/lib/pinterest_sdk/models/catalogs_product_group_multiple_pinterest_product_category_criteria.rb +175 -0
  1623. data/lib/pinterest_sdk/models/catalogs_product_group_multiple_string_criteria.rb +50 -114
  1624. data/lib/pinterest_sdk/models/catalogs_product_group_multiple_string_list_criteria.rb +50 -114
  1625. data/lib/pinterest_sdk/models/catalogs_product_group_pins_list200_response.rb +176 -0
  1626. data/lib/pinterest_sdk/models/catalogs_product_group_pricing_criteria.rb +59 -117
  1627. data/lib/pinterest_sdk/models/catalogs_product_group_product_counts_vertical.rb +58 -0
  1628. data/lib/pinterest_sdk/models/catalogs_product_group_status.rb +9 -6
  1629. data/lib/pinterest_sdk/models/catalogs_product_group_type.rb +12 -6
  1630. data/lib/pinterest_sdk/models/catalogs_product_group_uint32_criteria.rb +239 -0
  1631. data/lib/pinterest_sdk/models/catalogs_product_group_update_many_request_items_one_of_items0.rb +221 -0
  1632. data/lib/pinterest_sdk/models/catalogs_product_group_update_request.rb +48 -155
  1633. data/lib/pinterest_sdk/models/catalogs_product_groups_create_many_request_items.rb +104 -0
  1634. data/lib/pinterest_sdk/models/catalogs_product_groups_create_request_schema.rb +104 -0
  1635. data/lib/pinterest_sdk/models/catalogs_product_groups_list200_response.rb +176 -0
  1636. data/lib/pinterest_sdk/models/catalogs_product_groups_update_request_schema.rb +104 -0
  1637. data/lib/pinterest_sdk/models/catalogs_report.rb +203 -0
  1638. data/lib/pinterest_sdk/models/catalogs_report_distribution_issue_filter.rb +219 -0
  1639. data/lib/pinterest_sdk/models/catalogs_report_distribution_stats.rb +272 -0
  1640. data/lib/pinterest_sdk/models/catalogs_report_feed_ingestion_filter.rb +257 -0
  1641. data/lib/pinterest_sdk/models/catalogs_report_feed_ingestion_stats.rb +274 -0
  1642. data/lib/pinterest_sdk/models/catalogs_report_parameters.rb +56 -0
  1643. data/lib/pinterest_sdk/models/catalogs_report_stats.rb +56 -0
  1644. data/lib/pinterest_sdk/models/catalogs_report_stats_parameters.rb +56 -0
  1645. data/lib/pinterest_sdk/models/catalogs_retail_available_filter_values.rb +214 -0
  1646. data/lib/pinterest_sdk/models/catalogs_retail_batch_request.rb +322 -0
  1647. data/lib/pinterest_sdk/models/catalogs_retail_batch_request_items_items.rb +59 -0
  1648. data/lib/pinterest_sdk/models/catalogs_retail_feed.rb +475 -0
  1649. data/lib/pinterest_sdk/models/catalogs_retail_feeds_create_request.rb +412 -0
  1650. data/lib/pinterest_sdk/models/catalogs_retail_feeds_update_request.rb +288 -0
  1651. data/lib/pinterest_sdk/models/catalogs_retail_filter_values_map.rb +403 -0
  1652. data/lib/pinterest_sdk/models/catalogs_retail_item_error_response.rb +257 -0
  1653. data/lib/pinterest_sdk/models/catalogs_retail_item_response.rb +265 -0
  1654. data/lib/pinterest_sdk/models/catalogs_retail_items_batch.rb +265 -0
  1655. data/lib/pinterest_sdk/models/catalogs_retail_items_post_filter.rb +265 -0
  1656. data/lib/pinterest_sdk/models/catalogs_retail_list_products_by_catalog_based_filter_request.rb +306 -0
  1657. data/lib/pinterest_sdk/models/catalogs_retail_product.rb +240 -0
  1658. data/lib/pinterest_sdk/models/catalogs_retail_product_group.rb +425 -0
  1659. data/lib/pinterest_sdk/models/catalogs_retail_product_group_create_request.rb +308 -0
  1660. data/lib/pinterest_sdk/models/catalogs_retail_product_group_product_counts.rb +357 -0
  1661. data/lib/pinterest_sdk/models/catalogs_retail_product_group_update_request.rb +230 -0
  1662. data/lib/pinterest_sdk/models/catalogs_retail_product_metadata.rb +293 -0
  1663. data/lib/pinterest_sdk/models/catalogs_retail_report_all_items_filter.rb +251 -0
  1664. data/lib/pinterest_sdk/models/catalogs_retail_report_parameters.rb +215 -0
  1665. data/lib/pinterest_sdk/models/catalogs_retail_report_parameters_report.rb +57 -0
  1666. data/lib/pinterest_sdk/models/catalogs_retail_report_stats_parameters.rb +215 -0
  1667. data/lib/pinterest_sdk/models/catalogs_retail_report_stats_parameters_report.rb +55 -0
  1668. data/lib/pinterest_sdk/models/catalogs_status.rb +9 -6
  1669. data/lib/pinterest_sdk/models/catalogs_type.rb +41 -0
  1670. data/lib/pinterest_sdk/models/catalogs_updatable_creative_assets_attributes.rb +267 -0
  1671. data/lib/pinterest_sdk/models/catalogs_updatable_hotel_attributes.rb +324 -0
  1672. data/lib/pinterest_sdk/models/catalogs_update_creative_assets_item.rb +242 -0
  1673. data/lib/pinterest_sdk/models/catalogs_update_hotel_item.rb +242 -0
  1674. data/lib/pinterest_sdk/models/catalogs_update_retail_item.rb +255 -0
  1675. data/lib/pinterest_sdk/models/catalogs_upsert_creative_assets_item.rb +242 -0
  1676. data/lib/pinterest_sdk/models/catalogs_upsert_hotel_item.rb +242 -0
  1677. data/lib/pinterest_sdk/models/catalogs_upsert_retail_item.rb +242 -0
  1678. data/lib/pinterest_sdk/models/catalogs_vertical_batch_request.rb +58 -0
  1679. data/lib/pinterest_sdk/models/catalogs_vertical_feeds_create_request.rb +58 -0
  1680. data/lib/pinterest_sdk/models/catalogs_vertical_feeds_update_request.rb +58 -0
  1681. data/lib/pinterest_sdk/models/catalogs_vertical_product_group.rb +57 -0
  1682. data/lib/pinterest_sdk/models/catalogs_vertical_product_group_create_request.rb +58 -0
  1683. data/lib/pinterest_sdk/models/catalogs_vertical_product_group_update_request.rb +58 -0
  1684. data/lib/pinterest_sdk/models/catalogs_verticals_list_products_by_catalog_based_filter_request.rb +58 -0
  1685. data/lib/pinterest_sdk/models/change_history_data_type.rb +48 -0
  1686. data/lib/pinterest_sdk/models/change_history_operation_type.rb +41 -0
  1687. data/lib/pinterest_sdk/models/collections_header_type.rb +43 -0
  1688. data/lib/pinterest_sdk/models/condition_filter.rb +37 -96
  1689. data/lib/pinterest_sdk/models/content_type.rb +40 -0
  1690. data/lib/pinterest_sdk/models/conversion_access_token.rb +176 -0
  1691. data/lib/pinterest_sdk/models/conversion_api_response_events_items.rb +209 -0
  1692. data/lib/pinterest_sdk/models/conversion_attribution_window_days.rb +11 -6
  1693. data/lib/pinterest_sdk/models/conversion_deletion_request.rb +273 -0
  1694. data/lib/pinterest_sdk/models/conversion_deletion_request_create.rb +166 -0
  1695. data/lib/pinterest_sdk/models/conversion_deletion_request_epik_targets.rb +176 -0
  1696. data/lib/pinterest_sdk/models/conversion_deletion_request_list200_response.rb +176 -0
  1697. data/lib/pinterest_sdk/models/conversion_deletion_request_status.rb +41 -0
  1698. data/lib/pinterest_sdk/models/conversion_deletion_request_targets.rb +103 -0
  1699. data/lib/pinterest_sdk/models/conversion_deletion_request_user_email_targets.rb +176 -0
  1700. data/lib/pinterest_sdk/models/conversion_event.rb +48 -0
  1701. data/lib/pinterest_sdk/models/conversion_event_app_info.rb +418 -0
  1702. data/lib/pinterest_sdk/models/conversion_event_device_info.rb +892 -0
  1703. data/lib/pinterest_sdk/models/conversion_event_ingestion_source.rb +43 -0
  1704. data/lib/pinterest_sdk/models/conversion_event_response.rb +251 -0
  1705. data/lib/pinterest_sdk/models/conversion_events.rb +222 -0
  1706. data/lib/pinterest_sdk/models/conversion_events_create.rb +186 -0
  1707. data/lib/pinterest_sdk/models/conversion_events_data_items.rb +441 -0
  1708. data/lib/pinterest_sdk/models/conversion_events_data_items_custom_data.rb +305 -0
  1709. data/lib/pinterest_sdk/models/conversion_events_data_items_custom_data_contents_items.rb +227 -0
  1710. data/lib/pinterest_sdk/models/conversion_events_user_data_properties.rb +324 -0
  1711. data/lib/pinterest_sdk/models/conversion_health_selection_item.rb +182 -0
  1712. data/lib/pinterest_sdk/models/conversion_learning_mode_type.rb +40 -0
  1713. data/lib/pinterest_sdk/models/conversion_msot_events_create.rb +517 -0
  1714. data/lib/pinterest_sdk/models/conversion_objective_type.rb +47 -0
  1715. data/lib/pinterest_sdk/models/conversion_product_attribution_type.rb +40 -0
  1716. data/lib/pinterest_sdk/models/conversion_product_report.rb +210 -0
  1717. data/lib/pinterest_sdk/models/conversion_product_report_breakdown_type.rb +43 -0
  1718. data/lib/pinterest_sdk/models/conversion_product_report_create.rb +557 -0
  1719. data/lib/pinterest_sdk/models/conversion_product_report_granularity.rb +41 -0
  1720. data/lib/pinterest_sdk/models/conversion_product_report_level.rb +41 -0
  1721. data/lib/pinterest_sdk/models/conversion_product_reporting_column.rb +210 -0
  1722. data/lib/pinterest_sdk/models/conversion_report_attribution_type.rb +9 -6
  1723. data/lib/pinterest_sdk/models/conversion_report_time_type.rb +11 -8
  1724. data/lib/pinterest_sdk/models/conversion_tag.rb +291 -0
  1725. data/lib/pinterest_sdk/models/conversion_tag_common.rb +248 -0
  1726. data/lib/pinterest_sdk/models/conversion_tag_configs.rb +254 -0
  1727. data/lib/pinterest_sdk/models/conversion_tag_create.rb +270 -0
  1728. data/lib/pinterest_sdk/models/conversion_tag_response.rb +291 -0
  1729. data/lib/pinterest_sdk/models/conversion_tag_type.rb +66 -0
  1730. data/lib/pinterest_sdk/models/conversion_tag_type_optimal.rb +66 -0
  1731. data/lib/pinterest_sdk/models/conversion_tag_v3_goal_metadata.rb +259 -0
  1732. data/lib/pinterest_sdk/models/conversion_tags_list200_response.rb +166 -0
  1733. data/lib/pinterest_sdk/models/country.rb +11 -7
  1734. data/lib/pinterest_sdk/models/country_filter.rb +164 -0
  1735. data/lib/pinterest_sdk/models/create_asset_access_request_body.rb +185 -0
  1736. data/lib/pinterest_sdk/models/create_asset_access_request_item.rb +205 -0
  1737. data/lib/pinterest_sdk/models/create_asset_access_request_response.rb +162 -0
  1738. data/lib/pinterest_sdk/models/create_asset_invites_request.rb +185 -0
  1739. data/lib/pinterest_sdk/models/create_asset_invites_request_item.rb +254 -0
  1740. data/lib/pinterest_sdk/models/create_invites_results_response_array.rb +150 -0
  1741. data/lib/pinterest_sdk/models/create_membership_or_partnership_invites_body.rb +293 -0
  1742. data/lib/pinterest_sdk/models/creation_source.rb +41 -0
  1743. data/lib/pinterest_sdk/models/creative_assets_id_filter.rb +164 -0
  1744. data/lib/pinterest_sdk/models/creative_assets_processing_record.rb +204 -0
  1745. data/lib/pinterest_sdk/models/creative_assets_visibility_type.rb +40 -0
  1746. data/lib/pinterest_sdk/models/creative_type.rb +52 -0
  1747. data/lib/pinterest_sdk/models/currency.rb +11 -6
  1748. data/lib/pinterest_sdk/models/currency_filter.rb +37 -96
  1749. data/lib/pinterest_sdk/models/custom_conversion_event_metrics.rb +213 -0
  1750. data/lib/pinterest_sdk/models/custom_label0_filter.rb +38 -97
  1751. data/lib/pinterest_sdk/models/custom_label1_filter.rb +38 -97
  1752. data/lib/pinterest_sdk/models/custom_label2_filter.rb +38 -97
  1753. data/lib/pinterest_sdk/models/custom_label3_filter.rb +38 -97
  1754. data/lib/pinterest_sdk/models/custom_label4_filter.rb +38 -97
  1755. data/lib/pinterest_sdk/models/custom_number0_filter.rb +164 -0
  1756. data/lib/pinterest_sdk/models/custom_number1_filter.rb +164 -0
  1757. data/lib/pinterest_sdk/models/custom_number2_filter.rb +164 -0
  1758. data/lib/pinterest_sdk/models/custom_number3_filter.rb +164 -0
  1759. data/lib/pinterest_sdk/models/custom_number4_filter.rb +164 -0
  1760. data/lib/pinterest_sdk/models/customer_list.rb +334 -0
  1761. data/lib/pinterest_sdk/models/customer_list_create.rb +230 -0
  1762. data/lib/pinterest_sdk/models/customer_list_record_row.rb +219 -0
  1763. data/lib/pinterest_sdk/models/customer_list_status.rb +42 -0
  1764. data/lib/pinterest_sdk/models/customer_list_update_with_required_body.rb +210 -0
  1765. data/lib/pinterest_sdk/models/customer_list_upload.rb +412 -0
  1766. data/lib/pinterest_sdk/models/customer_list_upload_create_request.rb +231 -0
  1767. data/lib/pinterest_sdk/models/customer_list_upload_create_response.rb +192 -0
  1768. data/lib/pinterest_sdk/models/customer_lists_list200_response.rb +176 -0
  1769. data/lib/pinterest_sdk/models/customer_segment.rb +308 -0
  1770. data/lib/pinterest_sdk/models/customer_segment_create.rb +195 -0
  1771. data/lib/pinterest_sdk/models/customer_segment_list200_response.rb +176 -0
  1772. data/lib/pinterest_sdk/models/customer_segment_update_request_update_with_required_body.rb +237 -0
  1773. data/lib/pinterest_sdk/models/customizable_cta_type.rb +69 -0
  1774. data/lib/pinterest_sdk/models/data_output_format.rb +9 -6
  1775. data/lib/pinterest_sdk/models/data_status.rb +61 -0
  1776. data/lib/pinterest_sdk/models/delete_business_membership200_response.rb +149 -0
  1777. data/lib/pinterest_sdk/models/delete_business_membership_body.rb +185 -0
  1778. data/lib/pinterest_sdk/models/delete_business_membership_member.rb +234 -0
  1779. data/lib/pinterest_sdk/models/delete_business_partners.rb +149 -0
  1780. data/lib/pinterest_sdk/models/delete_business_partners_delete.rb +217 -0
  1781. data/lib/pinterest_sdk/models/delete_member_access_result.rb +201 -0
  1782. data/lib/pinterest_sdk/models/delete_member_access_results_response_array.rb +150 -0
  1783. data/lib/pinterest_sdk/models/delete_member_asset_access_item.rb +232 -0
  1784. data/lib/pinterest_sdk/models/delete_partner_asset_access_body.rb +186 -0
  1785. data/lib/pinterest_sdk/models/delete_partner_asset_access_item.rb +278 -0
  1786. data/lib/pinterest_sdk/models/delete_partner_asset_access_result.rb +233 -0
  1787. data/lib/pinterest_sdk/models/delete_partner_asset_access_results_response_array.rb +150 -0
  1788. data/lib/pinterest_sdk/models/delivery_estimate_objective_type.rb +42 -0
  1789. data/lib/pinterest_sdk/models/delivery_metrics_get200_response.rb +166 -0
  1790. data/lib/pinterest_sdk/models/delivery_metrics_response_items_items.rb +212 -0
  1791. data/lib/pinterest_sdk/models/detailed_error.rb +217 -0
  1792. data/lib/pinterest_sdk/models/disclosure_type.rb +44 -0
  1793. data/lib/pinterest_sdk/models/discount_status.rb +43 -0
  1794. data/lib/pinterest_sdk/models/dynamic_titles_download_csv.rb +148 -0
  1795. data/lib/pinterest_sdk/models/dynamic_titles_get_status.rb +168 -0
  1796. data/lib/pinterest_sdk/models/dynamic_titles_process_csv.rb +160 -0
  1797. data/lib/pinterest_sdk/models/dynamic_titles_process_csv_create.rb +166 -0
  1798. data/lib/pinterest_sdk/models/dynamic_titles_process_csv_error.rb +158 -0
  1799. data/lib/pinterest_sdk/models/dynamic_titles_upload_url.rb +202 -0
  1800. data/lib/pinterest_sdk/models/enhanced_match_status_type.rb +42 -0
  1801. data/lib/pinterest_sdk/models/entity_data_change_history.rb +210 -0
  1802. data/lib/pinterest_sdk/models/entity_history.rb +274 -0
  1803. data/lib/pinterest_sdk/models/entity_label.rb +234 -0
  1804. data/lib/pinterest_sdk/models/entity_label_error.rb +158 -0
  1805. data/lib/pinterest_sdk/models/entity_label_status.rb +41 -0
  1806. data/lib/pinterest_sdk/models/entity_status.rb +11 -6
  1807. data/lib/pinterest_sdk/models/error_detail.rb +219 -0
  1808. data/lib/pinterest_sdk/models/event_data.rb +270 -0
  1809. data/lib/pinterest_sdk/models/event_processing_status.rb +40 -0
  1810. data/lib/pinterest_sdk/models/event_quality_score.rb +291 -0
  1811. data/lib/pinterest_sdk/models/exception.rb +173 -0
  1812. data/lib/pinterest_sdk/models/featured_trend.rb +210 -0
  1813. data/lib/pinterest_sdk/models/feed_processing_results_list200_response.rb +176 -0
  1814. data/lib/pinterest_sdk/models/feeds_list200_response.rb +176 -0
  1815. data/lib/pinterest_sdk/models/filter_operator_type.rb +40 -0
  1816. data/lib/pinterest_sdk/models/follow_user.rb +158 -0
  1817. data/lib/pinterest_sdk/models/follow_user_create.rb +149 -0
  1818. data/lib/pinterest_sdk/models/followers_list200_response.rb +176 -0
  1819. data/lib/pinterest_sdk/models/form_factor.rb +47 -0
  1820. data/lib/pinterest_sdk/models/freq_bid_multiplier_time_window.rb +40 -0
  1821. data/lib/pinterest_sdk/models/frequency_goal_metadata.rb +207 -0
  1822. data/lib/pinterest_sdk/models/frequency_goal_metadata_timerange.rb +44 -0
  1823. data/lib/pinterest_sdk/models/frequency_multipliers.rb +149 -0
  1824. data/lib/pinterest_sdk/models/gender.rb +41 -0
  1825. data/lib/pinterest_sdk/models/gender_bucket.rb +41 -0
  1826. data/lib/pinterest_sdk/models/gender_demographics.rb +220 -0
  1827. data/lib/pinterest_sdk/models/gender_filter.rb +38 -97
  1828. data/lib/pinterest_sdk/models/gender_multipliers.rb +171 -0
  1829. data/lib/pinterest_sdk/models/get_business_employers200_response.rb +176 -0
  1830. data/lib/pinterest_sdk/models/get_invites200_response.rb +176 -0
  1831. data/lib/pinterest_sdk/models/google_product_category0_filter.rb +37 -96
  1832. data/lib/pinterest_sdk/models/google_product_category1_filter.rb +37 -96
  1833. data/lib/pinterest_sdk/models/google_product_category2_filter.rb +37 -96
  1834. data/lib/pinterest_sdk/models/google_product_category3_filter.rb +37 -96
  1835. data/lib/pinterest_sdk/models/google_product_category4_filter.rb +37 -96
  1836. data/lib/pinterest_sdk/models/google_product_category5_filter.rb +37 -96
  1837. data/lib/pinterest_sdk/models/google_product_category6_filter.rb +37 -96
  1838. data/lib/pinterest_sdk/models/granularity.rb +9 -6
  1839. data/lib/pinterest_sdk/models/grid_click_type.rb +40 -0
  1840. data/lib/pinterest_sdk/models/hotel_id_filter.rb +164 -0
  1841. data/lib/pinterest_sdk/models/hotel_processing_record.rb +204 -0
  1842. data/lib/pinterest_sdk/models/http_method.rb +47 -0
  1843. data/lib/pinterest_sdk/models/image_details.rb +50 -143
  1844. data/lib/pinterest_sdk/models/image_metadata.rb +228 -0
  1845. data/lib/pinterest_sdk/models/image_size.rb +174 -0
  1846. data/lib/pinterest_sdk/models/ineligible_product_tag_error_item.rb +226 -0
  1847. data/lib/pinterest_sdk/models/ineligible_product_tag_reason.rb +43 -0
  1848. data/lib/pinterest_sdk/models/ineligible_product_tags_error_details.rb +168 -0
  1849. data/lib/pinterest_sdk/models/ingestion_source.rb +43 -0
  1850. data/lib/pinterest_sdk/models/ingestion_source_options.rb +43 -0
  1851. data/lib/pinterest_sdk/models/inner_product_categories_metrics_highlights.rb +165 -0
  1852. data/lib/pinterest_sdk/models/integration_log.rb +472 -0
  1853. data/lib/pinterest_sdk/models/integration_log_client_error.rb +324 -0
  1854. data/lib/pinterest_sdk/models/integration_log_client_request.rb +274 -0
  1855. data/lib/pinterest_sdk/models/integration_log_event_type.rb +40 -0
  1856. data/lib/pinterest_sdk/models/integration_log_level.rb +41 -0
  1857. data/lib/pinterest_sdk/models/integration_logs_invalid_log_response.rb +150 -0
  1858. data/lib/pinterest_sdk/models/integration_logs_invalid_log_response_rejected_logs_items.rb +229 -0
  1859. data/lib/pinterest_sdk/models/integration_logs_request_create.rb +185 -0
  1860. data/lib/pinterest_sdk/models/integration_logs_success_response.rb +148 -0
  1861. data/lib/pinterest_sdk/models/integration_metadata.rb +287 -0
  1862. data/lib/pinterest_sdk/models/integration_metadata_create.rb +257 -0
  1863. data/lib/pinterest_sdk/models/integration_metadata_update.rb +247 -0
  1864. data/lib/pinterest_sdk/models/integration_record.rb +334 -0
  1865. data/lib/pinterest_sdk/models/integrations_get_list200_response.rb +176 -0
  1866. data/lib/pinterest_sdk/models/intended_promotion_type.rb +41 -0
  1867. data/lib/pinterest_sdk/models/interest.rb +195 -0
  1868. data/lib/pinterest_sdk/models/interests_enum.rb +54 -0
  1869. data/lib/pinterest_sdk/models/invite_action_result_item.rb +159 -0
  1870. data/lib/pinterest_sdk/models/invite_assets_summary.rb +163 -0
  1871. data/lib/pinterest_sdk/models/invite_assets_summary_item.rb +181 -0
  1872. data/lib/pinterest_sdk/models/invite_business_role_binding.rb +219 -0
  1873. data/lib/pinterest_sdk/models/invite_data_response.rb +189 -0
  1874. data/lib/pinterest_sdk/models/invite_exception_response.rb +199 -0
  1875. data/lib/pinterest_sdk/models/invite_filter_status.rb +40 -0
  1876. data/lib/pinterest_sdk/models/invite_response.rb +251 -0
  1877. data/lib/pinterest_sdk/models/invite_status.rb +43 -0
  1878. data/lib/pinterest_sdk/models/invite_type.rb +41 -0
  1879. data/lib/pinterest_sdk/models/item_attributes.rb +1524 -252
  1880. data/lib/pinterest_sdk/models/item_attributes_request.rb +2088 -0
  1881. data/lib/pinterest_sdk/models/item_attributes_request_image_link.rb +105 -0
  1882. data/lib/pinterest_sdk/models/item_availability.rb +41 -0
  1883. data/lib/pinterest_sdk/models/item_create_batch_record.rb +158 -0
  1884. data/lib/pinterest_sdk/models/item_delete_batch_record.rb +149 -0
  1885. data/lib/pinterest_sdk/models/item_delete_discontinued_batch_record.rb +149 -0
  1886. data/lib/pinterest_sdk/models/item_group_id_filter.rb +37 -96
  1887. data/lib/pinterest_sdk/models/item_id_filter.rb +38 -97
  1888. data/lib/pinterest_sdk/models/item_id_store_code_pair.rb +193 -0
  1889. data/lib/pinterest_sdk/models/item_processing_record.rb +68 -117
  1890. data/lib/pinterest_sdk/models/item_processing_status.rb +9 -6
  1891. data/lib/pinterest_sdk/models/item_response.rb +64 -0
  1892. data/lib/pinterest_sdk/models/item_update_batch_record.rb +171 -0
  1893. data/lib/pinterest_sdk/models/item_upsert_batch_record.rb +158 -0
  1894. data/lib/pinterest_sdk/models/item_validation_event.rb +25 -96
  1895. data/lib/pinterest_sdk/models/items_issues_list200_response.rb +176 -0
  1896. data/lib/pinterest_sdk/models/items_post200_response.rb +166 -0
  1897. data/lib/pinterest_sdk/models/keyword.rb +316 -0
  1898. data/lib/pinterest_sdk/models/keyword_create_item.rb +211 -0
  1899. data/lib/pinterest_sdk/models/keyword_error.rb +158 -0
  1900. data/lib/pinterest_sdk/models/keyword_info.rb +176 -0
  1901. data/lib/pinterest_sdk/models/keyword_metrics.rb +149 -0
  1902. data/lib/pinterest_sdk/models/keyword_metrics_response.rb +157 -0
  1903. data/lib/pinterest_sdk/models/keyword_update_generated.rb +197 -0
  1904. data/lib/pinterest_sdk/models/keyword_update_item.rb +196 -0
  1905. data/lib/pinterest_sdk/models/keywords.rb +196 -0
  1906. data/lib/pinterest_sdk/models/keywords_common.rb +210 -0
  1907. data/lib/pinterest_sdk/models/keywords_create.rb +195 -0
  1908. data/lib/pinterest_sdk/models/keywords_get200_response.rb +176 -0
  1909. data/lib/pinterest_sdk/models/keywords_metrics_array_response.rb +149 -0
  1910. data/lib/pinterest_sdk/models/keywords_request.rb +205 -0
  1911. data/lib/pinterest_sdk/models/keywords_update.rb +151 -0
  1912. data/lib/pinterest_sdk/models/label.rb +256 -0
  1913. data/lib/pinterest_sdk/models/label_bulk_create_request.rb +205 -0
  1914. data/lib/pinterest_sdk/models/label_bulk_update_request.rb +240 -0
  1915. data/lib/pinterest_sdk/models/label_create_item.rb +222 -0
  1916. data/lib/pinterest_sdk/models/label_create_request.rb +167 -0
  1917. data/lib/pinterest_sdk/models/label_error.rb +158 -0
  1918. data/lib/pinterest_sdk/models/label_error_data.rb +240 -0
  1919. data/lib/pinterest_sdk/models/label_parent_type.rb +39 -0
  1920. data/lib/pinterest_sdk/models/label_status.rb +40 -0
  1921. data/lib/pinterest_sdk/models/label_status_bulk_update.rb +39 -0
  1922. data/lib/pinterest_sdk/models/label_type.rb +40 -0
  1923. data/lib/pinterest_sdk/models/label_update_item.rb +236 -0
  1924. data/lib/pinterest_sdk/models/label_update_request.rb +167 -0
  1925. data/lib/pinterest_sdk/models/labeled_entities.rb +161 -0
  1926. data/lib/pinterest_sdk/models/labeled_entities_create.rb +168 -0
  1927. data/lib/pinterest_sdk/models/labels_list200_response.rb +176 -0
  1928. data/lib/pinterest_sdk/models/labels_response.rb +161 -0
  1929. data/lib/pinterest_sdk/models/language.rb +10 -7
  1930. data/lib/pinterest_sdk/models/lead_form.rb +422 -0
  1931. data/lib/pinterest_sdk/models/lead_form_batch_update.rb +341 -0
  1932. data/lib/pinterest_sdk/models/lead_form_create.rb +334 -0
  1933. data/lib/pinterest_sdk/models/lead_form_policy_link.rb +158 -0
  1934. data/lib/pinterest_sdk/models/lead_form_question.rb +227 -0
  1935. data/lib/pinterest_sdk/models/lead_form_question_field_type.rb +42 -0
  1936. data/lib/pinterest_sdk/models/lead_form_question_type.rb +52 -0
  1937. data/lib/pinterest_sdk/models/lead_form_status.rb +40 -0
  1938. data/lib/pinterest_sdk/models/lead_form_test.rb +170 -0
  1939. data/lib/pinterest_sdk/models/lead_form_test_create.rb +168 -0
  1940. data/lib/pinterest_sdk/models/lead_forms_create200_response.rb +166 -0
  1941. data/lib/pinterest_sdk/models/lead_forms_create200_response_items_inner.rb +158 -0
  1942. data/lib/pinterest_sdk/models/lead_forms_list200_response.rb +176 -0
  1943. data/lib/pinterest_sdk/models/lead_subscription.rb +311 -0
  1944. data/lib/pinterest_sdk/models/lead_subscription_create.rb +196 -0
  1945. data/lib/pinterest_sdk/models/lead_subscription_post_params.rb +348 -0
  1946. data/lib/pinterest_sdk/models/lead_subscription_post_params_create.rb +233 -0
  1947. data/lib/pinterest_sdk/models/leads_export_response_data.rb +179 -0
  1948. data/lib/pinterest_sdk/models/leads_export_status.rb +41 -0
  1949. data/lib/pinterest_sdk/models/leads_exports.rb +169 -0
  1950. data/lib/pinterest_sdk/models/leads_exports_create.rb +253 -0
  1951. data/lib/pinterest_sdk/models/line_item.rb +218 -0
  1952. data/lib/pinterest_sdk/models/link_filter.rb +164 -0
  1953. data/lib/pinterest_sdk/models/linked_business.rb +188 -0
  1954. data/lib/pinterest_sdk/models/local_inventory_create_operation.rb +269 -0
  1955. data/lib/pinterest_sdk/models/local_inventory_delete_operation.rb +243 -0
  1956. data/lib/pinterest_sdk/models/local_inventory_item_response.rb +309 -0
  1957. data/lib/pinterest_sdk/models/local_inventory_items_batch.rb +281 -0
  1958. data/lib/pinterest_sdk/models/local_inventory_items_batch_create.rb +186 -0
  1959. data/lib/pinterest_sdk/models/local_inventory_items_get.rb +168 -0
  1960. data/lib/pinterest_sdk/models/local_inventory_items_get_create.rb +186 -0
  1961. data/lib/pinterest_sdk/models/local_inventory_operation.rb +59 -0
  1962. data/lib/pinterest_sdk/models/local_inventory_operation_result.rb +294 -0
  1963. data/lib/pinterest_sdk/models/local_inventory_update_operation.rb +269 -0
  1964. data/lib/pinterest_sdk/models/local_inventory_upsert_operation.rb +269 -0
  1965. data/lib/pinterest_sdk/models/local_store.rb +404 -0
  1966. data/lib/pinterest_sdk/models/local_store_batch_update.rb +298 -0
  1967. data/lib/pinterest_sdk/models/local_store_create.rb +312 -0
  1968. data/lib/pinterest_sdk/models/lookback_period_options.rb +40 -0
  1969. data/lib/pinterest_sdk/models/match_type.rb +43 -0
  1970. data/lib/pinterest_sdk/models/match_type_response.rb +43 -0
  1971. data/lib/pinterest_sdk/models/max_price_filter.rb +37 -96
  1972. data/lib/pinterest_sdk/models/media.rb +233 -0
  1973. data/lib/pinterest_sdk/models/media_list200_response.rb +176 -0
  1974. data/lib/pinterest_sdk/models/media_type.rb +40 -0
  1975. data/lib/pinterest_sdk/models/media_type_filter.rb +164 -0
  1976. data/lib/pinterest_sdk/models/media_upload.rb +105 -115
  1977. data/lib/pinterest_sdk/models/media_upload_create.rb +187 -0
  1978. data/lib/pinterest_sdk/models/media_upload_parameters.rb +210 -0
  1979. data/lib/pinterest_sdk/models/media_upload_status.rb +9 -6
  1980. data/lib/pinterest_sdk/models/media_upload_type.rb +9 -6
  1981. data/lib/pinterest_sdk/models/member_business_role.rb +40 -0
  1982. data/lib/pinterest_sdk/models/metrics_reporting_level.rb +10 -6
  1983. data/lib/pinterest_sdk/models/metrics_reporting_template_type.rb +44 -0
  1984. data/lib/pinterest_sdk/models/metrics_response.rb +149 -0
  1985. data/lib/pinterest_sdk/models/metrics_response_data_items.rb +219 -0
  1986. data/lib/pinterest_sdk/models/min_price_filter.rb +37 -96
  1987. data/lib/pinterest_sdk/models/mmm_report.rb +214 -0
  1988. data/lib/pinterest_sdk/models/mmm_report_create.rb +449 -0
  1989. data/lib/pinterest_sdk/models/mmm_report_granularity.rb +40 -0
  1990. data/lib/pinterest_sdk/models/mmm_report_level.rb +40 -0
  1991. data/lib/pinterest_sdk/models/mmm_reporting_column.rb +64 -0
  1992. data/lib/pinterest_sdk/models/mmm_reporting_targeting_type.rb +45 -0
  1993. data/lib/pinterest_sdk/models/mobile_app_platform.rb +40 -0
  1994. data/lib/pinterest_sdk/models/msot_event_name.rb +42 -0
  1995. data/lib/pinterest_sdk/models/multi_pins_analytics_metric_types_item.rb +53 -0
  1996. data/lib/pinterest_sdk/models/network_type.rb +46 -0
  1997. data/lib/pinterest_sdk/models/non_draft_entity_status.rb +41 -0
  1998. data/lib/pinterest_sdk/models/non_nullable_catalogs_currency.rb +9 -6
  1999. data/lib/pinterest_sdk/models/notification_post_request.rb +105 -0
  2000. data/lib/pinterest_sdk/models/notification_response.rb +168 -0
  2001. data/lib/pinterest_sdk/models/nullable_catalogs_item_field_type.rb +143 -0
  2002. data/lib/pinterest_sdk/models/nullable_currency.rb +9 -7
  2003. data/lib/pinterest_sdk/models/nullable_entity_status.rb +43 -0
  2004. data/lib/pinterest_sdk/models/nullable_label_status.rb +40 -0
  2005. data/lib/pinterest_sdk/models/nullable_label_type.rb +40 -0
  2006. data/lib/pinterest_sdk/models/nullable_optimization_goal_metadata.rb +165 -0
  2007. data/lib/pinterest_sdk/models/nullable_partner_type.rb +40 -0
  2008. data/lib/pinterest_sdk/models/nullalble_match_type.rb +43 -0
  2009. data/lib/pinterest_sdk/models/numeric_filter_operator_type.rb +42 -0
  2010. data/lib/pinterest_sdk/models/oauth_access_token.rb +284 -0
  2011. data/lib/pinterest_sdk/models/objective_type.rb +13 -10
  2012. data/lib/pinterest_sdk/models/operation_type.rb +40 -0
  2013. data/lib/pinterest_sdk/models/optimization_goal_metadata.rb +165 -0
  2014. data/lib/pinterest_sdk/models/optimization_type.rb +43 -0
  2015. data/lib/pinterest_sdk/models/order.rb +40 -0
  2016. data/lib/pinterest_sdk/models/order_line.rb +384 -0
  2017. data/lib/pinterest_sdk/models/order_line_mutation_error.rb +159 -0
  2018. data/lib/pinterest_sdk/models/order_line_mutation_response.rb +147 -0
  2019. data/lib/pinterest_sdk/models/order_line_mutation_result.rb +162 -0
  2020. data/lib/pinterest_sdk/models/order_line_paid_type.rb +42 -0
  2021. data/lib/pinterest_sdk/models/order_line_status.rb +41 -0
  2022. data/lib/pinterest_sdk/models/order_lines_list200_response.rb +176 -0
  2023. data/lib/pinterest_sdk/models/os_family.rb +45 -0
  2024. data/lib/pinterest_sdk/models/overall_status_options.rb +41 -0
  2025. data/lib/pinterest_sdk/models/pacing_delivery_type.rb +9 -6
  2026. data/lib/pinterest_sdk/models/page_visit_conversion_tags_get200_response.rb +176 -0
  2027. data/lib/pinterest_sdk/models/partner_metadata.rb +148 -0
  2028. data/lib/pinterest_sdk/models/partner_type.rb +40 -0
  2029. data/lib/pinterest_sdk/models/performance_plus_campaign_settings.rb +161 -0
  2030. data/lib/pinterest_sdk/models/permissions.rb +50 -0
  2031. data/lib/pinterest_sdk/models/permissions_with_owner.rb +49 -0
  2032. data/lib/pinterest_sdk/models/pin.rb +306 -165
  2033. data/lib/pinterest_sdk/models/pin_analytics_daily_metrics.rb +190 -0
  2034. data/lib/pinterest_sdk/models/pin_analytics_metrics_response.rb +174 -0
  2035. data/lib/pinterest_sdk/models/pin_base.rb +393 -0
  2036. data/lib/pinterest_sdk/models/pin_create.rb +384 -0
  2037. data/lib/pinterest_sdk/models/pin_filter.rb +41 -0
  2038. data/lib/pinterest_sdk/models/pin_media.rb +36 -198
  2039. data/lib/pinterest_sdk/models/pin_media_metadata.rb +56 -0
  2040. data/lib/pinterest_sdk/models/pin_media_source.rb +12 -6
  2041. data/lib/pinterest_sdk/models/pin_media_source_image_base64.rb +83 -137
  2042. data/lib/pinterest_sdk/models/pin_media_source_image_url.rb +54 -98
  2043. data/lib/pinterest_sdk/models/pin_media_source_images_base64.rb +265 -0
  2044. data/lib/pinterest_sdk/models/pin_media_source_images_base64_item.rb +250 -0
  2045. data/lib/pinterest_sdk/models/pin_media_source_images_url.rb +265 -0
  2046. data/lib/pinterest_sdk/models/pin_media_source_images_url_item.rb +191 -0
  2047. data/lib/pinterest_sdk/models/pin_media_source_pin_url.rb +201 -0
  2048. data/lib/pinterest_sdk/models/pin_media_source_video_id.rb +113 -123
  2049. data/lib/pinterest_sdk/models/pin_media_with_image.rb +84 -119
  2050. data/lib/pinterest_sdk/models/pin_media_with_image_and_video.rb +200 -0
  2051. data/lib/pinterest_sdk/models/pin_media_with_images.rb +200 -0
  2052. data/lib/pinterest_sdk/models/pin_media_with_video.rb +262 -0
  2053. data/lib/pinterest_sdk/models/pin_media_with_videos.rb +200 -0
  2054. data/lib/pinterest_sdk/models/pin_promotion_summary_status.rb +11 -6
  2055. data/lib/pinterest_sdk/models/pin_read.rb +440 -0
  2056. data/lib/pinterest_sdk/models/pin_type.rb +39 -0
  2057. data/lib/pinterest_sdk/models/pin_update.rb +320 -0
  2058. data/lib/pinterest_sdk/models/pinner_list_type.rb +44 -0
  2059. data/lib/pinterest_sdk/models/pins_list200_response.rb +176 -0
  2060. data/lib/pinterest_sdk/models/pins_save_request_create.rb +195 -0
  2061. data/lib/pinterest_sdk/models/pinterest_lib_batch_item_exception.rb +174 -0
  2062. data/lib/pinterest_sdk/models/pinterest_lib_error.rb +191 -0
  2063. data/lib/pinterest_sdk/models/pinterest_lib_pagination_order.rb +40 -0
  2064. data/lib/pinterest_sdk/models/pinterest_lib_status204.rb +189 -0
  2065. data/lib/pinterest_sdk/models/pinterest_product_categories_filter.rb +164 -0
  2066. data/lib/pinterest_sdk/models/placement_group_type.rb +9 -6
  2067. data/lib/pinterest_sdk/models/placement_multipliers.rb +171 -0
  2068. data/lib/pinterest_sdk/models/placement_traffic_type.rb +41 -0
  2069. data/lib/pinterest_sdk/models/placement_type.rb +41 -0
  2070. data/lib/pinterest_sdk/models/predicted_time_series.rb +147 -0
  2071. data/lib/pinterest_sdk/models/preferred_media_type.rb +40 -0
  2072. data/lib/pinterest_sdk/models/price_filter.rb +164 -0
  2073. data/lib/pinterest_sdk/models/price_filter_price.rb +256 -0
  2074. data/lib/pinterest_sdk/models/primary_sort.rb +40 -0
  2075. data/lib/pinterest_sdk/models/product_availability.rb +41 -0
  2076. data/lib/pinterest_sdk/models/product_availability_type.rb +9 -7
  2077. data/lib/pinterest_sdk/models/product_categories_demographic.rb +194 -0
  2078. data/lib/pinterest_sdk/models/product_categories_engagement_type.rb +41 -0
  2079. data/lib/pinterest_sdk/models/product_categories_metrics_highlights.rb +169 -0
  2080. data/lib/pinterest_sdk/models/product_category_detail_lookback_window.rb +42 -0
  2081. data/lib/pinterest_sdk/models/product_category_details.rb +268 -0
  2082. data/lib/pinterest_sdk/models/product_category_enum.rb +421 -0
  2083. data/lib/pinterest_sdk/models/product_category_region.rb +41 -0
  2084. data/lib/pinterest_sdk/models/product_condition.rb +41 -0
  2085. data/lib/pinterest_sdk/models/product_group_analytics_items.rb +186 -0
  2086. data/lib/pinterest_sdk/models/product_group_promotion.rb +516 -0
  2087. data/lib/pinterest_sdk/models/product_group_promotion_create_request.rb +204 -0
  2088. data/lib/pinterest_sdk/models/product_group_promotion_customizable_cta_type.rb +71 -0
  2089. data/lib/pinterest_sdk/models/product_group_promotion_response_item.rb +158 -0
  2090. data/lib/pinterest_sdk/models/product_group_promotion_update_request.rb +204 -0
  2091. data/lib/pinterest_sdk/models/product_group_promotions.rb +151 -0
  2092. data/lib/pinterest_sdk/models/product_group_promotions_create.rb +206 -0
  2093. data/lib/pinterest_sdk/models/product_group_promotions_list200_response.rb +176 -0
  2094. data/lib/pinterest_sdk/models/product_group_promotions_update_with_required_body.rb +206 -0
  2095. data/lib/pinterest_sdk/models/product_group_reference_filter.rb +164 -0
  2096. data/lib/pinterest_sdk/models/product_group_summary_status.rb +9 -6
  2097. data/lib/pinterest_sdk/models/product_tag_item.rb +177 -0
  2098. data/lib/pinterest_sdk/models/product_tags_bulk_add_request.rb +186 -0
  2099. data/lib/pinterest_sdk/models/product_tags_bulk_delete_request.rb +186 -0
  2100. data/lib/pinterest_sdk/models/product_tags_error.rb +201 -0
  2101. data/lib/pinterest_sdk/models/product_tags_response.rb +168 -0
  2102. data/lib/pinterest_sdk/models/product_type0_filter.rb +37 -96
  2103. data/lib/pinterest_sdk/models/product_type1_filter.rb +37 -96
  2104. data/lib/pinterest_sdk/models/product_type2_filter.rb +37 -96
  2105. data/lib/pinterest_sdk/models/product_type3_filter.rb +37 -96
  2106. data/lib/pinterest_sdk/models/product_type4_filter.rb +37 -96
  2107. data/lib/pinterest_sdk/models/promotion.rb +454 -0
  2108. data/lib/pinterest_sdk/models/promotion_application_level.rb +41 -0
  2109. data/lib/pinterest_sdk/models/promotion_array_element.rb +156 -0
  2110. data/lib/pinterest_sdk/models/promotion_batch_update.rb +373 -0
  2111. data/lib/pinterest_sdk/models/promotion_create.rb +361 -0
  2112. data/lib/pinterest_sdk/models/promotion_template_value.rb +199 -0
  2113. data/lib/pinterest_sdk/models/promotion_type.rb +61 -0
  2114. data/lib/pinterest_sdk/models/promotions_list200_response.rb +176 -0
  2115. data/lib/pinterest_sdk/models/promotions_response.rb +149 -0
  2116. data/lib/pinterest_sdk/models/public_targeting_type.rb +48 -0
  2117. data/lib/pinterest_sdk/models/quality_component_details.rb +188 -0
  2118. data/lib/pinterest_sdk/models/quality_component_issue.rb +220 -0
  2119. data/lib/pinterest_sdk/models/quality_components.rb +263 -0
  2120. data/lib/pinterest_sdk/models/query_label_entity_statuses_items.rb +40 -0
  2121. data/lib/pinterest_sdk/models/query_label_types_items.rb +40 -0
  2122. data/lib/pinterest_sdk/models/querymetrictypes_items.rb +47 -0
  2123. data/lib/pinterest_sdk/models/querypinanalyticsmetrictypes_items.rb +53 -0
  2124. data/lib/pinterest_sdk/models/queryvideopinmetrictypes_items.rb +47 -0
  2125. data/lib/pinterest_sdk/models/quiz_pin_data.rb +202 -0
  2126. data/lib/pinterest_sdk/models/quiz_pin_option.rb +157 -0
  2127. data/lib/pinterest_sdk/models/quiz_pin_question.rb +168 -0
  2128. data/lib/pinterest_sdk/models/quiz_pin_result.rb +184 -0
  2129. data/lib/pinterest_sdk/models/record_counts.rb +219 -0
  2130. data/lib/pinterest_sdk/models/related_terms.rb +170 -0
  2131. data/lib/pinterest_sdk/models/related_terms_related_terms_list_items.rb +158 -0
  2132. data/lib/pinterest_sdk/models/report_type.rb +40 -0
  2133. data/lib/pinterest_sdk/models/reporting_column.rb +2974 -0
  2134. data/lib/pinterest_sdk/models/reporting_column_async.rb +149 -34
  2135. data/lib/pinterest_sdk/models/reporting_column_sync.rb +223 -0
  2136. data/lib/pinterest_sdk/models/reporting_time_zone.rb +40 -0
  2137. data/lib/pinterest_sdk/models/reports_stats200_response.rb +176 -0
  2138. data/lib/pinterest_sdk/models/respond_to_invite_result_item.rb +159 -0
  2139. data/lib/pinterest_sdk/models/respond_to_invites_response_array.rb +150 -0
  2140. data/lib/pinterest_sdk/models/retail_local_inventory_item_attributes.rb +235 -0
  2141. data/lib/pinterest_sdk/models/retail_local_inventory_item_attributes_optional.rb +201 -0
  2142. data/lib/pinterest_sdk/models/role.rb +57 -0
  2143. data/lib/pinterest_sdk/models/s3_file_part.rb +192 -0
  2144. data/lib/pinterest_sdk/models/s3_multipart_upload_data.rb +150 -0
  2145. data/lib/pinterest_sdk/models/schedule.rb +315 -0
  2146. data/lib/pinterest_sdk/models/schedule_action.rb +40 -0
  2147. data/lib/pinterest_sdk/models/schedule_age_bucket_multipliers.rb +182 -0
  2148. data/lib/pinterest_sdk/models/schedule_app_type_multipliers.rb +170 -0
  2149. data/lib/pinterest_sdk/models/schedule_audience_multipliers.rb +169 -0
  2150. data/lib/pinterest_sdk/models/schedule_batch_update.rb +354 -0
  2151. data/lib/pinterest_sdk/models/schedule_bid_multipliers.rb +186 -0
  2152. data/lib/pinterest_sdk/models/schedule_bid_options.rb +188 -0
  2153. data/lib/pinterest_sdk/models/schedule_bid_options_gender_multipliers.rb +170 -0
  2154. data/lib/pinterest_sdk/models/schedule_bid_options_placement_multipliers.rb +169 -0
  2155. data/lib/pinterest_sdk/models/schedule_common_delta_value.rb +104 -0
  2156. data/lib/pinterest_sdk/models/schedule_create.rb +278 -0
  2157. data/lib/pinterest_sdk/models/schedule_create_request.rb +408 -0
  2158. data/lib/pinterest_sdk/models/schedule_create_request_all_of1.rb +202 -0
  2159. data/lib/pinterest_sdk/models/schedule_delta_value.rb +104 -0
  2160. data/lib/pinterest_sdk/models/schedule_gender_multipliers.rb +170 -0
  2161. data/lib/pinterest_sdk/models/schedule_placement_multipliers.rb +169 -0
  2162. data/lib/pinterest_sdk/models/schedule_status.rb +45 -0
  2163. data/lib/pinterest_sdk/models/schedule_type.rb +40 -0
  2164. data/lib/pinterest_sdk/models/schedule_update_request.rb +292 -0
  2165. data/lib/pinterest_sdk/models/schedule_update_request_all_of1.rb +205 -0
  2166. data/lib/pinterest_sdk/models/schedules_create200_response_inner.rb +164 -0
  2167. data/lib/pinterest_sdk/models/schedules_create200_response_inner_data.rb +105 -0
  2168. data/lib/pinterest_sdk/models/schedules_create200_response_inner_data_one_of.rb +248 -0
  2169. data/lib/pinterest_sdk/models/schedules_list200_response.rb +176 -0
  2170. data/lib/pinterest_sdk/models/scrollup_goal_metadata.rb +165 -0
  2171. data/lib/pinterest_sdk/models/search_partner_pins200_response.rb +176 -0
  2172. data/lib/pinterest_sdk/models/shared_audience_account.rb +279 -0
  2173. data/lib/pinterest_sdk/models/shared_audiences_for_business_list200_response.rb +176 -0
  2174. data/lib/pinterest_sdk/models/single_interest_targeting_option.rb +255 -0
  2175. data/lib/pinterest_sdk/models/source_platform_options.rb +47 -0
  2176. data/lib/pinterest_sdk/models/ssio_account.rb +201 -0
  2177. data/lib/pinterest_sdk/models/ssio_account_address.rb +179 -0
  2178. data/lib/pinterest_sdk/models/ssio_account_item.rb +231 -0
  2179. data/lib/pinterest_sdk/models/ssio_account_pmp_name.rb +159 -0
  2180. data/lib/pinterest_sdk/models/ssio_insertion_order.rb +149 -0
  2181. data/lib/pinterest_sdk/models/ssio_insertion_order_create.rb +684 -0
  2182. data/lib/pinterest_sdk/models/ssio_insertion_order_status.rb +170 -0
  2183. data/lib/pinterest_sdk/models/ssio_insertion_order_status_response.rb +177 -0
  2184. data/lib/pinterest_sdk/models/ssio_insertion_order_update.rb +341 -0
  2185. data/lib/pinterest_sdk/models/ssio_insertion_orders_status_get_by_ad_account200_response.rb +176 -0
  2186. data/lib/pinterest_sdk/models/ssio_order_line.rb +435 -0
  2187. data/lib/pinterest_sdk/models/ssio_order_line_type.rb +40 -0
  2188. data/lib/pinterest_sdk/models/ssio_order_lines_get_by_ad_account200_response.rb +176 -0
  2189. data/lib/pinterest_sdk/models/standard_pin_metric_types.rb +47 -0
  2190. data/lib/pinterest_sdk/models/store_metadata.rb +233 -0
  2191. data/lib/pinterest_sdk/models/summary_pin.rb +285 -0
  2192. data/lib/pinterest_sdk/models/summary_status.rb +46 -0
  2193. data/lib/pinterest_sdk/models/supplemental_item_batch_operation_status.rb +41 -0
  2194. data/lib/pinterest_sdk/models/supplemental_item_processing_status.rb +41 -0
  2195. data/lib/pinterest_sdk/models/supplemental_item_validation_event.rb +220 -0
  2196. data/lib/pinterest_sdk/models/supplemental_items_batch_response.rb +281 -0
  2197. data/lib/pinterest_sdk/models/supplemental_operation_result.rb +301 -0
  2198. data/lib/pinterest_sdk/models/system_user_update_with_required_body.rb +166 -0
  2199. data/lib/pinterest_sdk/models/targeting_advertiser_country.rb +76 -0
  2200. data/lib/pinterest_sdk/models/targeting_spec.rb +388 -0
  2201. data/lib/pinterest_sdk/models/targeting_spec_age_bucket.rb +48 -0
  2202. data/lib/pinterest_sdk/models/targeting_spec_app_type.rb +44 -0
  2203. data/lib/pinterest_sdk/models/targeting_spec_gender.rb +41 -0
  2204. data/lib/pinterest_sdk/models/targeting_spec_list_operation.rb +41 -0
  2205. data/lib/pinterest_sdk/models/targeting_spec_operation_age_bucket.rb +244 -0
  2206. data/lib/pinterest_sdk/models/targeting_spec_operation_app_type.rb +242 -0
  2207. data/lib/pinterest_sdk/models/targeting_spec_operation_audience_exclude.rb +242 -0
  2208. data/lib/pinterest_sdk/models/targeting_spec_operation_audience_include.rb +242 -0
  2209. data/lib/pinterest_sdk/models/targeting_spec_operation_gender.rb +242 -0
  2210. data/lib/pinterest_sdk/models/targeting_spec_operation_geo.rb +242 -0
  2211. data/lib/pinterest_sdk/models/targeting_spec_operation_geo_exclude.rb +242 -0
  2212. data/lib/pinterest_sdk/models/targeting_spec_operation_interest.rb +242 -0
  2213. data/lib/pinterest_sdk/models/targeting_spec_operation_locale.rb +242 -0
  2214. data/lib/pinterest_sdk/models/targeting_spec_operation_location.rb +242 -0
  2215. data/lib/pinterest_sdk/models/targeting_spec_operation_location_exclude.rb +242 -0
  2216. data/lib/pinterest_sdk/models/targeting_spec_operation_maximum_age.rb +245 -0
  2217. data/lib/pinterest_sdk/models/targeting_spec_operation_minimum_age.rb +245 -0
  2218. data/lib/pinterest_sdk/models/targeting_spec_operation_shopping_retargeting.rb +244 -0
  2219. data/lib/pinterest_sdk/models/targeting_spec_operations.rb +79 -0
  2220. data/lib/pinterest_sdk/models/targeting_spec_optimal.rb +365 -0
  2221. data/lib/pinterest_sdk/models/targeting_spec_shopping_retargeting.rb +170 -0
  2222. data/lib/pinterest_sdk/models/targeting_spec_targeting_strategy_items.rb +41 -0
  2223. data/lib/pinterest_sdk/models/targeting_strategy.rb +41 -0
  2224. data/lib/pinterest_sdk/models/targeting_template.rb +371 -0
  2225. data/lib/pinterest_sdk/models/targeting_template_audience_sizing.rb +148 -0
  2226. data/lib/pinterest_sdk/models/targeting_template_audience_sizing_reach_estimate.rb +165 -0
  2227. data/lib/pinterest_sdk/models/targeting_template_create.rb +259 -0
  2228. data/lib/pinterest_sdk/models/targeting_template_keyword.rb +179 -0
  2229. data/lib/pinterest_sdk/models/targeting_template_list200_response.rb +176 -0
  2230. data/lib/pinterest_sdk/models/targeting_template_status.rb +40 -0
  2231. data/lib/pinterest_sdk/models/targeting_template_update_request_read_or_update.rb +234 -0
  2232. data/lib/pinterest_sdk/models/template_based_report.rb +240 -0
  2233. data/lib/pinterest_sdk/models/template_based_report_create.rb +205 -0
  2234. data/lib/pinterest_sdk/models/templates_list200_response.rb +176 -0
  2235. data/lib/pinterest_sdk/models/terms_of_service.rb +180 -0
  2236. data/lib/pinterest_sdk/models/tie_breaker_type.rb +40 -0
  2237. data/lib/pinterest_sdk/models/time_series.rb +147 -0
  2238. data/lib/pinterest_sdk/models/title_keywords_filter.rb +164 -0
  2239. data/lib/pinterest_sdk/models/token_grant_type.rb +41 -0
  2240. data/lib/pinterest_sdk/models/token_type_hint.rb +40 -0
  2241. data/lib/pinterest_sdk/models/top_pins_analytics_response.rb +189 -0
  2242. data/lib/pinterest_sdk/models/top_pins_analytics_response_date_availability.rb +156 -0
  2243. data/lib/pinterest_sdk/models/top_pins_analytics_response_pins_items.rb +171 -0
  2244. data/lib/pinterest_sdk/models/top_pins_sort_by.rb +43 -0
  2245. data/lib/pinterest_sdk/models/top_video_pins_analytics_response.rb +189 -0
  2246. data/lib/pinterest_sdk/models/top_video_pins_analytics_response_date_availability.rb +156 -0
  2247. data/lib/pinterest_sdk/models/top_video_pins_analytics_response_pins_items.rb +171 -0
  2248. data/lib/pinterest_sdk/models/top_video_pins_sort_by.rb +47 -0
  2249. data/lib/pinterest_sdk/models/total_count_by_entity_status.rb +169 -0
  2250. data/lib/pinterest_sdk/models/tracking_urls.rb +52 -198
  2251. data/lib/pinterest_sdk/models/trend_type.rb +42 -0
  2252. data/lib/pinterest_sdk/models/trending_keyword.rb +237 -0
  2253. data/lib/pinterest_sdk/models/trending_keyword_demographics.rb +159 -0
  2254. data/lib/pinterest_sdk/models/trending_keywords_response.rb +150 -0
  2255. data/lib/pinterest_sdk/models/trending_pin.rb +284 -0
  2256. data/lib/pinterest_sdk/models/trending_product_category.rb +308 -0
  2257. data/lib/pinterest_sdk/models/trending_topic.rb +355 -0
  2258. data/lib/pinterest_sdk/models/trends_age_bucket.rb +45 -0
  2259. data/lib/pinterest_sdk/models/trends_age_distribution.rb +170 -0
  2260. data/lib/pinterest_sdk/models/trends_editorial.rb +307 -0
  2261. data/lib/pinterest_sdk/models/trends_gender.rb +41 -0
  2262. data/lib/pinterest_sdk/models/trends_gender_distribution.rb +170 -0
  2263. data/lib/pinterest_sdk/models/trends_gender_filter.rb +41 -0
  2264. data/lib/pinterest_sdk/models/trends_l1_interest.rb +62 -0
  2265. data/lib/pinterest_sdk/models/trends_supported_region.rb +56 -0
  2266. data/lib/pinterest_sdk/models/updatable_item_attributes.rb +2031 -0
  2267. data/lib/pinterest_sdk/models/updatable_item_attributes_gtin.rb +105 -0
  2268. data/lib/pinterest_sdk/models/update_business_memberships_response.rb +150 -0
  2269. data/lib/pinterest_sdk/models/update_invites_results_response_array.rb +150 -0
  2270. data/lib/pinterest_sdk/models/update_mask_bid_option_field.rb +41 -0
  2271. data/lib/pinterest_sdk/models/update_mask_field_type.rb +87 -0
  2272. data/lib/pinterest_sdk/models/update_member_asset_access_body.rb +186 -0
  2273. data/lib/pinterest_sdk/models/update_member_asset_access_item.rb +279 -0
  2274. data/lib/pinterest_sdk/models/update_member_asset_result_item.rb +147 -0
  2275. data/lib/pinterest_sdk/models/update_member_assets_results_response_array.rb +150 -0
  2276. data/lib/pinterest_sdk/models/update_partner_asset_access_body.rb +186 -0
  2277. data/lib/pinterest_sdk/models/update_partner_asset_access_item.rb +279 -0
  2278. data/lib/pinterest_sdk/models/update_partner_assets_result.rb +244 -0
  2279. data/lib/pinterest_sdk/models/update_partner_assets_results_response_array.rb +150 -0
  2280. data/lib/pinterest_sdk/models/user_account_followed_interests200_response.rb +176 -0
  2281. data/lib/pinterest_sdk/models/user_account_type.rb +40 -0
  2282. data/lib/pinterest_sdk/models/user_business_role_binding.rb +246 -0
  2283. data/lib/pinterest_sdk/models/user_following_feed_type.rb +42 -0
  2284. data/lib/pinterest_sdk/models/user_list_operation_type.rb +40 -0
  2285. data/lib/pinterest_sdk/models/user_list_type.rb +44 -0
  2286. data/lib/pinterest_sdk/models/user_single_asset_binding.rb +160 -0
  2287. data/lib/pinterest_sdk/models/user_website.rb +168 -0
  2288. data/lib/pinterest_sdk/models/user_website_create.rb +181 -0
  2289. data/lib/pinterest_sdk/models/user_website_verification.rb +188 -0
  2290. data/lib/pinterest_sdk/models/user_websites_get200_response.rb +176 -0
  2291. data/lib/pinterest_sdk/models/users_for_individual_asset_response.rb +213 -0
  2292. data/lib/pinterest_sdk/models/vertical_product_category.rb +41 -0
  2293. data/lib/pinterest_sdk/models/video_metadata_with_item_type.rb +253 -0
  2294. data/lib/pinterest_sdk/models/video_pin_metric_types.rb +51 -0
  2295. data/lib/pinterest_sdk/models/website_verification_method.rb +41 -0
  2296. data/lib/pinterest_sdk/models/workload_state.rb +43 -0
  2297. data/lib/pinterest_sdk/version.rb +4 -4
  2298. data/lib/pinterest_sdk.rb +1047 -42
  2299. data/pinterest_sdk.gemspec +5 -4
  2300. data/spec/api/ad_accounts_api_spec.rb +133 -129
  2301. data/spec/api/ad_groups_api_spec.rb +237 -0
  2302. data/spec/api/ads_api_spec.rb +195 -0
  2303. data/spec/api/advanced_auction_api_spec.rb +61 -0
  2304. data/spec/api/audience_insights_api_spec.rb +60 -0
  2305. data/spec/api/audience_sharing_api_spec.rb +134 -0
  2306. data/spec/api/audiences_api_spec.rb +92 -0
  2307. data/spec/api/billing_api_spec.rb +190 -0
  2308. data/spec/api/boards_api_spec.rb +57 -44
  2309. data/spec/api/bulk_api_spec.rb +75 -0
  2310. data/spec/api/business_access_assets_api_spec.rb +223 -0
  2311. data/spec/api/business_access_invite_api_spec.rb +116 -0
  2312. data/spec/api/business_access_relationships_api_spec.rb +167 -0
  2313. data/spec/api/campaigns_api_spec.rb +173 -0
  2314. data/spec/api/catalog_feeds_api_spec.rb +148 -0
  2315. data/spec/api/catalog_items_api_spec.rb +74 -0
  2316. data/spec/api/catalog_product_groups_api_spec.rb +176 -0
  2317. data/spec/api/catalog_reports_api_spec.rb +76 -0
  2318. data/spec/api/catalog_supplemental_api_spec.rb +135 -0
  2319. data/spec/api/catalogs_api_spec.rb +30 -152
  2320. data/spec/api/conversion_deletion_requests_api_spec.rb +89 -0
  2321. data/spec/api/conversion_eqs_api_spec.rb +50 -0
  2322. data/spec/api/conversion_events_api_spec.rb +49 -0
  2323. data/spec/api/conversion_tags_api_spec.rb +101 -0
  2324. data/spec/api/conversions_api_spec.rb +86 -0
  2325. data/spec/api/customer_list_uploads_api_spec.rb +77 -0
  2326. data/spec/api/customer_lists_api_spec.rb +91 -0
  2327. data/spec/api/customer_segment_api_spec.rb +78 -0
  2328. data/spec/api/integrations_api_spec.rb +121 -0
  2329. data/spec/api/keywords_api_spec.rb +113 -0
  2330. data/spec/api/labels_api_spec.rb +107 -0
  2331. data/spec/api/lead_ads_api_spec.rb +88 -0
  2332. data/spec/api/lead_forms_api_spec.rb +103 -0
  2333. data/spec/api/leads_export_api_spec.rb +61 -0
  2334. data/spec/api/media_api_spec.rb +14 -14
  2335. data/spec/api/msot_events_api_spec.rb +48 -0
  2336. data/spec/api/notification_api_spec.rb +47 -0
  2337. data/spec/api/oauth_api_spec.rb +35 -6
  2338. data/spec/api/order_lines_api_spec.rb +63 -0
  2339. data/spec/api/pins_api_spec.rb +89 -19
  2340. data/spec/api/product_group_promotions_api_spec.rb +114 -0
  2341. data/spec/api/product_tags_api_spec.rb +73 -0
  2342. data/spec/api/promotions_api_spec.rb +102 -0
  2343. data/spec/api/resources_api_spec.rb +109 -0
  2344. data/spec/api/schedules_api_spec.rb +79 -0
  2345. data/spec/api/search_api_spec.rb +80 -0
  2346. data/spec/api/targeting_template_api_spec.rb +78 -0
  2347. data/spec/api/terms_api_spec.rb +60 -0
  2348. data/spec/api/terms_of_service_api_spec.rb +49 -0
  2349. data/spec/api/trends_api_spec.rb +91 -0
  2350. data/spec/api/user_account_api_spec.rb +189 -9
  2351. data/spec/spec_helper.rb +3 -3
  2352. metadata +2181 -386
  2353. data/bin/bundle +0 -114
  2354. data/docs/AdGroupResponse.md +0 -62
  2355. data/docs/AdGroupResponseAllOf.md +0 -48
  2356. data/docs/AdGroupResponseAllOf1.md +0 -30
  2357. data/docs/AdResponse.md +0 -70
  2358. data/docs/AdResponseAllOf.md +0 -48
  2359. data/docs/AdResponseAllOf1.md +0 -38
  2360. data/docs/AdsAnalyticsCreateAsyncRequestAllOf.md +0 -32
  2361. data/docs/AdsAnalyticsCreateAsyncRequestAllOf1.md +0 -22
  2362. data/docs/AdsAnalyticsTargetingType.md +0 -15
  2363. data/docs/AnalyticsMetricsResponseDailyMetrics.md +0 -22
  2364. data/docs/BatchOperation.md +0 -15
  2365. data/docs/BoardUpdate.md +0 -22
  2366. data/docs/CampaignCommon.md +0 -34
  2367. data/docs/CampaignResponse.md +0 -44
  2368. data/docs/CampaignResponseAllOf.md +0 -18
  2369. data/docs/CampaignResponseAllOf1.md +0 -24
  2370. data/docs/CatalogsDbItem.md +0 -22
  2371. data/docs/CatalogsFeedProcessingResultFields.md +0 -24
  2372. data/docs/CatalogsItems.md +0 -18
  2373. data/docs/CatalogsProductGroup.md +0 -34
  2374. data/docs/Error.md +0 -20
  2375. data/docs/FeedFields.md +0 -36
  2376. data/docs/ItemBatchRecord.md +0 -20
  2377. data/docs/MediaUploadAllOf.md +0 -24
  2378. data/docs/MediaUploadAllOfUploadParameters.md +0 -32
  2379. data/docs/MediaUploadDetails.md +0 -22
  2380. data/docs/MediaUploadRequest.md +0 -18
  2381. data/docs/OauthAccessTokenRequest.md +0 -18
  2382. data/docs/OauthAccessTokenRequestCode.md +0 -20
  2383. data/docs/OauthAccessTokenRequestCodeAllOf.md +0 -20
  2384. data/docs/OauthAccessTokenRequestRefresh.md +0 -20
  2385. data/docs/OauthAccessTokenRequestRefreshAllOf.md +0 -20
  2386. data/docs/OauthAccessTokenResponse.md +0 -26
  2387. data/docs/OauthAccessTokenResponseCode.md +0 -20
  2388. data/docs/OauthAccessTokenResponseCodeAllOf.md +0 -20
  2389. data/docs/OauthAccessTokenResponseRefresh.md +0 -15
  2390. data/docs/Paginated.md +0 -20
  2391. data/docs/PinMediaWithImageAllOf.md +0 -18
  2392. data/docs/TargetingTypeFilter.md +0 -18
  2393. data/lib/pinterest_sdk/models/ad_group_response.rb +0 -555
  2394. data/lib/pinterest_sdk/models/ad_group_response_all_of.rb +0 -427
  2395. data/lib/pinterest_sdk/models/ad_group_response_all_of1.rb +0 -329
  2396. data/lib/pinterest_sdk/models/ad_response.rb +0 -640
  2397. data/lib/pinterest_sdk/models/ad_response_all_of.rb +0 -455
  2398. data/lib/pinterest_sdk/models/ad_response_all_of1.rb +0 -409
  2399. data/lib/pinterest_sdk/models/ads_analytics_create_async_request_all_of.rb +0 -356
  2400. data/lib/pinterest_sdk/models/ads_analytics_create_async_request_all_of1.rb +0 -253
  2401. data/lib/pinterest_sdk/models/ads_analytics_targeting_type.rb +0 -48
  2402. data/lib/pinterest_sdk/models/analytics_metrics_response_daily_metrics.rb +0 -275
  2403. data/lib/pinterest_sdk/models/batch_operation.rb +0 -38
  2404. data/lib/pinterest_sdk/models/board_update.rb +0 -272
  2405. data/lib/pinterest_sdk/models/campaign_common.rb +0 -352
  2406. data/lib/pinterest_sdk/models/campaign_response.rb +0 -435
  2407. data/lib/pinterest_sdk/models/campaign_response_all_of.rb +0 -245
  2408. data/lib/pinterest_sdk/models/campaign_response_all_of1.rb +0 -248
  2409. data/lib/pinterest_sdk/models/catalogs_db_item.rb +0 -236
  2410. data/lib/pinterest_sdk/models/catalogs_feed_processing_result_fields.rb +0 -261
  2411. data/lib/pinterest_sdk/models/catalogs_items.rb +0 -222
  2412. data/lib/pinterest_sdk/models/catalogs_product_group.rb +0 -345
  2413. data/lib/pinterest_sdk/models/error.rb +0 -237
  2414. data/lib/pinterest_sdk/models/feed_fields.rb +0 -332
  2415. data/lib/pinterest_sdk/models/item_batch_record.rb +0 -229
  2416. data/lib/pinterest_sdk/models/media_upload_all_of.rb +0 -247
  2417. data/lib/pinterest_sdk/models/media_upload_all_of_upload_parameters.rb +0 -282
  2418. data/lib/pinterest_sdk/models/media_upload_details.rb +0 -254
  2419. data/lib/pinterest_sdk/models/media_upload_request.rb +0 -224
  2420. data/lib/pinterest_sdk/models/oauth_access_token_request_code.rb +0 -272
  2421. data/lib/pinterest_sdk/models/oauth_access_token_request_code_all_of.rb +0 -237
  2422. data/lib/pinterest_sdk/models/oauth_access_token_request_refresh.rb +0 -267
  2423. data/lib/pinterest_sdk/models/oauth_access_token_request_refresh_all_of.rb +0 -232
  2424. data/lib/pinterest_sdk/models/oauth_access_token_response.rb +0 -316
  2425. data/lib/pinterest_sdk/models/oauth_access_token_response_code.rb +0 -272
  2426. data/lib/pinterest_sdk/models/oauth_access_token_response_code_all_of.rb +0 -237
  2427. data/lib/pinterest_sdk/models/oauth_access_token_response_refresh.rb +0 -243
  2428. data/lib/pinterest_sdk/models/paginated.rb +0 -235
  2429. data/lib/pinterest_sdk/models/pin_media_with_image_all_of.rb +0 -220
  2430. data/lib/pinterest_sdk/models/targeting_type_filter.rb +0 -245
  2431. data/spec/api_client_spec.rb +0 -226
  2432. data/spec/configuration_spec.rb +0 -42
  2433. data/spec/models/account_spec.rb +0 -56
  2434. data/spec/models/action_type_spec.rb +0 -28
  2435. data/spec/models/ad_account_owner_spec.rb +0 -34
  2436. data/spec/models/ad_account_spec.rb +0 -58
  2437. data/spec/models/ad_group_response_all_of1_spec.rb +0 -70
  2438. data/spec/models/ad_group_response_all_of_spec.rb +0 -132
  2439. data/spec/models/ad_group_response_spec.rb +0 -174
  2440. data/spec/models/ad_group_summary_status_spec.rb +0 -28
  2441. data/spec/models/ad_response_all_of1_spec.rb +0 -102
  2442. data/spec/models/ad_response_all_of_spec.rb +0 -128
  2443. data/spec/models/ad_response_spec.rb +0 -202
  2444. data/spec/models/ads_analytics_create_async_request_all_of1_spec.rb +0 -46
  2445. data/spec/models/ads_analytics_create_async_request_all_of_spec.rb +0 -76
  2446. data/spec/models/ads_analytics_create_async_request_spec.rb +0 -166
  2447. data/spec/models/ads_analytics_create_async_response_spec.rb +0 -46
  2448. data/spec/models/ads_analytics_filter_column_spec.rb +0 -28
  2449. data/spec/models/ads_analytics_filter_operator_spec.rb +0 -28
  2450. data/spec/models/ads_analytics_get_async_response_spec.rb +0 -46
  2451. data/spec/models/ads_analytics_metrics_filter_spec.rb +0 -46
  2452. data/spec/models/ads_analytics_targeting_type_spec.rb +0 -28
  2453. data/spec/models/analytics_metrics_response_daily_metrics_spec.rb +0 -50
  2454. data/spec/models/analytics_metrics_response_spec.rb +0 -40
  2455. data/spec/models/availability_filter_spec.rb +0 -34
  2456. data/spec/models/batch_operation_spec.rb +0 -28
  2457. data/spec/models/batch_operation_status_spec.rb +0 -28
  2458. data/spec/models/board_owner_spec.rb +0 -34
  2459. data/spec/models/board_section_spec.rb +0 -40
  2460. data/spec/models/board_spec.rb +0 -62
  2461. data/spec/models/board_update_spec.rb +0 -50
  2462. data/spec/models/brand_filter_spec.rb +0 -34
  2463. data/spec/models/campaign_common_spec.rb +0 -82
  2464. data/spec/models/campaign_response_all_of1_spec.rb +0 -52
  2465. data/spec/models/campaign_response_all_of_spec.rb +0 -34
  2466. data/spec/models/campaign_response_spec.rb +0 -112
  2467. data/spec/models/campaign_summary_status_spec.rb +0 -28
  2468. data/spec/models/catalogs_db_item_spec.rb +0 -46
  2469. data/spec/models/catalogs_feed_credentials_spec.rb +0 -40
  2470. data/spec/models/catalogs_feed_ingestion_details_spec.rb +0 -40
  2471. data/spec/models/catalogs_feed_ingestion_errors_spec.rb +0 -62
  2472. data/spec/models/catalogs_feed_ingestion_info_spec.rb +0 -46
  2473. data/spec/models/catalogs_feed_processing_result_fields_spec.rb +0 -52
  2474. data/spec/models/catalogs_feed_processing_result_spec.rb +0 -70
  2475. data/spec/models/catalogs_feed_processing_schedule_spec.rb +0 -44
  2476. data/spec/models/catalogs_feed_processing_status_spec.rb +0 -28
  2477. data/spec/models/catalogs_feed_product_counts_spec.rb +0 -34
  2478. data/spec/models/catalogs_feed_spec.rb +0 -106
  2479. data/spec/models/catalogs_feed_validation_details_spec.rb +0 -40
  2480. data/spec/models/catalogs_feed_validation_errors_spec.rb +0 -232
  2481. data/spec/models/catalogs_feed_validation_warnings_spec.rb +0 -298
  2482. data/spec/models/catalogs_feeds_create_request_spec.rb +0 -82
  2483. data/spec/models/catalogs_feeds_update_request_spec.rb +0 -76
  2484. data/spec/models/catalogs_format_spec.rb +0 -28
  2485. data/spec/models/catalogs_items_batch_request_spec.rb +0 -52
  2486. data/spec/models/catalogs_items_batch_spec.rb +0 -58
  2487. data/spec/models/catalogs_items_spec.rb +0 -34
  2488. data/spec/models/catalogs_product_group_create_request_spec.rb +0 -52
  2489. data/spec/models/catalogs_product_group_currency_criteria_spec.rb +0 -40
  2490. data/spec/models/catalogs_product_group_filter_keys_spec.rb +0 -184
  2491. data/spec/models/catalogs_product_group_filters_all_of_spec.rb +0 -34
  2492. data/spec/models/catalogs_product_group_filters_any_of_spec.rb +0 -34
  2493. data/spec/models/catalogs_product_group_filters_spec.rb +0 -40
  2494. data/spec/models/catalogs_product_group_multiple_string_criteria_spec.rb +0 -40
  2495. data/spec/models/catalogs_product_group_multiple_string_list_criteria_spec.rb +0 -40
  2496. data/spec/models/catalogs_product_group_pricing_criteria_spec.rb +0 -46
  2497. data/spec/models/catalogs_product_group_spec.rb +0 -82
  2498. data/spec/models/catalogs_product_group_status_spec.rb +0 -28
  2499. data/spec/models/catalogs_product_group_type_spec.rb +0 -28
  2500. data/spec/models/catalogs_product_group_update_request_spec.rb +0 -52
  2501. data/spec/models/catalogs_status_spec.rb +0 -28
  2502. data/spec/models/condition_filter_spec.rb +0 -34
  2503. data/spec/models/conversion_attribution_window_days_spec.rb +0 -28
  2504. data/spec/models/conversion_report_attribution_type_spec.rb +0 -28
  2505. data/spec/models/conversion_report_time_type_spec.rb +0 -28
  2506. data/spec/models/country_spec.rb +0 -28
  2507. data/spec/models/currency_filter_spec.rb +0 -34
  2508. data/spec/models/currency_spec.rb +0 -28
  2509. data/spec/models/custom_label0_filter_spec.rb +0 -34
  2510. data/spec/models/custom_label1_filter_spec.rb +0 -34
  2511. data/spec/models/custom_label2_filter_spec.rb +0 -34
  2512. data/spec/models/custom_label3_filter_spec.rb +0 -34
  2513. data/spec/models/custom_label4_filter_spec.rb +0 -34
  2514. data/spec/models/data_output_format_spec.rb +0 -28
  2515. data/spec/models/entity_status_spec.rb +0 -28
  2516. data/spec/models/error_spec.rb +0 -40
  2517. data/spec/models/feed_fields_spec.rb +0 -88
  2518. data/spec/models/gender_filter_spec.rb +0 -34
  2519. data/spec/models/google_product_category0_filter_spec.rb +0 -34
  2520. data/spec/models/google_product_category1_filter_spec.rb +0 -34
  2521. data/spec/models/google_product_category2_filter_spec.rb +0 -34
  2522. data/spec/models/google_product_category3_filter_spec.rb +0 -34
  2523. data/spec/models/google_product_category4_filter_spec.rb +0 -34
  2524. data/spec/models/google_product_category5_filter_spec.rb +0 -34
  2525. data/spec/models/google_product_category6_filter_spec.rb +0 -34
  2526. data/spec/models/granularity_spec.rb +0 -28
  2527. data/spec/models/image_details_spec.rb +0 -46
  2528. data/spec/models/item_attributes_spec.rb +0 -292
  2529. data/spec/models/item_batch_record_spec.rb +0 -40
  2530. data/spec/models/item_group_id_filter_spec.rb +0 -34
  2531. data/spec/models/item_id_filter_spec.rb +0 -34
  2532. data/spec/models/item_processing_record_spec.rb +0 -52
  2533. data/spec/models/item_processing_status_spec.rb +0 -28
  2534. data/spec/models/item_validation_event_spec.rb +0 -46
  2535. data/spec/models/language_spec.rb +0 -28
  2536. data/spec/models/max_price_filter_spec.rb +0 -34
  2537. data/spec/models/media_upload_all_of_spec.rb +0 -52
  2538. data/spec/models/media_upload_all_of_upload_parameters_spec.rb +0 -76
  2539. data/spec/models/media_upload_details_spec.rb +0 -46
  2540. data/spec/models/media_upload_request_spec.rb +0 -34
  2541. data/spec/models/media_upload_spec.rb +0 -52
  2542. data/spec/models/media_upload_status_spec.rb +0 -28
  2543. data/spec/models/media_upload_type_spec.rb +0 -28
  2544. data/spec/models/metrics_reporting_level_spec.rb +0 -28
  2545. data/spec/models/min_price_filter_spec.rb +0 -34
  2546. data/spec/models/non_nullable_catalogs_currency_spec.rb +0 -28
  2547. data/spec/models/nullable_currency_spec.rb +0 -28
  2548. data/spec/models/oauth_access_token_request_code_all_of_spec.rb +0 -40
  2549. data/spec/models/oauth_access_token_request_code_spec.rb +0 -40
  2550. data/spec/models/oauth_access_token_request_refresh_all_of_spec.rb +0 -40
  2551. data/spec/models/oauth_access_token_request_refresh_spec.rb +0 -40
  2552. data/spec/models/oauth_access_token_request_spec.rb +0 -38
  2553. data/spec/models/oauth_access_token_response_code_all_of_spec.rb +0 -40
  2554. data/spec/models/oauth_access_token_response_code_spec.rb +0 -40
  2555. data/spec/models/oauth_access_token_response_refresh_spec.rb +0 -28
  2556. data/spec/models/oauth_access_token_response_spec.rb +0 -62
  2557. data/spec/models/objective_type_spec.rb +0 -28
  2558. data/spec/models/pacing_delivery_type_spec.rb +0 -28
  2559. data/spec/models/paginated_spec.rb +0 -40
  2560. data/spec/models/pin_media_source_image_base64_spec.rb +0 -54
  2561. data/spec/models/pin_media_source_image_url_spec.rb +0 -44
  2562. data/spec/models/pin_media_source_spec.rb +0 -43
  2563. data/spec/models/pin_media_source_video_id_spec.rb +0 -50
  2564. data/spec/models/pin_media_spec.rb +0 -34
  2565. data/spec/models/pin_media_with_image_all_of_spec.rb +0 -34
  2566. data/spec/models/pin_media_with_image_spec.rb +0 -34
  2567. data/spec/models/pin_promotion_summary_status_spec.rb +0 -28
  2568. data/spec/models/pin_spec.rb +0 -94
  2569. data/spec/models/placement_group_type_spec.rb +0 -28
  2570. data/spec/models/product_availability_type_spec.rb +0 -28
  2571. data/spec/models/product_group_summary_status_spec.rb +0 -28
  2572. data/spec/models/product_type0_filter_spec.rb +0 -34
  2573. data/spec/models/product_type1_filter_spec.rb +0 -34
  2574. data/spec/models/product_type2_filter_spec.rb +0 -34
  2575. data/spec/models/product_type3_filter_spec.rb +0 -34
  2576. data/spec/models/product_type4_filter_spec.rb +0 -34
  2577. data/spec/models/reporting_column_async_spec.rb +0 -28
  2578. data/spec/models/targeting_type_filter_spec.rb +0 -34
  2579. data/spec/models/tracking_urls_spec.rb +0 -58
@@ -3,10 +3,10 @@
3
3
 
4
4
  #Pinterest's REST API
5
5
 
6
- The version of the OpenAPI document: 5.3.0
7
- Contact: blah@cliffano.com
6
+ The version of the OpenAPI document: 5.28.0
7
+ Contact: blah+oapicf@cliffano.com
8
8
  Generated by: https://openapi-generator.tech
9
- OpenAPI Generator version: 5.4.0
9
+ Generator version: 7.24.0
10
10
 
11
11
  =end
12
12
 
@@ -20,49 +20,42 @@ module PinterestSdkClient
20
20
  @api_client = api_client
21
21
  end
22
22
  # Get ad account analytics
23
- # Get analytics for the specified <code>ad_account_id</code>, filtered by the specified options. - The token's user_account must either be the Owner of the specified ad account, or have one of the necessary roles granted to them via <a href=\"https://help.pinterest.com/en/business/article/share-and-manage-access-to-your-ad-accounts\">Business Access</a>: Admin, Analyst, Campaign Manager.
23
+ # Get analytics for the specified `ad_account_id`, filtered by the specified options. - The token's user_account must either be the Owner of the specified ad account, or have one of the necessary roles granted to them via [Business Access](https://help.pinterest.com/en/business/article/share-and-manage-access-to-your-ad-accounts): Admin, Analyst, Campaign Manager. - If granularity is not HOUR, you can pull data from up to 90 days before the current date in UTC time, with a maximum time range of 90 days. - If granularity is HOUR, you can pull data from up to 8 days before the current date in UTC time.
24
+ # @param start_date [Date] Metric report start date (UTC). Format: YYYY-MM-DD. Cannot be more than 90 days back from today.
25
+ # @param end_date [Date] Metric report end date (UTC). Format: YYYY-MM-DD. Cannot be more than 90 days past start_date.
26
+ # @param columns [Array<ReportingColumnSync>] Columns to retrieve, encoded as a comma-separated string. **NOTE**: Any metrics defined as MICRO_DOLLARS returns a value based on the advertiser profile&#39;s currency field. For USD, ($1/1,000,000, or $0.000001 - one one-ten-thousandth of a cent). it&#39;s microdollars. Otherwise, it&#39;s in microunits of the advertiser&#39;s currency. For example, if the advertiser&#39;s currency is GBP (British pound sterling), all MICRO_DOLLARS fields will be in GBP microunits (1/1,000,000 British pound). If a column has no value, it may not be returned.
27
+ # @param granularity [Granularity] TOTAL - metrics are aggregated over the specified date range. DAY - metrics are broken down daily. HOUR - metrics are broken down hourly. WEEK - metrics are broken down weekly. MONTH - metrics are broken down monthly
24
28
  # @param ad_account_id [String] Unique identifier of an ad account.
25
- # @param start_date [Date] Metric report start date (UTC). Format: YYYY-MM-DD
26
- # @param end_date [Date] Metric report end date (UTC). Format: YYYY-MM-DD
27
- # @param columns [Array<String>] Columns to retrieve. **NOTE**: Any metrics defined as MICRO_DOLLARS returns a value based on the advertiser profile&#39;s currency field. For USD,($1/1,000,000, or $0.000001 - one one-ten-thousandth of a cent). it&#39;s microdollars. Otherwise, it&#39;s in microunits of the advertiser&#39;s currency.&lt;br/&gt;For example, if the advertiser&#39;s currency is GBP (British pound sterling), all MICRO_DOLLARS fields will be in GBP microunits (1/1,000,000 British pound).&lt;br/&gt;If a column has no value, it may not be returned
28
- # @param granularity [Granularity] Granularity
29
29
  # @param [Hash] opts the optional parameters
30
- # @option opts [Integer] :click_window_days Number of days to use as the conversion attribution window for a pin click action. Applies to Pinterest Tag conversion metrics. Prior conversion tags use their defined attribution windows. If not specified, defaults to &#x60;30&#x60; days. (default to 30)
31
- # @option opts [Integer] :engagement_window_days Number of days to use as the conversion attribution window for an engagement action. Engagements include saves, closeups, link clicks, and carousel card swipes. Applies to Pinterest Tag conversion metrics. Prior conversion tags use their defined attribution windows. If not specified, defaults to &#x60;30&#x60; days. (default to 30)
32
- # @option opts [Integer] :view_window_days Number of days to use as the conversion attribution window for a view action. Applies to Pinterest Tag conversion metrics. Prior conversion tags use their defined attribution windows. If not specified, defaults to &#x60;1&#x60; day. (default to 1)
30
+ # @option opts [Float] :click_window_days Number of days to use as the conversion attribution window for a pin click action. Applies to Pinterest Tag conversion metrics. Prior conversion tags use their defined attribution windows. If not specified, defaults to &#x60;30&#x60; days. (default to 30)
31
+ # @option opts [Float] :engagement_window_days Number of days to use as the conversion attribution window for an engagement action. Engagements include saves, closeups, link clicks, and carousel card swipes. Applies to Pinterest Tag conversion metrics. Prior conversion tags use their defined attribution windows. If not specified, defaults to &#x60;30&#x60; days. **Note:** This parameter no longer returns new data. However, you can still access historic data through **Sept 30, 2027**. (default to 30)
32
+ # @option opts [Float] :view_window_days Number of days to use as the conversion attribution window for a view action. Applies to Pinterest Tag conversion metrics. Prior conversion tags use their defined attribution windows. If not specified, defaults to &#x60;1&#x60; day. (default to 1)
33
33
  # @option opts [String] :conversion_report_time The date by which the conversion metrics returned from this endpoint will be reported. There are two dates associated with a conversion event: the date that the user interacted with the ad, and the date that the user completed a conversion event. (default to 'TIME_OF_AD_ACTION')
34
- # @return [Array<Hash<String, Object>>]
35
- def ad_account_analytics(ad_account_id, start_date, end_date, columns, granularity, opts = {})
36
- data, _status_code, _headers = ad_account_analytics_with_http_info(ad_account_id, start_date, end_date, columns, granularity, opts)
34
+ # @option opts [ReportingTimeZone] :reporting_timezone Specify the timezone to be applied for the reporting. This feature is currently in BETA and is not available to all users.
35
+ # @return [Array<AdAccountAnalyticsItems>]
36
+ def ad_account_analytics(start_date, end_date, columns, granularity, ad_account_id, opts = {})
37
+ data, _status_code, _headers = ad_account_analytics_with_http_info(start_date, end_date, columns, granularity, ad_account_id, opts)
37
38
  data
38
39
  end
39
40
 
40
41
  # Get ad account analytics
41
- # Get analytics for the specified &lt;code&gt;ad_account_id&lt;/code&gt;, filtered by the specified options. - The token&#39;s user_account must either be the Owner of the specified ad account, or have one of the necessary roles granted to them via &lt;a href&#x3D;\&quot;https://help.pinterest.com/en/business/article/share-and-manage-access-to-your-ad-accounts\&quot;&gt;Business Access&lt;/a&gt;: Admin, Analyst, Campaign Manager.
42
+ # Get analytics for the specified &#x60;ad_account_id&#x60;, filtered by the specified options. - The token&#39;s user_account must either be the Owner of the specified ad account, or have one of the necessary roles granted to them via [Business Access](https://help.pinterest.com/en/business/article/share-and-manage-access-to-your-ad-accounts): Admin, Analyst, Campaign Manager. - If granularity is not HOUR, you can pull data from up to 90 days before the current date in UTC time, with a maximum time range of 90 days. - If granularity is HOUR, you can pull data from up to 8 days before the current date in UTC time.
43
+ # @param start_date [Date] Metric report start date (UTC). Format: YYYY-MM-DD. Cannot be more than 90 days back from today.
44
+ # @param end_date [Date] Metric report end date (UTC). Format: YYYY-MM-DD. Cannot be more than 90 days past start_date.
45
+ # @param columns [Array<ReportingColumnSync>] Columns to retrieve, encoded as a comma-separated string. **NOTE**: Any metrics defined as MICRO_DOLLARS returns a value based on the advertiser profile&#39;s currency field. For USD, ($1/1,000,000, or $0.000001 - one one-ten-thousandth of a cent). it&#39;s microdollars. Otherwise, it&#39;s in microunits of the advertiser&#39;s currency. For example, if the advertiser&#39;s currency is GBP (British pound sterling), all MICRO_DOLLARS fields will be in GBP microunits (1/1,000,000 British pound). If a column has no value, it may not be returned.
46
+ # @param granularity [Granularity] TOTAL - metrics are aggregated over the specified date range. DAY - metrics are broken down daily. HOUR - metrics are broken down hourly. WEEK - metrics are broken down weekly. MONTH - metrics are broken down monthly
42
47
  # @param ad_account_id [String] Unique identifier of an ad account.
43
- # @param start_date [Date] Metric report start date (UTC). Format: YYYY-MM-DD
44
- # @param end_date [Date] Metric report end date (UTC). Format: YYYY-MM-DD
45
- # @param columns [Array<String>] Columns to retrieve. **NOTE**: Any metrics defined as MICRO_DOLLARS returns a value based on the advertiser profile&#39;s currency field. For USD,($1/1,000,000, or $0.000001 - one one-ten-thousandth of a cent). it&#39;s microdollars. Otherwise, it&#39;s in microunits of the advertiser&#39;s currency.&lt;br/&gt;For example, if the advertiser&#39;s currency is GBP (British pound sterling), all MICRO_DOLLARS fields will be in GBP microunits (1/1,000,000 British pound).&lt;br/&gt;If a column has no value, it may not be returned
46
- # @param granularity [Granularity] Granularity
47
48
  # @param [Hash] opts the optional parameters
48
- # @option opts [Integer] :click_window_days Number of days to use as the conversion attribution window for a pin click action. Applies to Pinterest Tag conversion metrics. Prior conversion tags use their defined attribution windows. If not specified, defaults to &#x60;30&#x60; days.
49
- # @option opts [Integer] :engagement_window_days Number of days to use as the conversion attribution window for an engagement action. Engagements include saves, closeups, link clicks, and carousel card swipes. Applies to Pinterest Tag conversion metrics. Prior conversion tags use their defined attribution windows. If not specified, defaults to &#x60;30&#x60; days.
50
- # @option opts [Integer] :view_window_days Number of days to use as the conversion attribution window for a view action. Applies to Pinterest Tag conversion metrics. Prior conversion tags use their defined attribution windows. If not specified, defaults to &#x60;1&#x60; day.
51
- # @option opts [String] :conversion_report_time The date by which the conversion metrics returned from this endpoint will be reported. There are two dates associated with a conversion event: the date that the user interacted with the ad, and the date that the user completed a conversion event.
52
- # @return [Array<(Array<Hash<String, Object>>, Integer, Hash)>] Array<Hash<String, Object>> data, response status code and response headers
53
- def ad_account_analytics_with_http_info(ad_account_id, start_date, end_date, columns, granularity, opts = {})
49
+ # @option opts [Float] :click_window_days Number of days to use as the conversion attribution window for a pin click action. Applies to Pinterest Tag conversion metrics. Prior conversion tags use their defined attribution windows. If not specified, defaults to &#x60;30&#x60; days. (default to 30)
50
+ # @option opts [Float] :engagement_window_days Number of days to use as the conversion attribution window for an engagement action. Engagements include saves, closeups, link clicks, and carousel card swipes. Applies to Pinterest Tag conversion metrics. Prior conversion tags use their defined attribution windows. If not specified, defaults to &#x60;30&#x60; days. **Note:** This parameter no longer returns new data. However, you can still access historic data through **Sept 30, 2027**. (default to 30)
51
+ # @option opts [Float] :view_window_days Number of days to use as the conversion attribution window for a view action. Applies to Pinterest Tag conversion metrics. Prior conversion tags use their defined attribution windows. If not specified, defaults to &#x60;1&#x60; day. (default to 1)
52
+ # @option opts [String] :conversion_report_time The date by which the conversion metrics returned from this endpoint will be reported. There are two dates associated with a conversion event: the date that the user interacted with the ad, and the date that the user completed a conversion event. (default to 'TIME_OF_AD_ACTION')
53
+ # @option opts [ReportingTimeZone] :reporting_timezone Specify the timezone to be applied for the reporting. This feature is currently in BETA and is not available to all users.
54
+ # @return [Array<(Array<AdAccountAnalyticsItems>, Integer, Hash)>] Array<AdAccountAnalyticsItems> data, response status code and response headers
55
+ def ad_account_analytics_with_http_info(start_date, end_date, columns, granularity, ad_account_id, opts = {})
54
56
  if @api_client.config.debugging
55
57
  @api_client.config.logger.debug 'Calling API: AdAccountsApi.ad_account_analytics ...'
56
58
  end
57
- # verify the required parameter 'ad_account_id' is set
58
- if @api_client.config.client_side_validation && ad_account_id.nil?
59
- fail ArgumentError, "Missing the required parameter 'ad_account_id' when calling AdAccountsApi.ad_account_analytics"
60
- end
61
- pattern = Regexp.new(/^\d+$/)
62
- if @api_client.config.client_side_validation && ad_account_id !~ pattern
63
- fail ArgumentError, "invalid value for 'ad_account_id' when calling AdAccountsApi.ad_account_analytics, must conform to the pattern #{pattern}."
64
- end
65
-
66
59
  # verify the required parameter 'start_date' is set
67
60
  if @api_client.config.client_side_validation && start_date.nil?
68
61
  fail ArgumentError, "Missing the required parameter 'start_date' when calling AdAccountsApi.ad_account_analytics"
@@ -79,15 +72,28 @@ module PinterestSdkClient
79
72
  if @api_client.config.client_side_validation && granularity.nil?
80
73
  fail ArgumentError, "Missing the required parameter 'granularity' when calling AdAccountsApi.ad_account_analytics"
81
74
  end
82
- allowable_values = [1, 7, 30, 60]
75
+ # verify the required parameter 'ad_account_id' is set
76
+ if @api_client.config.client_side_validation && ad_account_id.nil?
77
+ fail ArgumentError, "Missing the required parameter 'ad_account_id' when calling AdAccountsApi.ad_account_analytics"
78
+ end
79
+ if @api_client.config.client_side_validation && ad_account_id.to_s.length > 18
80
+ fail ArgumentError, 'invalid value for "ad_account_id" when calling AdAccountsApi.ad_account_analytics, the character length must be smaller than or equal to 18.'
81
+ end
82
+
83
+ pattern = Regexp.new(/^\d+$/)
84
+ if @api_client.config.client_side_validation && ad_account_id !~ pattern
85
+ fail ArgumentError, "invalid value for 'ad_account_id' when calling AdAccountsApi.ad_account_analytics, must conform to the pattern #{pattern}."
86
+ end
87
+
88
+ allowable_values = [0, 1, 7, 14, 30, 60]
83
89
  if @api_client.config.client_side_validation && opts[:'click_window_days'] && !allowable_values.include?(opts[:'click_window_days'])
84
90
  fail ArgumentError, "invalid value for \"click_window_days\", must be one of #{allowable_values}"
85
91
  end
86
- allowable_values = [1, 7, 30, 60]
92
+ allowable_values = [0, 1, 7, 14, 30, 60]
87
93
  if @api_client.config.client_side_validation && opts[:'engagement_window_days'] && !allowable_values.include?(opts[:'engagement_window_days'])
88
94
  fail ArgumentError, "invalid value for \"engagement_window_days\", must be one of #{allowable_values}"
89
95
  end
90
- allowable_values = [1, 7, 30, 60]
96
+ allowable_values = [0, 1, 7, 14, 30, 60]
91
97
  if @api_client.config.client_side_validation && opts[:'view_window_days'] && !allowable_values.include?(opts[:'view_window_days'])
92
98
  fail ArgumentError, "invalid value for \"view_window_days\", must be one of #{allowable_values}"
93
99
  end
@@ -96,7 +102,7 @@ module PinterestSdkClient
96
102
  fail ArgumentError, "invalid value for \"conversion_report_time\", must be one of #{allowable_values}"
97
103
  end
98
104
  # resource path
99
- local_var_path = '/ad_accounts/{ad_account_id}/analytics'.sub('{' + 'ad_account_id' + '}', CGI.escape(ad_account_id.to_s))
105
+ local_var_path = '/ad_accounts/{ad_account_id}/analytics'.sub('{ad_account_id}', CGI.escape(ad_account_id.to_s))
100
106
 
101
107
  # query parameters
102
108
  query_params = opts[:query_params] || {}
@@ -108,11 +114,12 @@ module PinterestSdkClient
108
114
  query_params[:'engagement_window_days'] = opts[:'engagement_window_days'] if !opts[:'engagement_window_days'].nil?
109
115
  query_params[:'view_window_days'] = opts[:'view_window_days'] if !opts[:'view_window_days'].nil?
110
116
  query_params[:'conversion_report_time'] = opts[:'conversion_report_time'] if !opts[:'conversion_report_time'].nil?
117
+ query_params[:'reporting_timezone'] = opts[:'reporting_timezone'] if !opts[:'reporting_timezone'].nil?
111
118
 
112
119
  # header parameters
113
120
  header_params = opts[:header_params] || {}
114
121
  # HTTP header 'Accept' (if needed)
115
- header_params['Accept'] = @api_client.select_header_accept(['application/json'])
122
+ header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
116
123
 
117
124
  # form parameters
118
125
  form_params = opts[:form_params] || {}
@@ -121,10 +128,10 @@ module PinterestSdkClient
121
128
  post_body = opts[:debug_body]
122
129
 
123
130
  # return_type
124
- return_type = opts[:debug_return_type] || 'Array<Hash<String, Object>>'
131
+ return_type = opts[:debug_return_type] || 'Array<AdAccountAnalyticsItems>'
125
132
 
126
133
  # auth_names
127
- auth_names = opts[:debug_auth_names] || ['pinterest_oauth2']
134
+ auth_names = opts[:debug_auth_names] || ['pinterest_oauth2', 'client_credentials']
128
135
 
129
136
  new_options = opts.merge(
130
137
  :operation => :"AdAccountsApi.ad_account_analytics",
@@ -143,163 +150,97 @@ module PinterestSdkClient
143
150
  return data, status_code, headers
144
151
  end
145
152
 
146
- # List ad accounts
147
- # Get a list of the ad_accounts that the \"operation user_account\" has access to. - This includes ad_accounts they own and ad_accounts that are owned by others who have granted them <a href=\"https://help.pinterest.com/en/business/article/share-and-manage-access-to-your-ad-accounts\">Business Access</a>.
148
- # @param [Hash] opts the optional parameters
149
- # @option opts [String] :bookmark Cursor used to fetch the next page of items
150
- # @option opts [Integer] :page_size Maximum number of items to include in a single page of the response. See documentation on &lt;a href&#x3D;&#39;/docs/api/v5/#tag/Pagination&#39;&gt;Pagination&lt;/a&gt; for more information. (default to 25)
151
- # @option opts [Boolean] :include_shared_accounts Include shared ad accounts (default to true)
152
- # @return [Paginated]
153
- def ad_accounts_list(opts = {})
154
- data, _status_code, _headers = ad_accounts_list_with_http_info(opts)
155
- data
156
- end
157
-
158
- # List ad accounts
159
- # Get a list of the ad_accounts that the \&quot;operation user_account\&quot; has access to. - This includes ad_accounts they own and ad_accounts that are owned by others who have granted them &lt;a href&#x3D;\&quot;https://help.pinterest.com/en/business/article/share-and-manage-access-to-your-ad-accounts\&quot;&gt;Business Access&lt;/a&gt;.
160
- # @param [Hash] opts the optional parameters
161
- # @option opts [String] :bookmark Cursor used to fetch the next page of items
162
- # @option opts [Integer] :page_size Maximum number of items to include in a single page of the response. See documentation on &lt;a href&#x3D;&#39;/docs/api/v5/#tag/Pagination&#39;&gt;Pagination&lt;/a&gt; for more information.
163
- # @option opts [Boolean] :include_shared_accounts Include shared ad accounts
164
- # @return [Array<(Paginated, Integer, Hash)>] Paginated data, response status code and response headers
165
- def ad_accounts_list_with_http_info(opts = {})
166
- if @api_client.config.debugging
167
- @api_client.config.logger.debug 'Calling API: AdAccountsApi.ad_accounts_list ...'
168
- end
169
- if @api_client.config.client_side_validation && !opts[:'page_size'].nil? && opts[:'page_size'] > 100
170
- fail ArgumentError, 'invalid value for "opts[:"page_size"]" when calling AdAccountsApi.ad_accounts_list, must be smaller than or equal to 100.'
171
- end
172
-
173
- if @api_client.config.client_side_validation && !opts[:'page_size'].nil? && opts[:'page_size'] < 1
174
- fail ArgumentError, 'invalid value for "opts[:"page_size"]" when calling AdAccountsApi.ad_accounts_list, must be greater than or equal to 1.'
175
- end
176
-
177
- # resource path
178
- local_var_path = '/ad_accounts'
179
-
180
- # query parameters
181
- query_params = opts[:query_params] || {}
182
- query_params[:'bookmark'] = opts[:'bookmark'] if !opts[:'bookmark'].nil?
183
- query_params[:'page_size'] = opts[:'page_size'] if !opts[:'page_size'].nil?
184
- query_params[:'include_shared_accounts'] = opts[:'include_shared_accounts'] if !opts[:'include_shared_accounts'].nil?
185
-
186
- # header parameters
187
- header_params = opts[:header_params] || {}
188
- # HTTP header 'Accept' (if needed)
189
- header_params['Accept'] = @api_client.select_header_accept(['application/json'])
190
-
191
- # form parameters
192
- form_params = opts[:form_params] || {}
193
-
194
- # http body (model)
195
- post_body = opts[:debug_body]
196
-
197
- # return_type
198
- return_type = opts[:debug_return_type] || 'Paginated'
199
-
200
- # auth_names
201
- auth_names = opts[:debug_auth_names] || ['pinterest_oauth2']
202
-
203
- new_options = opts.merge(
204
- :operation => :"AdAccountsApi.ad_accounts_list",
205
- :header_params => header_params,
206
- :query_params => query_params,
207
- :form_params => form_params,
208
- :body => post_body,
209
- :auth_names => auth_names,
210
- :return_type => return_type
211
- )
212
-
213
- data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
214
- if @api_client.config.debugging
215
- @api_client.config.logger.debug "API called: AdAccountsApi#ad_accounts_list\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
216
- end
217
- return data, status_code, headers
218
- end
219
-
220
- # Get ad group analytics
221
- # Get analytics for the specified ad groups in the specified <code>ad_account_id</code>, filtered by the specified options. - The token's user_account must either be the Owner of the specified ad account, or have one of the necessary roles granted to them via <a href=\"https://help.pinterest.com/en/business/article/share-and-manage-access-to-your-ad-accounts\">Business Access</a>: Admin, Analyst, Campaign Manager.
153
+ # Get targeting analytics for an ad account
154
+ # Get targeting analytics for an ad account. For the requested account and metrics, the response will include the requested metric information (e.g. SPEND_IN_DOLLAR) for the requested target type (e.g. \"age_bucket\") for applicable values (e.g. \"45-49\"). <p/> * The token's user_account must either be the Owner of the specified ad account, or have one of the necessary roles granted to them via [Business Access](https://help.pinterest.com/en/business/article/share-and-manage-access-to-your-ad-accounts): Admin, Analyst, Campaign Manager. * If granularity is not HOUR, you can pull data from up to 90 days before the current date in UTC time, with a maximum time range of 90 days. * If granularity is HOUR, you can pull data from up to 8 days before the current date in UTC time, with a maximum time range of 3 days.
222
155
  # @param ad_account_id [String] Unique identifier of an ad account.
223
- # @param start_date [Date] Metric report start date (UTC). Format: YYYY-MM-DD
224
- # @param end_date [Date] Metric report end date (UTC). Format: YYYY-MM-DD
225
- # @param ad_group_ids [Array<String>] List of Ad group Ids to use to filter the results.
226
- # @param columns [Array<String>] Columns to retrieve. **NOTE**: Any metrics defined as MICRO_DOLLARS returns a value based on the advertiser profile&#39;s currency field. For USD,($1/1,000,000, or $0.000001 - one one-ten-thousandth of a cent). it&#39;s microdollars. Otherwise, it&#39;s in microunits of the advertiser&#39;s currency.&lt;br/&gt;For example, if the advertiser&#39;s currency is GBP (British pound sterling), all MICRO_DOLLARS fields will be in GBP microunits (1/1,000,000 British pound).&lt;br/&gt;If a column has no value, it may not be returned
227
- # @param granularity [Granularity] Granularity
156
+ # @param start_date [Date] Metric report start date (UTC). Format: YYYY-MM-DD. Cannot be more than 90 days back from today.
157
+ # @param end_date [Date] Metric report end date (UTC). Format: YYYY-MM-DD. Cannot be more than 90 days past start_date.
158
+ # @param targeting_types [Array<AdsAnalyticsAccountTargetingType>] Targeting type breakdowns for the report. The reporting per targeting type is independent from each other. [\&quot;AGE_BUCKET_AND_GENDER\&quot;] is in BETA and not yet available to all users.
159
+ # @param columns [Array<ReportingColumnSync>] Columns to retrieve, encoded as a comma-separated string. **NOTE**: Any metrics defined as MICRO_DOLLARS returns a value based on the advertiser profile&#39;s currency field. For USD, ($1/1,000,000, or $0.000001 - one one-ten-thousandth of a cent). it&#39;s microdollars. Otherwise, it&#39;s in microunits of the advertiser&#39;s currency. For example, if the advertiser&#39;s currency is GBP (British pound sterling), all MICRO_DOLLARS fields will be in GBP microunits (1/1,000,000 British pound). If a column has no value, it may not be returned.
160
+ # @param granularity [Granularity] TOTAL - metrics are aggregated over the specified date range. DAY - metrics are broken down daily. HOUR - metrics are broken down hourly. WEEK - metrics are broken down weekly. MONTH - metrics are broken down monthly
228
161
  # @param [Hash] opts the optional parameters
229
- # @option opts [Integer] :click_window_days Number of days to use as the conversion attribution window for a pin click action. Applies to Pinterest Tag conversion metrics. Prior conversion tags use their defined attribution windows. If not specified, defaults to &#x60;30&#x60; days. (default to 30)
230
- # @option opts [Integer] :engagement_window_days Number of days to use as the conversion attribution window for an engagement action. Engagements include saves, closeups, link clicks, and carousel card swipes. Applies to Pinterest Tag conversion metrics. Prior conversion tags use their defined attribution windows. If not specified, defaults to &#x60;30&#x60; days. (default to 30)
231
- # @option opts [Integer] :view_window_days Number of days to use as the conversion attribution window for a view action. Applies to Pinterest Tag conversion metrics. Prior conversion tags use their defined attribution windows. If not specified, defaults to &#x60;1&#x60; day. (default to 1)
162
+ # @option opts [Float] :click_window_days Number of days to use as the conversion attribution window for a pin click action. Applies to Pinterest Tag conversion metrics. Prior conversion tags use their defined attribution windows. If not specified, defaults to &#x60;30&#x60; days. (default to 30)
163
+ # @option opts [Float] :engagement_window_days Number of days to use as the conversion attribution window for an engagement action. Engagements include saves, closeups, link clicks, and carousel card swipes. Applies to Pinterest Tag conversion metrics. Prior conversion tags use their defined attribution windows. If not specified, defaults to &#x60;30&#x60; days. **Note:** This parameter no longer returns new data. However, you can still access historic data through **Sept 30, 2027**. (default to 30)
164
+ # @option opts [Float] :view_window_days Number of days to use as the conversion attribution window for a view action. Applies to Pinterest Tag conversion metrics. Prior conversion tags use their defined attribution windows. If not specified, defaults to &#x60;1&#x60; day. (default to 1)
232
165
  # @option opts [String] :conversion_report_time The date by which the conversion metrics returned from this endpoint will be reported. There are two dates associated with a conversion event: the date that the user interacted with the ad, and the date that the user completed a conversion event. (default to 'TIME_OF_AD_ACTION')
233
- # @return [Array<Hash<String, Object>>]
234
- def ad_groups_analytics(ad_account_id, start_date, end_date, ad_group_ids, columns, granularity, opts = {})
235
- data, _status_code, _headers = ad_groups_analytics_with_http_info(ad_account_id, start_date, end_date, ad_group_ids, columns, granularity, opts)
166
+ # @option opts [Array<ConversionReportAttributionType>] :attribution_types List of types of attribution for the conversion report
167
+ # @option opts [ReportingTimeZone] :reporting_timezone Specify the timezone to be applied for the reporting. This feature is currently in BETA and is not available to all users.
168
+ # @return [MetricsResponse]
169
+ def ad_account_targeting_analytics_get(ad_account_id, start_date, end_date, targeting_types, columns, granularity, opts = {})
170
+ data, _status_code, _headers = ad_account_targeting_analytics_get_with_http_info(ad_account_id, start_date, end_date, targeting_types, columns, granularity, opts)
236
171
  data
237
172
  end
238
173
 
239
- # Get ad group analytics
240
- # Get analytics for the specified ad groups in the specified &lt;code&gt;ad_account_id&lt;/code&gt;, filtered by the specified options. - The token&#39;s user_account must either be the Owner of the specified ad account, or have one of the necessary roles granted to them via &lt;a href&#x3D;\&quot;https://help.pinterest.com/en/business/article/share-and-manage-access-to-your-ad-accounts\&quot;&gt;Business Access&lt;/a&gt;: Admin, Analyst, Campaign Manager.
174
+ # Get targeting analytics for an ad account
175
+ # Get targeting analytics for an ad account. For the requested account and metrics, the response will include the requested metric information (e.g. SPEND_IN_DOLLAR) for the requested target type (e.g. \&quot;age_bucket\&quot;) for applicable values (e.g. \&quot;45-49\&quot;). &lt;p/&gt; * The token&#39;s user_account must either be the Owner of the specified ad account, or have one of the necessary roles granted to them via [Business Access](https://help.pinterest.com/en/business/article/share-and-manage-access-to-your-ad-accounts): Admin, Analyst, Campaign Manager. * If granularity is not HOUR, you can pull data from up to 90 days before the current date in UTC time, with a maximum time range of 90 days. * If granularity is HOUR, you can pull data from up to 8 days before the current date in UTC time, with a maximum time range of 3 days.
241
176
  # @param ad_account_id [String] Unique identifier of an ad account.
242
- # @param start_date [Date] Metric report start date (UTC). Format: YYYY-MM-DD
243
- # @param end_date [Date] Metric report end date (UTC). Format: YYYY-MM-DD
244
- # @param ad_group_ids [Array<String>] List of Ad group Ids to use to filter the results.
245
- # @param columns [Array<String>] Columns to retrieve. **NOTE**: Any metrics defined as MICRO_DOLLARS returns a value based on the advertiser profile&#39;s currency field. For USD,($1/1,000,000, or $0.000001 - one one-ten-thousandth of a cent). it&#39;s microdollars. Otherwise, it&#39;s in microunits of the advertiser&#39;s currency.&lt;br/&gt;For example, if the advertiser&#39;s currency is GBP (British pound sterling), all MICRO_DOLLARS fields will be in GBP microunits (1/1,000,000 British pound).&lt;br/&gt;If a column has no value, it may not be returned
246
- # @param granularity [Granularity] Granularity
177
+ # @param start_date [Date] Metric report start date (UTC). Format: YYYY-MM-DD. Cannot be more than 90 days back from today.
178
+ # @param end_date [Date] Metric report end date (UTC). Format: YYYY-MM-DD. Cannot be more than 90 days past start_date.
179
+ # @param targeting_types [Array<AdsAnalyticsAccountTargetingType>] Targeting type breakdowns for the report. The reporting per targeting type is independent from each other. [\&quot;AGE_BUCKET_AND_GENDER\&quot;] is in BETA and not yet available to all users.
180
+ # @param columns [Array<ReportingColumnSync>] Columns to retrieve, encoded as a comma-separated string. **NOTE**: Any metrics defined as MICRO_DOLLARS returns a value based on the advertiser profile&#39;s currency field. For USD, ($1/1,000,000, or $0.000001 - one one-ten-thousandth of a cent). it&#39;s microdollars. Otherwise, it&#39;s in microunits of the advertiser&#39;s currency. For example, if the advertiser&#39;s currency is GBP (British pound sterling), all MICRO_DOLLARS fields will be in GBP microunits (1/1,000,000 British pound). If a column has no value, it may not be returned.
181
+ # @param granularity [Granularity] TOTAL - metrics are aggregated over the specified date range. DAY - metrics are broken down daily. HOUR - metrics are broken down hourly. WEEK - metrics are broken down weekly. MONTH - metrics are broken down monthly
247
182
  # @param [Hash] opts the optional parameters
248
- # @option opts [Integer] :click_window_days Number of days to use as the conversion attribution window for a pin click action. Applies to Pinterest Tag conversion metrics. Prior conversion tags use their defined attribution windows. If not specified, defaults to &#x60;30&#x60; days.
249
- # @option opts [Integer] :engagement_window_days Number of days to use as the conversion attribution window for an engagement action. Engagements include saves, closeups, link clicks, and carousel card swipes. Applies to Pinterest Tag conversion metrics. Prior conversion tags use their defined attribution windows. If not specified, defaults to &#x60;30&#x60; days.
250
- # @option opts [Integer] :view_window_days Number of days to use as the conversion attribution window for a view action. Applies to Pinterest Tag conversion metrics. Prior conversion tags use their defined attribution windows. If not specified, defaults to &#x60;1&#x60; day.
251
- # @option opts [String] :conversion_report_time The date by which the conversion metrics returned from this endpoint will be reported. There are two dates associated with a conversion event: the date that the user interacted with the ad, and the date that the user completed a conversion event.
252
- # @return [Array<(Array<Hash<String, Object>>, Integer, Hash)>] Array<Hash<String, Object>> data, response status code and response headers
253
- def ad_groups_analytics_with_http_info(ad_account_id, start_date, end_date, ad_group_ids, columns, granularity, opts = {})
183
+ # @option opts [Float] :click_window_days Number of days to use as the conversion attribution window for a pin click action. Applies to Pinterest Tag conversion metrics. Prior conversion tags use their defined attribution windows. If not specified, defaults to &#x60;30&#x60; days. (default to 30)
184
+ # @option opts [Float] :engagement_window_days Number of days to use as the conversion attribution window for an engagement action. Engagements include saves, closeups, link clicks, and carousel card swipes. Applies to Pinterest Tag conversion metrics. Prior conversion tags use their defined attribution windows. If not specified, defaults to &#x60;30&#x60; days. **Note:** This parameter no longer returns new data. However, you can still access historic data through **Sept 30, 2027**. (default to 30)
185
+ # @option opts [Float] :view_window_days Number of days to use as the conversion attribution window for a view action. Applies to Pinterest Tag conversion metrics. Prior conversion tags use their defined attribution windows. If not specified, defaults to &#x60;1&#x60; day. (default to 1)
186
+ # @option opts [String] :conversion_report_time The date by which the conversion metrics returned from this endpoint will be reported. There are two dates associated with a conversion event: the date that the user interacted with the ad, and the date that the user completed a conversion event. (default to 'TIME_OF_AD_ACTION')
187
+ # @option opts [Array<ConversionReportAttributionType>] :attribution_types List of types of attribution for the conversion report
188
+ # @option opts [ReportingTimeZone] :reporting_timezone Specify the timezone to be applied for the reporting. This feature is currently in BETA and is not available to all users.
189
+ # @return [Array<(MetricsResponse, Integer, Hash)>] MetricsResponse data, response status code and response headers
190
+ def ad_account_targeting_analytics_get_with_http_info(ad_account_id, start_date, end_date, targeting_types, columns, granularity, opts = {})
254
191
  if @api_client.config.debugging
255
- @api_client.config.logger.debug 'Calling API: AdAccountsApi.ad_groups_analytics ...'
192
+ @api_client.config.logger.debug 'Calling API: AdAccountsApi.ad_account_targeting_analytics_get ...'
256
193
  end
257
194
  # verify the required parameter 'ad_account_id' is set
258
195
  if @api_client.config.client_side_validation && ad_account_id.nil?
259
- fail ArgumentError, "Missing the required parameter 'ad_account_id' when calling AdAccountsApi.ad_groups_analytics"
196
+ fail ArgumentError, "Missing the required parameter 'ad_account_id' when calling AdAccountsApi.ad_account_targeting_analytics_get"
260
197
  end
198
+ if @api_client.config.client_side_validation && ad_account_id.to_s.length > 18
199
+ fail ArgumentError, 'invalid value for "ad_account_id" when calling AdAccountsApi.ad_account_targeting_analytics_get, the character length must be smaller than or equal to 18.'
200
+ end
201
+
261
202
  pattern = Regexp.new(/^\d+$/)
262
203
  if @api_client.config.client_side_validation && ad_account_id !~ pattern
263
- fail ArgumentError, "invalid value for 'ad_account_id' when calling AdAccountsApi.ad_groups_analytics, must conform to the pattern #{pattern}."
204
+ fail ArgumentError, "invalid value for 'ad_account_id' when calling AdAccountsApi.ad_account_targeting_analytics_get, must conform to the pattern #{pattern}."
264
205
  end
265
206
 
266
207
  # verify the required parameter 'start_date' is set
267
208
  if @api_client.config.client_side_validation && start_date.nil?
268
- fail ArgumentError, "Missing the required parameter 'start_date' when calling AdAccountsApi.ad_groups_analytics"
209
+ fail ArgumentError, "Missing the required parameter 'start_date' when calling AdAccountsApi.ad_account_targeting_analytics_get"
269
210
  end
270
211
  # verify the required parameter 'end_date' is set
271
212
  if @api_client.config.client_side_validation && end_date.nil?
272
- fail ArgumentError, "Missing the required parameter 'end_date' when calling AdAccountsApi.ad_groups_analytics"
213
+ fail ArgumentError, "Missing the required parameter 'end_date' when calling AdAccountsApi.ad_account_targeting_analytics_get"
273
214
  end
274
- # verify the required parameter 'ad_group_ids' is set
275
- if @api_client.config.client_side_validation && ad_group_ids.nil?
276
- fail ArgumentError, "Missing the required parameter 'ad_group_ids' when calling AdAccountsApi.ad_groups_analytics"
215
+ # verify the required parameter 'targeting_types' is set
216
+ if @api_client.config.client_side_validation && targeting_types.nil?
217
+ fail ArgumentError, "Missing the required parameter 'targeting_types' when calling AdAccountsApi.ad_account_targeting_analytics_get"
277
218
  end
278
- if @api_client.config.client_side_validation && ad_group_ids.length > 100
279
- fail ArgumentError, 'invalid value for "ad_group_ids" when calling AdAccountsApi.ad_groups_analytics, number of items must be less than or equal to 100.'
219
+ if @api_client.config.client_side_validation && targeting_types.length > 15
220
+ fail ArgumentError, 'invalid value for "targeting_types" when calling AdAccountsApi.ad_account_targeting_analytics_get, number of items must be less than or equal to 15.'
280
221
  end
281
222
 
282
- if @api_client.config.client_side_validation && ad_group_ids.length < 1
283
- fail ArgumentError, 'invalid value for "ad_group_ids" when calling AdAccountsApi.ad_groups_analytics, number of items must be greater than or equal to 1.'
223
+ if @api_client.config.client_side_validation && targeting_types.length < 1
224
+ fail ArgumentError, 'invalid value for "targeting_types" when calling AdAccountsApi.ad_account_targeting_analytics_get, number of items must be greater than or equal to 1.'
284
225
  end
285
226
 
286
227
  # verify the required parameter 'columns' is set
287
228
  if @api_client.config.client_side_validation && columns.nil?
288
- fail ArgumentError, "Missing the required parameter 'columns' when calling AdAccountsApi.ad_groups_analytics"
229
+ fail ArgumentError, "Missing the required parameter 'columns' when calling AdAccountsApi.ad_account_targeting_analytics_get"
289
230
  end
290
231
  # verify the required parameter 'granularity' is set
291
232
  if @api_client.config.client_side_validation && granularity.nil?
292
- fail ArgumentError, "Missing the required parameter 'granularity' when calling AdAccountsApi.ad_groups_analytics"
233
+ fail ArgumentError, "Missing the required parameter 'granularity' when calling AdAccountsApi.ad_account_targeting_analytics_get"
293
234
  end
294
- allowable_values = [1, 7, 30, 60]
235
+ allowable_values = [0, 1, 7, 14, 30, 60]
295
236
  if @api_client.config.client_side_validation && opts[:'click_window_days'] && !allowable_values.include?(opts[:'click_window_days'])
296
237
  fail ArgumentError, "invalid value for \"click_window_days\", must be one of #{allowable_values}"
297
238
  end
298
- allowable_values = [1, 7, 30, 60]
239
+ allowable_values = [0, 1, 7, 14, 30, 60]
299
240
  if @api_client.config.client_side_validation && opts[:'engagement_window_days'] && !allowable_values.include?(opts[:'engagement_window_days'])
300
241
  fail ArgumentError, "invalid value for \"engagement_window_days\", must be one of #{allowable_values}"
301
242
  end
302
- allowable_values = [1, 7, 30, 60]
243
+ allowable_values = [0, 1, 7, 14, 30, 60]
303
244
  if @api_client.config.client_side_validation && opts[:'view_window_days'] && !allowable_values.include?(opts[:'view_window_days'])
304
245
  fail ArgumentError, "invalid value for \"view_window_days\", must be one of #{allowable_values}"
305
246
  end
@@ -307,25 +248,31 @@ module PinterestSdkClient
307
248
  if @api_client.config.client_side_validation && opts[:'conversion_report_time'] && !allowable_values.include?(opts[:'conversion_report_time'])
308
249
  fail ArgumentError, "invalid value for \"conversion_report_time\", must be one of #{allowable_values}"
309
250
  end
251
+ if @api_client.config.client_side_validation && !opts[:'attribution_types'].nil? && opts[:'attribution_types'].length > 2
252
+ fail ArgumentError, 'invalid value for "opts[:"attribution_types"]" when calling AdAccountsApi.ad_account_targeting_analytics_get, number of items must be less than or equal to 2.'
253
+ end
254
+
310
255
  # resource path
311
- local_var_path = '/ad_accounts/{ad_account_id}/ad_groups/analytics'.sub('{' + 'ad_account_id' + '}', CGI.escape(ad_account_id.to_s))
256
+ local_var_path = '/ad_accounts/{ad_account_id}/targeting_analytics'.sub('{ad_account_id}', CGI.escape(ad_account_id.to_s))
312
257
 
313
258
  # query parameters
314
259
  query_params = opts[:query_params] || {}
315
260
  query_params[:'start_date'] = start_date
316
261
  query_params[:'end_date'] = end_date
317
- query_params[:'ad_group_ids'] = @api_client.build_collection_param(ad_group_ids, :multi)
262
+ query_params[:'targeting_types'] = @api_client.build_collection_param(targeting_types, :csv)
318
263
  query_params[:'columns'] = @api_client.build_collection_param(columns, :csv)
319
264
  query_params[:'granularity'] = granularity
320
265
  query_params[:'click_window_days'] = opts[:'click_window_days'] if !opts[:'click_window_days'].nil?
321
266
  query_params[:'engagement_window_days'] = opts[:'engagement_window_days'] if !opts[:'engagement_window_days'].nil?
322
267
  query_params[:'view_window_days'] = opts[:'view_window_days'] if !opts[:'view_window_days'].nil?
323
268
  query_params[:'conversion_report_time'] = opts[:'conversion_report_time'] if !opts[:'conversion_report_time'].nil?
269
+ query_params[:'attribution_types'] = @api_client.build_collection_param(opts[:'attribution_types'], :csv) if !opts[:'attribution_types'].nil?
270
+ query_params[:'reporting_timezone'] = opts[:'reporting_timezone'] if !opts[:'reporting_timezone'].nil?
324
271
 
325
272
  # header parameters
326
273
  header_params = opts[:header_params] || {}
327
274
  # HTTP header 'Accept' (if needed)
328
- header_params['Accept'] = @api_client.select_header_accept(['application/json'])
275
+ header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
329
276
 
330
277
  # form parameters
331
278
  form_params = opts[:form_params] || {}
@@ -334,13 +281,13 @@ module PinterestSdkClient
334
281
  post_body = opts[:debug_body]
335
282
 
336
283
  # return_type
337
- return_type = opts[:debug_return_type] || 'Array<Hash<String, Object>>'
284
+ return_type = opts[:debug_return_type] || 'MetricsResponse'
338
285
 
339
286
  # auth_names
340
- auth_names = opts[:debug_auth_names] || ['pinterest_oauth2']
287
+ auth_names = opts[:debug_auth_names] || ['pinterest_oauth2', 'client_credentials']
341
288
 
342
289
  new_options = opts.merge(
343
- :operation => :"AdAccountsApi.ad_groups_analytics",
290
+ :operation => :"AdAccountsApi.ad_account_targeting_analytics_get",
344
291
  :header_params => header_params,
345
292
  :query_params => query_params,
346
293
  :form_params => form_params,
@@ -351,102 +298,121 @@ module PinterestSdkClient
351
298
 
352
299
  data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
353
300
  if @api_client.config.debugging
354
- @api_client.config.logger.debug "API called: AdAccountsApi#ad_groups_analytics\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
301
+ @api_client.config.logger.debug "API called: AdAccountsApi#ad_account_targeting_analytics_get\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
355
302
  end
356
303
  return data, status_code, headers
357
304
  end
358
305
 
359
- # List ad groups
360
- # Get a list of the ad groups in the specified <code>ad_account_id</code>, filtered by the specified options. - The token's user_account must either be the Owner of the specified ad account, or have one of the necessary roles granted to them via <a href=\"https://help.pinterest.com/en/business/article/share-and-manage-access-to-your-ad-accounts\">Business Access</a>: Admin, Analyst, Campaign Manager.
361
- # @param ad_account_id [String] Unique identifier of an ad account.
306
+ # Create ad account
307
+ # Create a new ad account. Different ad accounts can support different currencies, payment methods, etc. An ad account is needed to create campaigns, ad groups, and ads; other accounts (your employees or partners) can be assigned business access and appropriate roles to access an ad account. You can set up up to 50 ad accounts per user. (The user must have a business account to create an ad account.) For more, see [Create an advertiser account](https://help.pinterest.com/en/business/article/create-an-advertiser-account).
308
+ # @param ad_account_create [AdAccountCreate]
362
309
  # @param [Hash] opts the optional parameters
363
- # @option opts [Array<String>] :campaign_ids List of Campaign Ids to use to filter the results.
364
- # @option opts [Array<String>] :ad_group_ids List of Ad group Ids to use to filter the results.
365
- # @option opts [Array<String>] :entity_statuses Entity status
366
- # @option opts [Integer] :page_size Maximum number of items to include in a single page of the response. See documentation on &lt;a href&#x3D;&#39;/docs/api/v5/#tag/Pagination&#39;&gt;Pagination&lt;/a&gt; for more information. (default to 25)
367
- # @option opts [String] :order The order in which to sort the items returned: “ASCENDING” or “DESCENDING” by ID. Note that higher-value IDs are associated with more-recently added items.
368
- # @option opts [String] :bookmark Cursor used to fetch the next page of items
369
- # @option opts [Boolean] :translate_interests_to_names Return interests as text names (if value is true) rather than topic IDs. (default to false)
370
- # @return [Paginated]
371
- def ad_groups_list(ad_account_id, opts = {})
372
- data, _status_code, _headers = ad_groups_list_with_http_info(ad_account_id, opts)
310
+ # @return [AdAccount]
311
+ def ad_accounts_create(ad_account_create, opts = {})
312
+ data, _status_code, _headers = ad_accounts_create_with_http_info(ad_account_create, opts)
373
313
  data
374
314
  end
375
315
 
376
- # List ad groups
377
- # Get a list of the ad groups in the specified &lt;code&gt;ad_account_id&lt;/code&gt;, filtered by the specified options. - The token&#39;s user_account must either be the Owner of the specified ad account, or have one of the necessary roles granted to them via &lt;a href&#x3D;\&quot;https://help.pinterest.com/en/business/article/share-and-manage-access-to-your-ad-accounts\&quot;&gt;Business Access&lt;/a&gt;: Admin, Analyst, Campaign Manager.
378
- # @param ad_account_id [String] Unique identifier of an ad account.
316
+ # Create ad account
317
+ # Create a new ad account. Different ad accounts can support different currencies, payment methods, etc. An ad account is needed to create campaigns, ad groups, and ads; other accounts (your employees or partners) can be assigned business access and appropriate roles to access an ad account. You can set up up to 50 ad accounts per user. (The user must have a business account to create an ad account.) For more, see [Create an advertiser account](https://help.pinterest.com/en/business/article/create-an-advertiser-account).
318
+ # @param ad_account_create [AdAccountCreate]
379
319
  # @param [Hash] opts the optional parameters
380
- # @option opts [Array<String>] :campaign_ids List of Campaign Ids to use to filter the results.
381
- # @option opts [Array<String>] :ad_group_ids List of Ad group Ids to use to filter the results.
382
- # @option opts [Array<String>] :entity_statuses Entity status
383
- # @option opts [Integer] :page_size Maximum number of items to include in a single page of the response. See documentation on &lt;a href&#x3D;&#39;/docs/api/v5/#tag/Pagination&#39;&gt;Pagination&lt;/a&gt; for more information.
384
- # @option opts [String] :order The order in which to sort the items returned: “ASCENDING” or “DESCENDING” by ID. Note that higher-value IDs are associated with more-recently added items.
385
- # @option opts [String] :bookmark Cursor used to fetch the next page of items
386
- # @option opts [Boolean] :translate_interests_to_names Return interests as text names (if value is true) rather than topic IDs.
387
- # @return [Array<(Paginated, Integer, Hash)>] Paginated data, response status code and response headers
388
- def ad_groups_list_with_http_info(ad_account_id, opts = {})
320
+ # @return [Array<(AdAccount, Integer, Hash)>] AdAccount data, response status code and response headers
321
+ def ad_accounts_create_with_http_info(ad_account_create, opts = {})
389
322
  if @api_client.config.debugging
390
- @api_client.config.logger.debug 'Calling API: AdAccountsApi.ad_groups_list ...'
323
+ @api_client.config.logger.debug 'Calling API: AdAccountsApi.ad_accounts_create ...'
391
324
  end
392
- # verify the required parameter 'ad_account_id' is set
393
- if @api_client.config.client_side_validation && ad_account_id.nil?
394
- fail ArgumentError, "Missing the required parameter 'ad_account_id' when calling AdAccountsApi.ad_groups_list"
395
- end
396
- pattern = Regexp.new(/^\d+$/)
397
- if @api_client.config.client_side_validation && ad_account_id !~ pattern
398
- fail ArgumentError, "invalid value for 'ad_account_id' when calling AdAccountsApi.ad_groups_list, must conform to the pattern #{pattern}."
325
+ # verify the required parameter 'ad_account_create' is set
326
+ if @api_client.config.client_side_validation && ad_account_create.nil?
327
+ fail ArgumentError, "Missing the required parameter 'ad_account_create' when calling AdAccountsApi.ad_accounts_create"
399
328
  end
329
+ # resource path
330
+ local_var_path = '/ad_accounts'
400
331
 
401
- if @api_client.config.client_side_validation && !opts[:'campaign_ids'].nil? && opts[:'campaign_ids'].length > 100
402
- fail ArgumentError, 'invalid value for "opts[:"campaign_ids"]" when calling AdAccountsApi.ad_groups_list, number of items must be less than or equal to 100.'
403
- end
332
+ # query parameters
333
+ query_params = opts[:query_params] || {}
404
334
 
405
- if @api_client.config.client_side_validation && !opts[:'campaign_ids'].nil? && opts[:'campaign_ids'].length < 1
406
- fail ArgumentError, 'invalid value for "opts[:"campaign_ids"]" when calling AdAccountsApi.ad_groups_list, number of items must be greater than or equal to 1.'
335
+ # header parameters
336
+ header_params = opts[:header_params] || {}
337
+ # HTTP header 'Accept' (if needed)
338
+ header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
339
+ # HTTP header 'Content-Type'
340
+ content_type = @api_client.select_header_content_type(['application/json'])
341
+ if !content_type.nil?
342
+ header_params['Content-Type'] = content_type
407
343
  end
408
344
 
409
- if @api_client.config.client_side_validation && !opts[:'ad_group_ids'].nil? && opts[:'ad_group_ids'].length > 100
410
- fail ArgumentError, 'invalid value for "opts[:"ad_group_ids"]" when calling AdAccountsApi.ad_groups_list, number of items must be less than or equal to 100.'
411
- end
345
+ # form parameters
346
+ form_params = opts[:form_params] || {}
347
+
348
+ # http body (model)
349
+ post_body = opts[:debug_body] || @api_client.object_to_http_body(ad_account_create)
350
+
351
+ # return_type
352
+ return_type = opts[:debug_return_type] || 'AdAccount'
353
+
354
+ # auth_names
355
+ auth_names = opts[:debug_auth_names] || ['pinterest_oauth2']
356
+
357
+ new_options = opts.merge(
358
+ :operation => :"AdAccountsApi.ad_accounts_create",
359
+ :header_params => header_params,
360
+ :query_params => query_params,
361
+ :form_params => form_params,
362
+ :body => post_body,
363
+ :auth_names => auth_names,
364
+ :return_type => return_type
365
+ )
412
366
 
413
- if @api_client.config.client_side_validation && !opts[:'ad_group_ids'].nil? && opts[:'ad_group_ids'].length < 1
414
- fail ArgumentError, 'invalid value for "opts[:"ad_group_ids"]" when calling AdAccountsApi.ad_groups_list, number of items must be greater than or equal to 1.'
367
+ data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
368
+ if @api_client.config.debugging
369
+ @api_client.config.logger.debug "API called: AdAccountsApi#ad_accounts_create\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
415
370
  end
371
+ return data, status_code, headers
372
+ end
416
373
 
417
- allowable_values = ["ACTIVE", "PAUSED", "ARCHIVED"]
418
- if @api_client.config.client_side_validation && opts[:'entity_statuses'] && !opts[:'entity_statuses'].all? { |item| allowable_values.include?(item) }
419
- fail ArgumentError, "invalid value for \"entity_statuses\", must include one of #{allowable_values}"
374
+ # Get ad account
375
+ # Get an ad account
376
+ # @param ad_account_id [String]
377
+ # @param [Hash] opts the optional parameters
378
+ # @return [AdAccount]
379
+ def ad_accounts_get(ad_account_id, opts = {})
380
+ data, _status_code, _headers = ad_accounts_get_with_http_info(ad_account_id, opts)
381
+ data
382
+ end
383
+
384
+ # Get ad account
385
+ # Get an ad account
386
+ # @param ad_account_id [String]
387
+ # @param [Hash] opts the optional parameters
388
+ # @return [Array<(AdAccount, Integer, Hash)>] AdAccount data, response status code and response headers
389
+ def ad_accounts_get_with_http_info(ad_account_id, opts = {})
390
+ if @api_client.config.debugging
391
+ @api_client.config.logger.debug 'Calling API: AdAccountsApi.ad_accounts_get ...'
392
+ end
393
+ # verify the required parameter 'ad_account_id' is set
394
+ if @api_client.config.client_side_validation && ad_account_id.nil?
395
+ fail ArgumentError, "Missing the required parameter 'ad_account_id' when calling AdAccountsApi.ad_accounts_get"
420
396
  end
421
- if @api_client.config.client_side_validation && !opts[:'page_size'].nil? && opts[:'page_size'] > 100
422
- fail ArgumentError, 'invalid value for "opts[:"page_size"]" when calling AdAccountsApi.ad_groups_list, must be smaller than or equal to 100.'
397
+ if @api_client.config.client_side_validation && ad_account_id.to_s.length > 18
398
+ fail ArgumentError, 'invalid value for "ad_account_id" when calling AdAccountsApi.ad_accounts_get, the character length must be smaller than or equal to 18.'
423
399
  end
424
400
 
425
- if @api_client.config.client_side_validation && !opts[:'page_size'].nil? && opts[:'page_size'] < 1
426
- fail ArgumentError, 'invalid value for "opts[:"page_size"]" when calling AdAccountsApi.ad_groups_list, must be greater than or equal to 1.'
401
+ pattern = Regexp.new(/^\d+$/)
402
+ if @api_client.config.client_side_validation && ad_account_id !~ pattern
403
+ fail ArgumentError, "invalid value for 'ad_account_id' when calling AdAccountsApi.ad_accounts_get, must conform to the pattern #{pattern}."
427
404
  end
428
405
 
429
- allowable_values = ["ASCENDING", "DESCENDING"]
430
- if @api_client.config.client_side_validation && opts[:'order'] && !allowable_values.include?(opts[:'order'])
431
- fail ArgumentError, "invalid value for \"order\", must be one of #{allowable_values}"
432
- end
433
406
  # resource path
434
- local_var_path = '/ad_accounts/{ad_account_id}/ad_groups'.sub('{' + 'ad_account_id' + '}', CGI.escape(ad_account_id.to_s))
407
+ local_var_path = '/ad_accounts/{ad_account_id}'.sub('{ad_account_id}', CGI.escape(ad_account_id.to_s))
435
408
 
436
409
  # query parameters
437
410
  query_params = opts[:query_params] || {}
438
- query_params[:'campaign_ids'] = @api_client.build_collection_param(opts[:'campaign_ids'], :multi) if !opts[:'campaign_ids'].nil?
439
- query_params[:'ad_group_ids'] = @api_client.build_collection_param(opts[:'ad_group_ids'], :multi) if !opts[:'ad_group_ids'].nil?
440
- query_params[:'entity_statuses'] = @api_client.build_collection_param(opts[:'entity_statuses'], :multi) if !opts[:'entity_statuses'].nil?
441
- query_params[:'page_size'] = opts[:'page_size'] if !opts[:'page_size'].nil?
442
- query_params[:'order'] = opts[:'order'] if !opts[:'order'].nil?
443
- query_params[:'bookmark'] = opts[:'bookmark'] if !opts[:'bookmark'].nil?
444
- query_params[:'translate_interests_to_names'] = opts[:'translate_interests_to_names'] if !opts[:'translate_interests_to_names'].nil?
445
411
 
446
412
  # header parameters
447
413
  header_params = opts[:header_params] || {}
448
414
  # HTTP header 'Accept' (if needed)
449
- header_params['Accept'] = @api_client.select_header_accept(['application/json'])
415
+ header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
450
416
 
451
417
  # form parameters
452
418
  form_params = opts[:form_params] || {}
@@ -455,13 +421,13 @@ module PinterestSdkClient
455
421
  post_body = opts[:debug_body]
456
422
 
457
423
  # return_type
458
- return_type = opts[:debug_return_type] || 'Paginated'
424
+ return_type = opts[:debug_return_type] || 'AdAccount'
459
425
 
460
426
  # auth_names
461
- auth_names = opts[:debug_auth_names] || ['pinterest_oauth2']
427
+ auth_names = opts[:debug_auth_names] || ['pinterest_oauth2', 'client_credentials']
462
428
 
463
429
  new_options = opts.merge(
464
- :operation => :"AdAccountsApi.ad_groups_list",
430
+ :operation => :"AdAccountsApi.ad_accounts_get",
465
431
  :header_params => header_params,
466
432
  :query_params => query_params,
467
433
  :form_params => form_params,
@@ -472,120 +438,55 @@ module PinterestSdkClient
472
438
 
473
439
  data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
474
440
  if @api_client.config.debugging
475
- @api_client.config.logger.debug "API called: AdAccountsApi#ad_groups_list\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
441
+ @api_client.config.logger.debug "API called: AdAccountsApi#ad_accounts_get\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
476
442
  end
477
443
  return data, status_code, headers
478
444
  end
479
445
 
480
- # Get ad analytics
481
- # Get analytics for the specified ads in the specified <code>ad_account_id</code>, filtered by the specified options. - The token's user_account must either be the Owner of the specified ad account, or have one of the necessary roles granted to them via <a href=\"https://help.pinterest.com/en/business/article/share-and-manage-access-to-your-ad-accounts\">Business Access</a>: Admin, Analyst, Campaign Manager.
482
- # @param ad_account_id [String] Unique identifier of an ad account.
483
- # @param start_date [Date] Metric report start date (UTC). Format: YYYY-MM-DD
484
- # @param end_date [Date] Metric report end date (UTC). Format: YYYY-MM-DD
485
- # @param ad_ids [Array<String>] List of Ad Ids to use to filter the results.
486
- # @param columns [Array<String>] Columns to retrieve. **NOTE**: Any metrics defined as MICRO_DOLLARS returns a value based on the advertiser profile&#39;s currency field. For USD,($1/1,000,000, or $0.000001 - one one-ten-thousandth of a cent). it&#39;s microdollars. Otherwise, it&#39;s in microunits of the advertiser&#39;s currency.&lt;br/&gt;For example, if the advertiser&#39;s currency is GBP (British pound sterling), all MICRO_DOLLARS fields will be in GBP microunits (1/1,000,000 British pound).&lt;br/&gt;If a column has no value, it may not be returned
487
- # @param granularity [Granularity] Granularity
446
+ # List ad accounts
447
+ # Get a list of the ad_accounts that the \"operation user_account\" has access to. - This includes ad_accounts they own and ad_accounts that are owned by others who have granted them [Business Access](https://help.pinterest.com/en/business/article/share-and-manage-access-to-your-ad-accounts).
488
448
  # @param [Hash] opts the optional parameters
489
- # @option opts [Integer] :click_window_days Number of days to use as the conversion attribution window for a pin click action. Applies to Pinterest Tag conversion metrics. Prior conversion tags use their defined attribution windows. If not specified, defaults to &#x60;30&#x60; days. (default to 30)
490
- # @option opts [Integer] :engagement_window_days Number of days to use as the conversion attribution window for an engagement action. Engagements include saves, closeups, link clicks, and carousel card swipes. Applies to Pinterest Tag conversion metrics. Prior conversion tags use their defined attribution windows. If not specified, defaults to &#x60;30&#x60; days. (default to 30)
491
- # @option opts [Integer] :view_window_days Number of days to use as the conversion attribution window for a view action. Applies to Pinterest Tag conversion metrics. Prior conversion tags use their defined attribution windows. If not specified, defaults to &#x60;1&#x60; day. (default to 1)
492
- # @option opts [String] :conversion_report_time The date by which the conversion metrics returned from this endpoint will be reported. There are two dates associated with a conversion event: the date that the user interacted with the ad, and the date that the user completed a conversion event. (default to 'TIME_OF_AD_ACTION')
493
- # @return [Array<Hash<String, Object>>]
494
- def ads_analytics(ad_account_id, start_date, end_date, ad_ids, columns, granularity, opts = {})
495
- data, _status_code, _headers = ads_analytics_with_http_info(ad_account_id, start_date, end_date, ad_ids, columns, granularity, opts)
449
+ # @option opts [Boolean] :include_shared_accounts Include shared ad accounts (default to true)
450
+ # @option opts [String] :bookmark Cursor used to fetch the next page of items
451
+ # @option opts [Integer] :page_size Maximum number of items to include in a single page. See documentation on [Pagination](/docs/reference/pagination/) for more information. (default to 25)
452
+ # @return [AdAccountsList200Response]
453
+ def ad_accounts_list(opts = {})
454
+ data, _status_code, _headers = ad_accounts_list_with_http_info(opts)
496
455
  data
497
456
  end
498
457
 
499
- # Get ad analytics
500
- # Get analytics for the specified ads in the specified &lt;code&gt;ad_account_id&lt;/code&gt;, filtered by the specified options. - The token&#39;s user_account must either be the Owner of the specified ad account, or have one of the necessary roles granted to them via &lt;a href&#x3D;\&quot;https://help.pinterest.com/en/business/article/share-and-manage-access-to-your-ad-accounts\&quot;&gt;Business Access&lt;/a&gt;: Admin, Analyst, Campaign Manager.
501
- # @param ad_account_id [String] Unique identifier of an ad account.
502
- # @param start_date [Date] Metric report start date (UTC). Format: YYYY-MM-DD
503
- # @param end_date [Date] Metric report end date (UTC). Format: YYYY-MM-DD
504
- # @param ad_ids [Array<String>] List of Ad Ids to use to filter the results.
505
- # @param columns [Array<String>] Columns to retrieve. **NOTE**: Any metrics defined as MICRO_DOLLARS returns a value based on the advertiser profile&#39;s currency field. For USD,($1/1,000,000, or $0.000001 - one one-ten-thousandth of a cent). it&#39;s microdollars. Otherwise, it&#39;s in microunits of the advertiser&#39;s currency.&lt;br/&gt;For example, if the advertiser&#39;s currency is GBP (British pound sterling), all MICRO_DOLLARS fields will be in GBP microunits (1/1,000,000 British pound).&lt;br/&gt;If a column has no value, it may not be returned
506
- # @param granularity [Granularity] Granularity
458
+ # List ad accounts
459
+ # Get a list of the ad_accounts that the \&quot;operation user_account\&quot; has access to. - This includes ad_accounts they own and ad_accounts that are owned by others who have granted them [Business Access](https://help.pinterest.com/en/business/article/share-and-manage-access-to-your-ad-accounts).
507
460
  # @param [Hash] opts the optional parameters
508
- # @option opts [Integer] :click_window_days Number of days to use as the conversion attribution window for a pin click action. Applies to Pinterest Tag conversion metrics. Prior conversion tags use their defined attribution windows. If not specified, defaults to &#x60;30&#x60; days.
509
- # @option opts [Integer] :engagement_window_days Number of days to use as the conversion attribution window for an engagement action. Engagements include saves, closeups, link clicks, and carousel card swipes. Applies to Pinterest Tag conversion metrics. Prior conversion tags use their defined attribution windows. If not specified, defaults to &#x60;30&#x60; days.
510
- # @option opts [Integer] :view_window_days Number of days to use as the conversion attribution window for a view action. Applies to Pinterest Tag conversion metrics. Prior conversion tags use their defined attribution windows. If not specified, defaults to &#x60;1&#x60; day.
511
- # @option opts [String] :conversion_report_time The date by which the conversion metrics returned from this endpoint will be reported. There are two dates associated with a conversion event: the date that the user interacted with the ad, and the date that the user completed a conversion event.
512
- # @return [Array<(Array<Hash<String, Object>>, Integer, Hash)>] Array<Hash<String, Object>> data, response status code and response headers
513
- def ads_analytics_with_http_info(ad_account_id, start_date, end_date, ad_ids, columns, granularity, opts = {})
461
+ # @option opts [Boolean] :include_shared_accounts Include shared ad accounts (default to true)
462
+ # @option opts [String] :bookmark Cursor used to fetch the next page of items
463
+ # @option opts [Integer] :page_size Maximum number of items to include in a single page. See documentation on [Pagination](/docs/reference/pagination/) for more information. (default to 25)
464
+ # @return [Array<(AdAccountsList200Response, Integer, Hash)>] AdAccountsList200Response data, response status code and response headers
465
+ def ad_accounts_list_with_http_info(opts = {})
514
466
  if @api_client.config.debugging
515
- @api_client.config.logger.debug 'Calling API: AdAccountsApi.ads_analytics ...'
516
- end
517
- # verify the required parameter 'ad_account_id' is set
518
- if @api_client.config.client_side_validation && ad_account_id.nil?
519
- fail ArgumentError, "Missing the required parameter 'ad_account_id' when calling AdAccountsApi.ads_analytics"
520
- end
521
- pattern = Regexp.new(/^\d+$/)
522
- if @api_client.config.client_side_validation && ad_account_id !~ pattern
523
- fail ArgumentError, "invalid value for 'ad_account_id' when calling AdAccountsApi.ads_analytics, must conform to the pattern #{pattern}."
524
- end
525
-
526
- # verify the required parameter 'start_date' is set
527
- if @api_client.config.client_side_validation && start_date.nil?
528
- fail ArgumentError, "Missing the required parameter 'start_date' when calling AdAccountsApi.ads_analytics"
529
- end
530
- # verify the required parameter 'end_date' is set
531
- if @api_client.config.client_side_validation && end_date.nil?
532
- fail ArgumentError, "Missing the required parameter 'end_date' when calling AdAccountsApi.ads_analytics"
533
- end
534
- # verify the required parameter 'ad_ids' is set
535
- if @api_client.config.client_side_validation && ad_ids.nil?
536
- fail ArgumentError, "Missing the required parameter 'ad_ids' when calling AdAccountsApi.ads_analytics"
467
+ @api_client.config.logger.debug 'Calling API: AdAccountsApi.ad_accounts_list ...'
537
468
  end
538
- if @api_client.config.client_side_validation && ad_ids.length > 100
539
- fail ArgumentError, 'invalid value for "ad_ids" when calling AdAccountsApi.ads_analytics, number of items must be less than or equal to 100.'
469
+ if @api_client.config.client_side_validation && !opts[:'page_size'].nil? && opts[:'page_size'] > 250
470
+ fail ArgumentError, 'invalid value for "opts[:"page_size"]" when calling AdAccountsApi.ad_accounts_list, must be smaller than or equal to 250.'
540
471
  end
541
472
 
542
- if @api_client.config.client_side_validation && ad_ids.length < 1
543
- fail ArgumentError, 'invalid value for "ad_ids" when calling AdAccountsApi.ads_analytics, number of items must be greater than or equal to 1.'
473
+ if @api_client.config.client_side_validation && !opts[:'page_size'].nil? && opts[:'page_size'] < 1
474
+ fail ArgumentError, 'invalid value for "opts[:"page_size"]" when calling AdAccountsApi.ad_accounts_list, must be greater than or equal to 1.'
544
475
  end
545
476
 
546
- # verify the required parameter 'columns' is set
547
- if @api_client.config.client_side_validation && columns.nil?
548
- fail ArgumentError, "Missing the required parameter 'columns' when calling AdAccountsApi.ads_analytics"
549
- end
550
- # verify the required parameter 'granularity' is set
551
- if @api_client.config.client_side_validation && granularity.nil?
552
- fail ArgumentError, "Missing the required parameter 'granularity' when calling AdAccountsApi.ads_analytics"
553
- end
554
- allowable_values = [1, 7, 30, 60]
555
- if @api_client.config.client_side_validation && opts[:'click_window_days'] && !allowable_values.include?(opts[:'click_window_days'])
556
- fail ArgumentError, "invalid value for \"click_window_days\", must be one of #{allowable_values}"
557
- end
558
- allowable_values = [1, 7, 30, 60]
559
- if @api_client.config.client_side_validation && opts[:'engagement_window_days'] && !allowable_values.include?(opts[:'engagement_window_days'])
560
- fail ArgumentError, "invalid value for \"engagement_window_days\", must be one of #{allowable_values}"
561
- end
562
- allowable_values = [1, 7, 30, 60]
563
- if @api_client.config.client_side_validation && opts[:'view_window_days'] && !allowable_values.include?(opts[:'view_window_days'])
564
- fail ArgumentError, "invalid value for \"view_window_days\", must be one of #{allowable_values}"
565
- end
566
- allowable_values = ["TIME_OF_AD_ACTION", "TIME_OF_CONVERSION"]
567
- if @api_client.config.client_side_validation && opts[:'conversion_report_time'] && !allowable_values.include?(opts[:'conversion_report_time'])
568
- fail ArgumentError, "invalid value for \"conversion_report_time\", must be one of #{allowable_values}"
569
- end
570
477
  # resource path
571
- local_var_path = '/ad_accounts/{ad_account_id}/ads/analytics'.sub('{' + 'ad_account_id' + '}', CGI.escape(ad_account_id.to_s))
478
+ local_var_path = '/ad_accounts'
572
479
 
573
480
  # query parameters
574
481
  query_params = opts[:query_params] || {}
575
- query_params[:'start_date'] = start_date
576
- query_params[:'end_date'] = end_date
577
- query_params[:'ad_ids'] = @api_client.build_collection_param(ad_ids, :multi)
578
- query_params[:'columns'] = @api_client.build_collection_param(columns, :csv)
579
- query_params[:'granularity'] = granularity
580
- query_params[:'click_window_days'] = opts[:'click_window_days'] if !opts[:'click_window_days'].nil?
581
- query_params[:'engagement_window_days'] = opts[:'engagement_window_days'] if !opts[:'engagement_window_days'].nil?
582
- query_params[:'view_window_days'] = opts[:'view_window_days'] if !opts[:'view_window_days'].nil?
583
- query_params[:'conversion_report_time'] = opts[:'conversion_report_time'] if !opts[:'conversion_report_time'].nil?
482
+ query_params[:'include_shared_accounts'] = opts[:'include_shared_accounts'] if !opts[:'include_shared_accounts'].nil?
483
+ query_params[:'bookmark'] = opts[:'bookmark'] if !opts[:'bookmark'].nil?
484
+ query_params[:'page_size'] = opts[:'page_size'] if !opts[:'page_size'].nil?
584
485
 
585
486
  # header parameters
586
487
  header_params = opts[:header_params] || {}
587
488
  # HTTP header 'Accept' (if needed)
588
- header_params['Accept'] = @api_client.select_header_accept(['application/json'])
489
+ header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
589
490
 
590
491
  # form parameters
591
492
  form_params = opts[:form_params] || {}
@@ -594,13 +495,13 @@ module PinterestSdkClient
594
495
  post_body = opts[:debug_body]
595
496
 
596
497
  # return_type
597
- return_type = opts[:debug_return_type] || 'Array<Hash<String, Object>>'
498
+ return_type = opts[:debug_return_type] || 'AdAccountsList200Response'
598
499
 
599
500
  # auth_names
600
- auth_names = opts[:debug_auth_names] || ['pinterest_oauth2']
501
+ auth_names = opts[:debug_auth_names] || ['pinterest_oauth2', 'client_credentials']
601
502
 
602
503
  new_options = opts.merge(
603
- :operation => :"AdAccountsApi.ads_analytics",
504
+ :operation => :"AdAccountsApi.ad_accounts_list",
604
505
  :header_params => header_params,
605
506
  :query_params => query_params,
606
507
  :form_params => form_params,
@@ -611,125 +512,162 @@ module PinterestSdkClient
611
512
 
612
513
  data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
613
514
  if @api_client.config.debugging
614
- @api_client.config.logger.debug "API called: AdAccountsApi#ads_analytics\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
515
+ @api_client.config.logger.debug "API called: AdAccountsApi#ad_accounts_list\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
615
516
  end
616
517
  return data, status_code, headers
617
518
  end
618
519
 
619
- # List ads
620
- # Get a list of the ads in the specified <code>ad_account_id</code>, filtered by the specified options. - The token's user_account must either be the Owner of the specified ad account, or have one of the necessary roles granted to them via <a href=\"https://help.pinterest.com/en/business/article/share-and-manage-access-to-your-ad-accounts\">Business Access</a>: Admin, Analyst, Campaign Manager.
520
+ # Create a request for a brand, category, SKU report
521
+ # [Restricted](/docs/getting-started/using-beta-and-restricted-features/) This creates an asynchronous brand, category, SKU report based on the given request. This request returns a token that you can use to download the report when it is ready.
621
522
  # @param ad_account_id [String] Unique identifier of an ad account.
523
+ # @param conversion_product_report_create [ConversionProductReportCreate]
622
524
  # @param [Hash] opts the optional parameters
623
- # @option opts [Array<String>] :campaign_ids List of Campaign Ids to use to filter the results.
624
- # @option opts [Array<String>] :ad_group_ids List of Ad group Ids to use to filter the results.
625
- # @option opts [Array<String>] :ad_ids List of Ad Ids to use to filter the results.
626
- # @option opts [Array<String>] :entity_statuses Entity status
627
- # @option opts [Integer] :page_size Maximum number of items to include in a single page of the response. See documentation on &lt;a href&#x3D;&#39;/docs/api/v5/#tag/Pagination&#39;&gt;Pagination&lt;/a&gt; for more information. (default to 25)
628
- # @option opts [String] :order The order in which to sort the items returned: “ASCENDING” or “DESCENDING” by ID. Note that higher-value IDs are associated with more-recently added items.
629
- # @option opts [String] :bookmark Cursor used to fetch the next page of items
630
- # @return [Paginated]
631
- def ads_list(ad_account_id, opts = {})
632
- data, _status_code, _headers = ads_list_with_http_info(ad_account_id, opts)
525
+ # @return [ConversionProductReport]
526
+ def analytics_create_conversion_product_report(ad_account_id, conversion_product_report_create, opts = {})
527
+ data, _status_code, _headers = analytics_create_conversion_product_report_with_http_info(ad_account_id, conversion_product_report_create, opts)
633
528
  data
634
529
  end
635
530
 
636
- # List ads
637
- # Get a list of the ads in the specified &lt;code&gt;ad_account_id&lt;/code&gt;, filtered by the specified options. - The token&#39;s user_account must either be the Owner of the specified ad account, or have one of the necessary roles granted to them via &lt;a href&#x3D;\&quot;https://help.pinterest.com/en/business/article/share-and-manage-access-to-your-ad-accounts\&quot;&gt;Business Access&lt;/a&gt;: Admin, Analyst, Campaign Manager.
531
+ # Create a request for a brand, category, SKU report
532
+ # [Restricted](/docs/getting-started/using-beta-and-restricted-features/) This creates an asynchronous brand, category, SKU report based on the given request. This request returns a token that you can use to download the report when it is ready.
638
533
  # @param ad_account_id [String] Unique identifier of an ad account.
534
+ # @param conversion_product_report_create [ConversionProductReportCreate]
639
535
  # @param [Hash] opts the optional parameters
640
- # @option opts [Array<String>] :campaign_ids List of Campaign Ids to use to filter the results.
641
- # @option opts [Array<String>] :ad_group_ids List of Ad group Ids to use to filter the results.
642
- # @option opts [Array<String>] :ad_ids List of Ad Ids to use to filter the results.
643
- # @option opts [Array<String>] :entity_statuses Entity status
644
- # @option opts [Integer] :page_size Maximum number of items to include in a single page of the response. See documentation on &lt;a href&#x3D;&#39;/docs/api/v5/#tag/Pagination&#39;&gt;Pagination&lt;/a&gt; for more information.
645
- # @option opts [String] :order The order in which to sort the items returned: “ASCENDING” or “DESCENDING” by ID. Note that higher-value IDs are associated with more-recently added items.
646
- # @option opts [String] :bookmark Cursor used to fetch the next page of items
647
- # @return [Array<(Paginated, Integer, Hash)>] Paginated data, response status code and response headers
648
- def ads_list_with_http_info(ad_account_id, opts = {})
536
+ # @return [Array<(ConversionProductReport, Integer, Hash)>] ConversionProductReport data, response status code and response headers
537
+ def analytics_create_conversion_product_report_with_http_info(ad_account_id, conversion_product_report_create, opts = {})
649
538
  if @api_client.config.debugging
650
- @api_client.config.logger.debug 'Calling API: AdAccountsApi.ads_list ...'
539
+ @api_client.config.logger.debug 'Calling API: AdAccountsApi.analytics_create_conversion_product_report ...'
651
540
  end
652
541
  # verify the required parameter 'ad_account_id' is set
653
542
  if @api_client.config.client_side_validation && ad_account_id.nil?
654
- fail ArgumentError, "Missing the required parameter 'ad_account_id' when calling AdAccountsApi.ads_list"
543
+ fail ArgumentError, "Missing the required parameter 'ad_account_id' when calling AdAccountsApi.analytics_create_conversion_product_report"
655
544
  end
545
+ if @api_client.config.client_side_validation && ad_account_id.to_s.length > 18
546
+ fail ArgumentError, 'invalid value for "ad_account_id" when calling AdAccountsApi.analytics_create_conversion_product_report, the character length must be smaller than or equal to 18.'
547
+ end
548
+
656
549
  pattern = Regexp.new(/^\d+$/)
657
550
  if @api_client.config.client_side_validation && ad_account_id !~ pattern
658
- fail ArgumentError, "invalid value for 'ad_account_id' when calling AdAccountsApi.ads_list, must conform to the pattern #{pattern}."
551
+ fail ArgumentError, "invalid value for 'ad_account_id' when calling AdAccountsApi.analytics_create_conversion_product_report, must conform to the pattern #{pattern}."
659
552
  end
660
553
 
661
- if @api_client.config.client_side_validation && !opts[:'campaign_ids'].nil? && opts[:'campaign_ids'].length > 100
662
- fail ArgumentError, 'invalid value for "opts[:"campaign_ids"]" when calling AdAccountsApi.ads_list, number of items must be less than or equal to 100.'
554
+ # verify the required parameter 'conversion_product_report_create' is set
555
+ if @api_client.config.client_side_validation && conversion_product_report_create.nil?
556
+ fail ArgumentError, "Missing the required parameter 'conversion_product_report_create' when calling AdAccountsApi.analytics_create_conversion_product_report"
663
557
  end
558
+ # resource path
559
+ local_var_path = '/ad_accounts/{ad_account_id}/reports/brand_category_sku'.sub('{ad_account_id}', CGI.escape(ad_account_id.to_s))
664
560
 
665
- if @api_client.config.client_side_validation && !opts[:'campaign_ids'].nil? && opts[:'campaign_ids'].length < 1
666
- fail ArgumentError, 'invalid value for "opts[:"campaign_ids"]" when calling AdAccountsApi.ads_list, number of items must be greater than or equal to 1.'
667
- end
561
+ # query parameters
562
+ query_params = opts[:query_params] || {}
668
563
 
669
- if @api_client.config.client_side_validation && !opts[:'ad_group_ids'].nil? && opts[:'ad_group_ids'].length > 100
670
- fail ArgumentError, 'invalid value for "opts[:"ad_group_ids"]" when calling AdAccountsApi.ads_list, number of items must be less than or equal to 100.'
564
+ # header parameters
565
+ header_params = opts[:header_params] || {}
566
+ # HTTP header 'Accept' (if needed)
567
+ header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
568
+ # HTTP header 'Content-Type'
569
+ content_type = @api_client.select_header_content_type(['application/json'])
570
+ if !content_type.nil?
571
+ header_params['Content-Type'] = content_type
671
572
  end
672
573
 
673
- if @api_client.config.client_side_validation && !opts[:'ad_group_ids'].nil? && opts[:'ad_group_ids'].length < 1
674
- fail ArgumentError, 'invalid value for "opts[:"ad_group_ids"]" when calling AdAccountsApi.ads_list, number of items must be greater than or equal to 1.'
675
- end
574
+ # form parameters
575
+ form_params = opts[:form_params] || {}
676
576
 
677
- if @api_client.config.client_side_validation && !opts[:'ad_ids'].nil? && opts[:'ad_ids'].length > 100
678
- fail ArgumentError, 'invalid value for "opts[:"ad_ids"]" when calling AdAccountsApi.ads_list, number of items must be less than or equal to 100.'
679
- end
577
+ # http body (model)
578
+ post_body = opts[:debug_body] || @api_client.object_to_http_body(conversion_product_report_create)
680
579
 
681
- if @api_client.config.client_side_validation && !opts[:'ad_ids'].nil? && opts[:'ad_ids'].length < 1
682
- fail ArgumentError, 'invalid value for "opts[:"ad_ids"]" when calling AdAccountsApi.ads_list, number of items must be greater than or equal to 1.'
580
+ # return_type
581
+ return_type = opts[:debug_return_type] || 'ConversionProductReport'
582
+
583
+ # auth_names
584
+ auth_names = opts[:debug_auth_names] || ['pinterest_oauth2']
585
+
586
+ new_options = opts.merge(
587
+ :operation => :"AdAccountsApi.analytics_create_conversion_product_report",
588
+ :header_params => header_params,
589
+ :query_params => query_params,
590
+ :form_params => form_params,
591
+ :body => post_body,
592
+ :auth_names => auth_names,
593
+ :return_type => return_type
594
+ )
595
+
596
+ data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
597
+ if @api_client.config.debugging
598
+ @api_client.config.logger.debug "API called: AdAccountsApi#analytics_create_conversion_product_report\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
683
599
  end
600
+ return data, status_code, headers
601
+ end
602
+
603
+ # Create a request for a Marketing Mix Modeling (MMM) report
604
+ # This creates an asynchronous mmm report based on the given request. It returns a token that you can use to download the report when it is ready. NOTE: An additional limit of 5 queries per minute per advertiser applies to this endpoint while it's in beta release. For the ADVERTISER_PAID_SPEND_IN_DOLLAR, ADVERTISER_PAID_ECPC_IN_DOLLAR, and ADVERTISER_PAID_ECPM_IN_DOLLAR columns: if you receive bonus media, this value still includes that spend, and it will need to be removed manually with support from your Pinterest account team for a fully netted value. Over time, we'll also subtract bonus media and other incentives as data becomes available. Production and other non-media fees are excluded.
605
+ # @param ad_account_id [String]
606
+ # @param mmm_report_create [MMMReportCreate]
607
+ # @param [Hash] opts the optional parameters
608
+ # @return [MMMReport]
609
+ def analytics_create_mmm_report(ad_account_id, mmm_report_create, opts = {})
610
+ data, _status_code, _headers = analytics_create_mmm_report_with_http_info(ad_account_id, mmm_report_create, opts)
611
+ data
612
+ end
684
613
 
685
- allowable_values = ["ACTIVE", "PAUSED", "ARCHIVED"]
686
- if @api_client.config.client_side_validation && opts[:'entity_statuses'] && !opts[:'entity_statuses'].all? { |item| allowable_values.include?(item) }
687
- fail ArgumentError, "invalid value for \"entity_statuses\", must include one of #{allowable_values}"
614
+ # Create a request for a Marketing Mix Modeling (MMM) report
615
+ # This creates an asynchronous mmm report based on the given request. It returns a token that you can use to download the report when it is ready. NOTE: An additional limit of 5 queries per minute per advertiser applies to this endpoint while it&#39;s in beta release. For the ADVERTISER_PAID_SPEND_IN_DOLLAR, ADVERTISER_PAID_ECPC_IN_DOLLAR, and ADVERTISER_PAID_ECPM_IN_DOLLAR columns: if you receive bonus media, this value still includes that spend, and it will need to be removed manually with support from your Pinterest account team for a fully netted value. Over time, we&#39;ll also subtract bonus media and other incentives as data becomes available. Production and other non-media fees are excluded.
616
+ # @param ad_account_id [String]
617
+ # @param mmm_report_create [MMMReportCreate]
618
+ # @param [Hash] opts the optional parameters
619
+ # @return [Array<(MMMReport, Integer, Hash)>] MMMReport data, response status code and response headers
620
+ def analytics_create_mmm_report_with_http_info(ad_account_id, mmm_report_create, opts = {})
621
+ if @api_client.config.debugging
622
+ @api_client.config.logger.debug 'Calling API: AdAccountsApi.analytics_create_mmm_report ...'
623
+ end
624
+ # verify the required parameter 'ad_account_id' is set
625
+ if @api_client.config.client_side_validation && ad_account_id.nil?
626
+ fail ArgumentError, "Missing the required parameter 'ad_account_id' when calling AdAccountsApi.analytics_create_mmm_report"
688
627
  end
689
- if @api_client.config.client_side_validation && !opts[:'page_size'].nil? && opts[:'page_size'] > 100
690
- fail ArgumentError, 'invalid value for "opts[:"page_size"]" when calling AdAccountsApi.ads_list, must be smaller than or equal to 100.'
628
+ if @api_client.config.client_side_validation && ad_account_id.to_s.length > 18
629
+ fail ArgumentError, 'invalid value for "ad_account_id" when calling AdAccountsApi.analytics_create_mmm_report, the character length must be smaller than or equal to 18.'
691
630
  end
692
631
 
693
- if @api_client.config.client_side_validation && !opts[:'page_size'].nil? && opts[:'page_size'] < 1
694
- fail ArgumentError, 'invalid value for "opts[:"page_size"]" when calling AdAccountsApi.ads_list, must be greater than or equal to 1.'
632
+ pattern = Regexp.new(/^\d+$/)
633
+ if @api_client.config.client_side_validation && ad_account_id !~ pattern
634
+ fail ArgumentError, "invalid value for 'ad_account_id' when calling AdAccountsApi.analytics_create_mmm_report, must conform to the pattern #{pattern}."
695
635
  end
696
636
 
697
- allowable_values = ["ASCENDING", "DESCENDING"]
698
- if @api_client.config.client_side_validation && opts[:'order'] && !allowable_values.include?(opts[:'order'])
699
- fail ArgumentError, "invalid value for \"order\", must be one of #{allowable_values}"
637
+ # verify the required parameter 'mmm_report_create' is set
638
+ if @api_client.config.client_side_validation && mmm_report_create.nil?
639
+ fail ArgumentError, "Missing the required parameter 'mmm_report_create' when calling AdAccountsApi.analytics_create_mmm_report"
700
640
  end
701
641
  # resource path
702
- local_var_path = '/ad_accounts/{ad_account_id}/ads'.sub('{' + 'ad_account_id' + '}', CGI.escape(ad_account_id.to_s))
642
+ local_var_path = '/ad_accounts/{ad_account_id}/mmm_reports'.sub('{ad_account_id}', CGI.escape(ad_account_id.to_s))
703
643
 
704
644
  # query parameters
705
645
  query_params = opts[:query_params] || {}
706
- query_params[:'campaign_ids'] = @api_client.build_collection_param(opts[:'campaign_ids'], :multi) if !opts[:'campaign_ids'].nil?
707
- query_params[:'ad_group_ids'] = @api_client.build_collection_param(opts[:'ad_group_ids'], :multi) if !opts[:'ad_group_ids'].nil?
708
- query_params[:'ad_ids'] = @api_client.build_collection_param(opts[:'ad_ids'], :multi) if !opts[:'ad_ids'].nil?
709
- query_params[:'entity_statuses'] = @api_client.build_collection_param(opts[:'entity_statuses'], :multi) if !opts[:'entity_statuses'].nil?
710
- query_params[:'page_size'] = opts[:'page_size'] if !opts[:'page_size'].nil?
711
- query_params[:'order'] = opts[:'order'] if !opts[:'order'].nil?
712
- query_params[:'bookmark'] = opts[:'bookmark'] if !opts[:'bookmark'].nil?
713
646
 
714
647
  # header parameters
715
648
  header_params = opts[:header_params] || {}
716
649
  # HTTP header 'Accept' (if needed)
717
- header_params['Accept'] = @api_client.select_header_accept(['application/json'])
650
+ header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
651
+ # HTTP header 'Content-Type'
652
+ content_type = @api_client.select_header_content_type(['application/json'])
653
+ if !content_type.nil?
654
+ header_params['Content-Type'] = content_type
655
+ end
718
656
 
719
657
  # form parameters
720
658
  form_params = opts[:form_params] || {}
721
659
 
722
660
  # http body (model)
723
- post_body = opts[:debug_body]
661
+ post_body = opts[:debug_body] || @api_client.object_to_http_body(mmm_report_create)
724
662
 
725
663
  # return_type
726
- return_type = opts[:debug_return_type] || 'Paginated'
664
+ return_type = opts[:debug_return_type] || 'MMMReport'
727
665
 
728
666
  # auth_names
729
667
  auth_names = opts[:debug_auth_names] || ['pinterest_oauth2']
730
668
 
731
669
  new_options = opts.merge(
732
- :operation => :"AdAccountsApi.ads_list",
670
+ :operation => :"AdAccountsApi.analytics_create_mmm_report",
733
671
  :header_params => header_params,
734
672
  :query_params => query_params,
735
673
  :form_params => form_params,
@@ -738,15 +676,15 @@ module PinterestSdkClient
738
676
  :return_type => return_type
739
677
  )
740
678
 
741
- data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
679
+ data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
742
680
  if @api_client.config.debugging
743
- @api_client.config.logger.debug "API called: AdAccountsApi#ads_list\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
681
+ @api_client.config.logger.debug "API called: AdAccountsApi#analytics_create_mmm_report\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
744
682
  end
745
683
  return data, status_code, headers
746
684
  end
747
685
 
748
686
  # Create async request for an account analytics report
749
- # This returns a token that you can use to download the report when it is ready. Note that this endpoint requires the parameters to be passed as JSON-formatted in the request body. This endpoint does not support URL query parameters. - The token's user_account must either be the Owner of the specified ad account, or have one of the necessary roles granted to them via <a href=\"https://help.pinterest.com/en/business/article/share-and-manage-access-to-your-ad-accounts\">Business Access</a>: Admin, Analyst, Campaign Manager.
687
+ # This returns a token that you can use to download the report when it is ready. Note that this endpoint requires the parameters to be passed as JSON-formatted in the request body. This endpoint does not support URL query parameters. - The token's user_account must either be the Owner of the specified ad account, or have one of the necessary roles granted to them via [Business Access](https://help.pinterest.com/en/business/article/share-and-manage-access-to-your-ad-accounts): Admin, Analyst, Campaign Manager. - If granularity is not HOUR, you can pull data from up to 914 days before the current date in UTC time, with a maximum time range of 186 days. - If granularity is HOUR, you can pull data from up to 8 days before the current date in UTC time, with a maximum time range of 3 days. - If level is PRODUCT_ITEM, you can pull data from up to 92 days before the current date in UTC time, with a maximum time range of 31 days. - If level is PRODUCT_ITEM, ad_ids and ad_statuses parameters are not allowed. Any columns related to pin promotion and ad is not allowed either.
750
688
  # @param ad_account_id [String] Unique identifier of an ad account.
751
689
  # @param ads_analytics_create_async_request [AdsAnalyticsCreateAsyncRequest]
752
690
  # @param [Hash] opts the optional parameters
@@ -757,7 +695,7 @@ module PinterestSdkClient
757
695
  end
758
696
 
759
697
  # Create async request for an account analytics report
760
- # This returns a token that you can use to download the report when it is ready. Note that this endpoint requires the parameters to be passed as JSON-formatted in the request body. This endpoint does not support URL query parameters. - The token&#39;s user_account must either be the Owner of the specified ad account, or have one of the necessary roles granted to them via &lt;a href&#x3D;\&quot;https://help.pinterest.com/en/business/article/share-and-manage-access-to-your-ad-accounts\&quot;&gt;Business Access&lt;/a&gt;: Admin, Analyst, Campaign Manager.
698
+ # This returns a token that you can use to download the report when it is ready. Note that this endpoint requires the parameters to be passed as JSON-formatted in the request body. This endpoint does not support URL query parameters. - The token&#39;s user_account must either be the Owner of the specified ad account, or have one of the necessary roles granted to them via [Business Access](https://help.pinterest.com/en/business/article/share-and-manage-access-to-your-ad-accounts): Admin, Analyst, Campaign Manager. - If granularity is not HOUR, you can pull data from up to 914 days before the current date in UTC time, with a maximum time range of 186 days. - If granularity is HOUR, you can pull data from up to 8 days before the current date in UTC time, with a maximum time range of 3 days. - If level is PRODUCT_ITEM, you can pull data from up to 92 days before the current date in UTC time, with a maximum time range of 31 days. - If level is PRODUCT_ITEM, ad_ids and ad_statuses parameters are not allowed. Any columns related to pin promotion and ad is not allowed either.
761
699
  # @param ad_account_id [String] Unique identifier of an ad account.
762
700
  # @param ads_analytics_create_async_request [AdsAnalyticsCreateAsyncRequest]
763
701
  # @param [Hash] opts the optional parameters
@@ -770,6 +708,10 @@ module PinterestSdkClient
770
708
  if @api_client.config.client_side_validation && ad_account_id.nil?
771
709
  fail ArgumentError, "Missing the required parameter 'ad_account_id' when calling AdAccountsApi.analytics_create_report"
772
710
  end
711
+ if @api_client.config.client_side_validation && ad_account_id.to_s.length > 18
712
+ fail ArgumentError, 'invalid value for "ad_account_id" when calling AdAccountsApi.analytics_create_report, the character length must be smaller than or equal to 18.'
713
+ end
714
+
773
715
  pattern = Regexp.new(/^\d+$/)
774
716
  if @api_client.config.client_side_validation && ad_account_id !~ pattern
775
717
  fail ArgumentError, "invalid value for 'ad_account_id' when calling AdAccountsApi.analytics_create_report, must conform to the pattern #{pattern}."
@@ -780,7 +722,7 @@ module PinterestSdkClient
780
722
  fail ArgumentError, "Missing the required parameter 'ads_analytics_create_async_request' when calling AdAccountsApi.analytics_create_report"
781
723
  end
782
724
  # resource path
783
- local_var_path = '/ad_accounts/{ad_account_id}/reports'.sub('{' + 'ad_account_id' + '}', CGI.escape(ad_account_id.to_s))
725
+ local_var_path = '/ad_accounts/{ad_account_id}/reports'.sub('{ad_account_id}', CGI.escape(ad_account_id.to_s))
784
726
 
785
727
  # query parameters
786
728
  query_params = opts[:query_params] || {}
@@ -788,7 +730,7 @@ module PinterestSdkClient
788
730
  # header parameters
789
731
  header_params = opts[:header_params] || {}
790
732
  # HTTP header 'Accept' (if needed)
791
- header_params['Accept'] = @api_client.select_header_accept(['application/json'])
733
+ header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
792
734
  # HTTP header 'Content-Type'
793
735
  content_type = @api_client.select_header_content_type(['application/json'])
794
736
  if !content_type.nil?
@@ -824,51 +766,67 @@ module PinterestSdkClient
824
766
  return data, status_code, headers
825
767
  end
826
768
 
827
- # Get the account analytics report created by the async call
828
- # This returns a URL to an analytics report given a token returned from the post request report creation call. You can use the URL to download the report and it's valid for an hour. - The token's user_account must either be the Owner of the specified ad account, or have one of the necessary roles granted to them via <a href=\"https://help.pinterest.com/en/business/article/share-and-manage-access-to-your-ad-accounts\">Business Access</a>: Admin, Analyst, Campaign Manager.
829
- # @param ad_account_id [String] Unique identifier of an ad account.
830
- # @param token [String] Token returned from the post request creation call
769
+ # Create async request for an analytics report using a template
770
+ # This takes a template ID and an optional custom timeframe and constructs an asynchronous report based on the template. It returns a token that you can use to download the report when it is ready.
771
+ # @param ad_account_id [String]
772
+ # @param template_id [String] Unique identifier of a template.
831
773
  # @param [Hash] opts the optional parameters
832
- # @return [AdsAnalyticsGetAsyncResponse]
833
- def analytics_get_report(ad_account_id, token, opts = {})
834
- data, _status_code, _headers = analytics_get_report_with_http_info(ad_account_id, token, opts)
774
+ # @option opts [Date] :start_date Metric report start date (UTC). Format: YYYY-MM-DD. Cannot be more than 2.5 years back from today.
775
+ # @option opts [Date] :end_date Metric report end date (UTC). Format: YYYY-MM-DD. Cannot be more than 2.5 years past start date.
776
+ # @option opts [Granularity] :granularity TOTAL - metrics are aggregated over the specified date range. DAY - metrics are broken down daily. HOUR - metrics are broken down hourly. WEEK - metrics are broken down weekly. MONTH - metrics are broken down monthly
777
+ # @return [TemplateBasedReport]
778
+ def analytics_create_template_report(ad_account_id, template_id, opts = {})
779
+ data, _status_code, _headers = analytics_create_template_report_with_http_info(ad_account_id, template_id, opts)
835
780
  data
836
781
  end
837
782
 
838
- # Get the account analytics report created by the async call
839
- # This returns a URL to an analytics report given a token returned from the post request report creation call. You can use the URL to download the report and it&#39;s valid for an hour. - The token&#39;s user_account must either be the Owner of the specified ad account, or have one of the necessary roles granted to them via &lt;a href&#x3D;\&quot;https://help.pinterest.com/en/business/article/share-and-manage-access-to-your-ad-accounts\&quot;&gt;Business Access&lt;/a&gt;: Admin, Analyst, Campaign Manager.
840
- # @param ad_account_id [String] Unique identifier of an ad account.
841
- # @param token [String] Token returned from the post request creation call
783
+ # Create async request for an analytics report using a template
784
+ # This takes a template ID and an optional custom timeframe and constructs an asynchronous report based on the template. It returns a token that you can use to download the report when it is ready.
785
+ # @param ad_account_id [String]
786
+ # @param template_id [String] Unique identifier of a template.
842
787
  # @param [Hash] opts the optional parameters
843
- # @return [Array<(AdsAnalyticsGetAsyncResponse, Integer, Hash)>] AdsAnalyticsGetAsyncResponse data, response status code and response headers
844
- def analytics_get_report_with_http_info(ad_account_id, token, opts = {})
788
+ # @option opts [Date] :start_date Metric report start date (UTC). Format: YYYY-MM-DD. Cannot be more than 2.5 years back from today.
789
+ # @option opts [Date] :end_date Metric report end date (UTC). Format: YYYY-MM-DD. Cannot be more than 2.5 years past start date.
790
+ # @option opts [Granularity] :granularity TOTAL - metrics are aggregated over the specified date range. DAY - metrics are broken down daily. HOUR - metrics are broken down hourly. WEEK - metrics are broken down weekly. MONTH - metrics are broken down monthly
791
+ # @return [Array<(TemplateBasedReport, Integer, Hash)>] TemplateBasedReport data, response status code and response headers
792
+ def analytics_create_template_report_with_http_info(ad_account_id, template_id, opts = {})
845
793
  if @api_client.config.debugging
846
- @api_client.config.logger.debug 'Calling API: AdAccountsApi.analytics_get_report ...'
794
+ @api_client.config.logger.debug 'Calling API: AdAccountsApi.analytics_create_template_report ...'
847
795
  end
848
796
  # verify the required parameter 'ad_account_id' is set
849
797
  if @api_client.config.client_side_validation && ad_account_id.nil?
850
- fail ArgumentError, "Missing the required parameter 'ad_account_id' when calling AdAccountsApi.analytics_get_report"
798
+ fail ArgumentError, "Missing the required parameter 'ad_account_id' when calling AdAccountsApi.analytics_create_template_report"
799
+ end
800
+ if @api_client.config.client_side_validation && ad_account_id.to_s.length > 18
801
+ fail ArgumentError, 'invalid value for "ad_account_id" when calling AdAccountsApi.analytics_create_template_report, the character length must be smaller than or equal to 18.'
851
802
  end
803
+
852
804
  pattern = Regexp.new(/^\d+$/)
853
805
  if @api_client.config.client_side_validation && ad_account_id !~ pattern
854
- fail ArgumentError, "invalid value for 'ad_account_id' when calling AdAccountsApi.analytics_get_report, must conform to the pattern #{pattern}."
806
+ fail ArgumentError, "invalid value for 'ad_account_id' when calling AdAccountsApi.analytics_create_template_report, must conform to the pattern #{pattern}."
855
807
  end
856
808
 
857
- # verify the required parameter 'token' is set
858
- if @api_client.config.client_side_validation && token.nil?
859
- fail ArgumentError, "Missing the required parameter 'token' when calling AdAccountsApi.analytics_get_report"
809
+ # verify the required parameter 'template_id' is set
810
+ if @api_client.config.client_side_validation && template_id.nil?
811
+ fail ArgumentError, "Missing the required parameter 'template_id' when calling AdAccountsApi.analytics_create_template_report"
812
+ end
813
+ if @api_client.config.client_side_validation && template_id.to_s.length > 18
814
+ fail ArgumentError, 'invalid value for "template_id" when calling AdAccountsApi.analytics_create_template_report, the character length must be smaller than or equal to 18.'
860
815
  end
816
+
861
817
  # resource path
862
- local_var_path = '/ad_accounts/{ad_account_id}/reports'.sub('{' + 'ad_account_id' + '}', CGI.escape(ad_account_id.to_s))
818
+ local_var_path = '/ad_accounts/{ad_account_id}/templates/{template_id}/reports'.sub('{ad_account_id}', CGI.escape(ad_account_id.to_s)).sub('{template_id}', CGI.escape(template_id.to_s))
863
819
 
864
820
  # query parameters
865
821
  query_params = opts[:query_params] || {}
866
- query_params[:'token'] = token
822
+ query_params[:'start_date'] = opts[:'start_date'] if !opts[:'start_date'].nil?
823
+ query_params[:'end_date'] = opts[:'end_date'] if !opts[:'end_date'].nil?
824
+ query_params[:'granularity'] = opts[:'granularity'] if !opts[:'granularity'].nil?
867
825
 
868
826
  # header parameters
869
827
  header_params = opts[:header_params] || {}
870
828
  # HTTP header 'Accept' (if needed)
871
- header_params['Accept'] = @api_client.select_header_accept(['application/json'])
829
+ header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
872
830
 
873
831
  # form parameters
874
832
  form_params = opts[:form_params] || {}
@@ -877,13 +835,13 @@ module PinterestSdkClient
877
835
  post_body = opts[:debug_body]
878
836
 
879
837
  # return_type
880
- return_type = opts[:debug_return_type] || 'AdsAnalyticsGetAsyncResponse'
838
+ return_type = opts[:debug_return_type] || 'TemplateBasedReport'
881
839
 
882
840
  # auth_names
883
841
  auth_names = opts[:debug_auth_names] || ['pinterest_oauth2']
884
842
 
885
843
  new_options = opts.merge(
886
- :operation => :"AdAccountsApi.analytics_get_report",
844
+ :operation => :"AdAccountsApi.analytics_create_template_report",
887
845
  :header_params => header_params,
888
846
  :query_params => query_params,
889
847
  :form_params => form_params,
@@ -892,122 +850,141 @@ module PinterestSdkClient
892
850
  :return_type => return_type
893
851
  )
894
852
 
895
- data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
853
+ data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
896
854
  if @api_client.config.debugging
897
- @api_client.config.logger.debug "API called: AdAccountsApi#analytics_get_report\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
855
+ @api_client.config.logger.debug "API called: AdAccountsApi#analytics_create_template_report\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
898
856
  end
899
857
  return data, status_code, headers
900
858
  end
901
859
 
902
- # Get campaign analytics
903
- # Get analytics for the specified campaigns in the specified <code>ad_account_id</code>, filtered by the specified options. - The token's user_account must either be the Owner of the specified ad account, or have one of the necessary roles granted to them via <a href=\"https://help.pinterest.com/en/business/article/share-and-manage-access-to-your-ad-accounts\">Business Access</a>: Admin, Analyst, Campaign Manager.
860
+ # Get advertiser brand, category, SKU report
861
+ # [Restricted](/docs/getting-started/using-beta-and-restricted-features/) Get a brand, category, SKU report for an ad account. This call returns the URL for the report that matches the token returned in the request to the Create brand, category, SKU report endpoint.
904
862
  # @param ad_account_id [String] Unique identifier of an ad account.
905
- # @param start_date [Date] Metric report start date (UTC). Format: YYYY-MM-DD
906
- # @param end_date [Date] Metric report end date (UTC). Format: YYYY-MM-DD
907
- # @param campaign_ids [Array<String>] List of Campaign Ids to use to filter the results.
908
- # @param columns [Array<String>] Columns to retrieve. **NOTE**: Any metrics defined as MICRO_DOLLARS returns a value based on the advertiser profile&#39;s currency field. For USD,($1/1,000,000, or $0.000001 - one one-ten-thousandth of a cent). it&#39;s microdollars. Otherwise, it&#39;s in microunits of the advertiser&#39;s currency.&lt;br/&gt;For example, if the advertiser&#39;s currency is GBP (British pound sterling), all MICRO_DOLLARS fields will be in GBP microunits (1/1,000,000 British pound).&lt;br/&gt;If a column has no value, it may not be returned
909
- # @param granularity [Granularity] Granularity
863
+ # @param token [String] Token returned from the post request creation call
910
864
  # @param [Hash] opts the optional parameters
911
- # @option opts [Integer] :click_window_days Number of days to use as the conversion attribution window for a pin click action. Applies to Pinterest Tag conversion metrics. Prior conversion tags use their defined attribution windows. If not specified, defaults to &#x60;30&#x60; days. (default to 30)
912
- # @option opts [Integer] :engagement_window_days Number of days to use as the conversion attribution window for an engagement action. Engagements include saves, closeups, link clicks, and carousel card swipes. Applies to Pinterest Tag conversion metrics. Prior conversion tags use their defined attribution windows. If not specified, defaults to &#x60;30&#x60; days. (default to 30)
913
- # @option opts [Integer] :view_window_days Number of days to use as the conversion attribution window for a view action. Applies to Pinterest Tag conversion metrics. Prior conversion tags use their defined attribution windows. If not specified, defaults to &#x60;1&#x60; day. (default to 1)
914
- # @option opts [String] :conversion_report_time The date by which the conversion metrics returned from this endpoint will be reported. There are two dates associated with a conversion event: the date that the user interacted with the ad, and the date that the user completed a conversion event. (default to 'TIME_OF_AD_ACTION')
915
- # @return [Array<Hash<String, Object>>]
916
- def campaigns_analytics(ad_account_id, start_date, end_date, campaign_ids, columns, granularity, opts = {})
917
- data, _status_code, _headers = campaigns_analytics_with_http_info(ad_account_id, start_date, end_date, campaign_ids, columns, granularity, opts)
865
+ # @return [ConversionProductReport]
866
+ def analytics_get_conversion_product_report(ad_account_id, token, opts = {})
867
+ data, _status_code, _headers = analytics_get_conversion_product_report_with_http_info(ad_account_id, token, opts)
918
868
  data
919
869
  end
920
870
 
921
- # Get campaign analytics
922
- # Get analytics for the specified campaigns in the specified &lt;code&gt;ad_account_id&lt;/code&gt;, filtered by the specified options. - The token&#39;s user_account must either be the Owner of the specified ad account, or have one of the necessary roles granted to them via &lt;a href&#x3D;\&quot;https://help.pinterest.com/en/business/article/share-and-manage-access-to-your-ad-accounts\&quot;&gt;Business Access&lt;/a&gt;: Admin, Analyst, Campaign Manager.
871
+ # Get advertiser brand, category, SKU report
872
+ # [Restricted](/docs/getting-started/using-beta-and-restricted-features/) Get a brand, category, SKU report for an ad account. This call returns the URL for the report that matches the token returned in the request to the Create brand, category, SKU report endpoint.
923
873
  # @param ad_account_id [String] Unique identifier of an ad account.
924
- # @param start_date [Date] Metric report start date (UTC). Format: YYYY-MM-DD
925
- # @param end_date [Date] Metric report end date (UTC). Format: YYYY-MM-DD
926
- # @param campaign_ids [Array<String>] List of Campaign Ids to use to filter the results.
927
- # @param columns [Array<String>] Columns to retrieve. **NOTE**: Any metrics defined as MICRO_DOLLARS returns a value based on the advertiser profile&#39;s currency field. For USD,($1/1,000,000, or $0.000001 - one one-ten-thousandth of a cent). it&#39;s microdollars. Otherwise, it&#39;s in microunits of the advertiser&#39;s currency.&lt;br/&gt;For example, if the advertiser&#39;s currency is GBP (British pound sterling), all MICRO_DOLLARS fields will be in GBP microunits (1/1,000,000 British pound).&lt;br/&gt;If a column has no value, it may not be returned
928
- # @param granularity [Granularity] Granularity
874
+ # @param token [String] Token returned from the post request creation call
929
875
  # @param [Hash] opts the optional parameters
930
- # @option opts [Integer] :click_window_days Number of days to use as the conversion attribution window for a pin click action. Applies to Pinterest Tag conversion metrics. Prior conversion tags use their defined attribution windows. If not specified, defaults to &#x60;30&#x60; days.
931
- # @option opts [Integer] :engagement_window_days Number of days to use as the conversion attribution window for an engagement action. Engagements include saves, closeups, link clicks, and carousel card swipes. Applies to Pinterest Tag conversion metrics. Prior conversion tags use their defined attribution windows. If not specified, defaults to &#x60;30&#x60; days.
932
- # @option opts [Integer] :view_window_days Number of days to use as the conversion attribution window for a view action. Applies to Pinterest Tag conversion metrics. Prior conversion tags use their defined attribution windows. If not specified, defaults to &#x60;1&#x60; day.
933
- # @option opts [String] :conversion_report_time The date by which the conversion metrics returned from this endpoint will be reported. There are two dates associated with a conversion event: the date that the user interacted with the ad, and the date that the user completed a conversion event.
934
- # @return [Array<(Array<Hash<String, Object>>, Integer, Hash)>] Array<Hash<String, Object>> data, response status code and response headers
935
- def campaigns_analytics_with_http_info(ad_account_id, start_date, end_date, campaign_ids, columns, granularity, opts = {})
876
+ # @return [Array<(ConversionProductReport, Integer, Hash)>] ConversionProductReport data, response status code and response headers
877
+ def analytics_get_conversion_product_report_with_http_info(ad_account_id, token, opts = {})
936
878
  if @api_client.config.debugging
937
- @api_client.config.logger.debug 'Calling API: AdAccountsApi.campaigns_analytics ...'
879
+ @api_client.config.logger.debug 'Calling API: AdAccountsApi.analytics_get_conversion_product_report ...'
938
880
  end
939
881
  # verify the required parameter 'ad_account_id' is set
940
882
  if @api_client.config.client_side_validation && ad_account_id.nil?
941
- fail ArgumentError, "Missing the required parameter 'ad_account_id' when calling AdAccountsApi.campaigns_analytics"
883
+ fail ArgumentError, "Missing the required parameter 'ad_account_id' when calling AdAccountsApi.analytics_get_conversion_product_report"
942
884
  end
885
+ if @api_client.config.client_side_validation && ad_account_id.to_s.length > 18
886
+ fail ArgumentError, 'invalid value for "ad_account_id" when calling AdAccountsApi.analytics_get_conversion_product_report, the character length must be smaller than or equal to 18.'
887
+ end
888
+
943
889
  pattern = Regexp.new(/^\d+$/)
944
890
  if @api_client.config.client_side_validation && ad_account_id !~ pattern
945
- fail ArgumentError, "invalid value for 'ad_account_id' when calling AdAccountsApi.campaigns_analytics, must conform to the pattern #{pattern}."
891
+ fail ArgumentError, "invalid value for 'ad_account_id' when calling AdAccountsApi.analytics_get_conversion_product_report, must conform to the pattern #{pattern}."
946
892
  end
947
893
 
948
- # verify the required parameter 'start_date' is set
949
- if @api_client.config.client_side_validation && start_date.nil?
950
- fail ArgumentError, "Missing the required parameter 'start_date' when calling AdAccountsApi.campaigns_analytics"
951
- end
952
- # verify the required parameter 'end_date' is set
953
- if @api_client.config.client_side_validation && end_date.nil?
954
- fail ArgumentError, "Missing the required parameter 'end_date' when calling AdAccountsApi.campaigns_analytics"
955
- end
956
- # verify the required parameter 'campaign_ids' is set
957
- if @api_client.config.client_side_validation && campaign_ids.nil?
958
- fail ArgumentError, "Missing the required parameter 'campaign_ids' when calling AdAccountsApi.campaigns_analytics"
959
- end
960
- if @api_client.config.client_side_validation && campaign_ids.length > 100
961
- fail ArgumentError, 'invalid value for "campaign_ids" when calling AdAccountsApi.campaigns_analytics, number of items must be less than or equal to 100.'
894
+ # verify the required parameter 'token' is set
895
+ if @api_client.config.client_side_validation && token.nil?
896
+ fail ArgumentError, "Missing the required parameter 'token' when calling AdAccountsApi.analytics_get_conversion_product_report"
962
897
  end
898
+ # resource path
899
+ local_var_path = '/ad_accounts/{ad_account_id}/reports/brand_category_sku'.sub('{ad_account_id}', CGI.escape(ad_account_id.to_s))
963
900
 
964
- if @api_client.config.client_side_validation && campaign_ids.length < 1
965
- fail ArgumentError, 'invalid value for "campaign_ids" when calling AdAccountsApi.campaigns_analytics, number of items must be greater than or equal to 1.'
966
- end
901
+ # query parameters
902
+ query_params = opts[:query_params] || {}
903
+ query_params[:'token'] = token
967
904
 
968
- # verify the required parameter 'columns' is set
969
- if @api_client.config.client_side_validation && columns.nil?
970
- fail ArgumentError, "Missing the required parameter 'columns' when calling AdAccountsApi.campaigns_analytics"
905
+ # header parameters
906
+ header_params = opts[:header_params] || {}
907
+ # HTTP header 'Accept' (if needed)
908
+ header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
909
+
910
+ # form parameters
911
+ form_params = opts[:form_params] || {}
912
+
913
+ # http body (model)
914
+ post_body = opts[:debug_body]
915
+
916
+ # return_type
917
+ return_type = opts[:debug_return_type] || 'ConversionProductReport'
918
+
919
+ # auth_names
920
+ auth_names = opts[:debug_auth_names] || ['pinterest_oauth2']
921
+
922
+ new_options = opts.merge(
923
+ :operation => :"AdAccountsApi.analytics_get_conversion_product_report",
924
+ :header_params => header_params,
925
+ :query_params => query_params,
926
+ :form_params => form_params,
927
+ :body => post_body,
928
+ :auth_names => auth_names,
929
+ :return_type => return_type
930
+ )
931
+
932
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
933
+ if @api_client.config.debugging
934
+ @api_client.config.logger.debug "API called: AdAccountsApi#analytics_get_conversion_product_report\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
971
935
  end
972
- # verify the required parameter 'granularity' is set
973
- if @api_client.config.client_side_validation && granularity.nil?
974
- fail ArgumentError, "Missing the required parameter 'granularity' when calling AdAccountsApi.campaigns_analytics"
936
+ return data, status_code, headers
937
+ end
938
+
939
+ # Get advertiser Marketing Mix Modeling (MMM) report.
940
+ # Get an mmm report for an ad account. This returns a URL to an mmm metrics report given a token returned from the create mmm report endpoint.
941
+ # @param ad_account_id [String]
942
+ # @param token [String] Token returned from the post request creation call
943
+ # @param [Hash] opts the optional parameters
944
+ # @return [MMMReport]
945
+ def analytics_get_mmm_report(ad_account_id, token, opts = {})
946
+ data, _status_code, _headers = analytics_get_mmm_report_with_http_info(ad_account_id, token, opts)
947
+ data
948
+ end
949
+
950
+ # Get advertiser Marketing Mix Modeling (MMM) report.
951
+ # Get an mmm report for an ad account. This returns a URL to an mmm metrics report given a token returned from the create mmm report endpoint.
952
+ # @param ad_account_id [String]
953
+ # @param token [String] Token returned from the post request creation call
954
+ # @param [Hash] opts the optional parameters
955
+ # @return [Array<(MMMReport, Integer, Hash)>] MMMReport data, response status code and response headers
956
+ def analytics_get_mmm_report_with_http_info(ad_account_id, token, opts = {})
957
+ if @api_client.config.debugging
958
+ @api_client.config.logger.debug 'Calling API: AdAccountsApi.analytics_get_mmm_report ...'
975
959
  end
976
- allowable_values = [1, 7, 30, 60]
977
- if @api_client.config.client_side_validation && opts[:'click_window_days'] && !allowable_values.include?(opts[:'click_window_days'])
978
- fail ArgumentError, "invalid value for \"click_window_days\", must be one of #{allowable_values}"
960
+ # verify the required parameter 'ad_account_id' is set
961
+ if @api_client.config.client_side_validation && ad_account_id.nil?
962
+ fail ArgumentError, "Missing the required parameter 'ad_account_id' when calling AdAccountsApi.analytics_get_mmm_report"
979
963
  end
980
- allowable_values = [1, 7, 30, 60]
981
- if @api_client.config.client_side_validation && opts[:'engagement_window_days'] && !allowable_values.include?(opts[:'engagement_window_days'])
982
- fail ArgumentError, "invalid value for \"engagement_window_days\", must be one of #{allowable_values}"
964
+ if @api_client.config.client_side_validation && ad_account_id.to_s.length > 18
965
+ fail ArgumentError, 'invalid value for "ad_account_id" when calling AdAccountsApi.analytics_get_mmm_report, the character length must be smaller than or equal to 18.'
983
966
  end
984
- allowable_values = [1, 7, 30, 60]
985
- if @api_client.config.client_side_validation && opts[:'view_window_days'] && !allowable_values.include?(opts[:'view_window_days'])
986
- fail ArgumentError, "invalid value for \"view_window_days\", must be one of #{allowable_values}"
967
+
968
+ pattern = Regexp.new(/^\d+$/)
969
+ if @api_client.config.client_side_validation && ad_account_id !~ pattern
970
+ fail ArgumentError, "invalid value for 'ad_account_id' when calling AdAccountsApi.analytics_get_mmm_report, must conform to the pattern #{pattern}."
987
971
  end
988
- allowable_values = ["TIME_OF_AD_ACTION", "TIME_OF_CONVERSION"]
989
- if @api_client.config.client_side_validation && opts[:'conversion_report_time'] && !allowable_values.include?(opts[:'conversion_report_time'])
990
- fail ArgumentError, "invalid value for \"conversion_report_time\", must be one of #{allowable_values}"
972
+
973
+ # verify the required parameter 'token' is set
974
+ if @api_client.config.client_side_validation && token.nil?
975
+ fail ArgumentError, "Missing the required parameter 'token' when calling AdAccountsApi.analytics_get_mmm_report"
991
976
  end
992
977
  # resource path
993
- local_var_path = '/ad_accounts/{ad_account_id}/campaigns/analytics'.sub('{' + 'ad_account_id' + '}', CGI.escape(ad_account_id.to_s))
978
+ local_var_path = '/ad_accounts/{ad_account_id}/mmm_reports'.sub('{ad_account_id}', CGI.escape(ad_account_id.to_s))
994
979
 
995
980
  # query parameters
996
981
  query_params = opts[:query_params] || {}
997
- query_params[:'start_date'] = start_date
998
- query_params[:'end_date'] = end_date
999
- query_params[:'campaign_ids'] = @api_client.build_collection_param(campaign_ids, :multi)
1000
- query_params[:'columns'] = @api_client.build_collection_param(columns, :csv)
1001
- query_params[:'granularity'] = granularity
1002
- query_params[:'click_window_days'] = opts[:'click_window_days'] if !opts[:'click_window_days'].nil?
1003
- query_params[:'engagement_window_days'] = opts[:'engagement_window_days'] if !opts[:'engagement_window_days'].nil?
1004
- query_params[:'view_window_days'] = opts[:'view_window_days'] if !opts[:'view_window_days'].nil?
1005
- query_params[:'conversion_report_time'] = opts[:'conversion_report_time'] if !opts[:'conversion_report_time'].nil?
982
+ query_params[:'token'] = token
1006
983
 
1007
984
  # header parameters
1008
985
  header_params = opts[:header_params] || {}
1009
986
  # HTTP header 'Accept' (if needed)
1010
- header_params['Accept'] = @api_client.select_header_accept(['application/json'])
987
+ header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
1011
988
 
1012
989
  # form parameters
1013
990
  form_params = opts[:form_params] || {}
@@ -1016,13 +993,13 @@ module PinterestSdkClient
1016
993
  post_body = opts[:debug_body]
1017
994
 
1018
995
  # return_type
1019
- return_type = opts[:debug_return_type] || 'Array<Hash<String, Object>>'
996
+ return_type = opts[:debug_return_type] || 'MMMReport'
1020
997
 
1021
998
  # auth_names
1022
999
  auth_names = opts[:debug_auth_names] || ['pinterest_oauth2']
1023
1000
 
1024
1001
  new_options = opts.merge(
1025
- :operation => :"AdAccountsApi.campaigns_analytics",
1002
+ :operation => :"AdAccountsApi.analytics_get_mmm_report",
1026
1003
  :header_params => header_params,
1027
1004
  :query_params => query_params,
1028
1005
  :form_params => form_params,
@@ -1033,88 +1010,132 @@ module PinterestSdkClient
1033
1010
 
1034
1011
  data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
1035
1012
  if @api_client.config.debugging
1036
- @api_client.config.logger.debug "API called: AdAccountsApi#campaigns_analytics\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
1013
+ @api_client.config.logger.debug "API called: AdAccountsApi#analytics_get_mmm_report\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
1037
1014
  end
1038
1015
  return data, status_code, headers
1039
1016
  end
1040
1017
 
1041
- # List campaigns
1042
- # Get a list of the campaigns in the specified <code>ad_account_id</code>, filtered by the specified options. - The token's user_account must either be the Owner of the specified ad account, or have one of the necessary roles granted to them via <a href=\"https://help.pinterest.com/en/business/article/share-and-manage-access-to-your-ad-accounts\">Business Access</a>: Admin, Analyst, Campaign Manager.
1018
+ # Get the account analytics report created by the async call
1019
+ # This returns a URL to an analytics report given a token returned from the post request report creation call. You can use the URL to download the report. The link is valid for five minutes and the report is valid for one hour. - The token's user_account must either be the Owner of the specified ad account, or have one of the necessary roles granted to them via [Business Access](https://help.pinterest.com/en/business/article/share-and-manage-access-to-your-ad-accounts): Admin, Analyst, Campaign Manager.
1043
1020
  # @param ad_account_id [String] Unique identifier of an ad account.
1021
+ # @param token [String] Token returned from the post request creation call
1044
1022
  # @param [Hash] opts the optional parameters
1045
- # @option opts [Array<String>] :campaign_ids List of Campaign Ids to use to filter the results.
1046
- # @option opts [Array<String>] :entity_statuses Entity status
1047
- # @option opts [Integer] :page_size Maximum number of items to include in a single page of the response. See documentation on &lt;a href&#x3D;&#39;/docs/api/v5/#tag/Pagination&#39;&gt;Pagination&lt;/a&gt; for more information. (default to 25)
1048
- # @option opts [String] :order The order in which to sort the items returned: “ASCENDING” or “DESCENDING” by ID. Note that higher-value IDs are associated with more-recently added items.
1049
- # @option opts [String] :bookmark Cursor used to fetch the next page of items
1050
- # @return [Paginated]
1051
- def campaigns_list(ad_account_id, opts = {})
1052
- data, _status_code, _headers = campaigns_list_with_http_info(ad_account_id, opts)
1023
+ # @return [AdsAnalyticsGetAsyncResponse]
1024
+ def analytics_get_report(ad_account_id, token, opts = {})
1025
+ data, _status_code, _headers = analytics_get_report_with_http_info(ad_account_id, token, opts)
1053
1026
  data
1054
1027
  end
1055
1028
 
1056
- # List campaigns
1057
- # Get a list of the campaigns in the specified &lt;code&gt;ad_account_id&lt;/code&gt;, filtered by the specified options. - The token&#39;s user_account must either be the Owner of the specified ad account, or have one of the necessary roles granted to them via &lt;a href&#x3D;\&quot;https://help.pinterest.com/en/business/article/share-and-manage-access-to-your-ad-accounts\&quot;&gt;Business Access&lt;/a&gt;: Admin, Analyst, Campaign Manager.
1029
+ # Get the account analytics report created by the async call
1030
+ # This returns a URL to an analytics report given a token returned from the post request report creation call. You can use the URL to download the report. The link is valid for five minutes and the report is valid for one hour. - The token&#39;s user_account must either be the Owner of the specified ad account, or have one of the necessary roles granted to them via [Business Access](https://help.pinterest.com/en/business/article/share-and-manage-access-to-your-ad-accounts): Admin, Analyst, Campaign Manager.
1058
1031
  # @param ad_account_id [String] Unique identifier of an ad account.
1032
+ # @param token [String] Token returned from the post request creation call
1059
1033
  # @param [Hash] opts the optional parameters
1060
- # @option opts [Array<String>] :campaign_ids List of Campaign Ids to use to filter the results.
1061
- # @option opts [Array<String>] :entity_statuses Entity status
1062
- # @option opts [Integer] :page_size Maximum number of items to include in a single page of the response. See documentation on &lt;a href&#x3D;&#39;/docs/api/v5/#tag/Pagination&#39;&gt;Pagination&lt;/a&gt; for more information.
1063
- # @option opts [String] :order The order in which to sort the items returned: “ASCENDING” or “DESCENDING” by ID. Note that higher-value IDs are associated with more-recently added items.
1064
- # @option opts [String] :bookmark Cursor used to fetch the next page of items
1065
- # @return [Array<(Paginated, Integer, Hash)>] Paginated data, response status code and response headers
1066
- def campaigns_list_with_http_info(ad_account_id, opts = {})
1034
+ # @return [Array<(AdsAnalyticsGetAsyncResponse, Integer, Hash)>] AdsAnalyticsGetAsyncResponse data, response status code and response headers
1035
+ def analytics_get_report_with_http_info(ad_account_id, token, opts = {})
1067
1036
  if @api_client.config.debugging
1068
- @api_client.config.logger.debug 'Calling API: AdAccountsApi.campaigns_list ...'
1037
+ @api_client.config.logger.debug 'Calling API: AdAccountsApi.analytics_get_report ...'
1069
1038
  end
1070
1039
  # verify the required parameter 'ad_account_id' is set
1071
1040
  if @api_client.config.client_side_validation && ad_account_id.nil?
1072
- fail ArgumentError, "Missing the required parameter 'ad_account_id' when calling AdAccountsApi.campaigns_list"
1041
+ fail ArgumentError, "Missing the required parameter 'ad_account_id' when calling AdAccountsApi.analytics_get_report"
1042
+ end
1043
+ if @api_client.config.client_side_validation && ad_account_id.to_s.length > 18
1044
+ fail ArgumentError, 'invalid value for "ad_account_id" when calling AdAccountsApi.analytics_get_report, the character length must be smaller than or equal to 18.'
1073
1045
  end
1046
+
1074
1047
  pattern = Regexp.new(/^\d+$/)
1075
1048
  if @api_client.config.client_side_validation && ad_account_id !~ pattern
1076
- fail ArgumentError, "invalid value for 'ad_account_id' when calling AdAccountsApi.campaigns_list, must conform to the pattern #{pattern}."
1049
+ fail ArgumentError, "invalid value for 'ad_account_id' when calling AdAccountsApi.analytics_get_report, must conform to the pattern #{pattern}."
1077
1050
  end
1078
1051
 
1079
- if @api_client.config.client_side_validation && !opts[:'campaign_ids'].nil? && opts[:'campaign_ids'].length > 100
1080
- fail ArgumentError, 'invalid value for "opts[:"campaign_ids"]" when calling AdAccountsApi.campaigns_list, number of items must be less than or equal to 100.'
1052
+ # verify the required parameter 'token' is set
1053
+ if @api_client.config.client_side_validation && token.nil?
1054
+ fail ArgumentError, "Missing the required parameter 'token' when calling AdAccountsApi.analytics_get_report"
1081
1055
  end
1056
+ # resource path
1057
+ local_var_path = '/ad_accounts/{ad_account_id}/reports'.sub('{ad_account_id}', CGI.escape(ad_account_id.to_s))
1058
+
1059
+ # query parameters
1060
+ query_params = opts[:query_params] || {}
1061
+ query_params[:'token'] = token
1062
+
1063
+ # header parameters
1064
+ header_params = opts[:header_params] || {}
1065
+ # HTTP header 'Accept' (if needed)
1066
+ header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
1067
+
1068
+ # form parameters
1069
+ form_params = opts[:form_params] || {}
1070
+
1071
+ # http body (model)
1072
+ post_body = opts[:debug_body]
1073
+
1074
+ # return_type
1075
+ return_type = opts[:debug_return_type] || 'AdsAnalyticsGetAsyncResponse'
1076
+
1077
+ # auth_names
1078
+ auth_names = opts[:debug_auth_names] || ['pinterest_oauth2']
1079
+
1080
+ new_options = opts.merge(
1081
+ :operation => :"AdAccountsApi.analytics_get_report",
1082
+ :header_params => header_params,
1083
+ :query_params => query_params,
1084
+ :form_params => form_params,
1085
+ :body => post_body,
1086
+ :auth_names => auth_names,
1087
+ :return_type => return_type
1088
+ )
1082
1089
 
1083
- if @api_client.config.client_side_validation && !opts[:'campaign_ids'].nil? && opts[:'campaign_ids'].length < 1
1084
- fail ArgumentError, 'invalid value for "opts[:"campaign_ids"]" when calling AdAccountsApi.campaigns_list, number of items must be greater than or equal to 1.'
1090
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
1091
+ if @api_client.config.debugging
1092
+ @api_client.config.logger.debug "API called: AdAccountsApi#analytics_get_report\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
1085
1093
  end
1094
+ return data, status_code, headers
1095
+ end
1096
+
1097
+ # Delete ads data for ad account in API Sandbox
1098
+ # Delete an ad account and all the ads data associated with that account. A string message is returned indicating the status of the delete operation. Note: This endpoint is only allowed in the Pinterest API Sandbox (https://api-sandbox.pinterest.com/v5). Go to /docs/developer-tools/sandbox/ for more information.
1099
+ # @param ad_account_id [String] Unique identifier of an ad account.
1100
+ # @param [Hash] opts the optional parameters
1101
+ # @return [String]
1102
+ def sandbox_delete(ad_account_id, opts = {})
1103
+ data, _status_code, _headers = sandbox_delete_with_http_info(ad_account_id, opts)
1104
+ data
1105
+ end
1086
1106
 
1087
- allowable_values = ["ACTIVE", "PAUSED", "ARCHIVED"]
1088
- if @api_client.config.client_side_validation && opts[:'entity_statuses'] && !opts[:'entity_statuses'].all? { |item| allowable_values.include?(item) }
1089
- fail ArgumentError, "invalid value for \"entity_statuses\", must include one of #{allowable_values}"
1107
+ # Delete ads data for ad account in API Sandbox
1108
+ # Delete an ad account and all the ads data associated with that account. A string message is returned indicating the status of the delete operation. Note: This endpoint is only allowed in the Pinterest API Sandbox (https://api-sandbox.pinterest.com/v5). Go to /docs/developer-tools/sandbox/ for more information.
1109
+ # @param ad_account_id [String] Unique identifier of an ad account.
1110
+ # @param [Hash] opts the optional parameters
1111
+ # @return [Array<(String, Integer, Hash)>] String data, response status code and response headers
1112
+ def sandbox_delete_with_http_info(ad_account_id, opts = {})
1113
+ if @api_client.config.debugging
1114
+ @api_client.config.logger.debug 'Calling API: AdAccountsApi.sandbox_delete ...'
1090
1115
  end
1091
- if @api_client.config.client_side_validation && !opts[:'page_size'].nil? && opts[:'page_size'] > 100
1092
- fail ArgumentError, 'invalid value for "opts[:"page_size"]" when calling AdAccountsApi.campaigns_list, must be smaller than or equal to 100.'
1116
+ # verify the required parameter 'ad_account_id' is set
1117
+ if @api_client.config.client_side_validation && ad_account_id.nil?
1118
+ fail ArgumentError, "Missing the required parameter 'ad_account_id' when calling AdAccountsApi.sandbox_delete"
1093
1119
  end
1094
-
1095
- if @api_client.config.client_side_validation && !opts[:'page_size'].nil? && opts[:'page_size'] < 1
1096
- fail ArgumentError, 'invalid value for "opts[:"page_size"]" when calling AdAccountsApi.campaigns_list, must be greater than or equal to 1.'
1120
+ if @api_client.config.client_side_validation && ad_account_id.to_s.length > 18
1121
+ fail ArgumentError, 'invalid value for "ad_account_id" when calling AdAccountsApi.sandbox_delete, the character length must be smaller than or equal to 18.'
1097
1122
  end
1098
1123
 
1099
- allowable_values = ["ASCENDING", "DESCENDING"]
1100
- if @api_client.config.client_side_validation && opts[:'order'] && !allowable_values.include?(opts[:'order'])
1101
- fail ArgumentError, "invalid value for \"order\", must be one of #{allowable_values}"
1124
+ pattern = Regexp.new(/^\d+$/)
1125
+ if @api_client.config.client_side_validation && ad_account_id !~ pattern
1126
+ fail ArgumentError, "invalid value for 'ad_account_id' when calling AdAccountsApi.sandbox_delete, must conform to the pattern #{pattern}."
1102
1127
  end
1128
+
1103
1129
  # resource path
1104
- local_var_path = '/ad_accounts/{ad_account_id}/campaigns'.sub('{' + 'ad_account_id' + '}', CGI.escape(ad_account_id.to_s))
1130
+ local_var_path = '/ad_accounts/{ad_account_id}/sandbox'.sub('{ad_account_id}', CGI.escape(ad_account_id.to_s))
1105
1131
 
1106
1132
  # query parameters
1107
1133
  query_params = opts[:query_params] || {}
1108
- query_params[:'campaign_ids'] = @api_client.build_collection_param(opts[:'campaign_ids'], :multi) if !opts[:'campaign_ids'].nil?
1109
- query_params[:'entity_statuses'] = @api_client.build_collection_param(opts[:'entity_statuses'], :multi) if !opts[:'entity_statuses'].nil?
1110
- query_params[:'page_size'] = opts[:'page_size'] if !opts[:'page_size'].nil?
1111
- query_params[:'order'] = opts[:'order'] if !opts[:'order'].nil?
1112
- query_params[:'bookmark'] = opts[:'bookmark'] if !opts[:'bookmark'].nil?
1113
1134
 
1114
1135
  # header parameters
1115
1136
  header_params = opts[:header_params] || {}
1116
1137
  # HTTP header 'Accept' (if needed)
1117
- header_params['Accept'] = @api_client.select_header_accept(['application/json'])
1138
+ header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
1118
1139
 
1119
1140
  # form parameters
1120
1141
  form_params = opts[:form_params] || {}
@@ -1123,13 +1144,13 @@ module PinterestSdkClient
1123
1144
  post_body = opts[:debug_body]
1124
1145
 
1125
1146
  # return_type
1126
- return_type = opts[:debug_return_type] || 'Paginated'
1147
+ return_type = opts[:debug_return_type] || 'String'
1127
1148
 
1128
1149
  # auth_names
1129
1150
  auth_names = opts[:debug_auth_names] || ['pinterest_oauth2']
1130
1151
 
1131
1152
  new_options = opts.merge(
1132
- :operation => :"AdAccountsApi.campaigns_list",
1153
+ :operation => :"AdAccountsApi.sandbox_delete",
1133
1154
  :header_params => header_params,
1134
1155
  :query_params => query_params,
1135
1156
  :form_params => form_params,
@@ -1138,122 +1159,72 @@ module PinterestSdkClient
1138
1159
  :return_type => return_type
1139
1160
  )
1140
1161
 
1141
- data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
1162
+ data, status_code, headers = @api_client.call_api(:DELETE, local_var_path, new_options)
1142
1163
  if @api_client.config.debugging
1143
- @api_client.config.logger.debug "API called: AdAccountsApi#campaigns_list\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
1164
+ @api_client.config.logger.debug "API called: AdAccountsApi#sandbox_delete\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
1144
1165
  end
1145
1166
  return data, status_code, headers
1146
1167
  end
1147
1168
 
1148
- # Get product group analytics
1149
- # Get analytics for the specified product groups in the specified <code>ad_account_id</code>, filtered by the specified options. - The token's user_account must either be the Owner of the specified ad account, or have one of the necessary roles granted to them via <a href=\"https://help.pinterest.com/en/business/article/share-and-manage-access-to-your-ad-accounts\">Business Access</a>: Admin, Analyst, Campaign Manager.
1169
+ # List templates
1170
+ # Gets all Templates associated with an ad account ID.
1150
1171
  # @param ad_account_id [String] Unique identifier of an ad account.
1151
- # @param start_date [Date] Metric report start date (UTC). Format: YYYY-MM-DD
1152
- # @param end_date [Date] Metric report end date (UTC). Format: YYYY-MM-DD
1153
- # @param product_group_ids [Array<String>] List of Product group Ids to use to filter the results.
1154
- # @param columns [Array<String>] Columns to retrieve. **NOTE**: Any metrics defined as MICRO_DOLLARS returns a value based on the advertiser profile&#39;s currency field. For USD,($1/1,000,000, or $0.000001 - one one-ten-thousandth of a cent). it&#39;s microdollars. Otherwise, it&#39;s in microunits of the advertiser&#39;s currency.&lt;br/&gt;For example, if the advertiser&#39;s currency is GBP (British pound sterling), all MICRO_DOLLARS fields will be in GBP microunits (1/1,000,000 British pound).&lt;br/&gt;If a column has no value, it may not be returned
1155
- # @param granularity [Granularity] Granularity
1156
1172
  # @param [Hash] opts the optional parameters
1157
- # @option opts [Integer] :click_window_days Number of days to use as the conversion attribution window for a pin click action. Applies to Pinterest Tag conversion metrics. Prior conversion tags use their defined attribution windows. If not specified, defaults to &#x60;30&#x60; days. (default to 30)
1158
- # @option opts [Integer] :engagement_window_days Number of days to use as the conversion attribution window for an engagement action. Engagements include saves, closeups, link clicks, and carousel card swipes. Applies to Pinterest Tag conversion metrics. Prior conversion tags use their defined attribution windows. If not specified, defaults to &#x60;30&#x60; days. (default to 30)
1159
- # @option opts [Integer] :view_window_days Number of days to use as the conversion attribution window for a view action. Applies to Pinterest Tag conversion metrics. Prior conversion tags use their defined attribution windows. If not specified, defaults to &#x60;1&#x60; day. (default to 1)
1160
- # @option opts [String] :conversion_report_time The date by which the conversion metrics returned from this endpoint will be reported. There are two dates associated with a conversion event: the date that the user interacted with the ad, and the date that the user completed a conversion event. (default to 'TIME_OF_AD_ACTION')
1161
- # @return [Array<Hash<String, Object>>]
1162
- def product_groups_analytics(ad_account_id, start_date, end_date, product_group_ids, columns, granularity, opts = {})
1163
- data, _status_code, _headers = product_groups_analytics_with_http_info(ad_account_id, start_date, end_date, product_group_ids, columns, granularity, opts)
1173
+ # @option opts [String] :bookmark Cursor used to fetch the next page of items
1174
+ # @option opts [Integer] :page_size Maximum number of items to include in a single page. See documentation on [Pagination](/docs/reference/pagination/) for more information. (default to 25)
1175
+ # @option opts [PinterestLibPaginationOrder] :order The order in which to sort the items returned: \&quot;ASCENDING\&quot; or \&quot;DESCENDING\&quot; by ID. Note that higher-value IDs are associated with more-recently added items.
1176
+ # @return [TemplatesList200Response]
1177
+ def templates_list(ad_account_id, opts = {})
1178
+ data, _status_code, _headers = templates_list_with_http_info(ad_account_id, opts)
1164
1179
  data
1165
1180
  end
1166
1181
 
1167
- # Get product group analytics
1168
- # Get analytics for the specified product groups in the specified &lt;code&gt;ad_account_id&lt;/code&gt;, filtered by the specified options. - The token&#39;s user_account must either be the Owner of the specified ad account, or have one of the necessary roles granted to them via &lt;a href&#x3D;\&quot;https://help.pinterest.com/en/business/article/share-and-manage-access-to-your-ad-accounts\&quot;&gt;Business Access&lt;/a&gt;: Admin, Analyst, Campaign Manager.
1182
+ # List templates
1183
+ # Gets all Templates associated with an ad account ID.
1169
1184
  # @param ad_account_id [String] Unique identifier of an ad account.
1170
- # @param start_date [Date] Metric report start date (UTC). Format: YYYY-MM-DD
1171
- # @param end_date [Date] Metric report end date (UTC). Format: YYYY-MM-DD
1172
- # @param product_group_ids [Array<String>] List of Product group Ids to use to filter the results.
1173
- # @param columns [Array<String>] Columns to retrieve. **NOTE**: Any metrics defined as MICRO_DOLLARS returns a value based on the advertiser profile&#39;s currency field. For USD,($1/1,000,000, or $0.000001 - one one-ten-thousandth of a cent). it&#39;s microdollars. Otherwise, it&#39;s in microunits of the advertiser&#39;s currency.&lt;br/&gt;For example, if the advertiser&#39;s currency is GBP (British pound sterling), all MICRO_DOLLARS fields will be in GBP microunits (1/1,000,000 British pound).&lt;br/&gt;If a column has no value, it may not be returned
1174
- # @param granularity [Granularity] Granularity
1175
1185
  # @param [Hash] opts the optional parameters
1176
- # @option opts [Integer] :click_window_days Number of days to use as the conversion attribution window for a pin click action. Applies to Pinterest Tag conversion metrics. Prior conversion tags use their defined attribution windows. If not specified, defaults to &#x60;30&#x60; days.
1177
- # @option opts [Integer] :engagement_window_days Number of days to use as the conversion attribution window for an engagement action. Engagements include saves, closeups, link clicks, and carousel card swipes. Applies to Pinterest Tag conversion metrics. Prior conversion tags use their defined attribution windows. If not specified, defaults to &#x60;30&#x60; days.
1178
- # @option opts [Integer] :view_window_days Number of days to use as the conversion attribution window for a view action. Applies to Pinterest Tag conversion metrics. Prior conversion tags use their defined attribution windows. If not specified, defaults to &#x60;1&#x60; day.
1179
- # @option opts [String] :conversion_report_time The date by which the conversion metrics returned from this endpoint will be reported. There are two dates associated with a conversion event: the date that the user interacted with the ad, and the date that the user completed a conversion event.
1180
- # @return [Array<(Array<Hash<String, Object>>, Integer, Hash)>] Array<Hash<String, Object>> data, response status code and response headers
1181
- def product_groups_analytics_with_http_info(ad_account_id, start_date, end_date, product_group_ids, columns, granularity, opts = {})
1186
+ # @option opts [String] :bookmark Cursor used to fetch the next page of items
1187
+ # @option opts [Integer] :page_size Maximum number of items to include in a single page. See documentation on [Pagination](/docs/reference/pagination/) for more information. (default to 25)
1188
+ # @option opts [PinterestLibPaginationOrder] :order The order in which to sort the items returned: \&quot;ASCENDING\&quot; or \&quot;DESCENDING\&quot; by ID. Note that higher-value IDs are associated with more-recently added items.
1189
+ # @return [Array<(TemplatesList200Response, Integer, Hash)>] TemplatesList200Response data, response status code and response headers
1190
+ def templates_list_with_http_info(ad_account_id, opts = {})
1182
1191
  if @api_client.config.debugging
1183
- @api_client.config.logger.debug 'Calling API: AdAccountsApi.product_groups_analytics ...'
1192
+ @api_client.config.logger.debug 'Calling API: AdAccountsApi.templates_list ...'
1184
1193
  end
1185
1194
  # verify the required parameter 'ad_account_id' is set
1186
1195
  if @api_client.config.client_side_validation && ad_account_id.nil?
1187
- fail ArgumentError, "Missing the required parameter 'ad_account_id' when calling AdAccountsApi.product_groups_analytics"
1196
+ fail ArgumentError, "Missing the required parameter 'ad_account_id' when calling AdAccountsApi.templates_list"
1197
+ end
1198
+ if @api_client.config.client_side_validation && ad_account_id.to_s.length > 18
1199
+ fail ArgumentError, 'invalid value for "ad_account_id" when calling AdAccountsApi.templates_list, the character length must be smaller than or equal to 18.'
1188
1200
  end
1201
+
1189
1202
  pattern = Regexp.new(/^\d+$/)
1190
1203
  if @api_client.config.client_side_validation && ad_account_id !~ pattern
1191
- fail ArgumentError, "invalid value for 'ad_account_id' when calling AdAccountsApi.product_groups_analytics, must conform to the pattern #{pattern}."
1204
+ fail ArgumentError, "invalid value for 'ad_account_id' when calling AdAccountsApi.templates_list, must conform to the pattern #{pattern}."
1192
1205
  end
1193
1206
 
1194
- # verify the required parameter 'start_date' is set
1195
- if @api_client.config.client_side_validation && start_date.nil?
1196
- fail ArgumentError, "Missing the required parameter 'start_date' when calling AdAccountsApi.product_groups_analytics"
1197
- end
1198
- # verify the required parameter 'end_date' is set
1199
- if @api_client.config.client_side_validation && end_date.nil?
1200
- fail ArgumentError, "Missing the required parameter 'end_date' when calling AdAccountsApi.product_groups_analytics"
1201
- end
1202
- # verify the required parameter 'product_group_ids' is set
1203
- if @api_client.config.client_side_validation && product_group_ids.nil?
1204
- fail ArgumentError, "Missing the required parameter 'product_group_ids' when calling AdAccountsApi.product_groups_analytics"
1205
- end
1206
- if @api_client.config.client_side_validation && product_group_ids.length > 100
1207
- fail ArgumentError, 'invalid value for "product_group_ids" when calling AdAccountsApi.product_groups_analytics, number of items must be less than or equal to 100.'
1207
+ if @api_client.config.client_side_validation && !opts[:'page_size'].nil? && opts[:'page_size'] > 250
1208
+ fail ArgumentError, 'invalid value for "opts[:"page_size"]" when calling AdAccountsApi.templates_list, must be smaller than or equal to 250.'
1208
1209
  end
1209
1210
 
1210
- if @api_client.config.client_side_validation && product_group_ids.length < 1
1211
- fail ArgumentError, 'invalid value for "product_group_ids" when calling AdAccountsApi.product_groups_analytics, number of items must be greater than or equal to 1.'
1211
+ if @api_client.config.client_side_validation && !opts[:'page_size'].nil? && opts[:'page_size'] < 1
1212
+ fail ArgumentError, 'invalid value for "opts[:"page_size"]" when calling AdAccountsApi.templates_list, must be greater than or equal to 1.'
1212
1213
  end
1213
1214
 
1214
- # verify the required parameter 'columns' is set
1215
- if @api_client.config.client_side_validation && columns.nil?
1216
- fail ArgumentError, "Missing the required parameter 'columns' when calling AdAccountsApi.product_groups_analytics"
1217
- end
1218
- # verify the required parameter 'granularity' is set
1219
- if @api_client.config.client_side_validation && granularity.nil?
1220
- fail ArgumentError, "Missing the required parameter 'granularity' when calling AdAccountsApi.product_groups_analytics"
1221
- end
1222
- allowable_values = [1, 7, 30, 60]
1223
- if @api_client.config.client_side_validation && opts[:'click_window_days'] && !allowable_values.include?(opts[:'click_window_days'])
1224
- fail ArgumentError, "invalid value for \"click_window_days\", must be one of #{allowable_values}"
1225
- end
1226
- allowable_values = [1, 7, 30, 60]
1227
- if @api_client.config.client_side_validation && opts[:'engagement_window_days'] && !allowable_values.include?(opts[:'engagement_window_days'])
1228
- fail ArgumentError, "invalid value for \"engagement_window_days\", must be one of #{allowable_values}"
1229
- end
1230
- allowable_values = [1, 7, 30, 60]
1231
- if @api_client.config.client_side_validation && opts[:'view_window_days'] && !allowable_values.include?(opts[:'view_window_days'])
1232
- fail ArgumentError, "invalid value for \"view_window_days\", must be one of #{allowable_values}"
1233
- end
1234
- allowable_values = ["TIME_OF_AD_ACTION", "TIME_OF_CONVERSION"]
1235
- if @api_client.config.client_side_validation && opts[:'conversion_report_time'] && !allowable_values.include?(opts[:'conversion_report_time'])
1236
- fail ArgumentError, "invalid value for \"conversion_report_time\", must be one of #{allowable_values}"
1237
- end
1238
1215
  # resource path
1239
- local_var_path = '/ad_accounts/{ad_account_id}/product_groups/analytics'.sub('{' + 'ad_account_id' + '}', CGI.escape(ad_account_id.to_s))
1216
+ local_var_path = '/ad_accounts/{ad_account_id}/templates'.sub('{ad_account_id}', CGI.escape(ad_account_id.to_s))
1240
1217
 
1241
1218
  # query parameters
1242
1219
  query_params = opts[:query_params] || {}
1243
- query_params[:'start_date'] = start_date
1244
- query_params[:'end_date'] = end_date
1245
- query_params[:'product_group_ids'] = @api_client.build_collection_param(product_group_ids, :multi)
1246
- query_params[:'columns'] = @api_client.build_collection_param(columns, :csv)
1247
- query_params[:'granularity'] = granularity
1248
- query_params[:'click_window_days'] = opts[:'click_window_days'] if !opts[:'click_window_days'].nil?
1249
- query_params[:'engagement_window_days'] = opts[:'engagement_window_days'] if !opts[:'engagement_window_days'].nil?
1250
- query_params[:'view_window_days'] = opts[:'view_window_days'] if !opts[:'view_window_days'].nil?
1251
- query_params[:'conversion_report_time'] = opts[:'conversion_report_time'] if !opts[:'conversion_report_time'].nil?
1220
+ query_params[:'bookmark'] = opts[:'bookmark'] if !opts[:'bookmark'].nil?
1221
+ query_params[:'page_size'] = opts[:'page_size'] if !opts[:'page_size'].nil?
1222
+ query_params[:'order'] = opts[:'order'] if !opts[:'order'].nil?
1252
1223
 
1253
1224
  # header parameters
1254
1225
  header_params = opts[:header_params] || {}
1255
1226
  # HTTP header 'Accept' (if needed)
1256
- header_params['Accept'] = @api_client.select_header_accept(['application/json'])
1227
+ header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
1257
1228
 
1258
1229
  # form parameters
1259
1230
  form_params = opts[:form_params] || {}
@@ -1262,13 +1233,13 @@ module PinterestSdkClient
1262
1233
  post_body = opts[:debug_body]
1263
1234
 
1264
1235
  # return_type
1265
- return_type = opts[:debug_return_type] || 'Array<Hash<String, Object>>'
1236
+ return_type = opts[:debug_return_type] || 'TemplatesList200Response'
1266
1237
 
1267
1238
  # auth_names
1268
1239
  auth_names = opts[:debug_auth_names] || ['pinterest_oauth2']
1269
1240
 
1270
1241
  new_options = opts.merge(
1271
- :operation => :"AdAccountsApi.product_groups_analytics",
1242
+ :operation => :"AdAccountsApi.templates_list",
1272
1243
  :header_params => header_params,
1273
1244
  :query_params => query_params,
1274
1245
  :form_params => form_params,
@@ -1279,7 +1250,7 @@ module PinterestSdkClient
1279
1250
 
1280
1251
  data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
1281
1252
  if @api_client.config.debugging
1282
- @api_client.config.logger.debug "API called: AdAccountsApi#product_groups_analytics\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
1253
+ @api_client.config.logger.debug "API called: AdAccountsApi#templates_list\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
1283
1254
  end
1284
1255
  return data, status_code, headers
1285
1256
  end