pinterest_sdk 1.0.0 → 2.0.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.
- checksums.yaml +4 -4
- data/Gemfile.lock +102 -31
- data/README.md +1000 -61
- data/bin/byebug +1 -12
- data/bin/coderay +1 -12
- data/bin/htmldiff +1 -12
- data/bin/ldiff +1 -12
- data/bin/pry +1 -12
- data/bin/racc +16 -0
- data/bin/rake +1 -12
- data/bin/rspec +1 -12
- data/bin/rubocop +1 -12
- data/bin/ruby-parse +1 -12
- data/bin/ruby-rewrite +1 -12
- data/docs/Account.md +19 -3
- data/docs/AdAccount.md +11 -5
- data/docs/AdAccountAnalyticsResponseInner.md +20 -0
- data/docs/AdAccountCreate.md +24 -0
- data/docs/AdAccountCreateSubscriptionRequest.md +26 -0
- data/docs/AdAccountCreateSubscriptionRequestPartnerMetadata.md +18 -0
- data/docs/AdAccountCreateSubscriptionResponse.md +34 -0
- data/docs/AdAccountGetSubscriptionResponse.md +34 -0
- data/docs/AdAccountOwner.md +2 -0
- data/docs/AdAccountsApi.md +434 -284
- data/docs/AdAccountsAudiencesSharedAccountsList200Response.md +20 -0
- data/docs/AdAccountsCountryResponse.md +18 -0
- data/docs/AdAccountsCountryResponseData.md +24 -0
- data/docs/AdAccountsList200Response.md +20 -0
- data/docs/AdAccountsSubscriptionsGetList200Response.md +20 -0
- data/docs/AdArrayResponse.md +18 -0
- data/docs/AdArrayResponseElement.md +20 -0
- data/docs/{AdResponseAllOf.md → AdCommon.md} +18 -8
- data/docs/AdCountry.md +15 -0
- data/docs/AdCreateRequest.md +60 -0
- data/docs/AdGroupArrayResponse.md +18 -0
- data/docs/AdGroupArrayResponseElement.md +20 -0
- data/docs/AdGroupAudienceSizingRequest.md +28 -0
- data/docs/AdGroupAudienceSizingRequestKeywordsInner.md +20 -0
- data/docs/AdGroupAudienceSizingResponse.md +20 -0
- data/docs/AdGroupCommon.md +58 -0
- data/docs/AdGroupCreateRequest.md +60 -0
- data/docs/AdGroupIdFilter.md +18 -0
- data/docs/AdGroupResponse.md +46 -30
- data/docs/AdGroupUpdateRequest.md +62 -0
- data/docs/AdGroupsAnalyticsResponseInner.md +20 -0
- data/docs/AdGroupsApi.md +661 -0
- data/docs/AdGroupsList200Response.md +20 -0
- data/docs/AdPinAnalytics.md +20 -0
- data/docs/AdPinId.md +18 -0
- data/docs/AdPreviewCreateFromImage.md +20 -0
- data/docs/AdPreviewCreateFromPin.md +18 -0
- data/docs/AdPreviewRequest.md +51 -0
- data/docs/AdPreviewShopping.md +36 -0
- data/docs/AdPreviewURLResponse.md +18 -0
- data/docs/AdResponse.md +21 -9
- data/docs/AdUpdateRequest.md +62 -0
- data/docs/AdsAnalyticsAdGroupTargetingType.md +15 -0
- data/docs/AdsAnalyticsAdTargetingType.md +15 -0
- data/docs/AdsAnalyticsCampaignTargetingType.md +15 -0
- data/docs/AdsAnalyticsCreateAsyncRequest.md +37 -23
- data/docs/AdsAnalyticsCreateAsyncRequestAllOfCustomConversionEventMetrics.md +20 -0
- data/docs/AdsAnalyticsCreateAsyncResponse.md +4 -4
- data/docs/AdsAnalyticsGetAsyncResponse.md +4 -4
- data/docs/AdsAnalyticsMetricsFilter.md +3 -3
- data/docs/AdsAnalyticsResponseInner.md +20 -0
- data/docs/AdsApi.md +585 -0
- data/docs/AdsCreditDiscountsResponse.md +30 -0
- data/docs/AdsCreditRedeemRequest.md +20 -0
- data/docs/AdsCreditRedeemResponse.md +22 -0
- data/docs/AdsCreditsDiscountsGet200Response.md +20 -0
- data/docs/AdsList200Response.md +20 -0
- data/docs/AdvancedAuctionApi.md +155 -0
- data/docs/AdvancedAuctionBidOptions.md +22 -0
- data/docs/AdvancedAuctionItem.md +24 -0
- data/docs/AdvancedAuctionItems.md +20 -0
- data/docs/AdvancedAuctionItemsGetRecord.md +22 -0
- data/docs/AdvancedAuctionItemsGetRequest.md +20 -0
- data/docs/AdvancedAuctionItemsSubmitDeleteRecord.md +24 -0
- data/docs/AdvancedAuctionItemsSubmitRecord.md +79 -0
- data/docs/AdvancedAuctionItemsSubmitRequest.md +20 -0
- data/docs/AdvancedAuctionItemsSubmitUpsertRecord.md +28 -0
- data/docs/AdvancedAuctionKey.md +22 -0
- data/docs/AdvancedAuctionOperation.md +15 -0
- data/docs/AdvancedAuctionOperationError.md +20 -0
- data/docs/AdvancedAuctionProcessedItems.md +20 -0
- data/docs/AdvertiserDefinedEvent.md +20 -0
- data/docs/AdvertiserDefinedEventsResponse.md +18 -0
- data/docs/AgeTrendsBucket.md +15 -0
- data/docs/AllOf.md +18 -0
- data/docs/AmazonConnectRequest.md +30 -0
- data/docs/AnalyticsDailyMetrics.md +22 -0
- data/docs/AnalyticsMetricsResponse.md +2 -2
- data/docs/AnyOf.md +18 -0
- data/docs/AppTypeMultipliers.md +18 -0
- data/docs/AssetGroupBinding.md +38 -0
- data/docs/AssetGroupType.md +15 -0
- data/docs/AssetIdPermissions.md +24 -0
- data/docs/Audience.md +40 -0
- data/docs/AudienceAccountType.md +15 -0
- data/docs/AudienceCategory.md +28 -0
- data/docs/AudienceCommon.md +22 -0
- data/docs/AudienceCreateRequest.md +26 -0
- data/docs/AudienceDefinition.md +22 -0
- data/docs/AudienceDefinitionResponse.md +18 -0
- data/docs/{OauthAccessTokenRequestRefreshAllOf.md → AudienceDefinitionScope.md} +2 -4
- data/docs/AudienceDefinitionType.md +18 -0
- data/docs/AudienceDemographicValue.md +22 -0
- data/docs/AudienceDemographics.md +26 -0
- data/docs/AudienceInsightCategoryArrayResponse.md +18 -0
- data/docs/AudienceInsightCategoryCommon.md +26 -0
- data/docs/AudienceInsightType.md +15 -0
- data/docs/AudienceInsightsApi.md +155 -0
- data/docs/AudienceInsightsResponse.md +28 -0
- data/docs/AudienceRule.md +56 -0
- data/docs/AudienceShareType.md +15 -0
- data/docs/AudienceSharingApi.md +536 -0
- data/docs/AudienceSubcategory.md +26 -0
- data/docs/AudienceType.md +15 -0
- data/docs/AudienceUpdateOperationType.md +15 -0
- data/docs/AudienceUpdateRequest.md +26 -0
- data/docs/AudiencesApi.md +311 -0
- data/docs/AudiencesList200Response.md +20 -0
- data/docs/AuthRespondInvitesBody.md +18 -0
- data/docs/AuthRespondInvitesBodyInvitesInner.md +20 -0
- data/docs/AuthRespondInvitesBodyInvitesInnerAction.md +20 -0
- data/docs/BaseInviteDataResponse.md +24 -0
- data/docs/BaseInviteDataResponseInviteData.md +26 -0
- data/docs/BidFloor.md +20 -0
- data/docs/BidFloorRequest.md +20 -0
- data/docs/BidFloorSpec.md +28 -0
- data/docs/BillingApi.md +833 -0
- data/docs/BillingInvoiceDownloadResponse.md +20 -0
- data/docs/BillingInvoiceResponse.md +46 -0
- data/docs/BillingInvoicesGet200Response.md +20 -0
- data/docs/BillingProfilesGet200Response.md +20 -0
- data/docs/BillingProfilesResponse.md +28 -0
- data/docs/Board.md +19 -5
- data/docs/BoardBase.md +38 -0
- data/docs/BoardCreate.md +24 -0
- data/docs/BoardMedia.md +20 -0
- data/docs/BoardPrivacy.md +15 -0
- data/docs/BoardPrivacyFilter.md +15 -0
- data/docs/BoardSection.md +1 -1
- data/docs/BoardSectionsList200Response.md +20 -0
- data/docs/BoardUpdatePrivacy.md +15 -0
- data/docs/BoardWithUpdatePrivacy.md +40 -0
- data/docs/BoardWithUpdatePrivacyUpdate.md +22 -0
- data/docs/BoardsApi.md +147 -86
- data/docs/BoardsList200Response.md +20 -0
- data/docs/BoardsListPins200Response.md +20 -0
- data/docs/BoardsUserFollowsList200Response.md +20 -0
- data/docs/BookClosedResponse.md +20 -0
- data/docs/BrandAccountsCreate200Response.md +18 -0
- data/docs/BrandAccountsCreateRequest.md +28 -0
- data/docs/BrandAccountsUpdateRequest.md +28 -0
- data/docs/BudgetType.md +15 -0
- data/docs/BulkApi.md +230 -0
- data/docs/BulkDownloadRequest.md +26 -0
- data/docs/BulkDownloadRequestCampaignFilter.md +26 -0
- data/docs/BulkDownloadResponse.md +18 -0
- data/docs/BulkEntityType.md +15 -0
- data/docs/BulkOutputFormat.md +15 -0
- data/docs/BulkReportingJobStatus.md +15 -0
- data/docs/BulkUpsertRequest.md +20 -0
- data/docs/BulkUpsertRequestCreate.md +30 -0
- data/docs/BulkUpsertRequestUpdate.md +30 -0
- data/docs/BulkUpsertResponse.md +18 -0
- data/docs/BulkUpsertStatus.md +15 -0
- data/docs/BulkUpsertStatusResponse.md +20 -0
- data/docs/BusinessAccessAssetsApi.md +925 -0
- data/docs/BusinessAccessError.md +20 -0
- data/docs/BusinessAccessInviteApi.md +447 -0
- data/docs/BusinessAccessRelationshipsApi.md +686 -0
- data/docs/BusinessAccessRole.md +15 -0
- data/docs/BusinessAccessUserSummary.md +22 -0
- data/docs/BusinessAssetMembersGet200Response.md +20 -0
- data/docs/BusinessAssetPartnersGet200Response.md +20 -0
- data/docs/BusinessAssetsGet200Response.md +20 -0
- data/docs/BusinessMemberAssetsGet200Response.md +20 -0
- data/docs/BusinessMemberAssetsSummary.md +20 -0
- data/docs/BusinessMemberAssetsSummaryAdAccountsInner.md +20 -0
- data/docs/BusinessMemberAssetsSummaryProfilesInner.md +20 -0
- data/docs/BusinessMembersAssetAccessDeleteRequest.md +18 -0
- data/docs/BusinessMembersAssetAccessDeleteRequestAccessesInner.md +20 -0
- data/docs/BusinessPartnerAssetAccessGet200Response.md +20 -0
- data/docs/BusinessRole.md +15 -0
- data/docs/BusinessRoleCheckMode.md +15 -0
- data/docs/BusinessRoleForMembers.md +15 -0
- data/docs/BusinessSharedAudience.md +22 -0
- data/docs/BusinessSharedAudienceResponse.md +22 -0
- data/docs/CampaignAudienceMultipliers.md +18 -0
- data/docs/CampaignBidOptions.md +22 -0
- data/docs/CampaignBidOptionsCreate.md +22 -0
- data/docs/CampaignBidOptionsUpdate.md +24 -0
- data/docs/CampaignCommon.md +15 -11
- data/docs/CampaignCreateCommon.md +42 -0
- data/docs/CampaignCreateRequest.md +48 -0
- data/docs/CampaignCreateResponse.md +18 -0
- data/docs/CampaignCreateResponseData.md +58 -0
- data/docs/CampaignCreateResponseItem.md +20 -0
- data/docs/{CampaignResponseAllOf.md → CampaignId.md} +3 -3
- data/docs/CampaignIdFilter.md +18 -0
- data/docs/CampaignObjectivesFilter.md +18 -0
- data/docs/CampaignResponse.md +29 -17
- data/docs/CampaignUpdateRequest.md +50 -0
- data/docs/CampaignUpdateResponse.md +18 -0
- data/docs/CampaignsAnalyticsResponseInner.md +20 -0
- data/docs/CampaignsApi.md +602 -0
- data/docs/CampaignsList200Response.md +20 -0
- data/docs/CancelInvitesBody.md +18 -0
- data/docs/CarouselSlot.md +22 -0
- data/docs/Catalog.md +26 -0
- data/docs/CatalogFeedsApi.md +631 -0
- data/docs/CatalogItemsApi.md +235 -0
- data/docs/CatalogProductGroupsApi.md +767 -0
- data/docs/CatalogReportsApi.md +233 -0
- data/docs/CatalogsApi.md +65 -767
- data/docs/CatalogsAvailableFilterValues.md +82 -0
- data/docs/CatalogsCreateCreativeAssetsItem.md +22 -0
- data/docs/CatalogsCreateHotelItem.md +22 -0
- data/docs/CatalogsCreateReportResponse.md +18 -0
- data/docs/CatalogsCreateRequest.md +20 -0
- data/docs/CatalogsCreateRetailItem.md +22 -0
- data/docs/CatalogsCreativeAssetsAttributes.md +44 -0
- data/docs/CatalogsCreativeAssetsAvailableFilterValues.md +20 -0
- data/docs/CatalogsCreativeAssetsBatchItem.md +22 -0
- data/docs/CatalogsCreativeAssetsBatchRequest.md +26 -0
- data/docs/CatalogsCreativeAssetsFeed.md +44 -0
- data/docs/CatalogsCreativeAssetsFeedsCreateRequest.md +38 -0
- data/docs/CatalogsCreativeAssetsFeedsUpdateRequest.md +32 -0
- data/docs/CatalogsCreativeAssetsFilterValuesMap.md +42 -0
- data/docs/CatalogsCreativeAssetsItemErrorResponse.md +22 -0
- data/docs/CatalogsCreativeAssetsItemResponse.md +24 -0
- data/docs/CatalogsCreativeAssetsItemsBatch.md +28 -0
- data/docs/CatalogsCreativeAssetsItemsFilter.md +22 -0
- data/docs/CatalogsCreativeAssetsItemsPostFilter.md +22 -0
- data/docs/CatalogsCreativeAssetsListProductsByCatalogBasedFilterRequest.md +22 -0
- data/docs/CatalogsCreativeAssetsProduct.md +22 -0
- data/docs/CatalogsCreativeAssetsProductGroup.md +32 -0
- data/docs/CatalogsCreativeAssetsProductGroupCreateRequest.md +26 -0
- data/docs/CatalogsCreativeAssetsProductGroupFilterKeys.md +46 -0
- data/docs/CatalogsCreativeAssetsProductGroupFilters.md +20 -0
- data/docs/CatalogsCreativeAssetsProductGroupFiltersAllOf.md +18 -0
- data/docs/CatalogsCreativeAssetsProductGroupFiltersAnyOf.md +18 -0
- data/docs/CatalogsCreativeAssetsProductGroupProductCounts.md +22 -0
- data/docs/CatalogsCreativeAssetsProductGroupUpdateRequest.md +24 -0
- data/docs/CatalogsCreativeAssetsProductMetadata.md +20 -0
- data/docs/CatalogsDbItem.md +3 -3
- data/docs/CatalogsDeleteCreativeAssetsItem.md +20 -0
- data/docs/CatalogsDeleteHotelItem.md +20 -0
- data/docs/CatalogsDeleteRetailItem.md +22 -0
- data/docs/CatalogsFeed.md +74 -34
- data/docs/CatalogsFeedIngestion.md +24 -0
- data/docs/CatalogsFeedIngestionDetails.md +3 -1
- data/docs/CatalogsFeedIngestionErrors.md +18 -10
- data/docs/CatalogsFeedIngestionInfo.md +3 -3
- data/docs/CatalogsFeedIngestionWarnings.md +188 -0
- data/docs/CatalogsFeedProcessingResult.md +8 -6
- data/docs/CatalogsFeedProductCounts.md +3 -1
- data/docs/CatalogsFeedValidationErrors.md +56 -58
- data/docs/CatalogsFeedValidationWarnings.md +414 -82
- data/docs/CatalogsFeedVideoCounts.md +22 -0
- data/docs/CatalogsFeedsCreateRequest.md +11 -9
- data/docs/CatalogsFeedsCreateRequestDefaultLocale.md +15 -0
- data/docs/CatalogsFeedsUpdateRequest.md +4 -4
- data/docs/CatalogsHotelAddress.md +26 -0
- data/docs/CatalogsHotelAttributes.md +54 -0
- data/docs/CatalogsHotelAttributesAllOfMainImage.md +20 -0
- data/docs/CatalogsHotelAvailableFilterValues.md +20 -0
- data/docs/CatalogsHotelBatchItem.md +22 -0
- data/docs/CatalogsHotelBatchRequest.md +26 -0
- data/docs/CatalogsHotelFeed.md +42 -0
- data/docs/CatalogsHotelFeedsCreateRequest.md +36 -0
- data/docs/CatalogsHotelFeedsUpdateRequest.md +32 -0
- data/docs/CatalogsHotelFilterValuesMap.md +28 -0
- data/docs/CatalogsHotelGuestRatings.md +24 -0
- data/docs/CatalogsHotelItemErrorResponse.md +22 -0
- data/docs/CatalogsHotelItemResponse.md +24 -0
- data/docs/CatalogsHotelItemsBatch.md +28 -0
- data/docs/CatalogsHotelItemsFilter.md +22 -0
- data/docs/CatalogsHotelItemsPostFilter.md +22 -0
- data/docs/CatalogsHotelListProductsByCatalogBasedFilterRequest.md +22 -0
- data/docs/CatalogsHotelProduct.md +22 -0
- data/docs/CatalogsHotelProductGroup.md +34 -0
- data/docs/CatalogsHotelProductGroupCreateRequest.md +26 -0
- data/docs/CatalogsHotelProductGroupFilterKeys.md +36 -0
- data/docs/CatalogsHotelProductGroupFilters.md +20 -0
- data/docs/CatalogsHotelProductGroupFiltersAllOf.md +18 -0
- data/docs/CatalogsHotelProductGroupFiltersAnyOf.md +18 -0
- data/docs/CatalogsHotelProductGroupProductCounts.md +20 -0
- data/docs/CatalogsHotelProductGroupType.md +15 -0
- data/docs/CatalogsHotelProductGroupUpdateRequest.md +24 -0
- data/docs/CatalogsHotelProductMetadata.md +18 -0
- data/docs/CatalogsHotelReportParameters.md +20 -0
- data/docs/CatalogsHotelReportParametersReport.md +82 -0
- data/docs/CatalogsHotelReportStatsParameters.md +20 -0
- data/docs/CatalogsHotelReportStatsParametersReport.md +79 -0
- data/docs/CatalogsItemValidationDetails.md +20 -0
- data/docs/CatalogsItemValidationErrors.md +62 -0
- data/docs/CatalogsItemValidationIssue.md +15 -0
- data/docs/CatalogsItemValidationIssues.md +24 -0
- data/docs/CatalogsItemValidationWarnings.md +428 -0
- data/docs/CatalogsItems.md +1 -1
- data/docs/CatalogsItemsBatch.md +72 -16
- data/docs/CatalogsItemsBatchRequest.md +78 -14
- data/docs/CatalogsItemsCreateBatchRequest.md +24 -0
- data/docs/CatalogsItemsDeleteBatchRequest.md +24 -0
- data/docs/CatalogsItemsDeleteDiscontinuedBatchRequest.md +24 -0
- data/docs/CatalogsItemsFilters.md +82 -0
- data/docs/CatalogsItemsPostFilters.md +82 -0
- data/docs/CatalogsItemsRequest.md +22 -0
- data/docs/CatalogsItemsUpdateBatchRequest.md +24 -0
- data/docs/CatalogsItemsUpsertBatchRequest.md +24 -0
- data/docs/CatalogsList200Response.md +20 -0
- data/docs/CatalogsListProductsByFeedBasedFilter.md +20 -0
- data/docs/CatalogsListProductsByFilterRequest.md +49 -0
- data/docs/CatalogsLocale.md +15 -0
- data/docs/CatalogsProduct.md +82 -0
- data/docs/CatalogsProductGroupCreateRequest.md +7 -5
- data/docs/CatalogsProductGroupCurrencyCriteria.md +3 -3
- data/docs/CatalogsProductGroupFilterKeys.md +24 -8
- data/docs/CatalogsProductGroupFilterOperatorTypeCriteria.md +22 -0
- data/docs/CatalogsProductGroupFilters.md +2 -2
- data/docs/CatalogsProductGroupFiltersAllOf.md +1 -1
- data/docs/CatalogsProductGroupFiltersAnyOf.md +1 -1
- data/docs/CatalogsProductGroupFiltersRequest.md +20 -0
- data/docs/CatalogsProductGroupMultipleCountriesCriteria.md +20 -0
- data/docs/CatalogsProductGroupMultipleGenderCriteria.md +20 -0
- data/docs/CatalogsProductGroupMultipleMediaTypesCriteria.md +20 -0
- data/docs/CatalogsProductGroupMultipleStringCriteria.md +3 -3
- data/docs/CatalogsProductGroupMultipleStringListCriteria.md +3 -3
- data/docs/CatalogsProductGroupPinsList200Response.md +20 -0
- data/docs/CatalogsProductGroupPricingCriteria.md +4 -4
- data/docs/CatalogsProductGroupPricingCurrencyCriteria.md +24 -0
- data/docs/CatalogsProductGroupProductCountsVertical.md +82 -0
- data/docs/CatalogsProductGroupUint32Criteria.md +22 -0
- data/docs/CatalogsProductGroupUpdateRequest.md +6 -6
- data/docs/CatalogsProductGroupsList200Response.md +20 -0
- data/docs/CatalogsProductGroupsUpdateRequest.md +49 -0
- data/docs/CatalogsReport.md +22 -0
- data/docs/CatalogsReportAllItemsFilter.md +20 -0
- data/docs/CatalogsReportDistributionIssueFilter.md +20 -0
- data/docs/CatalogsReportDistributionStats.md +32 -0
- data/docs/CatalogsReportFeedIngestionFilter.md +22 -0
- data/docs/CatalogsReportFeedIngestionStats.md +30 -0
- data/docs/CatalogsReportParameters.md +79 -0
- data/docs/CatalogsReportStats.md +79 -0
- data/docs/CatalogsRetailAvailableFilterValues.md +20 -0
- data/docs/CatalogsRetailBatchRequest.md +26 -0
- data/docs/CatalogsRetailBatchRequestItemsInner.md +26 -0
- data/docs/{FeedFields.md → CatalogsRetailFeed.md} +18 -10
- data/docs/CatalogsRetailFeedsCreateRequest.md +40 -0
- data/docs/CatalogsRetailFeedsUpdateRequest.md +34 -0
- data/docs/CatalogsRetailFilterValuesMap.md +64 -0
- data/docs/CatalogsRetailItemErrorResponse.md +22 -0
- data/docs/CatalogsRetailItemResponse.md +24 -0
- data/docs/CatalogsRetailItemsBatch.md +28 -0
- data/docs/CatalogsRetailItemsFilter.md +22 -0
- data/docs/CatalogsRetailItemsPostFilter.md +22 -0
- data/docs/CatalogsRetailListProductsByCatalogBasedFilterRequest.md +26 -0
- data/docs/CatalogsRetailProduct.md +22 -0
- data/docs/{CatalogsProductGroup.md → CatalogsRetailProductGroup.md} +22 -12
- data/docs/CatalogsRetailProductGroupCreateRequest.md +30 -0
- data/docs/CatalogsRetailProductGroupProductCounts.md +28 -0
- data/docs/CatalogsRetailProductGroupUpdateRequest.md +28 -0
- data/docs/CatalogsRetailProductMetadata.md +28 -0
- data/docs/CatalogsRetailReportParameters.md +20 -0
- data/docs/CatalogsRetailReportStatsParameters.md +20 -0
- data/docs/CatalogsType.md +15 -0
- data/docs/CatalogsUpdatableCreativeAssetsAttributes.md +40 -0
- data/docs/CatalogsUpdatableHotelAttributes.md +50 -0
- data/docs/CatalogsUpdateCreativeAssetsItem.md +22 -0
- data/docs/CatalogsUpdateHotelItem.md +22 -0
- data/docs/CatalogsUpdateRetailItem.md +24 -0
- data/docs/CatalogsUpsertCreativeAssetsItem.md +22 -0
- data/docs/CatalogsUpsertHotelItem.md +22 -0
- data/docs/CatalogsUpsertRetailItem.md +22 -0
- data/docs/CatalogsVerticalBatchRequest.md +82 -0
- data/docs/CatalogsVerticalFeedsCreateRequest.md +82 -0
- data/docs/CatalogsVerticalFeedsUpdateRequest.md +82 -0
- data/docs/CatalogsVerticalProductGroup.md +82 -0
- data/docs/CatalogsVerticalProductGroupCreateRequest.md +82 -0
- data/docs/CatalogsVerticalProductGroupUpdateRequest.md +82 -0
- data/docs/CatalogsVerticalsListProductsByCatalogBasedFilterRequest.md +82 -0
- data/docs/ContentType.md +15 -0
- data/docs/ConversionAccessTokenResponse.md +20 -0
- data/docs/ConversionApiResponse.md +22 -0
- data/docs/ConversionApiResponseEventsInner.md +22 -0
- data/docs/ConversionEqsApi.md +88 -0
- data/docs/ConversionEventAppInfo.md +34 -0
- data/docs/ConversionEventDeviceInfo.md +64 -0
- data/docs/ConversionEventResponse.md +24 -0
- data/docs/ConversionEvents.md +18 -0
- data/docs/ConversionEventsApi.md +86 -0
- data/docs/ConversionEventsDataInner.md +58 -0
- data/docs/ConversionEventsDataInnerCustomData.md +46 -0
- data/docs/ConversionEventsDataInnerCustomDataContentsInner.md +28 -0
- data/docs/ConversionEventsUserData.md +48 -0
- data/docs/ConversionEventsUserDataProperties.md +48 -0
- data/docs/ConversionHealthSelectionItem.md +24 -0
- data/docs/ConversionMSOTEvents.md +42 -0
- data/docs/ConversionProductReportRequest.md +46 -0
- data/docs/ConversionProductReportingColumn.md +15 -0
- data/docs/ConversionTag.md +34 -0
- data/docs/ConversionTagCommon.md +30 -0
- data/docs/ConversionTagConfigs.md +34 -0
- data/docs/ConversionTagCreate.md +34 -0
- data/docs/ConversionTagListResponse.md +18 -0
- data/docs/ConversionTagResponse.md +34 -0
- data/docs/ConversionTagType.md +15 -0
- data/docs/ConversionTagsApi.md +385 -0
- data/docs/ConversionTagsList200Response.md +18 -0
- data/docs/ConversionsApi.md +80 -0
- data/docs/CountryFilter.md +18 -0
- data/docs/CreateAssetAccessRequestBody.md +18 -0
- data/docs/CreateAssetAccessRequestBodyAssetRequestsInner.md +20 -0
- data/docs/CreateAssetAccessRequestErrorMessageInner.md +20 -0
- data/docs/CreateAssetAccessRequestResponse.md +20 -0
- data/docs/CreateAssetGroupBody.md +22 -0
- data/docs/CreateAssetGroupResponse.md +18 -0
- data/docs/CreateAssetInvitesRequest.md +18 -0
- data/docs/CreateAssetInvitesRequestItem.md +22 -0
- data/docs/CreateInvitesResultsResponseArray.md +18 -0
- data/docs/CreateInvitesResultsResponseArrayItemsInner.md +20 -0
- data/docs/CreateInvitesResultsResponseArrayItemsInnerInvite.md +20 -0
- data/docs/CreateMMMReportRequest.md +32 -0
- data/docs/CreateMMMReportResponse.md +20 -0
- data/docs/CreateMMMReportResponseData.md +24 -0
- data/docs/CreateMembershipOrPartnershipInvitesBody.md +24 -0
- data/docs/CreativeAssetsIdFilter.md +18 -0
- data/docs/CreativeAssetsProcessingRecord.md +24 -0
- data/docs/CreativeAssetsVisibilityType.md +15 -0
- data/docs/CreativeType.md +15 -0
- data/docs/CustomLabel0Filter.md +1 -1
- data/docs/CustomLabel1Filter.md +1 -1
- data/docs/CustomLabel2Filter.md +1 -1
- data/docs/CustomLabel3Filter.md +1 -1
- data/docs/CustomLabel4Filter.md +1 -1
- data/docs/CustomNumber0Filter.md +18 -0
- data/docs/CustomNumber1Filter.md +18 -0
- data/docs/CustomNumber2Filter.md +18 -0
- data/docs/CustomNumber3Filter.md +18 -0
- data/docs/CustomNumber4Filter.md +18 -0
- data/docs/CustomerList.md +38 -0
- data/docs/CustomerListRequest.md +22 -0
- data/docs/CustomerListUpdateRequest.md +20 -0
- data/docs/CustomerListUpload.md +34 -0
- data/docs/CustomerListUploadCreateRequest.md +20 -0
- data/docs/CustomerListUploadCreateResponse.md +20 -0
- data/docs/CustomerListUploadResponse.md +34 -0
- data/docs/CustomerListUploadsApi.md +229 -0
- data/docs/CustomerListsApi.md +306 -0
- data/docs/CustomerListsList200Response.md +20 -0
- data/docs/CustomizableCTAType.md +15 -0
- data/docs/DataStatus.md +15 -0
- data/docs/DeleteAssetGroupBody.md +18 -0
- data/docs/DeleteAssetGroupResponse.md +20 -0
- data/docs/DeleteAssetGroupResponseExceptionsInner.md +22 -0
- data/docs/DeleteInvitesResultsResponseArray.md +18 -0
- data/docs/DeleteInvitesResultsResponseArrayItemsInner.md +20 -0
- data/docs/DeleteInvitesResultsResponseArrayItemsInnerException.md +20 -0
- data/docs/DeleteMemberAccessResult.md +20 -0
- data/docs/DeleteMemberAccessResultsResponseArray.md +18 -0
- data/docs/DeletePartnerAssetAccessBody.md +18 -0
- data/docs/DeletePartnerAssetAccessBodyAccessesInner.md +22 -0
- data/docs/DeletePartnerAssetsResult.md +26 -0
- data/docs/DeletePartnerAssetsResultsResponseArray.md +18 -0
- data/docs/DeletePartnersRequest.md +20 -0
- data/docs/DeletePartnersResponse.md +18 -0
- data/docs/DeletedMembersResponse.md +18 -0
- data/docs/DeliveryMetricsResponse.md +18 -0
- data/docs/DeliveryMetricsResponseItemsInner.md +24 -0
- data/docs/DetailedError.md +22 -0
- data/docs/DisclosureType.md +15 -0
- data/docs/EnhancedMatchStatusType.md +15 -0
- data/docs/ErrorDetail.md +22 -0
- data/docs/EventData.md +38 -0
- data/docs/EventQualityScore.md +26 -0
- data/docs/Exception.md +20 -0
- data/docs/FeaturedTrend.md +22 -0
- data/docs/FeedProcessingResultsList200Response.md +20 -0
- data/docs/FeedsCreateRequest.md +49 -0
- data/docs/FeedsList200Response.md +20 -0
- data/docs/FeedsUpdateRequest.md +49 -0
- data/docs/FollowUserRequest.md +18 -0
- data/docs/FollowersList200Response.md +20 -0
- data/docs/Gender.md +15 -0
- data/docs/GenderBucket.md +15 -0
- data/docs/GenderDemographics.md +22 -0
- data/docs/GenderFilter.md +1 -1
- data/docs/GetAudiencesOrderBy.md +15 -0
- data/docs/GetBusinessAssetTypeResponse.md +15 -0
- data/docs/GetBusinessAssetsResponse.md +24 -0
- data/docs/GetBusinessAssetsResponseCatalogInfo.md +22 -0
- data/docs/GetBusinessEmployers200Response.md +20 -0
- data/docs/GetBusinessMembers200Response.md +20 -0
- data/docs/GetBusinessPartners200Response.md +20 -0
- data/docs/GetInvites200Response.md +20 -0
- data/docs/GetMMMReportResponse.md +24 -0
- data/docs/GetMMMReportResponseData.md +22 -0
- data/docs/GetPartnerAssetsResponse.md +24 -0
- data/docs/GridClickType.md +15 -0
- data/docs/HotelIdFilter.md +18 -0
- data/docs/HotelProcessingRecord.md +24 -0
- data/docs/ImageBase64.md +20 -0
- data/docs/ImageDetails.md +3 -3
- data/docs/ImageMetadata.md +26 -0
- data/docs/ImageSize.md +24 -0
- data/docs/IngestionSourceOptions.md +15 -0
- data/docs/InnerProductCategoriesMetricsHighlights.md +18 -0
- data/docs/IntegrationLog.md +42 -0
- data/docs/IntegrationLogClientError.md +34 -0
- data/docs/IntegrationLogClientRequest.md +28 -0
- data/docs/IntegrationLogsInvalidLogResponse.md +18 -0
- data/docs/IntegrationLogsInvalidLogResponseRejectedLogsInner.md +24 -0
- data/docs/IntegrationLogsRequest.md +18 -0
- data/docs/IntegrationLogsSuccessResponse.md +18 -0
- data/docs/IntegrationMetadata.md +44 -0
- data/docs/IntegrationRecord.md +50 -0
- data/docs/IntegrationRequest.md +42 -0
- data/docs/IntegrationRequestPatch.md +40 -0
- data/docs/IntegrationsApi.md +502 -0
- data/docs/IntegrationsGetList200Response.md +20 -0
- data/docs/IntegrationsLogsPost400Response.md +22 -0
- data/docs/Interest.md +24 -0
- data/docs/InterestsEnum.md +15 -0
- data/docs/InviteAssetsSummary.md +20 -0
- data/docs/InviteAssetsSummaryAdAccountsInner.md +20 -0
- data/docs/InviteAssetsSummaryProfilesInner.md +20 -0
- data/docs/InviteBusinessRoleBinding.md +28 -0
- data/docs/InviteExceptionResponse.md +24 -0
- data/docs/InviteResponse.md +34 -0
- data/docs/InviteStatus.md +15 -0
- data/docs/InviteType.md +15 -0
- data/docs/ItemAttributes.md +148 -24
- data/docs/ItemAttributesRequest.md +230 -0
- data/docs/ItemAttributesRequestAllOfImageLink.md +49 -0
- data/docs/ItemBatchRecord.md +45 -10
- data/docs/ItemCreateBatchRecord.md +20 -0
- data/docs/ItemDeleteBatchRecord.md +18 -0
- data/docs/ItemDeleteDiscontinuedBatchRecord.md +18 -0
- data/docs/ItemIdFilter.md +1 -1
- data/docs/ItemProcessingRecord.md +5 -5
- data/docs/ItemResponse.md +49 -0
- data/docs/ItemResponseOneOf.md +82 -0
- data/docs/ItemResponseOneOf1.md +82 -0
- data/docs/ItemUpdateBatchRecord.md +22 -0
- data/docs/ItemUpsertBatchRecord.md +20 -0
- data/docs/ItemsBatchPostRequest.md +49 -0
- data/docs/ItemsIssuesList200Response.md +20 -0
- data/docs/Keyword.md +32 -0
- data/docs/KeywordError.md +20 -0
- data/docs/KeywordMetrics.md +18 -0
- data/docs/KeywordMetricsResponse.md +20 -0
- data/docs/KeywordUpdate.md +22 -0
- data/docs/KeywordUpdateBody.md +18 -0
- data/docs/KeywordsApi.md +405 -0
- data/docs/KeywordsCommon.md +22 -0
- data/docs/KeywordsGet200Response.md +20 -0
- data/docs/KeywordsMetricsArrayResponse.md +18 -0
- data/docs/KeywordsRequest.md +20 -0
- data/docs/KeywordsResponse.md +20 -0
- data/docs/Label.md +28 -0
- data/docs/LabelBulkUpdateRequest.md +22 -0
- data/docs/LabelCreateRequest.md +20 -0
- data/docs/LabelCreateRequestLabelsInner.md +20 -0
- data/docs/LabelError.md +20 -0
- data/docs/LabelParentType.md +15 -0
- data/docs/LabelStatus.md +15 -0
- data/docs/LabelType.md +15 -0
- data/docs/LabelUpdateRequest.md +18 -0
- data/docs/LabelUpdateRequestLabelsInner.md +22 -0
- data/docs/LabelsApi.md +235 -0
- data/docs/LabelsList200Response.md +20 -0
- data/docs/LabelsResponse.md +20 -0
- data/docs/LeadAdsApi.md +301 -0
- data/docs/LeadFormArrayResponse.md +18 -0
- data/docs/LeadFormArrayResponseItemsInner.md +20 -0
- data/docs/LeadFormCommon.md +32 -0
- data/docs/LeadFormCommonPolicyLinksInner.md +20 -0
- data/docs/LeadFormCreateRequest.md +32 -0
- data/docs/LeadFormQuestion.md +24 -0
- data/docs/LeadFormQuestionFieldType.md +15 -0
- data/docs/LeadFormQuestionType.md +15 -0
- data/docs/LeadFormResponse.md +40 -0
- data/docs/LeadFormStatus.md +15 -0
- data/docs/LeadFormTestRequest.md +18 -0
- data/docs/LeadFormTestResponse.md +18 -0
- data/docs/LeadFormUpdateRequest.md +34 -0
- data/docs/LeadFormsApi.md +375 -0
- data/docs/LeadFormsList200Response.md +20 -0
- data/docs/LeadSubscription.md +34 -0
- data/docs/LeadSubscriptionPostParamsCreate.md +26 -0
- data/docs/LeadSubscriptionPostParamsCreateAllOfPartnerMetadata.md +18 -0
- data/docs/LeadsExportApi.md +151 -0
- data/docs/LeadsExportCreateRequest.md +22 -0
- data/docs/LeadsExportCreateResponse.md +18 -0
- data/docs/LeadsExportResponseData.md +20 -0
- data/docs/LeadsExportStatus.md +15 -0
- data/docs/LineItem.md +32 -0
- data/docs/LinkedBusiness.md +26 -0
- data/docs/LocalStoreUpdate.md +38 -0
- data/docs/LookbackPeriodOptions.md +15 -0
- data/docs/MMMReportingColumn.md +15 -0
- data/docs/MMMReportingTargetingType.md +15 -0
- data/docs/MatchType.md +15 -0
- data/docs/MatchTypeResponse.md +15 -0
- data/docs/{MediaUploadDetails.md → Media.md} +5 -5
- data/docs/MediaApi.md +21 -21
- data/docs/MediaList200Response.md +20 -0
- data/docs/MediaType.md +15 -0
- data/docs/MediaTypeFilter.md +18 -0
- data/docs/MediaUpload.md +8 -8
- data/docs/{MediaUploadRequest.md → MediaUploadCreate.md} +2 -2
- data/docs/MediaUploadParameters.md +32 -0
- data/docs/MemberBusinessRole.md +15 -0
- data/docs/MembersToDeleteBody.md +18 -0
- data/docs/MembersToDeleteBodyMembersInner.md +20 -0
- data/docs/MetricsResponse.md +18 -0
- data/docs/MsotEventsApi.md +78 -0
- data/docs/MultipleProductGroupsInner.md +49 -0
- data/docs/NonDraftEntityStatus.md +15 -0
- data/docs/NonNullableProductAvailabilityType.md +15 -0
- data/docs/NotificationApi.md +80 -0
- data/docs/NotificationPostRequest.md +49 -0
- data/docs/NotificationResponse.md +22 -0
- data/docs/NullableCatalogsItemFieldType.md +15 -0
- data/docs/{OauthAccessTokenRequest.md → OauthAccessTokenRequestClientCredentials.md} +4 -2
- data/docs/OauthAccessTokenRequestCode.md +3 -1
- data/docs/OauthAccessTokenRequestRefresh.md +3 -1
- data/docs/OauthAccessTokenResponse.md +5 -5
- data/docs/OauthAccessTokenResponseClientCredentials.md +26 -0
- data/docs/OauthAccessTokenResponseCode.md +15 -3
- data/docs/OauthAccessTokenResponseIntegrationRefresh.md +30 -0
- data/docs/OauthAccessTokenResponseRefresh.md +18 -1
- data/docs/OauthApi.md +149 -2
- data/docs/OperationType.md +15 -0
- data/docs/OptimizationGoalMetadata.md +22 -0
- data/docs/OptimizationGoalMetadataConversionTagV3GoalMetadata.md +30 -0
- data/docs/OptimizationGoalMetadataConversionTagV3GoalMetadataAttributionWindows.md +22 -0
- data/docs/OptimizationGoalMetadataFrequencyGoalMetadata.md +20 -0
- data/docs/OptimizationGoalMetadataScrollupGoalMetadata.md +18 -0
- data/docs/OrderLine.md +40 -0
- data/docs/OrderLineError.md +20 -0
- data/docs/OrderLinePaidType.md +15 -0
- data/docs/OrderLineResponse.md +20 -0
- data/docs/OrderLineSingleResponse.md +18 -0
- data/docs/OrderLineStatus.md +15 -0
- data/docs/OrderLines.md +38 -0
- data/docs/OrderLinesApi.md +157 -0
- data/docs/OrderLinesArrayResponse.md +18 -0
- data/docs/OrderLinesList200Response.md +20 -0
- data/docs/OverallStatusOptions.md +15 -0
- data/docs/PageVisitConversionTagsGet200Response.md +20 -0
- data/docs/Paginated.md +3 -3
- data/docs/PartnerType.md +15 -0
- data/docs/Permissions.md +15 -0
- data/docs/PermissionsWithOwner.md +15 -0
- data/docs/Pin.md +26 -14
- data/docs/PinAnalyticsMetricsResponse.md +22 -0
- data/docs/PinAnalyticsMetricsResponseDailyMetricsInner.md +22 -0
- data/docs/PinCreate.md +36 -0
- data/docs/PinMedia.md +78 -8
- data/docs/PinMediaMetadata.md +36 -0
- data/docs/PinMediaSource.md +10 -0
- data/docs/PinMediaSourceImageBase64.md +6 -4
- data/docs/PinMediaSourceImageURL.md +3 -1
- data/docs/PinMediaSourceImagesBase64.md +22 -0
- data/docs/PinMediaSourceImagesBase64Item.md +26 -0
- data/docs/PinMediaSourceImagesURL.md +22 -0
- data/docs/PinMediaSourceImagesURLItem.md +24 -0
- data/docs/PinMediaSourcePinURL.md +20 -0
- data/docs/PinMediaSourceVideoID.md +12 -4
- data/docs/PinMediaWithImage.md +4 -2
- data/docs/PinMediaWithImageAndVideo.md +20 -0
- data/docs/PinMediaWithImages.md +20 -0
- data/docs/PinMediaWithVideo.md +30 -0
- data/docs/PinMediaWithVideos.md +20 -0
- data/docs/PinUpdate.md +30 -0
- data/docs/PinsApi.md +383 -32
- data/docs/PinsList200Response.md +20 -0
- data/docs/PinsSaveRequest.md +20 -0
- data/docs/PinterestLibError.md +20 -0
- data/docs/PinterestLibPaginationOrder.md +15 -0
- data/docs/PinterestLibStatus204.md +18 -0
- data/docs/PlacementMultipliers.md +18 -0
- data/docs/PredictedTimeSeries.md +18 -0
- data/docs/PriceFilter.md +18 -0
- data/docs/ProductCategoriesApi.md +248 -0
- data/docs/ProductCategoriesDemographic.md +20 -0
- data/docs/ProductCategoriesEngagementType.md +15 -0
- data/docs/ProductCategoriesMetricsHighlights.md +22 -0
- data/docs/ProductCategoryDetailLookbackWindow.md +15 -0
- data/docs/ProductCategoryDetails.md +30 -0
- data/docs/ProductCategoryEnum.md +15 -0
- data/docs/ProductCategoryRegion.md +15 -0
- data/docs/ProductGroupAnalyticsResponseInner.md +20 -0
- data/docs/ProductGroupPromotion.md +64 -0
- data/docs/ProductGroupPromotionCreateRequest.md +20 -0
- data/docs/ProductGroupPromotionResponse.md +18 -0
- data/docs/ProductGroupPromotionResponseItem.md +20 -0
- data/docs/ProductGroupPromotionUpdateRequest.md +20 -0
- data/docs/ProductGroupPromotionsApi.md +402 -0
- data/docs/ProductGroupPromotionsList200Response.md +20 -0
- data/docs/ProductGroupReferenceFilter.md +18 -0
- data/docs/PromotionArrayElement.md +20 -0
- data/docs/PromotionCommon.md +36 -0
- data/docs/PromotionCreateRequest.md +36 -0
- data/docs/PromotionResponse.md +42 -0
- data/docs/PromotionTemplateValue.md +24 -0
- data/docs/PromotionType.md +15 -0
- data/docs/PromotionUpdateRequest.md +40 -0
- data/docs/PromotionsApi.md +372 -0
- data/docs/PromotionsList200Response.md +20 -0
- data/docs/PromotionsResponse.md +18 -0
- data/docs/QualityComponentDetails.md +22 -0
- data/docs/QualityComponentIssue.md +22 -0
- data/docs/QualityComponents.md +38 -0
- data/docs/QuizPinData.md +24 -0
- data/docs/QuizPinOption.md +20 -0
- data/docs/QuizPinQuestion.md +22 -0
- data/docs/QuizPinResult.md +26 -0
- data/docs/RecordCounts.md +22 -0
- data/docs/RelatedTerms.md +22 -0
- data/docs/RelatedTermsRelatedTermsListInner.md +20 -0
- data/docs/ReportingTimeZone.md +15 -0
- data/docs/ReportsStats200Response.md +20 -0
- data/docs/ReportsStatsParametersParameter.md +79 -0
- data/docs/ResourcesApi.md +444 -0
- data/docs/RespondToInvitesResponseArray.md +18 -0
- data/docs/RespondToInvitesResponseArrayItemsInner.md +20 -0
- data/docs/Role.md +15 -0
- data/docs/S3FilePart.md +20 -0
- data/docs/S3MultipartUploadData.md +18 -0
- data/docs/SSIOAccountAddress.md +24 -0
- data/docs/SSIOAccountItem.md +35 -0
- data/docs/SSIOAccountPMPName.md +20 -0
- data/docs/SSIOAccountResponse.md +28 -0
- data/docs/SSIOCreateInsertionOrderRequest.md +60 -0
- data/docs/SSIOCreateInsertionOrderResponse.md +18 -0
- data/docs/SSIOEditInsertionOrderRequest.md +48 -0
- data/docs/SSIOEditInsertionOrderResponse.md +18 -0
- data/docs/SSIOInsertionOrderCommon.md +40 -0
- data/docs/SSIOInsertionOrderStatus.md +22 -0
- data/docs/SSIOInsertionOrderStatusResponse.md +22 -0
- data/docs/SSIOOrderLine.md +60 -0
- data/docs/SearchApi.md +244 -0
- data/docs/SearchPartnerPins200Response.md +20 -0
- data/docs/SearchUserBoardsGet200Response.md +20 -0
- data/docs/SearchUserPinsList200Response.md +20 -0
- data/docs/SharedAudience.md +22 -0
- data/docs/SharedAudienceAccount.md +24 -0
- data/docs/SharedAudienceCommon.md +20 -0
- data/docs/SharedAudienceResponse.md +22 -0
- data/docs/SharedAudienceResponseCommon.md +20 -0
- data/docs/SingleInterestTargetingOptionResponse.md +24 -0
- data/docs/SourcePlatformOptions.md +15 -0
- data/docs/SsioInsertionOrdersStatusGetByAdAccount200Response.md +20 -0
- data/docs/SsioOrderLinesGetByAdAccount200Response.md +20 -0
- data/docs/SummaryPin.md +28 -0
- data/docs/SystemUserUpdateRequest.md +18 -0
- data/docs/TargetingAdvertiserCountry.md +15 -0
- data/docs/TargetingSpec.md +42 -0
- data/docs/TargetingSpecAgeBucket.md +15 -0
- data/docs/TargetingSpecAppType.md +15 -0
- data/docs/TargetingSpecGender.md +15 -0
- data/docs/TargetingSpecOperationAgeBucket.md +22 -0
- data/docs/TargetingSpecOperationAppType.md +22 -0
- data/docs/TargetingSpecOperationGender.md +22 -0
- data/docs/TargetingSpecOperationList.md +22 -0
- data/docs/TargetingSpecOperationMinMaxAge.md +22 -0
- data/docs/TargetingSpecOperationShoppingRetargeting.md +22 -0
- data/docs/TargetingSpecOperationString.md +22 -0
- data/docs/TargetingSpecShoppingRetargeting.md +22 -0
- data/docs/TargetingTemplateApi.md +235 -0
- data/docs/TargetingTemplateAudienceSizing.md +18 -0
- data/docs/TargetingTemplateAudienceSizingReachEstimate.md +22 -0
- data/docs/TargetingTemplateCommon.md +28 -0
- data/docs/TargetingTemplateCreate.md +28 -0
- data/docs/TargetingTemplateGetResponseData.md +42 -0
- data/docs/TargetingTemplateKeyword.md +20 -0
- data/docs/TargetingTemplateList200Response.md +20 -0
- data/docs/TargetingTemplateResponseData.md +40 -0
- data/docs/TargetingTemplateUpdateRequest.md +22 -0
- data/docs/TargetingTypeFilter.md +1 -1
- data/docs/TemplateBasedReport.md +24 -0
- data/docs/TemplateResponse.md +66 -0
- data/docs/TemplateResponseDateRange.md +22 -0
- data/docs/TemplateResponseDateRangeAbsoluteDateRange.md +22 -0
- data/docs/TemplateResponseDateRangeDynamicDateRange.md +20 -0
- data/docs/TemplateResponseDateRangeRelativeDateRange.md +22 -0
- data/docs/TemplatesList200Response.md +20 -0
- data/docs/TermsApi.md +151 -0
- data/docs/TermsOfService.md +24 -0
- data/docs/TermsOfServiceApi.md +83 -0
- data/docs/TimeSeries.md +18 -0
- data/docs/TitleKeywordsFilter.md +18 -0
- data/docs/TopPinsAnalyticsResponse.md +22 -0
- data/docs/TopPinsAnalyticsResponseDateAvailability.md +20 -0
- data/docs/TopPinsAnalyticsResponsePinsInner.md +22 -0
- data/docs/TopVideoPinsAnalyticsResponse.md +22 -0
- data/docs/TopVideoPinsAnalyticsResponsePinsInner.md +22 -0
- data/docs/TrackingUrls.md +6 -6
- data/docs/TrendType.md +15 -0
- data/docs/TrendingKeyword.md +32 -0
- data/docs/TrendingKeywordDemographics.md +20 -0
- data/docs/TrendingKeywordDemographicsAgeDistribution.md +18 -0
- data/docs/TrendingKeywordDemographicsGenderDistribution.md +18 -0
- data/docs/TrendingKeywordsResponse.md +18 -0
- data/docs/TrendingPin.md +24 -0
- data/docs/TrendingProductCategory.md +26 -0
- data/docs/TrendingTopic.md +30 -0
- data/docs/TrendsSupportedRegion.md +15 -0
- data/docs/UpdatableItemAttributes.md +222 -0
- data/docs/UpdatableItemAttributesGtin.md +49 -0
- data/docs/UpdateAssetGroupBody.md +18 -0
- data/docs/UpdateAssetGroupBodyAssetGroupsToUpdateInner.md +28 -0
- data/docs/UpdateAssetGroupResponse.md +20 -0
- data/docs/UpdateAssetGroupResponseExceptionsInner.md +22 -0
- data/docs/UpdateInvitesResultsResponseArray.md +18 -0
- data/docs/UpdateInvitesResultsResponseArrayItemsInner.md +20 -0
- data/docs/UpdateMaskBidOptionField.md +15 -0
- data/docs/UpdateMaskFieldType.md +15 -0
- data/docs/UpdateMemberAssetAccessBody.md +18 -0
- data/docs/UpdateMemberAssetAccessBodyAccessesInner.md +22 -0
- data/docs/UpdateMemberAssetsResultsResponseArray.md +18 -0
- data/docs/UpdateMemberAssetsResultsResponseArrayItemsInner.md +18 -0
- data/docs/UpdateMemberBusinessRoleBody.md +20 -0
- data/docs/UpdateMemberResult.md +20 -0
- data/docs/UpdateMemberResultsResponseArray.md +18 -0
- data/docs/UpdatePartnerAssetAccessBody.md +18 -0
- data/docs/UpdatePartnerAssetAccessBodyAccessesInner.md +22 -0
- data/docs/UpdatePartnerAssetsResult.md +24 -0
- data/docs/UpdatePartnerAssetsResultsResponseArray.md +18 -0
- data/docs/UpdatePartnerResultsResponseArray.md +18 -0
- data/docs/UpdatePartnerResultsResponseArrayItemsInner.md +20 -0
- data/docs/UserAccountApi.md +986 -31
- data/docs/UserAccountFollowedInterests200Response.md +20 -0
- data/docs/UserBusinessRoleBinding.md +32 -0
- data/docs/UserFollowingFeedType.md +15 -0
- data/docs/UserFollowingGet200Response.md +20 -0
- data/docs/UserListOperationType.md +15 -0
- data/docs/UserListType.md +15 -0
- data/docs/UserSingleAssetBinding.md +20 -0
- data/docs/UserSummary.md +20 -0
- data/docs/UserWebsiteSummary.md +22 -0
- data/docs/UserWebsiteVerificationCode.md +26 -0
- data/docs/UserWebsiteVerifyRequest.md +20 -0
- data/docs/UserWebsitesGet200Response.md +20 -0
- data/docs/UsersForIndividualAssetResponse.md +22 -0
- data/docs/VerticalProductCategory.md +15 -0
- data/docs/VideoMetadataWithItemType.md +28 -0
- data/git_push.sh +2 -2
- data/lib/pinterest_sdk/api/ad_accounts_api.rb +618 -643
- data/lib/pinterest_sdk/api/ad_groups_api.rb +899 -0
- data/lib/pinterest_sdk/api/ads_api.rb +839 -0
- data/lib/pinterest_sdk/api/advanced_auction_api.rb +182 -0
- data/lib/pinterest_sdk/api/audience_insights_api.rb +173 -0
- data/lib/pinterest_sdk/api/audience_sharing_api.rb +681 -0
- data/lib/pinterest_sdk/api/audiences_api.rb +390 -0
- data/lib/pinterest_sdk/api/billing_api.rb +992 -0
- data/lib/pinterest_sdk/api/boards_api.rb +239 -105
- data/lib/pinterest_sdk/api/bulk_api.rb +269 -0
- data/lib/pinterest_sdk/api/business_access_assets_api.rb +1254 -0
- data/lib/pinterest_sdk/api/business_access_invite_api.rb +533 -0
- data/lib/pinterest_sdk/api/business_access_relationships_api.rb +880 -0
- data/lib/pinterest_sdk/api/campaigns_api.rb +878 -0
- data/lib/pinterest_sdk/api/catalog_feeds_api.rb +718 -0
- data/lib/pinterest_sdk/api/catalog_items_api.rb +262 -0
- data/lib/pinterest_sdk/api/catalog_product_groups_api.rb +909 -0
- data/lib/pinterest_sdk/api/catalog_reports_api.rb +268 -0
- data/lib/pinterest_sdk/api/catalogs_api.rb +102 -787
- data/lib/pinterest_sdk/api/conversion_eqs_api.rb +107 -0
- data/lib/pinterest_sdk/api/conversion_events_api.rb +108 -0
- data/lib/pinterest_sdk/api/conversion_tags_api.rb +432 -0
- data/lib/pinterest_sdk/api/conversions_api.rb +94 -0
- data/lib/pinterest_sdk/api/customer_list_uploads_api.rb +324 -0
- data/lib/pinterest_sdk/api/customer_lists_api.rb +383 -0
- data/lib/pinterest_sdk/api/integrations_api.rb +492 -0
- data/lib/pinterest_sdk/api/keywords_api.rb +531 -0
- data/lib/pinterest_sdk/api/labels_api.rb +310 -0
- data/lib/pinterest_sdk/api/lead_ads_api.rb +357 -0
- data/lib/pinterest_sdk/api/lead_forms_api.rb +474 -0
- data/lib/pinterest_sdk/api/leads_export_api.rb +188 -0
- data/lib/pinterest_sdk/api/media_api.rb +33 -33
- data/lib/pinterest_sdk/api/msot_events_api.rb +105 -0
- data/lib/pinterest_sdk/api/notification_api.rb +90 -0
- data/lib/pinterest_sdk/api/oauth_api.rb +141 -8
- data/lib/pinterest_sdk/api/order_lines_api.rb +202 -0
- data/lib/pinterest_sdk/api/pins_api.rb +483 -43
- data/lib/pinterest_sdk/api/product_categories_api.rb +250 -0
- data/lib/pinterest_sdk/api/product_group_promotions_api.rb +544 -0
- data/lib/pinterest_sdk/api/promotions_api.rb +471 -0
- data/lib/pinterest_sdk/api/resources_api.rb +444 -0
- data/lib/pinterest_sdk/api/search_api.rb +275 -0
- data/lib/pinterest_sdk/api/targeting_template_api.rb +287 -0
- data/lib/pinterest_sdk/api/terms_api.rb +161 -0
- data/lib/pinterest_sdk/api/terms_of_service_api.rb +100 -0
- data/lib/pinterest_sdk/api/user_account_api.rb +1110 -30
- data/lib/pinterest_sdk/api_client.rb +34 -27
- data/lib/pinterest_sdk/api_error.rb +4 -3
- data/lib/pinterest_sdk/api_model_base.rb +88 -0
- data/lib/pinterest_sdk/configuration.rb +57 -13
- data/lib/pinterest_sdk/models/account.rb +144 -109
- data/lib/pinterest_sdk/models/action_type.rb +9 -7
- data/lib/pinterest_sdk/models/ad_account.rb +150 -109
- data/lib/pinterest_sdk/models/ad_account_analytics_response_inner.rb +186 -0
- data/lib/pinterest_sdk/models/ad_account_create.rb +239 -0
- data/lib/pinterest_sdk/models/ad_account_create_subscription_request.rb +225 -0
- data/lib/pinterest_sdk/models/ad_account_create_subscription_request_partner_metadata.rb +149 -0
- data/lib/pinterest_sdk/models/ad_account_create_subscription_response.rb +311 -0
- data/lib/pinterest_sdk/models/ad_account_get_subscription_response.rb +311 -0
- data/lib/pinterest_sdk/models/ad_account_owner.rb +36 -97
- data/lib/pinterest_sdk/models/ad_accounts_audiences_shared_accounts_list200_response.rb +183 -0
- data/lib/pinterest_sdk/models/ad_accounts_country_response.rb +149 -0
- data/lib/pinterest_sdk/models/ad_accounts_country_response_data.rb +199 -0
- data/lib/pinterest_sdk/models/ad_accounts_list200_response.rb +176 -0
- data/lib/pinterest_sdk/models/ad_accounts_subscriptions_get_list200_response.rb +176 -0
- data/lib/pinterest_sdk/models/ad_array_response.rb +149 -0
- data/lib/pinterest_sdk/models/ad_array_response_element.rb +156 -0
- data/lib/pinterest_sdk/models/{ad_response_all_of.rb → ad_common.rb} +108 -138
- data/lib/pinterest_sdk/models/ad_country.rb +286 -0
- data/lib/pinterest_sdk/models/ad_create_request.rb +494 -0
- data/lib/pinterest_sdk/models/ad_group_array_response.rb +149 -0
- data/lib/pinterest_sdk/models/ad_group_array_response_element.rb +158 -0
- data/lib/pinterest_sdk/models/ad_group_audience_sizing_request.rb +232 -0
- data/lib/pinterest_sdk/models/ad_group_audience_sizing_request_keywords_inner.rb +199 -0
- data/lib/pinterest_sdk/models/ad_group_audience_sizing_response.rb +158 -0
- data/lib/pinterest_sdk/models/ad_group_common.rb +459 -0
- data/lib/pinterest_sdk/models/ad_group_create_request.rb +548 -0
- data/lib/pinterest_sdk/models/ad_group_id_filter.rb +178 -0
- data/lib/pinterest_sdk/models/ad_group_response.rb +341 -247
- data/lib/pinterest_sdk/models/ad_group_summary_status.rb +11 -6
- data/lib/pinterest_sdk/models/ad_group_update_request.rb +542 -0
- data/lib/pinterest_sdk/models/ad_groups_analytics_response_inner.rb +179 -0
- data/lib/pinterest_sdk/models/ad_groups_list200_response.rb +183 -0
- data/lib/pinterest_sdk/models/ad_pin_analytics.rb +186 -0
- data/lib/pinterest_sdk/models/ad_pin_id.rb +169 -0
- data/lib/pinterest_sdk/models/ad_preview_create_from_image.rb +192 -0
- data/lib/pinterest_sdk/models/ad_preview_create_from_pin.rb +165 -0
- data/lib/pinterest_sdk/models/ad_preview_request.rb +105 -0
- data/lib/pinterest_sdk/models/ad_preview_shopping.rb +341 -0
- data/lib/pinterest_sdk/models/ad_preview_url_response.rb +148 -0
- data/lib/pinterest_sdk/models/ad_response.rb +156 -143
- data/lib/pinterest_sdk/models/ad_update_request.rb +497 -0
- data/lib/pinterest_sdk/models/ads_analytics_ad_group_targeting_type.rb +52 -0
- data/lib/pinterest_sdk/models/ads_analytics_ad_targeting_type.rb +52 -0
- data/lib/pinterest_sdk/models/ads_analytics_campaign_targeting_type.rb +53 -0
- data/lib/pinterest_sdk/models/ads_analytics_create_async_request.rb +416 -261
- data/lib/pinterest_sdk/models/ads_analytics_create_async_request_all_of_custom_conversion_event_metrics.rb +216 -0
- data/lib/pinterest_sdk/models/ads_analytics_create_async_response.rb +61 -110
- data/lib/pinterest_sdk/models/ads_analytics_filter_column.rb +9 -6
- data/lib/pinterest_sdk/models/ads_analytics_filter_operator.rb +9 -6
- data/lib/pinterest_sdk/models/ads_analytics_get_async_response.rb +62 -111
- data/lib/pinterest_sdk/models/ads_analytics_metrics_filter.rb +95 -99
- data/lib/pinterest_sdk/models/ads_analytics_response_inner.rb +186 -0
- data/lib/pinterest_sdk/models/ads_analytics_targeting_type.rb +10 -7
- data/lib/pinterest_sdk/models/ads_credit_discounts_response.rb +268 -0
- data/lib/pinterest_sdk/models/ads_credit_redeem_request.rb +203 -0
- data/lib/pinterest_sdk/models/ads_credit_redeem_response.rb +170 -0
- data/lib/pinterest_sdk/models/ads_credits_discounts_get200_response.rb +183 -0
- data/lib/pinterest_sdk/models/ads_list200_response.rb +183 -0
- data/lib/pinterest_sdk/models/advanced_auction_bid_options.rb +170 -0
- data/lib/pinterest_sdk/models/advanced_auction_item.rb +272 -0
- data/lib/pinterest_sdk/models/advanced_auction_items.rb +182 -0
- data/lib/pinterest_sdk/models/advanced_auction_items_get_record.rb +247 -0
- data/lib/pinterest_sdk/models/advanced_auction_items_get_request.rb +224 -0
- data/lib/pinterest_sdk/models/advanced_auction_items_submit_delete_record.rb +259 -0
- data/lib/pinterest_sdk/models/advanced_auction_items_submit_record.rb +56 -0
- data/lib/pinterest_sdk/models/advanced_auction_items_submit_request.rb +224 -0
- data/lib/pinterest_sdk/models/advanced_auction_items_submit_upsert_record.rb +300 -0
- data/lib/pinterest_sdk/models/advanced_auction_key.rb +240 -0
- data/lib/pinterest_sdk/models/advanced_auction_operation.rb +40 -0
- data/lib/pinterest_sdk/models/advanced_auction_operation_error.rb +159 -0
- data/lib/pinterest_sdk/models/advanced_auction_processed_items.rb +182 -0
- data/lib/pinterest_sdk/models/advertiser_defined_event.rb +193 -0
- data/lib/pinterest_sdk/models/advertiser_defined_events_response.rb +149 -0
- data/lib/pinterest_sdk/models/age_trends_bucket.rb +45 -0
- data/lib/pinterest_sdk/models/all_of.rb +175 -0
- data/lib/pinterest_sdk/models/amazon_connect_request.rb +281 -0
- data/lib/pinterest_sdk/models/analytics_daily_metrics.rb +191 -0
- data/lib/pinterest_sdk/models/analytics_metrics_response.rb +26 -97
- data/lib/pinterest_sdk/models/any_of.rb +175 -0
- data/lib/pinterest_sdk/models/app_type_multipliers.rb +182 -0
- data/lib/pinterest_sdk/models/asset_group_binding.rb +286 -0
- data/lib/pinterest_sdk/models/asset_group_type.rb +42 -0
- data/lib/pinterest_sdk/models/asset_id_permissions.rb +219 -0
- data/lib/pinterest_sdk/models/audience.rb +304 -0
- data/lib/pinterest_sdk/models/audience_account_type.rb +40 -0
- data/lib/pinterest_sdk/models/audience_category.rb +200 -0
- data/lib/pinterest_sdk/models/audience_common.rb +188 -0
- data/lib/pinterest_sdk/models/audience_create_request.rb +288 -0
- data/lib/pinterest_sdk/models/audience_definition.rb +168 -0
- data/lib/pinterest_sdk/models/audience_definition_response.rb +149 -0
- data/lib/pinterest_sdk/models/audience_definition_scope.rb +182 -0
- data/lib/pinterest_sdk/models/audience_definition_type.rb +182 -0
- data/lib/pinterest_sdk/models/audience_demographic_value.rb +169 -0
- data/lib/pinterest_sdk/models/audience_demographics.rb +199 -0
- data/lib/pinterest_sdk/models/audience_insight_category_array_response.rb +149 -0
- data/lib/pinterest_sdk/models/audience_insight_category_common.rb +183 -0
- data/lib/pinterest_sdk/models/audience_insight_type.rb +41 -0
- data/lib/pinterest_sdk/models/audience_insights_response.rb +241 -0
- data/lib/pinterest_sdk/models/audience_rule.rb +415 -0
- data/lib/pinterest_sdk/models/audience_share_type.rb +40 -0
- data/lib/pinterest_sdk/models/audience_subcategory.rb +188 -0
- data/lib/pinterest_sdk/models/audience_type.rb +43 -0
- data/lib/pinterest_sdk/models/audience_update_operation_type.rb +40 -0
- data/lib/pinterest_sdk/models/audience_update_request.rb +238 -0
- data/lib/pinterest_sdk/models/audiences_list200_response.rb +183 -0
- data/lib/pinterest_sdk/models/auth_respond_invites_body.rb +185 -0
- data/lib/pinterest_sdk/models/auth_respond_invites_body_invites_inner.rb +220 -0
- data/lib/pinterest_sdk/models/auth_respond_invites_body_invites_inner_action.rb +196 -0
- data/lib/pinterest_sdk/models/availability_filter.rb +37 -96
- data/lib/pinterest_sdk/models/base_invite_data_response.rb +198 -0
- data/lib/pinterest_sdk/models/base_invite_data_response_invite_data.rb +189 -0
- data/lib/pinterest_sdk/models/batch_operation.rb +12 -7
- data/lib/pinterest_sdk/models/batch_operation_status.rb +10 -6
- data/lib/pinterest_sdk/models/bid_floor.rb +162 -0
- data/lib/pinterest_sdk/models/bid_floor_request.rb +175 -0
- data/lib/pinterest_sdk/models/bid_floor_spec.rb +250 -0
- data/lib/pinterest_sdk/models/billing_invoice_download_response.rb +158 -0
- data/lib/pinterest_sdk/models/billing_invoice_response.rb +441 -0
- data/lib/pinterest_sdk/models/billing_invoices_get200_response.rb +183 -0
- data/lib/pinterest_sdk/models/billing_profiles_get200_response.rb +183 -0
- data/lib/pinterest_sdk/models/billing_profiles_response.rb +310 -0
- data/lib/pinterest_sdk/models/board.rb +211 -123
- data/lib/pinterest_sdk/models/board_base.rb +350 -0
- data/lib/pinterest_sdk/models/{board_update.rb → board_create.rb} +66 -118
- data/lib/pinterest_sdk/models/board_media.rb +161 -0
- data/lib/pinterest_sdk/models/board_owner.rb +25 -96
- data/lib/pinterest_sdk/models/board_privacy.rb +41 -0
- data/lib/pinterest_sdk/models/board_privacy_filter.rb +43 -0
- data/lib/pinterest_sdk/models/board_section.rb +44 -104
- data/lib/pinterest_sdk/models/board_sections_list200_response.rb +184 -0
- data/lib/pinterest_sdk/models/board_update_privacy.rb +40 -0
- data/lib/pinterest_sdk/models/board_with_update_privacy.rb +388 -0
- data/lib/pinterest_sdk/models/board_with_update_privacy_update.rb +190 -0
- data/lib/pinterest_sdk/models/boards_list200_response.rb +176 -0
- data/lib/pinterest_sdk/models/boards_list_pins200_response.rb +184 -0
- data/lib/pinterest_sdk/models/boards_user_follows_list200_response.rb +183 -0
- data/lib/pinterest_sdk/models/book_closed_response.rb +159 -0
- data/lib/pinterest_sdk/models/brand_accounts_create200_response.rb +148 -0
- data/lib/pinterest_sdk/models/brand_accounts_create_request.rb +269 -0
- data/lib/pinterest_sdk/models/brand_accounts_update_request.rb +218 -0
- data/lib/pinterest_sdk/models/brand_filter.rb +37 -96
- data/lib/pinterest_sdk/models/budget_type.rb +41 -0
- data/lib/pinterest_sdk/models/bulk_download_request.rb +264 -0
- data/lib/pinterest_sdk/models/bulk_download_request_campaign_filter.rb +232 -0
- data/lib/pinterest_sdk/models/bulk_download_response.rb +148 -0
- data/lib/pinterest_sdk/models/bulk_entity_type.rb +45 -0
- data/lib/pinterest_sdk/models/bulk_output_format.rb +40 -0
- data/lib/pinterest_sdk/models/bulk_reporting_job_status.rb +44 -0
- data/lib/pinterest_sdk/models/bulk_upsert_request.rb +157 -0
- data/lib/pinterest_sdk/models/bulk_upsert_request_create.rb +216 -0
- data/lib/pinterest_sdk/models/bulk_upsert_request_update.rb +216 -0
- data/lib/pinterest_sdk/models/bulk_upsert_response.rb +148 -0
- data/lib/pinterest_sdk/models/bulk_upsert_status.rb +41 -0
- data/lib/pinterest_sdk/models/bulk_upsert_status_response.rb +179 -0
- data/lib/pinterest_sdk/models/business_access_error.rb +190 -0
- data/lib/pinterest_sdk/models/business_access_role.rb +55 -0
- data/lib/pinterest_sdk/models/business_access_user_summary.rb +196 -0
- data/lib/pinterest_sdk/models/business_asset_members_get200_response.rb +184 -0
- data/lib/pinterest_sdk/models/business_asset_partners_get200_response.rb +184 -0
- data/lib/pinterest_sdk/models/business_assets_get200_response.rb +184 -0
- data/lib/pinterest_sdk/models/business_member_assets_get200_response.rb +184 -0
- data/lib/pinterest_sdk/models/business_member_assets_summary.rb +163 -0
- data/lib/pinterest_sdk/models/business_member_assets_summary_ad_accounts_inner.rb +199 -0
- data/lib/pinterest_sdk/models/business_member_assets_summary_profiles_inner.rb +199 -0
- data/lib/pinterest_sdk/models/business_members_asset_access_delete_request.rb +185 -0
- data/lib/pinterest_sdk/models/business_members_asset_access_delete_request_accesses_inner.rb +232 -0
- data/lib/pinterest_sdk/models/business_partner_asset_access_get200_response.rb +184 -0
- data/lib/pinterest_sdk/models/business_role.rb +41 -0
- data/lib/pinterest_sdk/models/business_role_check_mode.rb +40 -0
- data/lib/pinterest_sdk/models/business_role_for_members.rb +40 -0
- data/lib/pinterest_sdk/models/business_shared_audience.rb +260 -0
- data/lib/pinterest_sdk/models/business_shared_audience_response.rb +178 -0
- data/lib/pinterest_sdk/models/campaign_audience_multipliers.rb +169 -0
- data/lib/pinterest_sdk/models/campaign_bid_options.rb +168 -0
- data/lib/pinterest_sdk/models/campaign_bid_options_create.rb +175 -0
- data/lib/pinterest_sdk/models/campaign_bid_options_update.rb +216 -0
- data/lib/pinterest_sdk/models/campaign_common.rb +113 -150
- data/lib/pinterest_sdk/models/campaign_create_common.rb +343 -0
- data/lib/pinterest_sdk/models/campaign_create_request.rb +418 -0
- data/lib/pinterest_sdk/models/campaign_create_response.rb +149 -0
- data/lib/pinterest_sdk/models/campaign_create_response_data.rb +443 -0
- data/lib/pinterest_sdk/models/campaign_create_response_item.rb +158 -0
- data/lib/pinterest_sdk/models/campaign_id.rb +169 -0
- data/lib/pinterest_sdk/models/campaign_id_filter.rb +178 -0
- data/lib/pinterest_sdk/models/campaign_objectives_filter.rb +178 -0
- data/lib/pinterest_sdk/models/campaign_response.rb +173 -176
- data/lib/pinterest_sdk/models/campaign_summary_status.rb +11 -6
- data/lib/pinterest_sdk/models/campaign_update_request.rb +418 -0
- data/lib/pinterest_sdk/models/campaign_update_response.rb +156 -0
- data/lib/pinterest_sdk/models/campaigns_analytics_response_inner.rb +179 -0
- data/lib/pinterest_sdk/models/campaigns_list200_response.rb +183 -0
- data/lib/pinterest_sdk/models/cancel_invites_body.rb +186 -0
- data/lib/pinterest_sdk/models/carousel_slot.rb +168 -0
- data/lib/pinterest_sdk/models/catalog.rb +297 -0
- data/lib/pinterest_sdk/models/catalogs_available_filter_values.rb +58 -0
- data/lib/pinterest_sdk/models/catalogs_create_creative_assets_item.rb +242 -0
- data/lib/pinterest_sdk/models/catalogs_create_hotel_item.rb +242 -0
- data/lib/pinterest_sdk/models/catalogs_create_report_response.rb +148 -0
- data/lib/pinterest_sdk/models/catalogs_create_request.rb +214 -0
- data/lib/pinterest_sdk/models/catalogs_create_retail_item.rb +242 -0
- data/lib/pinterest_sdk/models/catalogs_creative_assets_attributes.rb +294 -0
- data/lib/pinterest_sdk/models/catalogs_creative_assets_available_filter_values.rb +214 -0
- data/lib/pinterest_sdk/models/catalogs_creative_assets_batch_item.rb +106 -0
- data/lib/pinterest_sdk/models/catalogs_creative_assets_batch_request.rb +322 -0
- data/lib/pinterest_sdk/models/catalogs_creative_assets_feed.rb +491 -0
- data/lib/pinterest_sdk/models/catalogs_creative_assets_feeds_create_request.rb +402 -0
- data/lib/pinterest_sdk/models/catalogs_creative_assets_feeds_update_request.rb +276 -0
- data/lib/pinterest_sdk/models/catalogs_creative_assets_filter_values_map.rb +304 -0
- data/lib/pinterest_sdk/models/catalogs_creative_assets_item_error_response.rb +226 -0
- data/lib/pinterest_sdk/models/catalogs_creative_assets_item_response.rb +234 -0
- data/lib/pinterest_sdk/models/catalogs_creative_assets_items_batch.rb +239 -0
- data/lib/pinterest_sdk/models/catalogs_creative_assets_items_filter.rb +265 -0
- data/lib/pinterest_sdk/models/catalogs_creative_assets_items_post_filter.rb +265 -0
- data/lib/pinterest_sdk/models/catalogs_creative_assets_list_products_by_catalog_based_filter_request.rb +253 -0
- data/lib/pinterest_sdk/models/catalogs_creative_assets_product.rb +240 -0
- data/lib/pinterest_sdk/models/{catalogs_product_group.rb → catalogs_creative_assets_product_group.rb} +149 -164
- data/lib/pinterest_sdk/models/catalogs_creative_assets_product_group_create_request.rb +289 -0
- data/lib/pinterest_sdk/models/catalogs_creative_assets_product_group_filter_keys.rb +116 -0
- data/lib/pinterest_sdk/models/catalogs_creative_assets_product_group_filters.rb +104 -0
- data/lib/pinterest_sdk/models/catalogs_creative_assets_product_group_filters_all_of.rb +166 -0
- data/lib/pinterest_sdk/models/catalogs_creative_assets_product_group_filters_any_of.rb +166 -0
- data/lib/pinterest_sdk/models/catalogs_creative_assets_product_group_product_counts.rb +259 -0
- data/lib/pinterest_sdk/models/catalogs_creative_assets_product_group_update_request.rb +210 -0
- data/lib/pinterest_sdk/models/catalogs_creative_assets_product_metadata.rb +214 -0
- data/lib/pinterest_sdk/models/catalogs_db_item.rb +76 -96
- data/lib/pinterest_sdk/models/catalogs_delete_creative_assets_item.rb +216 -0
- data/lib/pinterest_sdk/models/catalogs_delete_hotel_item.rb +216 -0
- data/lib/pinterest_sdk/models/catalogs_delete_retail_item.rb +226 -0
- data/lib/pinterest_sdk/models/catalogs_feed.rb +32 -342
- data/lib/pinterest_sdk/models/catalogs_feed_credentials.rb +50 -97
- data/lib/pinterest_sdk/models/catalogs_feed_ingestion.rb +264 -0
- data/lib/pinterest_sdk/models/catalogs_feed_ingestion_details.rb +79 -100
- data/lib/pinterest_sdk/models/catalogs_feed_ingestion_errors.rb +98 -124
- data/lib/pinterest_sdk/models/catalogs_feed_ingestion_info.rb +31 -99
- data/lib/pinterest_sdk/models/catalogs_feed_ingestion_warnings.rb +998 -0
- data/lib/pinterest_sdk/models/catalogs_feed_processing_result.rb +159 -111
- data/lib/pinterest_sdk/models/catalogs_feed_processing_schedule.rb +32 -99
- data/lib/pinterest_sdk/models/catalogs_feed_processing_status.rb +9 -11
- data/lib/pinterest_sdk/models/catalogs_feed_product_counts.rb +37 -98
- data/lib/pinterest_sdk/models/catalogs_feed_validation_details.rb +49 -96
- data/lib/pinterest_sdk/models/catalogs_feed_validation_errors.rb +231 -278
- data/lib/pinterest_sdk/models/catalogs_feed_validation_warnings.rb +2016 -348
- data/lib/pinterest_sdk/models/catalogs_feed_video_counts.rb +169 -0
- data/lib/pinterest_sdk/models/catalogs_feeds_create_request.rb +147 -139
- data/lib/pinterest_sdk/models/catalogs_feeds_create_request_default_locale.rb +104 -0
- data/lib/pinterest_sdk/models/catalogs_feeds_update_request.rb +89 -117
- data/lib/pinterest_sdk/models/catalogs_format.rb +9 -6
- data/lib/pinterest_sdk/models/catalogs_hotel_address.rb +188 -0
- data/lib/pinterest_sdk/models/catalogs_hotel_attributes.rb +351 -0
- data/lib/pinterest_sdk/models/catalogs_hotel_attributes_all_of_main_image.rb +162 -0
- data/lib/pinterest_sdk/models/catalogs_hotel_available_filter_values.rb +214 -0
- data/lib/pinterest_sdk/models/catalogs_hotel_batch_item.rb +106 -0
- data/lib/pinterest_sdk/models/catalogs_hotel_batch_request.rb +322 -0
- data/lib/pinterest_sdk/models/catalogs_hotel_feed.rb +457 -0
- data/lib/pinterest_sdk/models/catalogs_hotel_feeds_create_request.rb +376 -0
- data/lib/pinterest_sdk/models/catalogs_hotel_feeds_update_request.rb +276 -0
- data/lib/pinterest_sdk/models/catalogs_hotel_filter_values_map.rb +205 -0
- data/lib/pinterest_sdk/models/catalogs_hotel_guest_ratings.rb +183 -0
- data/lib/pinterest_sdk/models/catalogs_hotel_item_error_response.rb +226 -0
- data/lib/pinterest_sdk/models/catalogs_hotel_item_response.rb +234 -0
- data/lib/pinterest_sdk/models/catalogs_hotel_items_batch.rb +239 -0
- data/lib/pinterest_sdk/models/catalogs_hotel_items_filter.rb +265 -0
- data/lib/pinterest_sdk/models/catalogs_hotel_items_post_filter.rb +265 -0
- data/lib/pinterest_sdk/models/catalogs_hotel_list_products_by_catalog_based_filter_request.rb +253 -0
- data/lib/pinterest_sdk/models/catalogs_hotel_product.rb +240 -0
- data/lib/pinterest_sdk/models/catalogs_hotel_product_group.rb +356 -0
- data/lib/pinterest_sdk/models/catalogs_hotel_product_group_create_request.rb +289 -0
- data/lib/pinterest_sdk/models/catalogs_hotel_product_group_filter_keys.rb +111 -0
- data/lib/pinterest_sdk/models/catalogs_hotel_product_group_filters.rb +104 -0
- data/lib/pinterest_sdk/models/catalogs_hotel_product_group_filters_all_of.rb +166 -0
- data/lib/pinterest_sdk/models/catalogs_hotel_product_group_filters_any_of.rb +166 -0
- data/lib/pinterest_sdk/models/catalogs_hotel_product_group_product_counts.rb +224 -0
- data/lib/pinterest_sdk/models/catalogs_hotel_product_group_type.rb +40 -0
- data/lib/pinterest_sdk/models/catalogs_hotel_product_group_update_request.rb +210 -0
- data/lib/pinterest_sdk/models/catalogs_hotel_product_metadata.rb +166 -0
- data/lib/pinterest_sdk/models/catalogs_hotel_report_parameters.rb +215 -0
- data/lib/pinterest_sdk/models/catalogs_hotel_report_parameters_report.rb +57 -0
- data/lib/pinterest_sdk/models/catalogs_hotel_report_stats_parameters.rb +215 -0
- data/lib/pinterest_sdk/models/catalogs_hotel_report_stats_parameters_report.rb +55 -0
- data/lib/pinterest_sdk/models/catalogs_item_validation_details.rb +185 -0
- data/lib/pinterest_sdk/models/catalogs_item_validation_errors.rb +345 -0
- data/lib/pinterest_sdk/models/catalogs_item_validation_issue.rb +267 -0
- data/lib/pinterest_sdk/models/catalogs_item_validation_issues.rb +230 -0
- data/lib/pinterest_sdk/models/catalogs_item_validation_warnings.rb +1992 -0
- data/lib/pinterest_sdk/models/catalogs_items.rb +26 -97
- data/lib/pinterest_sdk/models/catalogs_items_batch.rb +31 -235
- data/lib/pinterest_sdk/models/catalogs_items_batch_request.rb +35 -222
- data/lib/pinterest_sdk/models/catalogs_items_create_batch_request.rb +289 -0
- data/lib/pinterest_sdk/models/catalogs_items_delete_batch_request.rb +271 -0
- data/lib/pinterest_sdk/models/catalogs_items_delete_discontinued_batch_request.rb +271 -0
- data/lib/pinterest_sdk/models/catalogs_items_filters.rb +57 -0
- data/lib/pinterest_sdk/models/catalogs_items_post_filters.rb +57 -0
- data/lib/pinterest_sdk/models/catalogs_items_request.rb +242 -0
- data/lib/pinterest_sdk/models/catalogs_items_update_batch_request.rb +289 -0
- data/lib/pinterest_sdk/models/catalogs_items_upsert_batch_request.rb +289 -0
- data/lib/pinterest_sdk/models/catalogs_list200_response.rb +183 -0
- data/lib/pinterest_sdk/models/catalogs_list_products_by_feed_based_filter.rb +203 -0
- data/lib/pinterest_sdk/models/catalogs_list_products_by_filter_request.rb +105 -0
- data/lib/pinterest_sdk/models/catalogs_locale.rb +84 -0
- data/lib/pinterest_sdk/models/catalogs_product.rb +58 -0
- data/lib/pinterest_sdk/models/catalogs_product_group_create_request.rb +87 -120
- data/lib/pinterest_sdk/models/catalogs_product_group_currency_criteria.rb +74 -113
- data/lib/pinterest_sdk/models/catalogs_product_group_filter_keys.rb +111 -593
- data/lib/pinterest_sdk/models/catalogs_product_group_filter_operator_type_criteria.rb +222 -0
- data/lib/pinterest_sdk/models/catalogs_product_group_filters.rb +75 -223
- data/lib/pinterest_sdk/models/catalogs_product_group_filters_all_of.rb +42 -96
- data/lib/pinterest_sdk/models/catalogs_product_group_filters_any_of.rb +42 -96
- data/lib/pinterest_sdk/models/catalogs_product_group_filters_request.rb +104 -0
- data/lib/pinterest_sdk/models/catalogs_product_group_multiple_countries_criteria.rb +177 -0
- data/lib/pinterest_sdk/models/catalogs_product_group_multiple_gender_criteria.rb +177 -0
- data/lib/pinterest_sdk/models/catalogs_product_group_multiple_media_types_criteria.rb +177 -0
- data/lib/pinterest_sdk/models/catalogs_product_group_multiple_string_criteria.rb +52 -114
- data/lib/pinterest_sdk/models/catalogs_product_group_multiple_string_list_criteria.rb +52 -114
- data/lib/pinterest_sdk/models/catalogs_product_group_pins_list200_response.rb +184 -0
- data/lib/pinterest_sdk/models/catalogs_product_group_pricing_criteria.rb +61 -117
- data/lib/pinterest_sdk/models/catalogs_product_group_pricing_currency_criteria.rb +260 -0
- data/lib/pinterest_sdk/models/catalogs_product_group_product_counts_vertical.rb +58 -0
- data/lib/pinterest_sdk/models/catalogs_product_group_status.rb +9 -6
- data/lib/pinterest_sdk/models/catalogs_product_group_type.rb +11 -6
- data/lib/pinterest_sdk/models/catalogs_product_group_uint32_criteria.rb +243 -0
- data/lib/pinterest_sdk/models/catalogs_product_group_update_request.rb +48 -155
- data/lib/pinterest_sdk/models/catalogs_product_groups_list200_response.rb +183 -0
- data/lib/pinterest_sdk/models/catalogs_product_groups_update_request.rb +104 -0
- data/lib/pinterest_sdk/models/catalogs_report.rb +203 -0
- data/lib/pinterest_sdk/models/catalogs_report_all_items_filter.rb +219 -0
- data/lib/pinterest_sdk/models/catalogs_report_distribution_issue_filter.rb +219 -0
- data/lib/pinterest_sdk/models/catalogs_report_distribution_stats.rb +272 -0
- data/lib/pinterest_sdk/models/catalogs_report_feed_ingestion_filter.rb +257 -0
- data/lib/pinterest_sdk/models/catalogs_report_feed_ingestion_stats.rb +274 -0
- data/lib/pinterest_sdk/models/catalogs_report_parameters.rb +56 -0
- data/lib/pinterest_sdk/models/catalogs_report_stats.rb +56 -0
- data/lib/pinterest_sdk/models/catalogs_retail_available_filter_values.rb +214 -0
- data/lib/pinterest_sdk/models/catalogs_retail_batch_request.rb +322 -0
- data/lib/pinterest_sdk/models/catalogs_retail_batch_request_items_inner.rb +105 -0
- data/lib/pinterest_sdk/models/catalogs_retail_feed.rb +465 -0
- data/lib/pinterest_sdk/models/catalogs_retail_feeds_create_request.rb +412 -0
- data/lib/pinterest_sdk/models/{feed_fields.rb → catalogs_retail_feeds_update_request.rb} +110 -156
- data/lib/pinterest_sdk/models/catalogs_retail_filter_values_map.rb +425 -0
- data/lib/pinterest_sdk/models/catalogs_retail_item_error_response.rb +226 -0
- data/lib/pinterest_sdk/models/catalogs_retail_item_response.rb +234 -0
- data/lib/pinterest_sdk/models/catalogs_retail_items_batch.rb +242 -0
- data/lib/pinterest_sdk/models/catalogs_retail_items_filter.rb +265 -0
- data/lib/pinterest_sdk/models/catalogs_retail_items_post_filter.rb +265 -0
- data/lib/pinterest_sdk/models/catalogs_retail_list_products_by_catalog_based_filter_request.rb +306 -0
- data/lib/pinterest_sdk/models/catalogs_retail_product.rb +240 -0
- data/lib/pinterest_sdk/models/catalogs_retail_product_group.rb +425 -0
- data/lib/pinterest_sdk/models/catalogs_retail_product_group_create_request.rb +308 -0
- data/lib/pinterest_sdk/models/catalogs_retail_product_group_product_counts.rb +357 -0
- data/lib/pinterest_sdk/models/catalogs_retail_product_group_update_request.rb +229 -0
- data/lib/pinterest_sdk/models/catalogs_retail_product_metadata.rb +293 -0
- data/lib/pinterest_sdk/models/catalogs_retail_report_parameters.rb +215 -0
- data/lib/pinterest_sdk/models/catalogs_retail_report_stats_parameters.rb +215 -0
- data/lib/pinterest_sdk/models/catalogs_status.rb +9 -6
- data/lib/pinterest_sdk/models/catalogs_type.rb +41 -0
- data/lib/pinterest_sdk/models/catalogs_updatable_creative_assets_attributes.rb +267 -0
- data/lib/pinterest_sdk/models/catalogs_updatable_hotel_attributes.rb +322 -0
- data/lib/pinterest_sdk/models/catalogs_update_creative_assets_item.rb +242 -0
- data/lib/pinterest_sdk/models/catalogs_update_hotel_item.rb +242 -0
- data/lib/pinterest_sdk/models/catalogs_update_retail_item.rb +255 -0
- data/lib/pinterest_sdk/models/catalogs_upsert_creative_assets_item.rb +242 -0
- data/lib/pinterest_sdk/models/catalogs_upsert_hotel_item.rb +242 -0
- data/lib/pinterest_sdk/models/catalogs_upsert_retail_item.rb +242 -0
- data/lib/pinterest_sdk/models/catalogs_vertical_batch_request.rb +58 -0
- data/lib/pinterest_sdk/models/catalogs_vertical_feeds_create_request.rb +58 -0
- data/lib/pinterest_sdk/models/catalogs_vertical_feeds_update_request.rb +58 -0
- data/lib/pinterest_sdk/models/catalogs_vertical_product_group.rb +57 -0
- data/lib/pinterest_sdk/models/catalogs_vertical_product_group_create_request.rb +58 -0
- data/lib/pinterest_sdk/models/catalogs_vertical_product_group_update_request.rb +58 -0
- data/lib/pinterest_sdk/models/catalogs_verticals_list_products_by_catalog_based_filter_request.rb +58 -0
- data/lib/pinterest_sdk/models/condition_filter.rb +37 -96
- data/lib/pinterest_sdk/models/content_type.rb +40 -0
- data/lib/pinterest_sdk/models/conversion_access_token_response.rb +176 -0
- data/lib/pinterest_sdk/models/conversion_api_response.rb +222 -0
- data/lib/pinterest_sdk/models/conversion_api_response_events_inner.rb +211 -0
- data/lib/pinterest_sdk/models/conversion_attribution_window_days.rb +11 -6
- data/lib/pinterest_sdk/models/conversion_event_app_info.rb +418 -0
- data/lib/pinterest_sdk/models/conversion_event_device_info.rb +928 -0
- data/lib/pinterest_sdk/models/conversion_event_response.rb +241 -0
- data/lib/pinterest_sdk/models/conversion_events.rb +185 -0
- data/lib/pinterest_sdk/models/conversion_events_data_inner.rb +440 -0
- data/lib/pinterest_sdk/models/conversion_events_data_inner_custom_data.rb +305 -0
- data/lib/pinterest_sdk/models/conversion_events_data_inner_custom_data_contents_inner.rb +198 -0
- data/lib/pinterest_sdk/models/conversion_events_user_data.rb +103 -0
- data/lib/pinterest_sdk/models/conversion_events_user_data_properties.rb +324 -0
- data/lib/pinterest_sdk/models/conversion_health_selection_item.rb +182 -0
- data/lib/pinterest_sdk/models/conversion_msot_events.rb +500 -0
- data/lib/pinterest_sdk/models/conversion_product_report_request.rb +589 -0
- data/lib/pinterest_sdk/models/conversion_product_reporting_column.rb +210 -0
- data/lib/pinterest_sdk/models/conversion_report_attribution_type.rb +9 -6
- data/lib/pinterest_sdk/models/conversion_report_time_type.rb +11 -8
- data/lib/pinterest_sdk/models/conversion_tag.rb +291 -0
- data/lib/pinterest_sdk/models/conversion_tag_common.rb +248 -0
- data/lib/pinterest_sdk/models/conversion_tag_configs.rb +254 -0
- data/lib/pinterest_sdk/models/conversion_tag_create.rb +270 -0
- data/lib/pinterest_sdk/models/conversion_tag_list_response.rb +149 -0
- data/lib/pinterest_sdk/models/conversion_tag_response.rb +291 -0
- data/lib/pinterest_sdk/models/conversion_tag_type.rb +53 -0
- data/lib/pinterest_sdk/models/conversion_tags_list200_response.rb +166 -0
- data/lib/pinterest_sdk/models/country.rb +10 -6
- data/lib/pinterest_sdk/models/country_filter.rb +164 -0
- data/lib/pinterest_sdk/models/create_asset_access_request_body.rb +185 -0
- data/lib/pinterest_sdk/models/create_asset_access_request_body_asset_requests_inner.rb +214 -0
- data/lib/pinterest_sdk/models/create_asset_access_request_error_message_inner.rb +159 -0
- data/lib/pinterest_sdk/models/create_asset_access_request_response.rb +163 -0
- data/lib/pinterest_sdk/models/create_asset_group_body.rb +221 -0
- data/lib/pinterest_sdk/models/create_asset_group_response.rb +147 -0
- data/lib/pinterest_sdk/models/create_asset_invites_request.rb +185 -0
- data/lib/pinterest_sdk/models/create_asset_invites_request_item.rb +263 -0
- data/lib/pinterest_sdk/models/create_invites_results_response_array.rb +150 -0
- data/lib/pinterest_sdk/models/create_invites_results_response_array_items_inner.rb +158 -0
- data/lib/pinterest_sdk/models/create_invites_results_response_array_items_inner_invite.rb +180 -0
- data/lib/pinterest_sdk/models/create_membership_or_partnership_invites_body.rb +296 -0
- data/lib/pinterest_sdk/models/create_mmm_report_request.rb +409 -0
- data/lib/pinterest_sdk/models/create_mmm_report_response.rb +156 -0
- data/lib/pinterest_sdk/models/create_mmm_report_response_data.rb +197 -0
- data/lib/pinterest_sdk/models/creative_assets_id_filter.rb +164 -0
- data/lib/pinterest_sdk/models/creative_assets_processing_record.rb +204 -0
- data/lib/pinterest_sdk/models/creative_assets_visibility_type.rb +40 -0
- data/lib/pinterest_sdk/models/creative_type.rb +51 -0
- data/lib/pinterest_sdk/models/currency.rb +11 -6
- data/lib/pinterest_sdk/models/currency_filter.rb +37 -96
- data/lib/pinterest_sdk/models/custom_label0_filter.rb +38 -97
- data/lib/pinterest_sdk/models/custom_label1_filter.rb +38 -97
- data/lib/pinterest_sdk/models/custom_label2_filter.rb +38 -97
- data/lib/pinterest_sdk/models/custom_label3_filter.rb +38 -97
- data/lib/pinterest_sdk/models/custom_label4_filter.rb +38 -97
- data/lib/pinterest_sdk/models/custom_number0_filter.rb +164 -0
- data/lib/pinterest_sdk/models/custom_number1_filter.rb +164 -0
- data/lib/pinterest_sdk/models/custom_number2_filter.rb +164 -0
- data/lib/pinterest_sdk/models/custom_number3_filter.rb +164 -0
- data/lib/pinterest_sdk/models/custom_number4_filter.rb +164 -0
- data/lib/pinterest_sdk/models/customer_list.rb +282 -0
- data/lib/pinterest_sdk/models/customer_list_request.rb +225 -0
- data/lib/pinterest_sdk/models/customer_list_update_request.rb +213 -0
- data/lib/pinterest_sdk/models/customer_list_upload.rb +406 -0
- data/lib/pinterest_sdk/models/customer_list_upload_create_request.rb +231 -0
- data/lib/pinterest_sdk/models/customer_list_upload_create_response.rb +190 -0
- data/lib/pinterest_sdk/models/customer_list_upload_response.rb +406 -0
- data/lib/pinterest_sdk/models/customer_lists_list200_response.rb +183 -0
- data/lib/pinterest_sdk/models/customizable_cta_type.rb +67 -0
- data/lib/pinterest_sdk/models/data_output_format.rb +9 -6
- data/lib/pinterest_sdk/models/data_status.rb +61 -0
- data/lib/pinterest_sdk/models/delete_asset_group_body.rb +186 -0
- data/lib/pinterest_sdk/models/delete_asset_group_response.rb +163 -0
- data/lib/pinterest_sdk/models/delete_asset_group_response_exceptions_inner.rb +168 -0
- data/lib/pinterest_sdk/models/delete_invites_results_response_array.rb +151 -0
- data/lib/pinterest_sdk/models/delete_invites_results_response_array_items_inner.rb +158 -0
- data/lib/pinterest_sdk/models/delete_invites_results_response_array_items_inner_exception.rb +180 -0
- data/lib/pinterest_sdk/models/delete_member_access_result.rb +201 -0
- data/lib/pinterest_sdk/models/delete_member_access_results_response_array.rb +150 -0
- data/lib/pinterest_sdk/models/delete_partner_asset_access_body.rb +184 -0
- data/lib/pinterest_sdk/models/delete_partner_asset_access_body_accesses_inner.rb +278 -0
- data/lib/pinterest_sdk/models/delete_partner_assets_result.rb +233 -0
- data/lib/pinterest_sdk/models/delete_partner_assets_results_response_array.rb +150 -0
- data/lib/pinterest_sdk/models/delete_partners_request.rb +194 -0
- data/lib/pinterest_sdk/models/delete_partners_response.rb +151 -0
- data/lib/pinterest_sdk/models/deleted_members_response.rb +151 -0
- data/lib/pinterest_sdk/models/delivery_metrics_response.rb +149 -0
- data/lib/pinterest_sdk/models/delivery_metrics_response_items_inner.rb +212 -0
- data/lib/pinterest_sdk/models/detailed_error.rb +217 -0
- data/lib/pinterest_sdk/models/disclosure_type.rb +44 -0
- data/lib/pinterest_sdk/models/enhanced_match_status_type.rb +42 -0
- data/lib/pinterest_sdk/models/entity_status.rb +11 -6
- data/lib/pinterest_sdk/models/error.rb +49 -96
- data/lib/pinterest_sdk/models/error_detail.rb +219 -0
- data/lib/pinterest_sdk/models/event_data.rb +270 -0
- data/lib/pinterest_sdk/models/event_quality_score.rb +291 -0
- data/lib/pinterest_sdk/models/exception.rb +158 -0
- data/lib/pinterest_sdk/models/featured_trend.rb +210 -0
- data/lib/pinterest_sdk/models/feed_processing_results_list200_response.rb +183 -0
- data/lib/pinterest_sdk/models/feeds_create_request.rb +104 -0
- data/lib/pinterest_sdk/models/feeds_list200_response.rb +183 -0
- data/lib/pinterest_sdk/models/feeds_update_request.rb +104 -0
- data/lib/pinterest_sdk/models/follow_user_request.rb +150 -0
- data/lib/pinterest_sdk/models/followers_list200_response.rb +183 -0
- data/lib/pinterest_sdk/models/gender.rb +41 -0
- data/lib/pinterest_sdk/models/gender_bucket.rb +41 -0
- data/lib/pinterest_sdk/models/gender_demographics.rb +220 -0
- data/lib/pinterest_sdk/models/gender_filter.rb +38 -97
- data/lib/pinterest_sdk/models/get_audiences_order_by.rb +46 -0
- data/lib/pinterest_sdk/models/get_business_asset_type_response.rb +43 -0
- data/lib/pinterest_sdk/models/get_business_assets_response.rb +217 -0
- data/lib/pinterest_sdk/models/get_business_assets_response_catalog_info.rb +190 -0
- data/lib/pinterest_sdk/models/get_business_employers200_response.rb +184 -0
- data/lib/pinterest_sdk/models/get_business_members200_response.rb +184 -0
- data/lib/pinterest_sdk/models/get_business_partners200_response.rb +184 -0
- data/lib/pinterest_sdk/models/get_invites200_response.rb +184 -0
- data/lib/pinterest_sdk/models/get_mmm_report_response.rb +174 -0
- data/lib/pinterest_sdk/models/get_mmm_report_response_data.rb +201 -0
- data/lib/pinterest_sdk/models/get_partner_assets_response.rb +219 -0
- data/lib/pinterest_sdk/models/google_product_category0_filter.rb +37 -96
- data/lib/pinterest_sdk/models/google_product_category1_filter.rb +37 -96
- data/lib/pinterest_sdk/models/google_product_category2_filter.rb +37 -96
- data/lib/pinterest_sdk/models/google_product_category3_filter.rb +37 -96
- data/lib/pinterest_sdk/models/google_product_category4_filter.rb +37 -96
- data/lib/pinterest_sdk/models/google_product_category5_filter.rb +37 -96
- data/lib/pinterest_sdk/models/google_product_category6_filter.rb +37 -96
- data/lib/pinterest_sdk/models/granularity.rb +9 -6
- data/lib/pinterest_sdk/models/grid_click_type.rb +40 -0
- data/lib/pinterest_sdk/models/hotel_id_filter.rb +164 -0
- data/lib/pinterest_sdk/models/hotel_processing_record.rb +204 -0
- data/lib/pinterest_sdk/models/image_base64.rb +226 -0
- data/lib/pinterest_sdk/models/image_details.rb +50 -143
- data/lib/pinterest_sdk/models/image_metadata.rb +186 -0
- data/lib/pinterest_sdk/models/image_size.rb +174 -0
- data/lib/pinterest_sdk/models/ingestion_source_options.rb +43 -0
- data/lib/pinterest_sdk/models/inner_product_categories_metrics_highlights.rb +165 -0
- data/lib/pinterest_sdk/models/integration_log.rb +476 -0
- data/lib/pinterest_sdk/models/integration_log_client_error.rb +324 -0
- data/lib/pinterest_sdk/models/integration_log_client_request.rb +276 -0
- data/lib/pinterest_sdk/models/integration_logs_invalid_log_response.rb +150 -0
- data/lib/pinterest_sdk/models/integration_logs_invalid_log_response_rejected_logs_inner.rb +229 -0
- data/lib/pinterest_sdk/models/integration_logs_request.rb +185 -0
- data/lib/pinterest_sdk/models/integration_logs_success_response.rb +148 -0
- data/lib/pinterest_sdk/models/integration_metadata.rb +286 -0
- data/lib/pinterest_sdk/models/integration_record.rb +326 -0
- data/lib/pinterest_sdk/models/integration_request.rb +257 -0
- data/lib/pinterest_sdk/models/integration_request_patch.rb +247 -0
- data/lib/pinterest_sdk/models/integrations_get_list200_response.rb +183 -0
- data/lib/pinterest_sdk/models/integrations_logs_post400_response.rb +103 -0
- data/lib/pinterest_sdk/models/interest.rb +195 -0
- data/lib/pinterest_sdk/models/interests_enum.rb +54 -0
- data/lib/pinterest_sdk/models/invite_assets_summary.rb +163 -0
- data/lib/pinterest_sdk/models/invite_assets_summary_ad_accounts_inner.rb +181 -0
- data/lib/pinterest_sdk/models/invite_assets_summary_profiles_inner.rb +181 -0
- data/lib/pinterest_sdk/models/invite_business_role_binding.rb +225 -0
- data/lib/pinterest_sdk/models/invite_exception_response.rb +200 -0
- data/lib/pinterest_sdk/models/invite_response.rb +259 -0
- data/lib/pinterest_sdk/models/invite_status.rb +43 -0
- data/lib/pinterest_sdk/models/invite_type.rb +41 -0
- data/lib/pinterest_sdk/models/item_attributes.rb +818 -248
- data/lib/pinterest_sdk/models/item_attributes_request.rb +1393 -0
- data/lib/pinterest_sdk/models/item_attributes_request_all_of_image_link.rb +105 -0
- data/lib/pinterest_sdk/models/item_batch_record.rb +79 -200
- data/lib/pinterest_sdk/models/item_create_batch_record.rb +158 -0
- data/lib/pinterest_sdk/models/item_delete_batch_record.rb +149 -0
- data/lib/pinterest_sdk/models/item_delete_discontinued_batch_record.rb +149 -0
- data/lib/pinterest_sdk/models/item_group_id_filter.rb +37 -96
- data/lib/pinterest_sdk/models/item_id_filter.rb +38 -97
- data/lib/pinterest_sdk/models/item_processing_record.rb +68 -117
- data/lib/pinterest_sdk/models/item_processing_status.rb +9 -6
- data/lib/pinterest_sdk/models/item_response.rb +105 -0
- data/lib/pinterest_sdk/models/item_response_one_of.rb +58 -0
- data/lib/pinterest_sdk/models/item_response_one_of1.rb +58 -0
- data/lib/pinterest_sdk/models/item_update_batch_record.rb +171 -0
- data/lib/pinterest_sdk/models/item_upsert_batch_record.rb +158 -0
- data/lib/pinterest_sdk/models/item_validation_event.rb +25 -96
- data/lib/pinterest_sdk/models/items_batch_post_request.rb +104 -0
- data/lib/pinterest_sdk/models/items_issues_list200_response.rb +183 -0
- data/lib/pinterest_sdk/models/keyword.rb +308 -0
- data/lib/pinterest_sdk/models/keyword_error.rb +158 -0
- data/lib/pinterest_sdk/models/keyword_metrics.rb +149 -0
- data/lib/pinterest_sdk/models/keyword_metrics_response.rb +157 -0
- data/lib/pinterest_sdk/models/{campaign_response_all_of.rb → keyword_update.rb} +51 -99
- data/lib/pinterest_sdk/models/keyword_update_body.rb +167 -0
- data/lib/pinterest_sdk/models/keywords_common.rb +210 -0
- data/lib/pinterest_sdk/models/keywords_get200_response.rb +183 -0
- data/lib/pinterest_sdk/models/keywords_metrics_array_response.rb +149 -0
- data/lib/pinterest_sdk/models/keywords_request.rb +205 -0
- data/lib/pinterest_sdk/models/keywords_response.rb +160 -0
- data/lib/pinterest_sdk/models/label.rb +252 -0
- data/lib/pinterest_sdk/models/label_bulk_update_request.rb +238 -0
- data/lib/pinterest_sdk/models/label_create_request.rb +205 -0
- data/lib/pinterest_sdk/models/label_create_request_labels_inner.rb +208 -0
- data/lib/pinterest_sdk/models/label_error.rb +158 -0
- data/lib/pinterest_sdk/models/label_parent_type.rb +39 -0
- data/lib/pinterest_sdk/models/label_status.rb +40 -0
- data/lib/pinterest_sdk/models/label_type.rb +40 -0
- data/lib/pinterest_sdk/models/label_update_request.rb +167 -0
- data/lib/pinterest_sdk/models/label_update_request_labels_inner.rb +226 -0
- data/lib/pinterest_sdk/models/labels_list200_response.rb +183 -0
- data/lib/pinterest_sdk/models/labels_response.rb +161 -0
- data/lib/pinterest_sdk/models/language.rb +9 -6
- data/lib/pinterest_sdk/models/lead_form_array_response.rb +149 -0
- data/lib/pinterest_sdk/models/lead_form_array_response_items_inner.rb +158 -0
- data/lib/pinterest_sdk/models/lead_form_common.rb +304 -0
- data/lib/pinterest_sdk/models/lead_form_common_policy_links_inner.rb +158 -0
- data/lib/pinterest_sdk/models/lead_form_create_request.rb +310 -0
- data/lib/pinterest_sdk/models/lead_form_question.rb +227 -0
- data/lib/pinterest_sdk/models/lead_form_question_field_type.rb +42 -0
- data/lib/pinterest_sdk/models/lead_form_question_type.rb +52 -0
- data/lib/pinterest_sdk/models/lead_form_response.rb +392 -0
- data/lib/pinterest_sdk/models/lead_form_status.rb +40 -0
- data/lib/pinterest_sdk/models/lead_form_test_request.rb +168 -0
- data/lib/pinterest_sdk/models/lead_form_test_response.rb +170 -0
- data/lib/pinterest_sdk/models/lead_form_update_request.rb +348 -0
- data/lib/pinterest_sdk/models/lead_forms_list200_response.rb +183 -0
- data/lib/pinterest_sdk/models/lead_subscription.rb +311 -0
- data/lib/pinterest_sdk/models/lead_subscription_post_params_create.rb +225 -0
- data/lib/pinterest_sdk/models/lead_subscription_post_params_create_all_of_partner_metadata.rb +149 -0
- data/lib/pinterest_sdk/models/leads_export_create_request.rb +252 -0
- data/lib/pinterest_sdk/models/leads_export_create_response.rb +169 -0
- data/lib/pinterest_sdk/models/leads_export_response_data.rb +179 -0
- data/lib/pinterest_sdk/models/leads_export_status.rb +41 -0
- data/lib/pinterest_sdk/models/line_item.rb +218 -0
- data/lib/pinterest_sdk/models/linked_business.rb +188 -0
- data/lib/pinterest_sdk/models/local_store_update.rb +298 -0
- data/lib/pinterest_sdk/models/lookback_period_options.rb +40 -0
- data/lib/pinterest_sdk/models/match_type.rb +43 -0
- data/lib/pinterest_sdk/models/match_type_response.rb +43 -0
- data/lib/pinterest_sdk/models/max_price_filter.rb +37 -96
- data/lib/pinterest_sdk/models/{media_upload_details.rb → media.rb} +80 -101
- data/lib/pinterest_sdk/models/media_list200_response.rb +176 -0
- data/lib/pinterest_sdk/models/media_type.rb +40 -0
- data/lib/pinterest_sdk/models/media_type_filter.rb +164 -0
- data/lib/pinterest_sdk/models/media_upload.rb +105 -115
- data/lib/pinterest_sdk/models/{media_upload_request.rb → media_upload_create.rb} +61 -98
- data/lib/pinterest_sdk/models/{media_upload_all_of_upload_parameters.rb → media_upload_parameters.rb} +63 -135
- data/lib/pinterest_sdk/models/media_upload_status.rb +9 -6
- data/lib/pinterest_sdk/models/media_upload_type.rb +9 -6
- data/lib/pinterest_sdk/models/member_business_role.rb +40 -0
- data/lib/pinterest_sdk/models/members_to_delete_body.rb +184 -0
- data/lib/pinterest_sdk/models/members_to_delete_body_members_inner.rb +233 -0
- data/lib/pinterest_sdk/models/metrics_reporting_level.rb +10 -6
- data/lib/pinterest_sdk/models/metrics_response.rb +149 -0
- data/lib/pinterest_sdk/models/min_price_filter.rb +37 -96
- data/lib/pinterest_sdk/models/mmm_reporting_column.rb +58 -0
- data/lib/pinterest_sdk/models/mmm_reporting_targeting_type.rb +43 -0
- data/lib/pinterest_sdk/models/multiple_product_groups_inner.rb +104 -0
- data/lib/pinterest_sdk/models/non_draft_entity_status.rb +41 -0
- data/lib/pinterest_sdk/models/non_nullable_catalogs_currency.rb +9 -6
- data/lib/pinterest_sdk/models/non_nullable_product_availability_type.rb +41 -0
- data/lib/pinterest_sdk/models/notification_post_request.rb +105 -0
- data/lib/pinterest_sdk/models/notification_response.rb +168 -0
- data/lib/pinterest_sdk/models/nullable_catalogs_item_field_type.rb +143 -0
- data/lib/pinterest_sdk/models/nullable_currency.rb +9 -7
- data/lib/pinterest_sdk/models/oauth_access_token_request_client_credentials.rb +214 -0
- data/lib/pinterest_sdk/models/oauth_access_token_request_code.rb +85 -117
- data/lib/pinterest_sdk/models/oauth_access_token_request_refresh.rb +73 -117
- data/lib/pinterest_sdk/models/oauth_access_token_response.rb +102 -127
- data/lib/pinterest_sdk/models/oauth_access_token_response_client_credentials.rb +286 -0
- data/lib/pinterest_sdk/models/oauth_access_token_response_code.rb +163 -123
- data/lib/pinterest_sdk/models/oauth_access_token_response_integration_refresh.rb +337 -0
- data/lib/pinterest_sdk/models/oauth_access_token_response_refresh.rb +233 -112
- data/lib/pinterest_sdk/models/objective_type.rb +10 -10
- data/lib/pinterest_sdk/models/operation_type.rb +40 -0
- data/lib/pinterest_sdk/models/optimization_goal_metadata.rb +165 -0
- data/lib/pinterest_sdk/models/optimization_goal_metadata_conversion_tag_v3_goal_metadata.rb +294 -0
- data/lib/pinterest_sdk/models/optimization_goal_metadata_conversion_tag_v3_goal_metadata_attribution_windows.rb +165 -0
- data/lib/pinterest_sdk/models/optimization_goal_metadata_frequency_goal_metadata.rb +220 -0
- data/lib/pinterest_sdk/models/optimization_goal_metadata_scrollup_goal_metadata.rb +165 -0
- data/lib/pinterest_sdk/models/order_line.rb +333 -0
- data/lib/pinterest_sdk/models/order_line_error.rb +158 -0
- data/lib/pinterest_sdk/models/order_line_paid_type.rb +42 -0
- data/lib/pinterest_sdk/models/order_line_response.rb +162 -0
- data/lib/pinterest_sdk/models/order_line_single_response.rb +147 -0
- data/lib/pinterest_sdk/models/order_line_status.rb +41 -0
- data/lib/pinterest_sdk/models/order_lines.rb +298 -0
- data/lib/pinterest_sdk/models/order_lines_array_response.rb +149 -0
- data/lib/pinterest_sdk/models/order_lines_list200_response.rb +183 -0
- data/lib/pinterest_sdk/models/overall_status_options.rb +41 -0
- data/lib/pinterest_sdk/models/pacing_delivery_type.rb +9 -6
- data/lib/pinterest_sdk/models/page_visit_conversion_tags_get200_response.rb +183 -0
- data/lib/pinterest_sdk/models/paginated.rb +51 -110
- data/lib/pinterest_sdk/models/partner_type.rb +40 -0
- data/lib/pinterest_sdk/models/permissions.rb +49 -0
- data/lib/pinterest_sdk/models/permissions_with_owner.rb +49 -0
- data/lib/pinterest_sdk/models/pin.rb +276 -161
- data/lib/pinterest_sdk/models/pin_analytics_metrics_response.rb +174 -0
- data/lib/pinterest_sdk/models/pin_analytics_metrics_response_daily_metrics_inner.rb +191 -0
- data/lib/pinterest_sdk/models/pin_create.rb +374 -0
- data/lib/pinterest_sdk/models/pin_media.rb +36 -198
- data/lib/pinterest_sdk/models/pin_media_metadata.rb +103 -0
- data/lib/pinterest_sdk/models/pin_media_source.rb +12 -6
- data/lib/pinterest_sdk/models/pin_media_source_image_base64.rb +83 -137
- data/lib/pinterest_sdk/models/pin_media_source_image_url.rb +54 -98
- data/lib/pinterest_sdk/models/pin_media_source_images_base64.rb +265 -0
- data/lib/pinterest_sdk/models/pin_media_source_images_base64_item.rb +250 -0
- data/lib/pinterest_sdk/models/pin_media_source_images_url.rb +265 -0
- data/lib/pinterest_sdk/models/pin_media_source_images_url_item.rb +191 -0
- data/lib/pinterest_sdk/models/pin_media_source_pin_url.rb +201 -0
- data/lib/pinterest_sdk/models/pin_media_source_video_id.rb +113 -123
- data/lib/pinterest_sdk/models/pin_media_with_image.rb +84 -119
- data/lib/pinterest_sdk/models/pin_media_with_image_and_video.rb +200 -0
- data/lib/pinterest_sdk/models/pin_media_with_images.rb +200 -0
- data/lib/pinterest_sdk/models/pin_media_with_video.rb +251 -0
- data/lib/pinterest_sdk/models/pin_media_with_videos.rb +200 -0
- data/lib/pinterest_sdk/models/pin_promotion_summary_status.rb +11 -6
- data/lib/pinterest_sdk/models/pin_update.rb +310 -0
- data/lib/pinterest_sdk/models/pins_list200_response.rb +176 -0
- data/lib/pinterest_sdk/models/pins_save_request.rb +194 -0
- data/lib/pinterest_sdk/models/pinterest_lib_error.rb +191 -0
- data/lib/pinterest_sdk/models/pinterest_lib_pagination_order.rb +40 -0
- data/lib/pinterest_sdk/models/pinterest_lib_status204.rb +189 -0
- data/lib/pinterest_sdk/models/placement_group_type.rb +9 -6
- data/lib/pinterest_sdk/models/placement_multipliers.rb +182 -0
- data/lib/pinterest_sdk/models/predicted_time_series.rb +148 -0
- data/lib/pinterest_sdk/models/price_filter.rb +164 -0
- data/lib/pinterest_sdk/models/product_availability_type.rb +9 -7
- data/lib/pinterest_sdk/models/product_categories_demographic.rb +194 -0
- data/lib/pinterest_sdk/models/product_categories_engagement_type.rb +41 -0
- data/lib/pinterest_sdk/models/product_categories_metrics_highlights.rb +169 -0
- data/lib/pinterest_sdk/models/product_category_detail_lookback_window.rb +42 -0
- data/lib/pinterest_sdk/models/product_category_details.rb +268 -0
- data/lib/pinterest_sdk/models/product_category_enum.rb +421 -0
- data/lib/pinterest_sdk/models/product_category_region.rb +41 -0
- data/lib/pinterest_sdk/models/product_group_analytics_response_inner.rb +186 -0
- data/lib/pinterest_sdk/models/product_group_promotion.rb +546 -0
- data/lib/pinterest_sdk/models/product_group_promotion_create_request.rb +204 -0
- data/lib/pinterest_sdk/models/product_group_promotion_response.rb +149 -0
- data/lib/pinterest_sdk/models/product_group_promotion_response_item.rb +159 -0
- data/lib/pinterest_sdk/models/product_group_promotion_update_request.rb +204 -0
- data/lib/pinterest_sdk/models/product_group_promotions_list200_response.rb +183 -0
- data/lib/pinterest_sdk/models/product_group_reference_filter.rb +164 -0
- data/lib/pinterest_sdk/models/product_group_summary_status.rb +9 -6
- data/lib/pinterest_sdk/models/product_type0_filter.rb +37 -96
- data/lib/pinterest_sdk/models/product_type1_filter.rb +37 -96
- data/lib/pinterest_sdk/models/product_type2_filter.rb +37 -96
- data/lib/pinterest_sdk/models/product_type3_filter.rb +37 -96
- data/lib/pinterest_sdk/models/product_type4_filter.rb +37 -96
- data/lib/pinterest_sdk/models/promotion_array_element.rb +156 -0
- data/lib/pinterest_sdk/models/promotion_common.rb +339 -0
- data/lib/pinterest_sdk/models/promotion_create_request.rb +380 -0
- data/lib/pinterest_sdk/models/promotion_response.rb +417 -0
- data/lib/pinterest_sdk/models/promotion_template_value.rb +199 -0
- data/lib/pinterest_sdk/models/promotion_type.rb +61 -0
- data/lib/pinterest_sdk/models/promotion_update_request.rb +393 -0
- data/lib/pinterest_sdk/models/promotions_list200_response.rb +183 -0
- data/lib/pinterest_sdk/models/promotions_response.rb +149 -0
- data/lib/pinterest_sdk/models/quality_component_details.rb +188 -0
- data/lib/pinterest_sdk/models/quality_component_issue.rb +220 -0
- data/lib/pinterest_sdk/models/quality_components.rb +263 -0
- data/lib/pinterest_sdk/models/quiz_pin_data.rb +215 -0
- data/lib/pinterest_sdk/models/quiz_pin_option.rb +157 -0
- data/lib/pinterest_sdk/models/quiz_pin_question.rb +168 -0
- data/lib/pinterest_sdk/models/quiz_pin_result.rb +184 -0
- data/lib/pinterest_sdk/models/record_counts.rb +220 -0
- data/lib/pinterest_sdk/models/related_terms.rb +170 -0
- data/lib/pinterest_sdk/models/related_terms_related_terms_list_inner.rb +158 -0
- data/lib/pinterest_sdk/models/reporting_column_async.rb +136 -34
- data/lib/pinterest_sdk/models/reporting_time_zone.rb +40 -0
- data/lib/pinterest_sdk/models/reports_stats200_response.rb +183 -0
- data/lib/pinterest_sdk/models/reports_stats_parameters_parameter.rb +56 -0
- data/lib/pinterest_sdk/models/respond_to_invites_response_array.rb +150 -0
- data/lib/pinterest_sdk/models/respond_to_invites_response_array_items_inner.rb +158 -0
- data/lib/pinterest_sdk/models/role.rb +57 -0
- data/lib/pinterest_sdk/models/s3_file_part.rb +192 -0
- data/lib/pinterest_sdk/models/s3_multipart_upload_data.rb +150 -0
- data/lib/pinterest_sdk/models/search_partner_pins200_response.rb +183 -0
- data/lib/pinterest_sdk/models/search_user_boards_get200_response.rb +184 -0
- data/lib/pinterest_sdk/models/search_user_pins_list200_response.rb +183 -0
- data/lib/pinterest_sdk/models/shared_audience.rb +260 -0
- data/lib/pinterest_sdk/models/shared_audience_account.rb +281 -0
- data/lib/pinterest_sdk/models/shared_audience_common.rb +200 -0
- data/lib/pinterest_sdk/models/shared_audience_response.rb +178 -0
- data/lib/pinterest_sdk/models/shared_audience_response_common.rb +159 -0
- data/lib/pinterest_sdk/models/single_interest_targeting_option_response.rb +197 -0
- data/lib/pinterest_sdk/models/source_platform_options.rb +47 -0
- data/lib/pinterest_sdk/models/ssio_account_address.rb +178 -0
- data/lib/pinterest_sdk/models/ssio_account_item.rb +230 -0
- data/lib/pinterest_sdk/models/ssio_account_pmp_name.rb +158 -0
- data/lib/pinterest_sdk/models/ssio_account_response.rb +200 -0
- data/lib/pinterest_sdk/models/ssio_create_insertion_order_request.rb +692 -0
- data/lib/pinterest_sdk/models/ssio_create_insertion_order_response.rb +148 -0
- data/lib/pinterest_sdk/models/ssio_edit_insertion_order_request.rb +347 -0
- data/lib/pinterest_sdk/models/ssio_edit_insertion_order_response.rb +148 -0
- data/lib/pinterest_sdk/models/ssio_insertion_order_common.rb +300 -0
- data/lib/pinterest_sdk/models/ssio_insertion_order_status.rb +169 -0
- data/lib/pinterest_sdk/models/ssio_insertion_order_status_response.rb +176 -0
- data/lib/pinterest_sdk/models/ssio_insertion_orders_status_get_by_ad_account200_response.rb +184 -0
- data/lib/pinterest_sdk/models/ssio_order_line.rb +434 -0
- data/lib/pinterest_sdk/models/ssio_order_lines_get_by_ad_account200_response.rb +184 -0
- data/lib/pinterest_sdk/models/summary_pin.rb +227 -0
- data/lib/pinterest_sdk/models/system_user_update_request.rb +165 -0
- data/lib/pinterest_sdk/models/targeting_advertiser_country.rb +76 -0
- data/lib/pinterest_sdk/models/targeting_spec.rb +365 -0
- data/lib/pinterest_sdk/models/targeting_spec_age_bucket.rb +48 -0
- data/lib/pinterest_sdk/models/targeting_spec_app_type.rb +44 -0
- data/lib/pinterest_sdk/models/targeting_spec_gender.rb +41 -0
- data/lib/pinterest_sdk/models/targeting_spec_operation_age_bucket.rb +230 -0
- data/lib/pinterest_sdk/models/targeting_spec_operation_app_type.rb +237 -0
- data/lib/pinterest_sdk/models/targeting_spec_operation_gender.rb +237 -0
- data/lib/pinterest_sdk/models/targeting_spec_operation_list.rb +228 -0
- data/lib/pinterest_sdk/models/targeting_spec_operation_min_max_age.rb +252 -0
- data/lib/pinterest_sdk/models/targeting_spec_operation_shopping_retargeting.rb +237 -0
- data/lib/pinterest_sdk/models/targeting_spec_operation_string.rb +226 -0
- data/lib/pinterest_sdk/models/targeting_spec_shopping_retargeting.rb +170 -0
- data/lib/pinterest_sdk/models/targeting_template_audience_sizing.rb +148 -0
- data/lib/pinterest_sdk/models/targeting_template_audience_sizing_reach_estimate.rb +165 -0
- data/lib/pinterest_sdk/models/targeting_template_common.rb +223 -0
- data/lib/pinterest_sdk/models/targeting_template_create.rb +264 -0
- data/lib/pinterest_sdk/models/targeting_template_get_response_data.rb +357 -0
- data/lib/pinterest_sdk/models/targeting_template_keyword.rb +179 -0
- data/lib/pinterest_sdk/models/targeting_template_list200_response.rb +183 -0
- data/lib/pinterest_sdk/models/targeting_template_response_data.rb +346 -0
- data/lib/pinterest_sdk/models/targeting_template_update_request.rb +235 -0
- data/lib/pinterest_sdk/models/targeting_type_filter.rb +49 -112
- data/lib/pinterest_sdk/models/template_based_report.rb +240 -0
- data/lib/pinterest_sdk/models/template_response.rb +456 -0
- data/lib/pinterest_sdk/models/template_response_date_range.rb +168 -0
- data/lib/pinterest_sdk/models/template_response_date_range_absolute_date_range.rb +169 -0
- data/lib/pinterest_sdk/models/template_response_date_range_dynamic_date_range.rb +193 -0
- data/lib/pinterest_sdk/models/template_response_date_range_relative_date_range.rb +169 -0
- data/lib/pinterest_sdk/models/templates_list200_response.rb +183 -0
- data/lib/pinterest_sdk/models/terms_of_service.rb +179 -0
- data/lib/pinterest_sdk/models/time_series.rb +148 -0
- data/lib/pinterest_sdk/models/title_keywords_filter.rb +164 -0
- data/lib/pinterest_sdk/models/top_pins_analytics_response.rb +201 -0
- data/lib/pinterest_sdk/models/top_pins_analytics_response_date_availability.rb +156 -0
- data/lib/pinterest_sdk/models/top_pins_analytics_response_pins_inner.rb +172 -0
- data/lib/pinterest_sdk/models/top_video_pins_analytics_response.rb +201 -0
- data/lib/pinterest_sdk/models/top_video_pins_analytics_response_pins_inner.rb +172 -0
- data/lib/pinterest_sdk/models/tracking_urls.rb +52 -198
- data/lib/pinterest_sdk/models/trend_type.rb +42 -0
- data/lib/pinterest_sdk/models/trending_keyword.rb +235 -0
- data/lib/pinterest_sdk/models/trending_keyword_demographics.rb +159 -0
- data/lib/pinterest_sdk/models/trending_keyword_demographics_age_distribution.rb +182 -0
- data/lib/pinterest_sdk/models/trending_keyword_demographics_gender_distribution.rb +182 -0
- data/lib/pinterest_sdk/models/trending_keywords_response.rb +150 -0
- data/lib/pinterest_sdk/models/trending_pin.rb +247 -0
- data/lib/pinterest_sdk/models/trending_product_category.rb +281 -0
- data/lib/pinterest_sdk/models/trending_topic.rb +345 -0
- data/lib/pinterest_sdk/models/trends_supported_region.rb +56 -0
- data/lib/pinterest_sdk/models/updatable_item_attributes.rb +1341 -0
- data/lib/pinterest_sdk/models/updatable_item_attributes_gtin.rb +105 -0
- data/lib/pinterest_sdk/models/update_asset_group_body.rb +150 -0
- data/lib/pinterest_sdk/models/update_asset_group_body_asset_groups_to_update_inner.rb +221 -0
- data/lib/pinterest_sdk/models/update_asset_group_response.rb +163 -0
- data/lib/pinterest_sdk/models/update_asset_group_response_exceptions_inner.rb +168 -0
- data/lib/pinterest_sdk/models/update_invites_results_response_array.rb +150 -0
- data/lib/pinterest_sdk/models/update_invites_results_response_array_items_inner.rb +157 -0
- data/lib/pinterest_sdk/models/update_mask_bid_option_field.rb +41 -0
- data/lib/pinterest_sdk/models/update_mask_field_type.rb +87 -0
- data/lib/pinterest_sdk/models/update_member_asset_access_body.rb +185 -0
- data/lib/pinterest_sdk/models/update_member_asset_access_body_accesses_inner.rb +279 -0
- data/lib/pinterest_sdk/models/update_member_assets_results_response_array.rb +150 -0
- data/lib/pinterest_sdk/models/update_member_assets_results_response_array_items_inner.rb +147 -0
- data/lib/pinterest_sdk/models/update_member_business_role_body.rb +234 -0
- data/lib/pinterest_sdk/models/update_member_result.rb +179 -0
- data/lib/pinterest_sdk/models/update_member_results_response_array.rb +150 -0
- data/lib/pinterest_sdk/models/update_partner_asset_access_body.rb +184 -0
- data/lib/pinterest_sdk/models/update_partner_asset_access_body_accesses_inner.rb +279 -0
- data/lib/pinterest_sdk/models/update_partner_assets_result.rb +223 -0
- data/lib/pinterest_sdk/models/update_partner_assets_results_response_array.rb +150 -0
- data/lib/pinterest_sdk/models/update_partner_results_response_array.rb +149 -0
- data/lib/pinterest_sdk/models/update_partner_results_response_array_items_inner.rb +184 -0
- data/lib/pinterest_sdk/models/user_account_followed_interests200_response.rb +183 -0
- data/lib/pinterest_sdk/models/user_business_role_binding.rb +245 -0
- data/lib/pinterest_sdk/models/user_following_feed_type.rb +42 -0
- data/lib/pinterest_sdk/models/user_following_get200_response.rb +184 -0
- data/lib/pinterest_sdk/models/user_list_operation_type.rb +40 -0
- data/lib/pinterest_sdk/models/user_list_type.rb +44 -0
- data/lib/pinterest_sdk/models/user_single_asset_binding.rb +160 -0
- data/lib/pinterest_sdk/models/user_summary.rb +158 -0
- data/lib/pinterest_sdk/models/user_website_summary.rb +168 -0
- data/lib/pinterest_sdk/models/user_website_verification_code.rb +188 -0
- data/lib/pinterest_sdk/models/user_website_verify_request.rb +193 -0
- data/lib/pinterest_sdk/models/user_websites_get200_response.rb +183 -0
- data/lib/pinterest_sdk/models/users_for_individual_asset_response.rb +213 -0
- data/lib/pinterest_sdk/models/vertical_product_category.rb +41 -0
- data/lib/pinterest_sdk/models/video_metadata_with_item_type.rb +200 -0
- data/lib/pinterest_sdk/version.rb +4 -4
- data/lib/pinterest_sdk.rb +775 -29
- data/pinterest_sdk.gemspec +5 -4
- data/spec/api/ad_accounts_api_spec.rb +129 -125
- data/spec/api/ad_groups_api_spec.rb +166 -0
- data/spec/api/ads_api_spec.rb +154 -0
- data/spec/api/advanced_auction_api_spec.rb +61 -0
- data/spec/api/audience_insights_api_spec.rb +60 -0
- data/spec/api/audience_sharing_api_spec.rb +134 -0
- data/spec/api/audiences_api_spec.rb +91 -0
- data/spec/api/billing_api_spec.rb +190 -0
- data/spec/api/boards_api_spec.rb +53 -40
- data/spec/api/bulk_api_spec.rb +75 -0
- data/spec/api/business_access_assets_api_spec.rb +213 -0
- data/spec/api/business_access_invite_api_spec.rb +116 -0
- data/spec/api/business_access_relationships_api_spec.rb +165 -0
- data/spec/api/campaigns_api_spec.rb +160 -0
- data/spec/api/catalog_feeds_api_spec.rb +148 -0
- data/spec/api/catalog_items_api_spec.rb +74 -0
- data/spec/api/catalog_product_groups_api_spec.rb +176 -0
- data/spec/api/catalog_reports_api_spec.rb +76 -0
- data/spec/api/catalogs_api_spec.rb +30 -152
- data/spec/api/conversion_eqs_api_spec.rb +50 -0
- data/spec/api/conversion_events_api_spec.rb +49 -0
- data/spec/api/conversion_tags_api_spec.rb +101 -0
- data/spec/api/conversions_api_spec.rb +47 -0
- data/spec/api/customer_list_uploads_api_spec.rb +77 -0
- data/spec/api/customer_lists_api_spec.rb +90 -0
- data/spec/api/integrations_api_spec.rb +121 -0
- data/spec/api/keywords_api_spec.rb +114 -0
- data/spec/api/labels_api_spec.rb +79 -0
- data/spec/api/lead_ads_api_spec.rb +88 -0
- data/spec/api/lead_forms_api_spec.rb +103 -0
- data/spec/api/leads_export_api_spec.rb +61 -0
- data/spec/api/media_api_spec.rb +14 -14
- data/spec/api/msot_events_api_spec.rb +48 -0
- data/spec/api/notification_api_spec.rb +47 -0
- data/spec/api/oauth_api_spec.rb +29 -5
- data/spec/api/order_lines_api_spec.rb +63 -0
- data/spec/api/pins_api_spec.rb +85 -18
- data/spec/api/product_categories_api_spec.rb +79 -0
- data/spec/api/product_group_promotions_api_spec.rb +114 -0
- data/spec/api/promotions_api_spec.rb +102 -0
- data/spec/api/resources_api_spec.rb +109 -0
- data/spec/api/search_api_spec.rb +80 -0
- data/spec/api/targeting_template_api_spec.rb +78 -0
- data/spec/api/terms_api_spec.rb +60 -0
- data/spec/api/terms_of_service_api_spec.rb +49 -0
- data/spec/api/user_account_api_spec.rb +188 -8
- data/spec/models/account_spec.rb +61 -11
- data/spec/models/action_type_spec.rb +7 -5
- data/spec/models/ad_account_analytics_response_inner_spec.rb +42 -0
- data/spec/models/ad_account_create_spec.rb +54 -0
- data/spec/models/ad_account_create_subscription_request_partner_metadata_spec.rb +36 -0
- data/spec/models/ad_account_create_subscription_request_spec.rb +60 -0
- data/spec/models/ad_account_create_subscription_response_spec.rb +84 -0
- data/spec/models/ad_account_get_subscription_response_spec.rb +84 -0
- data/spec/models/ad_account_owner_spec.rb +14 -6
- data/spec/models/ad_account_spec.rb +32 -12
- data/spec/models/ad_accounts_audiences_shared_accounts_list200_response_spec.rb +42 -0
- data/spec/models/ad_accounts_country_response_data_spec.rb +54 -0
- data/spec/models/ad_accounts_country_response_spec.rb +36 -0
- data/spec/models/ad_accounts_list200_response_spec.rb +42 -0
- data/spec/models/ad_accounts_subscriptions_get_list200_response_spec.rb +42 -0
- data/spec/models/ad_array_response_element_spec.rb +42 -0
- data/spec/models/ad_array_response_spec.rb +36 -0
- data/spec/models/ad_common_spec.rb +156 -0
- data/spec/models/ad_country_spec.rb +30 -0
- data/spec/models/ad_create_request_spec.rb +162 -0
- data/spec/models/ad_group_array_response_element_spec.rb +42 -0
- data/spec/models/ad_group_array_response_spec.rb +36 -0
- data/spec/models/ad_group_audience_sizing_request_keywords_inner_spec.rb +42 -0
- data/spec/models/ad_group_audience_sizing_request_spec.rb +70 -0
- data/spec/models/ad_group_audience_sizing_response_spec.rb +42 -0
- data/spec/models/ad_group_common_spec.rb +164 -0
- data/spec/models/ad_group_create_request_spec.rb +170 -0
- data/spec/models/ad_group_id_filter_spec.rb +36 -0
- data/spec/models/ad_group_response_spec.rb +105 -51
- data/spec/models/ad_group_summary_status_spec.rb +7 -5
- data/spec/models/ad_group_update_request_spec.rb +176 -0
- data/spec/models/ad_groups_analytics_response_inner_spec.rb +42 -0
- data/spec/models/ad_groups_list200_response_spec.rb +42 -0
- data/spec/models/ad_pin_analytics_spec.rb +42 -0
- data/spec/models/ad_pin_id_spec.rb +36 -0
- data/spec/models/ad_preview_create_from_image_spec.rb +42 -0
- data/spec/models/ad_preview_create_from_pin_spec.rb +36 -0
- data/spec/models/ad_preview_request_spec.rb +32 -0
- data/spec/models/ad_preview_shopping_spec.rb +98 -0
- data/spec/models/ad_preview_url_response_spec.rb +36 -0
- data/spec/models/ad_response_spec.rb +74 -40
- data/spec/models/ad_update_request_spec.rb +168 -0
- data/spec/models/ads_analytics_ad_group_targeting_type_spec.rb +30 -0
- data/spec/models/ads_analytics_ad_targeting_type_spec.rb +30 -0
- data/spec/models/ads_analytics_campaign_targeting_type_spec.rb +30 -0
- data/spec/models/ads_analytics_create_async_request_all_of_custom_conversion_event_metrics_spec.rb +46 -0
- data/spec/models/ads_analytics_create_async_request_spec.rb +100 -48
- data/spec/models/ads_analytics_create_async_response_spec.rb +13 -11
- data/spec/models/ads_analytics_filter_column_spec.rb +7 -5
- data/spec/models/ads_analytics_filter_operator_spec.rb +7 -5
- data/spec/models/ads_analytics_get_async_response_spec.rb +12 -10
- data/spec/models/ads_analytics_metrics_filter_spec.rb +10 -8
- data/spec/models/ads_analytics_response_inner_spec.rb +42 -0
- data/spec/models/ads_analytics_targeting_type_spec.rb +7 -5
- data/spec/models/ads_credit_discounts_response_spec.rb +76 -0
- data/spec/models/ads_credit_redeem_request_spec.rb +42 -0
- data/spec/models/ads_credit_redeem_response_spec.rb +48 -0
- data/spec/models/ads_credits_discounts_get200_response_spec.rb +42 -0
- data/spec/models/ads_list200_response_spec.rb +42 -0
- data/spec/models/advanced_auction_bid_options_spec.rb +48 -0
- data/spec/models/advanced_auction_item_spec.rb +54 -0
- data/spec/models/advanced_auction_items_get_record_spec.rb +48 -0
- data/spec/models/advanced_auction_items_get_request_spec.rb +42 -0
- data/spec/models/advanced_auction_items_spec.rb +42 -0
- data/spec/models/advanced_auction_items_submit_delete_record_spec.rb +54 -0
- data/spec/models/advanced_auction_items_submit_record_spec.rb +44 -0
- data/spec/models/advanced_auction_items_submit_request_spec.rb +42 -0
- data/spec/models/advanced_auction_items_submit_upsert_record_spec.rb +66 -0
- data/spec/models/advanced_auction_key_spec.rb +48 -0
- data/spec/models/advanced_auction_operation_error_spec.rb +42 -0
- data/spec/models/advanced_auction_operation_spec.rb +30 -0
- data/spec/models/advanced_auction_processed_items_spec.rb +42 -0
- data/spec/models/advertiser_defined_event_spec.rb +46 -0
- data/spec/models/advertiser_defined_events_response_spec.rb +36 -0
- data/spec/models/age_trends_bucket_spec.rb +30 -0
- data/spec/models/all_of_spec.rb +36 -0
- data/spec/models/amazon_connect_request_spec.rb +72 -0
- data/spec/models/analytics_daily_metrics_spec.rb +48 -0
- data/spec/models/analytics_metrics_response_spec.rb +9 -7
- data/spec/models/any_of_spec.rb +36 -0
- data/spec/models/app_type_multipliers_spec.rb +40 -0
- data/spec/models/asset_group_binding_spec.rb +96 -0
- data/spec/models/asset_group_type_spec.rb +30 -0
- data/spec/models/asset_id_permissions_spec.rb +54 -0
- data/spec/models/audience_account_type_spec.rb +30 -0
- data/spec/models/audience_category_spec.rb +66 -0
- data/spec/models/audience_common_spec.rb +48 -0
- data/spec/models/audience_create_request_spec.rb +60 -0
- data/spec/models/audience_definition_response_spec.rb +36 -0
- data/spec/models/audience_definition_scope_spec.rb +40 -0
- data/spec/models/audience_definition_spec.rb +48 -0
- data/spec/models/audience_definition_type_spec.rb +40 -0
- data/spec/models/audience_demographic_value_spec.rb +48 -0
- data/spec/models/audience_demographics_spec.rb +60 -0
- data/spec/models/audience_insight_category_array_response_spec.rb +36 -0
- data/spec/models/audience_insight_category_common_spec.rb +60 -0
- data/spec/models/audience_insight_type_spec.rb +30 -0
- data/spec/models/audience_insights_response_spec.rb +66 -0
- data/spec/models/audience_rule_spec.rb +150 -0
- data/spec/models/audience_share_type_spec.rb +30 -0
- data/spec/models/audience_spec.rb +102 -0
- data/spec/models/audience_subcategory_spec.rb +60 -0
- data/spec/models/audience_type_spec.rb +30 -0
- data/spec/models/audience_update_operation_type_spec.rb +30 -0
- data/spec/models/audience_update_request_spec.rb +60 -0
- data/spec/models/audiences_list200_response_spec.rb +42 -0
- data/spec/models/auth_respond_invites_body_invites_inner_action_spec.rb +42 -0
- data/spec/models/auth_respond_invites_body_invites_inner_spec.rb +42 -0
- data/spec/models/auth_respond_invites_body_spec.rb +36 -0
- data/spec/models/availability_filter_spec.rb +8 -6
- data/spec/models/base_invite_data_response_invite_data_spec.rb +60 -0
- data/spec/models/base_invite_data_response_spec.rb +54 -0
- data/spec/models/batch_operation_spec.rb +7 -5
- data/spec/models/batch_operation_status_spec.rb +7 -5
- data/spec/models/bid_floor_request_spec.rb +42 -0
- data/spec/models/bid_floor_spec.rb +42 -0
- data/spec/models/bid_floor_spec_spec.rb +66 -0
- data/spec/models/billing_invoice_download_response_spec.rb +42 -0
- data/spec/models/billing_invoice_response_spec.rb +128 -0
- data/spec/models/billing_invoices_get200_response_spec.rb +42 -0
- data/spec/models/billing_profiles_get200_response_spec.rb +42 -0
- data/spec/models/billing_profiles_response_spec.rb +82 -0
- data/spec/models/board_base_spec.rb +96 -0
- data/spec/models/board_create_spec.rb +54 -0
- data/spec/models/board_media_spec.rb +42 -0
- data/spec/models/board_owner_spec.rb +8 -6
- data/spec/models/board_privacy_filter_spec.rb +30 -0
- data/spec/models/board_privacy_spec.rb +30 -0
- data/spec/models/board_section_spec.rb +9 -7
- data/spec/models/board_sections_list200_response_spec.rb +42 -0
- data/spec/models/board_spec.rb +56 -16
- data/spec/models/board_update_privacy_spec.rb +30 -0
- data/spec/models/board_with_update_privacy_spec.rb +102 -0
- data/spec/models/board_with_update_privacy_update_spec.rb +48 -0
- data/spec/models/boards_list200_response_spec.rb +42 -0
- data/spec/models/boards_list_pins200_response_spec.rb +42 -0
- data/spec/models/boards_user_follows_list200_response_spec.rb +42 -0
- data/spec/models/book_closed_response_spec.rb +42 -0
- data/spec/models/brand_accounts_create200_response_spec.rb +36 -0
- data/spec/models/brand_accounts_create_request_spec.rb +66 -0
- data/spec/models/brand_accounts_update_request_spec.rb +66 -0
- data/spec/models/brand_filter_spec.rb +8 -6
- data/spec/models/budget_type_spec.rb +30 -0
- data/spec/models/bulk_download_request_campaign_filter_spec.rb +60 -0
- data/spec/models/bulk_download_request_spec.rb +60 -0
- data/spec/models/bulk_download_response_spec.rb +36 -0
- data/spec/models/bulk_entity_type_spec.rb +30 -0
- data/spec/models/bulk_output_format_spec.rb +30 -0
- data/spec/models/bulk_reporting_job_status_spec.rb +30 -0
- data/spec/models/bulk_upsert_request_create_spec.rb +72 -0
- data/spec/models/bulk_upsert_request_spec.rb +42 -0
- data/spec/models/bulk_upsert_request_update_spec.rb +72 -0
- data/spec/models/bulk_upsert_response_spec.rb +36 -0
- data/spec/models/bulk_upsert_status_response_spec.rb +42 -0
- data/spec/models/bulk_upsert_status_spec.rb +30 -0
- data/spec/models/business_access_error_spec.rb +42 -0
- data/spec/models/business_access_role_spec.rb +30 -0
- data/spec/models/business_access_user_summary_spec.rb +48 -0
- data/spec/models/business_asset_members_get200_response_spec.rb +42 -0
- data/spec/models/business_asset_partners_get200_response_spec.rb +42 -0
- data/spec/models/business_assets_get200_response_spec.rb +42 -0
- data/spec/models/business_member_assets_get200_response_spec.rb +42 -0
- data/spec/models/business_member_assets_summary_ad_accounts_inner_spec.rb +42 -0
- data/spec/models/business_member_assets_summary_profiles_inner_spec.rb +42 -0
- data/spec/models/business_member_assets_summary_spec.rb +42 -0
- data/spec/models/business_members_asset_access_delete_request_accesses_inner_spec.rb +42 -0
- data/spec/models/business_members_asset_access_delete_request_spec.rb +36 -0
- data/spec/models/business_partner_asset_access_get200_response_spec.rb +42 -0
- data/spec/models/business_role_check_mode_spec.rb +30 -0
- data/spec/models/business_role_for_members_spec.rb +30 -0
- data/spec/models/business_role_spec.rb +30 -0
- data/spec/models/business_shared_audience_response_spec.rb +48 -0
- data/spec/models/business_shared_audience_spec.rb +48 -0
- data/spec/models/campaign_audience_multipliers_spec.rb +36 -0
- data/spec/models/campaign_bid_options_create_spec.rb +48 -0
- data/spec/models/campaign_bid_options_spec.rb +48 -0
- data/spec/models/campaign_bid_options_update_spec.rb +58 -0
- data/spec/models/campaign_common_spec.rb +34 -20
- data/spec/models/campaign_create_common_spec.rb +108 -0
- data/spec/models/campaign_create_request_spec.rb +126 -0
- data/spec/models/campaign_create_response_data_spec.rb +156 -0
- data/spec/models/campaign_create_response_item_spec.rb +42 -0
- data/spec/models/campaign_create_response_spec.rb +36 -0
- data/spec/models/campaign_id_filter_spec.rb +36 -0
- data/spec/models/campaign_id_spec.rb +36 -0
- data/spec/models/campaign_objectives_filter_spec.rb +36 -0
- data/spec/models/campaign_response_spec.rb +65 -27
- data/spec/models/campaign_summary_status_spec.rb +7 -5
- data/spec/models/campaign_update_request_spec.rb +132 -0
- data/spec/models/campaign_update_response_spec.rb +36 -0
- data/spec/models/campaigns_analytics_response_inner_spec.rb +42 -0
- data/spec/models/campaigns_list200_response_spec.rb +42 -0
- data/spec/models/cancel_invites_body_spec.rb +36 -0
- data/spec/models/carousel_slot_spec.rb +48 -0
- data/spec/models/catalog_spec.rb +60 -0
- data/spec/models/catalogs_available_filter_values_spec.rb +44 -0
- data/spec/models/catalogs_create_creative_assets_item_spec.rb +52 -0
- data/spec/models/catalogs_create_hotel_item_spec.rb +52 -0
- data/spec/models/catalogs_create_report_response_spec.rb +36 -0
- data/spec/models/catalogs_create_request_spec.rb +42 -0
- data/spec/models/catalogs_create_retail_item_spec.rb +52 -0
- data/spec/models/catalogs_creative_assets_attributes_spec.rb +114 -0
- data/spec/models/catalogs_creative_assets_available_filter_values_spec.rb +46 -0
- data/spec/models/catalogs_creative_assets_batch_item_spec.rb +21 -0
- data/spec/models/catalogs_creative_assets_batch_request_spec.rb +68 -0
- data/spec/models/catalogs_creative_assets_feed_spec.rb +114 -0
- data/spec/models/catalogs_creative_assets_feeds_create_request_spec.rb +96 -0
- data/spec/models/catalogs_creative_assets_feeds_update_request_spec.rb +78 -0
- data/spec/models/catalogs_creative_assets_filter_values_map_spec.rb +112 -0
- data/spec/models/catalogs_creative_assets_item_error_response_spec.rb +48 -0
- data/spec/models/catalogs_creative_assets_item_response_spec.rb +54 -0
- data/spec/models/catalogs_creative_assets_items_batch_spec.rb +66 -0
- data/spec/models/catalogs_creative_assets_items_filter_spec.rb +52 -0
- data/spec/models/catalogs_creative_assets_items_post_filter_spec.rb +52 -0
- data/spec/models/catalogs_creative_assets_list_products_by_catalog_based_filter_request_spec.rb +52 -0
- data/spec/models/catalogs_creative_assets_product_group_create_request_spec.rb +64 -0
- data/spec/models/catalogs_creative_assets_product_group_filter_keys_spec.rb +21 -0
- data/spec/models/catalogs_creative_assets_product_group_filters_all_of_spec.rb +36 -0
- data/spec/models/catalogs_creative_assets_product_group_filters_any_of_spec.rb +36 -0
- data/spec/models/catalogs_creative_assets_product_group_filters_spec.rb +21 -0
- data/spec/models/catalogs_creative_assets_product_group_product_counts_spec.rb +52 -0
- data/spec/models/catalogs_creative_assets_product_group_spec.rb +82 -0
- data/spec/models/catalogs_creative_assets_product_group_update_request_spec.rb +58 -0
- data/spec/models/catalogs_creative_assets_product_metadata_spec.rb +42 -0
- data/spec/models/catalogs_creative_assets_product_spec.rb +52 -0
- data/spec/models/catalogs_db_item_spec.rb +10 -8
- data/spec/models/catalogs_delete_creative_assets_item_spec.rb +46 -0
- data/spec/models/catalogs_delete_hotel_item_spec.rb +46 -0
- data/spec/models/catalogs_delete_retail_item_spec.rb +52 -0
- data/spec/models/catalogs_feed_credentials_spec.rb +9 -7
- data/spec/models/catalogs_feed_ingestion_details_spec.rb +15 -7
- data/spec/models/catalogs_feed_ingestion_errors_spec.rb +40 -14
- data/spec/models/catalogs_feed_ingestion_info_spec.rb +10 -8
- data/spec/models/catalogs_feed_ingestion_spec.rb +54 -0
- data/spec/models/catalogs_feed_ingestion_warnings_spec.rb +546 -0
- data/spec/models/catalogs_feed_processing_result_spec.rb +22 -14
- data/spec/models/catalogs_feed_processing_schedule_spec.rb +10 -8
- data/spec/models/catalogs_feed_processing_status_spec.rb +7 -5
- data/spec/models/catalogs_feed_product_counts_spec.rb +14 -6
- data/spec/models/catalogs_feed_spec.rb +15 -77
- data/spec/models/catalogs_feed_validation_details_spec.rb +9 -7
- data/spec/models/catalogs_feed_validation_errors_spec.rb +72 -76
- data/spec/models/catalogs_feed_validation_warnings_spec.rb +1091 -89
- data/spec/models/catalogs_feed_video_counts_spec.rb +48 -0
- data/spec/models/catalogs_feeds_create_request_default_locale_spec.rb +21 -0
- data/spec/models/catalogs_feeds_create_request_spec.rb +28 -20
- data/spec/models/catalogs_feeds_update_request_spec.rb +20 -18
- data/spec/models/catalogs_format_spec.rb +7 -5
- data/spec/models/catalogs_hotel_address_spec.rb +60 -0
- data/spec/models/catalogs_hotel_attributes_all_of_main_image_spec.rb +42 -0
- data/spec/models/catalogs_hotel_attributes_spec.rb +144 -0
- data/spec/models/catalogs_hotel_available_filter_values_spec.rb +46 -0
- data/spec/models/catalogs_hotel_batch_item_spec.rb +21 -0
- data/spec/models/catalogs_hotel_batch_request_spec.rb +68 -0
- data/spec/models/catalogs_hotel_feed_spec.rb +108 -0
- data/spec/models/catalogs_hotel_feeds_create_request_spec.rb +90 -0
- data/spec/models/catalogs_hotel_feeds_update_request_spec.rb +78 -0
- data/spec/models/catalogs_hotel_filter_values_map_spec.rb +66 -0
- data/spec/models/catalogs_hotel_guest_ratings_spec.rb +54 -0
- data/spec/models/catalogs_hotel_item_error_response_spec.rb +48 -0
- data/spec/models/catalogs_hotel_item_response_spec.rb +54 -0
- data/spec/models/catalogs_hotel_items_batch_spec.rb +66 -0
- data/spec/models/catalogs_hotel_items_filter_spec.rb +52 -0
- data/spec/models/catalogs_hotel_items_post_filter_spec.rb +52 -0
- data/spec/models/catalogs_hotel_list_products_by_catalog_based_filter_request_spec.rb +52 -0
- data/spec/models/catalogs_hotel_product_group_create_request_spec.rb +64 -0
- data/spec/models/catalogs_hotel_product_group_filter_keys_spec.rb +21 -0
- data/spec/models/catalogs_hotel_product_group_filters_all_of_spec.rb +36 -0
- data/spec/models/catalogs_hotel_product_group_filters_any_of_spec.rb +36 -0
- data/spec/models/catalogs_hotel_product_group_filters_spec.rb +21 -0
- data/spec/models/catalogs_hotel_product_group_product_counts_spec.rb +46 -0
- data/spec/models/catalogs_hotel_product_group_spec.rb +88 -0
- data/spec/models/catalogs_hotel_product_group_type_spec.rb +30 -0
- data/spec/models/catalogs_hotel_product_group_update_request_spec.rb +58 -0
- data/spec/models/catalogs_hotel_product_metadata_spec.rb +36 -0
- data/spec/models/catalogs_hotel_product_spec.rb +52 -0
- data/spec/models/catalogs_hotel_report_parameters_report_spec.rb +44 -0
- data/spec/models/catalogs_hotel_report_parameters_spec.rb +46 -0
- data/spec/models/catalogs_hotel_report_stats_parameters_report_spec.rb +44 -0
- data/spec/models/catalogs_hotel_report_stats_parameters_spec.rb +46 -0
- data/spec/models/catalogs_item_validation_details_spec.rb +42 -0
- data/spec/models/catalogs_item_validation_errors_spec.rb +168 -0
- data/spec/models/catalogs_item_validation_issue_spec.rb +30 -0
- data/spec/models/catalogs_item_validation_issues_spec.rb +54 -0
- data/spec/models/catalogs_item_validation_warnings_spec.rb +1266 -0
- data/spec/models/catalogs_items_batch_request_spec.rb +15 -23
- data/spec/models/catalogs_items_batch_spec.rb +15 -29
- data/spec/models/catalogs_items_create_batch_request_spec.rb +58 -0
- data/spec/models/catalogs_items_delete_batch_request_spec.rb +58 -0
- data/spec/models/catalogs_items_delete_discontinued_batch_request_spec.rb +58 -0
- data/spec/models/catalogs_items_filters_spec.rb +44 -0
- data/spec/models/catalogs_items_post_filters_spec.rb +44 -0
- data/spec/models/catalogs_items_request_spec.rb +52 -0
- data/spec/models/catalogs_items_spec.rb +8 -6
- data/spec/models/catalogs_items_update_batch_request_spec.rb +58 -0
- data/spec/models/catalogs_items_upsert_batch_request_spec.rb +58 -0
- data/spec/models/catalogs_list200_response_spec.rb +42 -0
- data/spec/models/catalogs_list_products_by_feed_based_filter_spec.rb +42 -0
- data/spec/models/catalogs_list_products_by_filter_request_spec.rb +32 -0
- data/spec/models/catalogs_locale_spec.rb +30 -0
- data/spec/models/catalogs_product_group_create_request_spec.rb +20 -12
- data/spec/models/catalogs_product_group_currency_criteria_spec.rb +11 -9
- data/spec/models/catalogs_product_group_filter_keys_spec.rb +3 -166
- data/spec/models/catalogs_product_group_filter_operator_type_criteria_spec.rb +52 -0
- data/spec/models/catalogs_product_group_filters_all_of_spec.rb +8 -6
- data/spec/models/catalogs_product_group_filters_any_of_spec.rb +8 -6
- data/spec/models/catalogs_product_group_filters_request_spec.rb +21 -0
- data/spec/models/catalogs_product_group_filters_spec.rb +3 -22
- data/spec/models/catalogs_product_group_multiple_countries_criteria_spec.rb +42 -0
- data/spec/models/catalogs_product_group_multiple_gender_criteria_spec.rb +42 -0
- data/spec/models/catalogs_product_group_multiple_media_types_criteria_spec.rb +42 -0
- data/spec/models/catalogs_product_group_multiple_string_criteria_spec.rb +11 -9
- data/spec/models/catalogs_product_group_multiple_string_list_criteria_spec.rb +11 -9
- data/spec/models/catalogs_product_group_pins_list200_response_spec.rb +42 -0
- data/spec/models/catalogs_product_group_pricing_criteria_spec.rb +12 -10
- data/spec/models/catalogs_product_group_pricing_currency_criteria_spec.rb +58 -0
- data/spec/models/catalogs_product_group_product_counts_vertical_spec.rb +44 -0
- data/spec/models/catalogs_product_group_status_spec.rb +7 -5
- data/spec/models/catalogs_product_group_type_spec.rb +7 -5
- data/spec/models/catalogs_product_group_uint32_criteria_spec.rb +52 -0
- data/spec/models/catalogs_product_group_update_request_spec.rb +15 -13
- data/spec/models/catalogs_product_groups_list200_response_spec.rb +42 -0
- data/spec/models/catalogs_product_groups_update_request_spec.rb +32 -0
- data/spec/models/catalogs_product_spec.rb +44 -0
- data/spec/models/catalogs_report_all_items_filter_spec.rb +46 -0
- data/spec/models/catalogs_report_distribution_issue_filter_spec.rb +46 -0
- data/spec/models/catalogs_report_distribution_stats_spec.rb +82 -0
- data/spec/models/catalogs_report_feed_ingestion_filter_spec.rb +52 -0
- data/spec/models/catalogs_report_feed_ingestion_stats_spec.rb +80 -0
- data/spec/models/catalogs_report_parameters_spec.rb +44 -0
- data/spec/models/catalogs_report_spec.rb +52 -0
- data/spec/models/catalogs_report_stats_spec.rb +44 -0
- data/spec/models/catalogs_retail_available_filter_values_spec.rb +46 -0
- data/spec/models/catalogs_retail_batch_request_items_inner_spec.rb +21 -0
- data/spec/models/catalogs_retail_batch_request_spec.rb +68 -0
- data/spec/models/catalogs_retail_feed_spec.rb +114 -0
- data/spec/models/catalogs_retail_feeds_create_request_spec.rb +102 -0
- data/spec/models/catalogs_retail_feeds_update_request_spec.rb +84 -0
- data/spec/models/catalogs_retail_filter_values_map_spec.rb +190 -0
- data/spec/models/catalogs_retail_item_error_response_spec.rb +48 -0
- data/spec/models/catalogs_retail_item_response_spec.rb +54 -0
- data/spec/models/catalogs_retail_items_batch_spec.rb +66 -0
- data/spec/models/catalogs_retail_items_filter_spec.rb +52 -0
- data/spec/models/catalogs_retail_items_post_filter_spec.rb +52 -0
- data/spec/models/catalogs_retail_list_products_by_catalog_based_filter_request_spec.rb +64 -0
- data/spec/models/catalogs_retail_product_group_create_request_spec.rb +76 -0
- data/spec/models/catalogs_retail_product_group_product_counts_spec.rb +70 -0
- data/spec/models/catalogs_retail_product_group_spec.rb +118 -0
- data/spec/models/catalogs_retail_product_group_update_request_spec.rb +70 -0
- data/spec/models/catalogs_retail_product_metadata_spec.rb +66 -0
- data/spec/models/catalogs_retail_product_spec.rb +52 -0
- data/spec/models/catalogs_retail_report_parameters_spec.rb +46 -0
- data/spec/models/catalogs_retail_report_stats_parameters_spec.rb +46 -0
- data/spec/models/catalogs_status_spec.rb +7 -5
- data/spec/models/catalogs_type_spec.rb +30 -0
- data/spec/models/catalogs_updatable_creative_assets_attributes_spec.rb +102 -0
- data/spec/models/catalogs_updatable_hotel_attributes_spec.rb +132 -0
- data/spec/models/catalogs_update_creative_assets_item_spec.rb +52 -0
- data/spec/models/catalogs_update_hotel_item_spec.rb +52 -0
- data/spec/models/catalogs_update_retail_item_spec.rb +58 -0
- data/spec/models/catalogs_upsert_creative_assets_item_spec.rb +52 -0
- data/spec/models/catalogs_upsert_hotel_item_spec.rb +52 -0
- data/spec/models/catalogs_upsert_retail_item_spec.rb +52 -0
- data/spec/models/catalogs_vertical_batch_request_spec.rb +44 -0
- data/spec/models/catalogs_vertical_feeds_create_request_spec.rb +44 -0
- data/spec/models/catalogs_vertical_feeds_update_request_spec.rb +44 -0
- data/spec/models/catalogs_vertical_product_group_create_request_spec.rb +44 -0
- data/spec/models/catalogs_vertical_product_group_spec.rb +44 -0
- data/spec/models/catalogs_vertical_product_group_update_request_spec.rb +44 -0
- data/spec/models/catalogs_verticals_list_products_by_catalog_based_filter_request_spec.rb +44 -0
- data/spec/models/condition_filter_spec.rb +8 -6
- data/spec/models/content_type_spec.rb +30 -0
- data/spec/models/conversion_access_token_response_spec.rb +42 -0
- data/spec/models/conversion_api_response_events_inner_spec.rb +52 -0
- data/spec/models/conversion_api_response_spec.rb +48 -0
- data/spec/models/conversion_attribution_window_days_spec.rb +7 -5
- data/spec/models/conversion_event_app_info_spec.rb +84 -0
- data/spec/models/conversion_event_device_info_spec.rb +186 -0
- data/spec/models/conversion_event_response_spec.rb +54 -0
- data/spec/models/conversion_events_data_inner_custom_data_contents_inner_spec.rb +66 -0
- data/spec/models/conversion_events_data_inner_custom_data_spec.rb +120 -0
- data/spec/models/conversion_events_data_inner_spec.rb +156 -0
- data/spec/models/conversion_events_spec.rb +36 -0
- data/spec/models/conversion_events_user_data_properties_spec.rb +126 -0
- data/spec/models/conversion_events_user_data_spec.rb +21 -0
- data/spec/models/conversion_health_selection_item_spec.rb +54 -0
- data/spec/models/conversion_msot_events_spec.rb +120 -0
- data/spec/models/conversion_product_report_request_spec.rb +136 -0
- data/spec/models/conversion_product_reporting_column_spec.rb +30 -0
- data/spec/models/conversion_report_attribution_type_spec.rb +7 -5
- data/spec/models/conversion_report_time_type_spec.rb +7 -5
- data/spec/models/conversion_tag_common_spec.rb +72 -0
- data/spec/models/conversion_tag_configs_spec.rb +84 -0
- data/spec/models/conversion_tag_create_spec.rb +84 -0
- data/spec/models/conversion_tag_list_response_spec.rb +36 -0
- data/spec/models/conversion_tag_response_spec.rb +84 -0
- data/spec/models/conversion_tag_spec.rb +84 -0
- data/spec/models/conversion_tag_type_spec.rb +30 -0
- data/spec/models/conversion_tags_list200_response_spec.rb +36 -0
- data/spec/models/country_filter_spec.rb +36 -0
- data/spec/models/country_spec.rb +7 -5
- data/spec/models/create_asset_access_request_body_asset_requests_inner_spec.rb +42 -0
- data/spec/models/create_asset_access_request_body_spec.rb +36 -0
- data/spec/models/create_asset_access_request_error_message_inner_spec.rb +42 -0
- data/spec/models/create_asset_access_request_response_spec.rb +42 -0
- data/spec/models/create_asset_group_body_spec.rb +48 -0
- data/spec/models/create_asset_group_response_spec.rb +36 -0
- data/spec/models/create_asset_invites_request_item_spec.rb +48 -0
- data/spec/models/create_asset_invites_request_spec.rb +36 -0
- data/spec/models/create_invites_results_response_array_items_inner_invite_spec.rb +42 -0
- data/spec/models/create_invites_results_response_array_items_inner_spec.rb +42 -0
- data/spec/models/create_invites_results_response_array_spec.rb +36 -0
- data/spec/models/create_membership_or_partnership_invites_body_spec.rb +58 -0
- data/spec/models/create_mmm_report_request_spec.rb +86 -0
- data/spec/models/create_mmm_report_response_data_spec.rb +54 -0
- data/spec/models/create_mmm_report_response_spec.rb +42 -0
- data/spec/models/creative_assets_id_filter_spec.rb +36 -0
- data/spec/models/creative_assets_processing_record_spec.rb +54 -0
- data/spec/models/creative_assets_visibility_type_spec.rb +30 -0
- data/spec/models/creative_type_spec.rb +30 -0
- data/spec/models/currency_filter_spec.rb +8 -6
- data/spec/models/currency_spec.rb +7 -5
- data/spec/models/custom_label0_filter_spec.rb +8 -6
- data/spec/models/custom_label1_filter_spec.rb +8 -6
- data/spec/models/custom_label2_filter_spec.rb +8 -6
- data/spec/models/custom_label3_filter_spec.rb +8 -6
- data/spec/models/custom_label4_filter_spec.rb +8 -6
- data/spec/models/custom_number0_filter_spec.rb +36 -0
- data/spec/models/custom_number1_filter_spec.rb +36 -0
- data/spec/models/custom_number2_filter_spec.rb +36 -0
- data/spec/models/custom_number3_filter_spec.rb +36 -0
- data/spec/models/custom_number4_filter_spec.rb +36 -0
- data/spec/models/customer_list_request_spec.rb +48 -0
- data/spec/models/customer_list_spec.rb +100 -0
- data/spec/models/customer_list_update_request_spec.rb +42 -0
- data/spec/models/customer_list_upload_create_request_spec.rb +42 -0
- data/spec/models/customer_list_upload_create_response_spec.rb +42 -0
- data/spec/models/customer_list_upload_response_spec.rb +88 -0
- data/spec/models/customer_list_upload_spec.rb +88 -0
- data/spec/models/customer_lists_list200_response_spec.rb +42 -0
- data/spec/models/customizable_cta_type_spec.rb +30 -0
- data/spec/models/data_output_format_spec.rb +7 -5
- data/spec/models/data_status_spec.rb +30 -0
- data/spec/models/delete_asset_group_body_spec.rb +36 -0
- data/spec/models/delete_asset_group_response_exceptions_inner_spec.rb +48 -0
- data/spec/models/delete_asset_group_response_spec.rb +42 -0
- data/spec/models/delete_invites_results_response_array_items_inner_exception_spec.rb +42 -0
- data/spec/models/delete_invites_results_response_array_items_inner_spec.rb +42 -0
- data/spec/models/delete_invites_results_response_array_spec.rb +36 -0
- data/spec/models/delete_member_access_result_spec.rb +42 -0
- data/spec/models/delete_member_access_results_response_array_spec.rb +36 -0
- data/spec/models/delete_partner_asset_access_body_accesses_inner_spec.rb +52 -0
- data/spec/models/delete_partner_asset_access_body_spec.rb +36 -0
- data/spec/models/delete_partner_assets_result_spec.rb +60 -0
- data/spec/models/delete_partner_assets_results_response_array_spec.rb +36 -0
- data/spec/models/delete_partners_request_spec.rb +42 -0
- data/spec/models/delete_partners_response_spec.rb +36 -0
- data/spec/models/deleted_members_response_spec.rb +36 -0
- data/spec/models/delivery_metrics_response_items_inner_spec.rb +58 -0
- data/spec/models/delivery_metrics_response_spec.rb +36 -0
- data/spec/models/detailed_error_spec.rb +48 -0
- data/spec/models/disclosure_type_spec.rb +30 -0
- data/spec/models/enhanced_match_status_type_spec.rb +30 -0
- data/spec/models/entity_status_spec.rb +7 -5
- data/spec/models/error_detail_spec.rb +48 -0
- data/spec/models/error_spec.rb +9 -7
- data/spec/models/event_data_spec.rb +96 -0
- data/spec/models/event_quality_score_spec.rb +60 -0
- data/spec/models/exception_spec.rb +42 -0
- data/spec/models/featured_trend_spec.rb +48 -0
- data/spec/models/feed_processing_results_list200_response_spec.rb +42 -0
- data/spec/models/feeds_create_request_spec.rb +32 -0
- data/spec/models/feeds_list200_response_spec.rb +42 -0
- data/spec/models/feeds_update_request_spec.rb +32 -0
- data/spec/models/follow_user_request_spec.rb +36 -0
- data/spec/models/followers_list200_response_spec.rb +42 -0
- data/spec/models/gender_bucket_spec.rb +30 -0
- data/spec/models/gender_demographics_spec.rb +48 -0
- data/spec/models/gender_filter_spec.rb +8 -6
- data/spec/models/gender_spec.rb +30 -0
- data/spec/models/get_audiences_order_by_spec.rb +30 -0
- data/spec/models/get_business_asset_type_response_spec.rb +30 -0
- data/spec/models/get_business_assets_response_catalog_info_spec.rb +48 -0
- data/spec/models/get_business_assets_response_spec.rb +54 -0
- data/spec/models/get_business_employers200_response_spec.rb +42 -0
- data/spec/models/get_business_members200_response_spec.rb +42 -0
- data/spec/models/get_business_partners200_response_spec.rb +42 -0
- data/spec/models/get_invites200_response_spec.rb +42 -0
- data/spec/models/get_mmm_report_response_data_spec.rb +52 -0
- data/spec/models/get_mmm_report_response_spec.rb +54 -0
- data/spec/models/get_partner_assets_response_spec.rb +54 -0
- data/spec/models/google_product_category0_filter_spec.rb +8 -6
- data/spec/models/google_product_category1_filter_spec.rb +8 -6
- data/spec/models/google_product_category2_filter_spec.rb +8 -6
- data/spec/models/google_product_category3_filter_spec.rb +8 -6
- data/spec/models/google_product_category4_filter_spec.rb +8 -6
- data/spec/models/google_product_category5_filter_spec.rb +8 -6
- data/spec/models/google_product_category6_filter_spec.rb +8 -6
- data/spec/models/granularity_spec.rb +7 -5
- data/spec/models/grid_click_type_spec.rb +30 -0
- data/spec/models/hotel_id_filter_spec.rb +36 -0
- data/spec/models/hotel_processing_record_spec.rb +54 -0
- data/spec/models/image_base64_spec.rb +46 -0
- data/spec/models/image_details_spec.rb +13 -11
- data/spec/models/image_metadata_spec.rb +60 -0
- data/spec/models/image_size_spec.rb +54 -0
- data/spec/models/ingestion_source_options_spec.rb +30 -0
- data/spec/models/inner_product_categories_metrics_highlights_spec.rb +36 -0
- data/spec/models/integration_log_client_error_spec.rb +84 -0
- data/spec/models/integration_log_client_request_spec.rb +70 -0
- data/spec/models/integration_log_spec.rb +116 -0
- data/spec/models/integration_logs_invalid_log_response_rejected_logs_inner_spec.rb +54 -0
- data/spec/models/integration_logs_invalid_log_response_spec.rb +36 -0
- data/spec/models/integration_logs_request_spec.rb +36 -0
- data/spec/models/integration_logs_success_response_spec.rb +36 -0
- data/spec/models/integration_metadata_spec.rb +114 -0
- data/spec/models/integration_record_spec.rb +132 -0
- data/spec/models/integration_request_patch_spec.rb +102 -0
- data/spec/models/integration_request_spec.rb +108 -0
- data/spec/models/integrations_get_list200_response_spec.rb +42 -0
- data/spec/models/integrations_logs_post400_response_spec.rb +21 -0
- data/spec/models/interest_spec.rb +54 -0
- data/spec/models/interests_enum_spec.rb +30 -0
- data/spec/models/invite_assets_summary_ad_accounts_inner_spec.rb +42 -0
- data/spec/models/invite_assets_summary_profiles_inner_spec.rb +42 -0
- data/spec/models/invite_assets_summary_spec.rb +42 -0
- data/spec/models/invite_business_role_binding_spec.rb +66 -0
- data/spec/models/invite_exception_response_spec.rb +54 -0
- data/spec/models/invite_response_spec.rb +84 -0
- data/spec/models/invite_status_spec.rb +30 -0
- data/spec/models/invite_type_spec.rb +30 -0
- data/spec/models/item_attributes_request_all_of_image_link_spec.rb +32 -0
- data/spec/models/item_attributes_request_spec.rb +672 -0
- data/spec/models/item_attributes_spec.rb +425 -51
- data/spec/models/item_batch_record_spec.rb +9 -17
- data/spec/models/item_create_batch_record_spec.rb +42 -0
- data/spec/models/item_delete_batch_record_spec.rb +36 -0
- data/spec/models/item_delete_discontinued_batch_record_spec.rb +36 -0
- data/spec/models/item_group_id_filter_spec.rb +8 -6
- data/spec/models/item_id_filter_spec.rb +8 -6
- data/spec/models/item_processing_record_spec.rb +15 -13
- data/spec/models/item_processing_status_spec.rb +7 -5
- data/spec/models/item_response_one_of1_spec.rb +44 -0
- data/spec/models/item_response_one_of_spec.rb +44 -0
- data/spec/models/item_response_spec.rb +32 -0
- data/spec/models/item_update_batch_record_spec.rb +48 -0
- data/spec/models/item_upsert_batch_record_spec.rb +42 -0
- data/spec/models/item_validation_event_spec.rb +10 -8
- data/spec/models/items_batch_post_request_spec.rb +32 -0
- data/spec/models/items_issues_list200_response_spec.rb +42 -0
- data/spec/models/keyword_error_spec.rb +42 -0
- data/spec/models/keyword_metrics_response_spec.rb +42 -0
- data/spec/models/keyword_metrics_spec.rb +36 -0
- data/spec/models/keyword_spec.rb +78 -0
- data/spec/models/keyword_update_body_spec.rb +36 -0
- data/spec/models/keyword_update_spec.rb +48 -0
- data/spec/models/keywords_common_spec.rb +48 -0
- data/spec/models/keywords_get200_response_spec.rb +42 -0
- data/spec/models/keywords_metrics_array_response_spec.rb +36 -0
- data/spec/models/keywords_request_spec.rb +42 -0
- data/spec/models/keywords_response_spec.rb +42 -0
- data/spec/models/label_bulk_update_request_spec.rb +52 -0
- data/spec/models/label_create_request_labels_inner_spec.rb +42 -0
- data/spec/models/label_create_request_spec.rb +42 -0
- data/spec/models/label_error_spec.rb +42 -0
- data/spec/models/label_parent_type_spec.rb +30 -0
- data/spec/models/label_spec.rb +70 -0
- data/spec/models/label_status_spec.rb +30 -0
- data/spec/models/label_type_spec.rb +30 -0
- data/spec/models/label_update_request_labels_inner_spec.rb +48 -0
- data/spec/models/label_update_request_spec.rb +36 -0
- data/spec/models/labels_list200_response_spec.rb +42 -0
- data/spec/models/labels_response_spec.rb +42 -0
- data/spec/models/language_spec.rb +7 -5
- data/spec/models/lead_form_array_response_items_inner_spec.rb +42 -0
- data/spec/models/lead_form_array_response_spec.rb +36 -0
- data/spec/models/lead_form_common_policy_links_inner_spec.rb +42 -0
- data/spec/models/lead_form_common_spec.rb +78 -0
- data/spec/models/lead_form_create_request_spec.rb +78 -0
- data/spec/models/lead_form_question_field_type_spec.rb +30 -0
- data/spec/models/lead_form_question_spec.rb +54 -0
- data/spec/models/lead_form_question_type_spec.rb +30 -0
- data/spec/models/lead_form_response_spec.rb +102 -0
- data/spec/models/lead_form_status_spec.rb +30 -0
- data/spec/models/lead_form_test_request_spec.rb +36 -0
- data/spec/models/lead_form_test_response_spec.rb +36 -0
- data/spec/models/lead_form_update_request_spec.rb +84 -0
- data/spec/models/lead_forms_list200_response_spec.rb +42 -0
- data/spec/models/lead_subscription_post_params_create_all_of_partner_metadata_spec.rb +36 -0
- data/spec/models/lead_subscription_post_params_create_spec.rb +60 -0
- data/spec/models/lead_subscription_spec.rb +84 -0
- data/spec/models/leads_export_create_request_spec.rb +48 -0
- data/spec/models/leads_export_create_response_spec.rb +36 -0
- data/spec/models/leads_export_response_data_spec.rb +42 -0
- data/spec/models/leads_export_status_spec.rb +30 -0
- data/spec/models/line_item_spec.rb +78 -0
- data/spec/models/linked_business_spec.rb +60 -0
- data/spec/models/local_store_update_spec.rb +96 -0
- data/spec/models/lookback_period_options_spec.rb +30 -0
- data/spec/models/match_type_response_spec.rb +30 -0
- data/spec/models/match_type_spec.rb +30 -0
- data/spec/models/max_price_filter_spec.rb +8 -6
- data/spec/models/media_list200_response_spec.rb +42 -0
- data/spec/models/media_spec.rb +48 -0
- data/spec/models/media_type_filter_spec.rb +36 -0
- data/spec/models/media_type_spec.rb +30 -0
- data/spec/models/media_upload_create_spec.rb +36 -0
- data/spec/models/media_upload_parameters_spec.rb +78 -0
- data/spec/models/media_upload_spec.rb +13 -11
- data/spec/models/media_upload_status_spec.rb +7 -5
- data/spec/models/media_upload_type_spec.rb +7 -5
- data/spec/models/member_business_role_spec.rb +30 -0
- data/spec/models/members_to_delete_body_members_inner_spec.rb +42 -0
- data/spec/models/members_to_delete_body_spec.rb +36 -0
- data/spec/models/metrics_reporting_level_spec.rb +7 -5
- data/spec/models/metrics_response_spec.rb +36 -0
- data/spec/models/min_price_filter_spec.rb +8 -6
- data/spec/models/mmm_reporting_column_spec.rb +30 -0
- data/spec/models/mmm_reporting_targeting_type_spec.rb +30 -0
- data/spec/models/multiple_product_groups_inner_spec.rb +32 -0
- data/spec/models/non_draft_entity_status_spec.rb +30 -0
- data/spec/models/non_nullable_catalogs_currency_spec.rb +7 -5
- data/spec/models/non_nullable_product_availability_type_spec.rb +30 -0
- data/spec/models/notification_post_request_spec.rb +32 -0
- data/spec/models/notification_response_spec.rb +48 -0
- data/spec/models/nullable_catalogs_item_field_type_spec.rb +30 -0
- data/spec/models/nullable_currency_spec.rb +7 -5
- data/spec/models/oauth_access_token_request_client_credentials_spec.rb +46 -0
- data/spec/models/oauth_access_token_request_code_spec.rb +19 -7
- data/spec/models/oauth_access_token_request_refresh_spec.rb +19 -7
- data/spec/models/oauth_access_token_response_client_credentials_spec.rb +64 -0
- data/spec/models/oauth_access_token_response_code_spec.rb +49 -7
- data/spec/models/oauth_access_token_response_integration_refresh_spec.rb +76 -0
- data/spec/models/oauth_access_token_response_refresh_spec.rb +59 -5
- data/spec/models/oauth_access_token_response_spec.rb +21 -19
- data/spec/models/objective_type_spec.rb +7 -5
- data/spec/models/operation_type_spec.rb +30 -0
- data/spec/models/optimization_goal_metadata_conversion_tag_v3_goal_metadata_attribution_windows_spec.rb +48 -0
- data/spec/models/optimization_goal_metadata_conversion_tag_v3_goal_metadata_spec.rb +80 -0
- data/spec/models/optimization_goal_metadata_frequency_goal_metadata_spec.rb +46 -0
- data/spec/models/optimization_goal_metadata_scrollup_goal_metadata_spec.rb +36 -0
- data/spec/models/optimization_goal_metadata_spec.rb +48 -0
- data/spec/models/order_line_error_spec.rb +42 -0
- data/spec/models/order_line_paid_type_spec.rb +30 -0
- data/spec/models/order_line_response_spec.rb +42 -0
- data/spec/models/order_line_single_response_spec.rb +36 -0
- data/spec/models/order_line_spec.rb +102 -0
- data/spec/models/order_line_status_spec.rb +30 -0
- data/spec/models/order_lines_array_response_spec.rb +36 -0
- data/spec/models/order_lines_list200_response_spec.rb +42 -0
- data/spec/models/order_lines_spec.rb +96 -0
- data/spec/models/overall_status_options_spec.rb +30 -0
- data/spec/models/pacing_delivery_type_spec.rb +7 -5
- data/spec/models/page_visit_conversion_tags_get200_response_spec.rb +42 -0
- data/spec/models/paginated_spec.rb +11 -9
- data/spec/models/partner_type_spec.rb +30 -0
- data/spec/models/permissions_spec.rb +30 -0
- data/spec/models/permissions_with_owner_spec.rb +30 -0
- data/spec/models/pin_analytics_metrics_response_daily_metrics_inner_spec.rb +48 -0
- data/spec/models/pin_analytics_metrics_response_spec.rb +48 -0
- data/spec/models/pin_create_spec.rb +90 -0
- data/spec/models/pin_media_metadata_spec.rb +21 -0
- data/spec/models/pin_media_source_image_base64_spec.rb +23 -19
- data/spec/models/pin_media_source_image_url_spec.rb +15 -7
- data/spec/models/pin_media_source_images_base64_item_spec.rb +60 -0
- data/spec/models/pin_media_source_images_base64_spec.rb +52 -0
- data/spec/models/pin_media_source_images_url_item_spec.rb +54 -0
- data/spec/models/pin_media_source_images_url_spec.rb +52 -0
- data/spec/models/pin_media_source_pin_url_spec.rb +46 -0
- data/spec/models/pin_media_source_spec.rb +4 -3
- data/spec/models/pin_media_source_video_id_spec.rb +39 -13
- data/spec/models/pin_media_spec.rb +20 -10
- data/spec/models/pin_media_with_image_and_video_spec.rb +46 -0
- data/spec/models/pin_media_with_image_spec.rb +18 -6
- data/spec/models/pin_media_with_images_spec.rb +46 -0
- data/spec/models/pin_media_with_video_spec.rb +76 -0
- data/spec/models/pin_media_with_videos_spec.rb +46 -0
- data/spec/models/pin_promotion_summary_status_spec.rb +7 -5
- data/spec/models/pin_spec.rb +63 -25
- data/spec/models/pin_update_spec.rb +72 -0
- data/spec/models/pins_list200_response_spec.rb +42 -0
- data/spec/models/pins_save_request_spec.rb +42 -0
- data/spec/models/pinterest_lib_error_spec.rb +42 -0
- data/spec/models/pinterest_lib_pagination_order_spec.rb +30 -0
- data/spec/models/pinterest_lib_status204_spec.rb +40 -0
- data/spec/models/placement_group_type_spec.rb +7 -5
- data/spec/models/placement_multipliers_spec.rb +40 -0
- data/spec/models/predicted_time_series_spec.rb +36 -0
- data/spec/models/price_filter_spec.rb +36 -0
- data/spec/models/product_availability_type_spec.rb +7 -5
- data/spec/models/product_categories_demographic_spec.rb +42 -0
- data/spec/models/product_categories_engagement_type_spec.rb +30 -0
- data/spec/models/product_categories_metrics_highlights_spec.rb +48 -0
- data/spec/models/product_category_detail_lookback_window_spec.rb +30 -0
- data/spec/models/product_category_details_spec.rb +72 -0
- data/spec/models/product_category_enum_spec.rb +30 -0
- data/spec/models/product_category_region_spec.rb +30 -0
- data/spec/models/product_group_analytics_response_inner_spec.rb +42 -0
- data/spec/models/product_group_promotion_create_request_spec.rb +42 -0
- data/spec/models/product_group_promotion_response_item_spec.rb +42 -0
- data/spec/models/product_group_promotion_response_spec.rb +36 -0
- data/spec/models/product_group_promotion_spec.rb +186 -0
- data/spec/models/product_group_promotion_update_request_spec.rb +42 -0
- data/spec/models/product_group_promotions_list200_response_spec.rb +42 -0
- data/spec/models/product_group_reference_filter_spec.rb +36 -0
- data/spec/models/product_group_summary_status_spec.rb +7 -5
- data/spec/models/product_type0_filter_spec.rb +8 -6
- data/spec/models/product_type1_filter_spec.rb +8 -6
- data/spec/models/product_type2_filter_spec.rb +8 -6
- data/spec/models/product_type3_filter_spec.rb +8 -6
- data/spec/models/product_type4_filter_spec.rb +8 -6
- data/spec/models/promotion_array_element_spec.rb +42 -0
- data/spec/models/promotion_common_spec.rb +94 -0
- data/spec/models/promotion_create_request_spec.rb +94 -0
- data/spec/models/promotion_response_spec.rb +112 -0
- data/spec/models/promotion_template_value_spec.rb +54 -0
- data/spec/models/promotion_type_spec.rb +30 -0
- data/spec/models/promotion_update_request_spec.rb +106 -0
- data/spec/models/promotions_list200_response_spec.rb +42 -0
- data/spec/models/promotions_response_spec.rb +36 -0
- data/spec/models/quality_component_details_spec.rb +48 -0
- data/spec/models/quality_component_issue_spec.rb +48 -0
- data/spec/models/quality_components_spec.rb +96 -0
- data/spec/models/quiz_pin_data_spec.rb +58 -0
- data/spec/models/quiz_pin_option_spec.rb +42 -0
- data/spec/models/quiz_pin_question_spec.rb +48 -0
- data/spec/models/quiz_pin_result_spec.rb +60 -0
- data/spec/models/record_counts_spec.rb +48 -0
- data/spec/models/related_terms_related_terms_list_inner_spec.rb +42 -0
- data/spec/models/related_terms_spec.rb +48 -0
- data/spec/models/reporting_column_async_spec.rb +7 -5
- data/spec/models/reporting_time_zone_spec.rb +30 -0
- data/spec/models/reports_stats200_response_spec.rb +42 -0
- data/spec/models/reports_stats_parameters_parameter_spec.rb +44 -0
- data/spec/models/respond_to_invites_response_array_items_inner_spec.rb +42 -0
- data/spec/models/respond_to_invites_response_array_spec.rb +36 -0
- data/spec/models/role_spec.rb +30 -0
- data/spec/models/s3_file_part_spec.rb +42 -0
- data/spec/models/s3_multipart_upload_data_spec.rb +36 -0
- data/spec/models/search_partner_pins200_response_spec.rb +42 -0
- data/spec/models/search_user_boards_get200_response_spec.rb +42 -0
- data/spec/models/search_user_pins_list200_response_spec.rb +42 -0
- data/spec/models/shared_audience_account_spec.rb +58 -0
- data/spec/models/shared_audience_common_spec.rb +42 -0
- data/spec/models/shared_audience_response_common_spec.rb +42 -0
- data/spec/models/shared_audience_response_spec.rb +48 -0
- data/spec/models/shared_audience_spec.rb +48 -0
- data/spec/models/single_interest_targeting_option_response_spec.rb +54 -0
- data/spec/models/source_platform_options_spec.rb +30 -0
- data/spec/models/ssio_account_address_spec.rb +54 -0
- data/spec/models/ssio_account_item_spec.rb +84 -0
- data/spec/models/ssio_account_pmp_name_spec.rb +42 -0
- data/spec/models/ssio_account_response_spec.rb +66 -0
- data/spec/models/ssio_create_insertion_order_request_spec.rb +166 -0
- data/spec/models/ssio_create_insertion_order_response_spec.rb +36 -0
- data/spec/models/ssio_edit_insertion_order_request_spec.rb +126 -0
- data/spec/models/ssio_edit_insertion_order_response_spec.rb +36 -0
- data/spec/models/ssio_insertion_order_common_spec.rb +102 -0
- data/spec/models/ssio_insertion_order_status_response_spec.rb +48 -0
- data/spec/models/ssio_insertion_order_status_spec.rb +48 -0
- data/spec/models/ssio_insertion_orders_status_get_by_ad_account200_response_spec.rb +42 -0
- data/spec/models/ssio_order_line_spec.rb +162 -0
- data/spec/models/ssio_order_lines_get_by_ad_account200_response_spec.rb +42 -0
- data/spec/models/summary_pin_spec.rb +66 -0
- data/spec/models/system_user_update_request_spec.rb +36 -0
- data/spec/models/targeting_advertiser_country_spec.rb +30 -0
- data/spec/models/targeting_spec_age_bucket_spec.rb +30 -0
- data/spec/models/targeting_spec_app_type_spec.rb +30 -0
- data/spec/models/targeting_spec_gender_spec.rb +30 -0
- data/spec/models/targeting_spec_operation_age_bucket_spec.rb +56 -0
- data/spec/models/targeting_spec_operation_app_type_spec.rb +56 -0
- data/spec/models/targeting_spec_operation_gender_spec.rb +56 -0
- data/spec/models/targeting_spec_operation_list_spec.rb +52 -0
- data/spec/models/targeting_spec_operation_min_max_age_spec.rb +56 -0
- data/spec/models/targeting_spec_operation_shopping_retargeting_spec.rb +56 -0
- data/spec/models/targeting_spec_operation_string_spec.rb +52 -0
- data/spec/models/targeting_spec_shopping_retargeting_spec.rb +48 -0
- data/spec/models/targeting_spec_spec.rb +112 -0
- data/spec/models/targeting_template_audience_sizing_reach_estimate_spec.rb +48 -0
- data/spec/models/targeting_template_audience_sizing_spec.rb +36 -0
- data/spec/models/targeting_template_common_spec.rb +66 -0
- data/spec/models/targeting_template_create_spec.rb +66 -0
- data/spec/models/targeting_template_get_response_data_spec.rb +112 -0
- data/spec/models/targeting_template_keyword_spec.rb +42 -0
- data/spec/models/targeting_template_list200_response_spec.rb +42 -0
- data/spec/models/targeting_template_response_data_spec.rb +106 -0
- data/spec/models/targeting_template_update_request_spec.rb +52 -0
- data/spec/models/targeting_type_filter_spec.rb +12 -6
- data/spec/models/template_based_report_spec.rb +54 -0
- data/spec/models/template_response_date_range_absolute_date_range_spec.rb +48 -0
- data/spec/models/template_response_date_range_dynamic_date_range_spec.rb +46 -0
- data/spec/models/template_response_date_range_relative_date_range_spec.rb +48 -0
- data/spec/models/template_response_date_range_spec.rb +48 -0
- data/spec/models/template_response_spec.rb +200 -0
- data/spec/models/templates_list200_response_spec.rb +42 -0
- data/spec/models/terms_of_service_spec.rb +54 -0
- data/spec/models/time_series_spec.rb +36 -0
- data/spec/models/title_keywords_filter_spec.rb +36 -0
- data/spec/models/top_pins_analytics_response_date_availability_spec.rb +42 -0
- data/spec/models/top_pins_analytics_response_pins_inner_spec.rb +48 -0
- data/spec/models/top_pins_analytics_response_spec.rb +52 -0
- data/spec/models/top_video_pins_analytics_response_pins_inner_spec.rb +48 -0
- data/spec/models/top_video_pins_analytics_response_spec.rb +52 -0
- data/spec/models/tracking_urls_spec.rb +17 -15
- data/spec/models/trend_type_spec.rb +30 -0
- data/spec/models/trending_keyword_demographics_age_distribution_spec.rb +40 -0
- data/spec/models/trending_keyword_demographics_gender_distribution_spec.rb +40 -0
- data/spec/models/trending_keyword_demographics_spec.rb +42 -0
- data/spec/models/trending_keyword_spec.rb +78 -0
- data/spec/models/trending_keywords_response_spec.rb +36 -0
- data/spec/models/trending_pin_spec.rb +54 -0
- data/spec/models/trending_product_category_spec.rb +60 -0
- data/spec/models/trending_topic_spec.rb +72 -0
- data/spec/models/trends_supported_region_spec.rb +30 -0
- data/spec/models/updatable_item_attributes_gtin_spec.rb +32 -0
- data/spec/models/updatable_item_attributes_spec.rb +648 -0
- data/spec/models/update_asset_group_body_asset_groups_to_update_inner_spec.rb +66 -0
- data/spec/models/update_asset_group_body_spec.rb +36 -0
- data/spec/models/update_asset_group_response_exceptions_inner_spec.rb +48 -0
- data/spec/models/update_asset_group_response_spec.rb +42 -0
- data/spec/models/update_invites_results_response_array_items_inner_spec.rb +42 -0
- data/spec/models/update_invites_results_response_array_spec.rb +36 -0
- data/spec/models/update_mask_bid_option_field_spec.rb +30 -0
- data/spec/models/update_mask_field_type_spec.rb +30 -0
- data/spec/models/update_member_asset_access_body_accesses_inner_spec.rb +48 -0
- data/spec/models/update_member_asset_access_body_spec.rb +36 -0
- data/spec/models/update_member_assets_results_response_array_items_inner_spec.rb +36 -0
- data/spec/models/update_member_assets_results_response_array_spec.rb +36 -0
- data/spec/models/update_member_business_role_body_spec.rb +42 -0
- data/spec/models/update_member_result_spec.rb +42 -0
- data/spec/models/update_member_results_response_array_spec.rb +36 -0
- data/spec/models/update_partner_asset_access_body_accesses_inner_spec.rb +48 -0
- data/spec/models/update_partner_asset_access_body_spec.rb +36 -0
- data/spec/models/update_partner_assets_result_spec.rb +54 -0
- data/spec/models/update_partner_assets_results_response_array_spec.rb +36 -0
- data/spec/models/update_partner_results_response_array_items_inner_spec.rb +42 -0
- data/spec/models/update_partner_results_response_array_spec.rb +36 -0
- data/spec/models/user_account_followed_interests200_response_spec.rb +42 -0
- data/spec/models/user_business_role_binding_spec.rb +78 -0
- data/spec/models/user_following_feed_type_spec.rb +30 -0
- data/spec/models/user_following_get200_response_spec.rb +42 -0
- data/spec/models/user_list_operation_type_spec.rb +30 -0
- data/spec/models/user_list_type_spec.rb +30 -0
- data/spec/models/user_single_asset_binding_spec.rb +42 -0
- data/spec/models/user_summary_spec.rb +42 -0
- data/spec/models/user_website_summary_spec.rb +48 -0
- data/spec/models/user_website_verification_code_spec.rb +60 -0
- data/spec/models/user_website_verify_request_spec.rb +46 -0
- data/spec/models/user_websites_get200_response_spec.rb +42 -0
- data/spec/models/users_for_individual_asset_response_spec.rb +48 -0
- data/spec/models/vertical_product_category_spec.rb +30 -0
- data/spec/models/video_metadata_with_item_type_spec.rb +66 -0
- data/spec/spec_helper.rb +3 -3
- metadata +3180 -206
- data/bin/bundle +0 -114
- data/docs/AdGroupResponseAllOf.md +0 -48
- data/docs/AdGroupResponseAllOf1.md +0 -30
- data/docs/AdResponseAllOf1.md +0 -38
- data/docs/AdsAnalyticsCreateAsyncRequestAllOf.md +0 -32
- data/docs/AdsAnalyticsCreateAsyncRequestAllOf1.md +0 -22
- data/docs/AnalyticsMetricsResponseDailyMetrics.md +0 -22
- data/docs/BoardUpdate.md +0 -22
- data/docs/CampaignResponseAllOf1.md +0 -24
- data/docs/CatalogsFeedProcessingResultFields.md +0 -24
- data/docs/MediaUploadAllOf.md +0 -24
- data/docs/MediaUploadAllOfUploadParameters.md +0 -32
- data/docs/OauthAccessTokenRequestCodeAllOf.md +0 -20
- data/docs/OauthAccessTokenResponseCodeAllOf.md +0 -20
- data/docs/PinMediaWithImageAllOf.md +0 -18
- data/lib/pinterest_sdk/models/ad_group_response_all_of.rb +0 -427
- data/lib/pinterest_sdk/models/ad_group_response_all_of1.rb +0 -329
- data/lib/pinterest_sdk/models/ad_response_all_of1.rb +0 -409
- data/lib/pinterest_sdk/models/ads_analytics_create_async_request_all_of.rb +0 -356
- data/lib/pinterest_sdk/models/ads_analytics_create_async_request_all_of1.rb +0 -253
- data/lib/pinterest_sdk/models/analytics_metrics_response_daily_metrics.rb +0 -275
- data/lib/pinterest_sdk/models/campaign_response_all_of1.rb +0 -248
- data/lib/pinterest_sdk/models/catalogs_feed_processing_result_fields.rb +0 -261
- data/lib/pinterest_sdk/models/media_upload_all_of.rb +0 -247
- data/lib/pinterest_sdk/models/oauth_access_token_request_code_all_of.rb +0 -237
- data/lib/pinterest_sdk/models/oauth_access_token_request_refresh_all_of.rb +0 -232
- data/lib/pinterest_sdk/models/oauth_access_token_response_code_all_of.rb +0 -237
- data/lib/pinterest_sdk/models/pin_media_with_image_all_of.rb +0 -220
- data/spec/api_client_spec.rb +0 -226
- data/spec/configuration_spec.rb +0 -42
- data/spec/models/ad_group_response_all_of1_spec.rb +0 -70
- data/spec/models/ad_group_response_all_of_spec.rb +0 -132
- data/spec/models/ad_response_all_of1_spec.rb +0 -102
- data/spec/models/ad_response_all_of_spec.rb +0 -128
- data/spec/models/ads_analytics_create_async_request_all_of1_spec.rb +0 -46
- data/spec/models/ads_analytics_create_async_request_all_of_spec.rb +0 -76
- data/spec/models/analytics_metrics_response_daily_metrics_spec.rb +0 -50
- data/spec/models/board_update_spec.rb +0 -50
- data/spec/models/campaign_response_all_of1_spec.rb +0 -52
- data/spec/models/campaign_response_all_of_spec.rb +0 -34
- data/spec/models/catalogs_feed_processing_result_fields_spec.rb +0 -52
- data/spec/models/catalogs_product_group_spec.rb +0 -82
- data/spec/models/feed_fields_spec.rb +0 -88
- data/spec/models/media_upload_all_of_spec.rb +0 -52
- data/spec/models/media_upload_all_of_upload_parameters_spec.rb +0 -76
- data/spec/models/media_upload_details_spec.rb +0 -46
- data/spec/models/media_upload_request_spec.rb +0 -34
- data/spec/models/oauth_access_token_request_code_all_of_spec.rb +0 -40
- data/spec/models/oauth_access_token_request_refresh_all_of_spec.rb +0 -40
- data/spec/models/oauth_access_token_request_spec.rb +0 -38
- data/spec/models/oauth_access_token_response_code_all_of_spec.rb +0 -40
- data/spec/models/pin_media_with_image_all_of_spec.rb +0 -34
|
@@ -3,10 +3,10 @@
|
|
|
3
3
|
|
|
4
4
|
#Pinterest's REST API
|
|
5
5
|
|
|
6
|
-
The version of the OpenAPI document: 5.
|
|
7
|
-
Contact:
|
|
6
|
+
The version of the OpenAPI document: 5.23.0
|
|
7
|
+
Contact: blah+oapicf@cliffano.com
|
|
8
8
|
Generated by: https://openapi-generator.tech
|
|
9
|
-
|
|
9
|
+
Generator version: 7.18.0
|
|
10
10
|
|
|
11
11
|
=end
|
|
12
12
|
|
|
@@ -20,36 +20,38 @@ 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 <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. - 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
24
|
# @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's currency field. For USD,($1/1,000,000, or $0.000001 - one one-ten-thousandth of a cent). it's microdollars. Otherwise, it's in microunits of the advertiser's currency.<br/>For example, if the advertiser's currency is GBP (British pound sterling), all MICRO_DOLLARS fields will be in GBP microunits (1/1,000,000 British pound).<br/>If a column has no value, it may not be returned
|
|
28
|
-
# @param granularity [Granularity]
|
|
25
|
+
# @param start_date [Date] Metric report start date (UTC). Format: YYYY-MM-DD. Cannot be more than 90 days back from today.
|
|
26
|
+
# @param end_date [Date] Metric report end date (UTC). Format: YYYY-MM-DD. Cannot be more than 90 days past start_date.
|
|
27
|
+
# @param columns [Array<String>] Columns to retrieve, encoded as a comma-separated string. **NOTE**: Any metrics defined as MICRO_DOLLARS returns a value based on the advertiser profile's currency field. For USD,($1/1,000,000, or $0.000001 - one one-ten-thousandth of a cent). it's microdollars. Otherwise, it's in microunits of the advertiser's currency.<br/>For example, if the advertiser's currency is GBP (British pound sterling), all MICRO_DOLLARS fields will be in GBP microunits (1/1,000,000 British pound).<br/>If a column has no value, it may not be returned
|
|
28
|
+
# @param granularity [Granularity] TOTAL - metrics are aggregated over the specified date range.<br> DAY - metrics are broken down daily.<br> HOUR - metrics are broken down hourly.<br>WEEKLY - metrics are broken down weekly.<br>MONTHLY - metrics are broken down monthly
|
|
29
29
|
# @param [Hash] opts the optional parameters
|
|
30
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 `30` 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 `30` 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 `30` days.<br> <strong>Note:</strong> This parameter no longer returns new data. However, you can still access historic data through <strong>Sept 30, 2027</strong>. (default to 30)
|
|
32
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 `1` 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
|
-
# @
|
|
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<AdAccountAnalyticsResponseInner>]
|
|
35
36
|
def ad_account_analytics(ad_account_id, start_date, end_date, columns, granularity, opts = {})
|
|
36
37
|
data, _status_code, _headers = ad_account_analytics_with_http_info(ad_account_id, start_date, end_date, columns, granularity, opts)
|
|
37
38
|
data
|
|
38
39
|
end
|
|
39
40
|
|
|
40
41
|
# Get ad account analytics
|
|
41
|
-
# 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.
|
|
42
|
+
# 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. - 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.
|
|
42
43
|
# @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's currency field. For USD,($1/1,000,000, or $0.000001 - one one-ten-thousandth of a cent). it's microdollars. Otherwise, it's in microunits of the advertiser's currency.<br/>For example, if the advertiser's currency is GBP (British pound sterling), all MICRO_DOLLARS fields will be in GBP microunits (1/1,000,000 British pound).<br/>If a column has no value, it may not be returned
|
|
46
|
-
# @param granularity [Granularity]
|
|
44
|
+
# @param start_date [Date] Metric report start date (UTC). Format: YYYY-MM-DD. Cannot be more than 90 days back from today.
|
|
45
|
+
# @param end_date [Date] Metric report end date (UTC). Format: YYYY-MM-DD. Cannot be more than 90 days past start_date.
|
|
46
|
+
# @param columns [Array<String>] Columns to retrieve, encoded as a comma-separated string. **NOTE**: Any metrics defined as MICRO_DOLLARS returns a value based on the advertiser profile's currency field. For USD,($1/1,000,000, or $0.000001 - one one-ten-thousandth of a cent). it's microdollars. Otherwise, it's in microunits of the advertiser's currency.<br/>For example, if the advertiser's currency is GBP (British pound sterling), all MICRO_DOLLARS fields will be in GBP microunits (1/1,000,000 British pound).<br/>If a column has no value, it may not be returned
|
|
47
|
+
# @param granularity [Granularity] TOTAL - metrics are aggregated over the specified date range.<br> DAY - metrics are broken down daily.<br> HOUR - metrics are broken down hourly.<br>WEEKLY - metrics are broken down weekly.<br>MONTHLY - metrics are broken down monthly
|
|
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 `30` 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 `30` 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 `1` 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
|
-
# @
|
|
49
|
+
# @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 `30` days. (default to 30)
|
|
50
|
+
# @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 `30` days.<br> <strong>Note:</strong> This parameter no longer returns new data. However, you can still access historic data through <strong>Sept 30, 2027</strong>. (default to 30)
|
|
51
|
+
# @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 `1` 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<AdAccountAnalyticsResponseInner>, Integer, Hash)>] Array<AdAccountAnalyticsResponseInner> data, response status code and response headers
|
|
53
55
|
def ad_account_analytics_with_http_info(ad_account_id, start_date, end_date, columns, granularity, opts = {})
|
|
54
56
|
if @api_client.config.debugging
|
|
55
57
|
@api_client.config.logger.debug 'Calling API: AdAccountsApi.ad_account_analytics ...'
|
|
@@ -58,6 +60,10 @@ module PinterestSdkClient
|
|
|
58
60
|
if @api_client.config.client_side_validation && ad_account_id.nil?
|
|
59
61
|
fail ArgumentError, "Missing the required parameter 'ad_account_id' when calling AdAccountsApi.ad_account_analytics"
|
|
60
62
|
end
|
|
63
|
+
if @api_client.config.client_side_validation && ad_account_id.to_s.length > 18
|
|
64
|
+
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.'
|
|
65
|
+
end
|
|
66
|
+
|
|
61
67
|
pattern = Regexp.new(/^\d+$/)
|
|
62
68
|
if @api_client.config.client_side_validation && ad_account_id !~ pattern
|
|
63
69
|
fail ArgumentError, "invalid value for 'ad_account_id' when calling AdAccountsApi.ad_account_analytics, must conform to the pattern #{pattern}."
|
|
@@ -79,15 +85,15 @@ module PinterestSdkClient
|
|
|
79
85
|
if @api_client.config.client_side_validation && granularity.nil?
|
|
80
86
|
fail ArgumentError, "Missing the required parameter 'granularity' when calling AdAccountsApi.ad_account_analytics"
|
|
81
87
|
end
|
|
82
|
-
allowable_values = [1, 7, 30, 60]
|
|
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
|
|
@@ -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<
|
|
131
|
+
return_type = opts[:debug_return_type] || 'Array<AdAccountAnalyticsResponseInner>'
|
|
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
|
-
#
|
|
147
|
-
# Get
|
|
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 <a href='/docs/api/v5/#tag/Pagination'>Pagination</a> 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 \"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>.
|
|
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 <a href='/docs/api/v5/#tag/Pagination'>Pagination</a> 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 <a href=\"https://help.pinterest.com/en/business/article/share-and-manage-access-to-your-ad-accounts\">Business Access</a>: 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
|
|
226
|
-
# @param columns [Array<String>] Columns to retrieve. **NOTE**: Any metrics defined as MICRO_DOLLARS returns a value based on the advertiser profile's currency field. For USD,($1/1,000,000, or $0.000001 - one one-ten-thousandth of a cent). it's microdollars. Otherwise, it's in microunits of the advertiser's currency.<br/>For example, if the advertiser's currency is GBP (British pound sterling), all MICRO_DOLLARS fields will be in GBP microunits (1/1,000,000 British pound).<br/>If a column has no value, it may not be returned
|
|
227
|
-
# @param 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<AdsAnalyticsTargetingType>] Targeting type breakdowns for the report. The reporting per targeting type <br> is independent from each other. [\"AGE_BUCKET_AND_GENDER\"] is in BETA and not yet available to all users.
|
|
159
|
+
# @param columns [Array<String>] Columns to retrieve, encoded as a comma-separated string. **NOTE**: Any metrics defined as MICRO_DOLLARS returns a value based on the advertiser profile's currency field. For USD,($1/1,000,000, or $0.000001 - one one-ten-thousandth of a cent). it's microdollars. Otherwise, it's in microunits of the advertiser's currency.<br/>For example, if the advertiser's currency is GBP (British pound sterling), all MICRO_DOLLARS fields will be in GBP microunits (1/1,000,000 British pound).<br/>If a column has no value, it may not be returned
|
|
160
|
+
# @param granularity [Granularity] TOTAL - metrics are aggregated over the specified date range.<br> DAY - metrics are broken down daily.<br> HOUR - metrics are broken down hourly.<br>WEEKLY - metrics are broken down weekly.<br>MONTHLY - metrics are broken down monthly
|
|
228
161
|
# @param [Hash] opts the optional parameters
|
|
229
162
|
# @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 `30` 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 `30` days. (default to 30)
|
|
163
|
+
# @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 `30` days.<br> <strong>Note:</strong> This parameter no longer returns new data. However, you can still access historic data through <strong>Sept 30, 2027</strong>. (default to 30)
|
|
231
164
|
# @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 `1` 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
|
-
# @
|
|
234
|
-
|
|
235
|
-
|
|
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
|
|
240
|
-
# Get analytics for the
|
|
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. \"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 <a href=\"https://help.pinterest.com/en/business/article/share-and-manage-access-to-your-ad-accounts\">Business Access</a>: 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
|
|
245
|
-
# @param columns [Array<String>] Columns to retrieve. **NOTE**: Any metrics defined as MICRO_DOLLARS returns a value based on the advertiser profile's currency field. For USD,($1/1,000,000, or $0.000001 - one one-ten-thousandth of a cent). it's microdollars. Otherwise, it's in microunits of the advertiser's currency.<br/>For example, if the advertiser's currency is GBP (British pound sterling), all MICRO_DOLLARS fields will be in GBP microunits (1/1,000,000 British pound).<br/>If a column has no value, it may not be returned
|
|
246
|
-
# @param 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<AdsAnalyticsTargetingType>] Targeting type breakdowns for the report. The reporting per targeting type <br> is independent from each other. [\"AGE_BUCKET_AND_GENDER\"] is in BETA and not yet available to all users.
|
|
180
|
+
# @param columns [Array<String>] Columns to retrieve, encoded as a comma-separated string. **NOTE**: Any metrics defined as MICRO_DOLLARS returns a value based on the advertiser profile's currency field. For USD,($1/1,000,000, or $0.000001 - one one-ten-thousandth of a cent). it's microdollars. Otherwise, it's in microunits of the advertiser's currency.<br/>For example, if the advertiser's currency is GBP (British pound sterling), all MICRO_DOLLARS fields will be in GBP microunits (1/1,000,000 British pound).<br/>If a column has no value, it may not be returned
|
|
181
|
+
# @param granularity [Granularity] TOTAL - metrics are aggregated over the specified date range.<br> DAY - metrics are broken down daily.<br> HOUR - metrics are broken down hourly.<br>WEEKLY - metrics are broken down weekly.<br>MONTHLY - 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 `30` 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 `30` 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 `1` 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
|
-
# @
|
|
253
|
-
|
|
183
|
+
# @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 `30` days. (default to 30)
|
|
184
|
+
# @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 `30` days.<br> <strong>Note:</strong> This parameter no longer returns new data. However, you can still access historic data through <strong>Sept 30, 2027</strong>. (default to 30)
|
|
185
|
+
# @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 `1` 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.
|
|
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.
|
|
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.
|
|
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.
|
|
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.
|
|
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 '
|
|
275
|
-
if @api_client.config.client_side_validation &&
|
|
276
|
-
fail ArgumentError, "Missing the required parameter '
|
|
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 &&
|
|
279
|
-
fail ArgumentError, 'invalid value for "
|
|
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 &&
|
|
283
|
-
fail ArgumentError, 'invalid value for "
|
|
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.
|
|
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.
|
|
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}/
|
|
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[:'
|
|
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] || '
|
|
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.
|
|
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,117 +298,64 @@ 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#
|
|
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
|
-
#
|
|
360
|
-
#
|
|
361
|
-
# @param
|
|
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
|
-
# @
|
|
364
|
-
|
|
365
|
-
|
|
366
|
-
# @option opts [Integer] :page_size Maximum number of items to include in a single page of the response. See documentation on <a href='/docs/api/v5/#tag/Pagination'>Pagination</a> 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
|
-
#
|
|
377
|
-
#
|
|
378
|
-
# @param
|
|
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
|
-
# @
|
|
381
|
-
|
|
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 <a href='/docs/api/v5/#tag/Pagination'>Pagination</a> 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.
|
|
391
|
-
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}."
|
|
399
|
-
end
|
|
400
|
-
|
|
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
|
|
404
|
-
|
|
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.'
|
|
407
|
-
end
|
|
408
|
-
|
|
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
|
|
412
|
-
|
|
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.'
|
|
415
|
-
end
|
|
416
|
-
|
|
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}"
|
|
420
|
-
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.'
|
|
323
|
+
@api_client.config.logger.debug 'Calling API: AdAccountsApi.ad_accounts_create ...'
|
|
423
324
|
end
|
|
424
|
-
|
|
425
|
-
if @api_client.config.client_side_validation &&
|
|
426
|
-
fail ArgumentError,
|
|
427
|
-
end
|
|
428
|
-
|
|
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}"
|
|
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"
|
|
432
328
|
end
|
|
433
329
|
# resource path
|
|
434
|
-
local_var_path = '/ad_accounts
|
|
330
|
+
local_var_path = '/ad_accounts'
|
|
435
331
|
|
|
436
332
|
# query parameters
|
|
437
333
|
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
334
|
|
|
446
335
|
# header parameters
|
|
447
336
|
header_params = opts[:header_params] || {}
|
|
448
337
|
# HTTP header 'Accept' (if needed)
|
|
449
|
-
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
|
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
|
|
343
|
+
end
|
|
450
344
|
|
|
451
345
|
# form parameters
|
|
452
346
|
form_params = opts[:form_params] || {}
|
|
453
347
|
|
|
454
348
|
# http body (model)
|
|
455
|
-
post_body = opts[:debug_body]
|
|
349
|
+
post_body = opts[:debug_body] || @api_client.object_to_http_body(ad_account_create)
|
|
456
350
|
|
|
457
351
|
# return_type
|
|
458
|
-
return_type = opts[:debug_return_type] || '
|
|
352
|
+
return_type = opts[:debug_return_type] || 'AdAccount'
|
|
459
353
|
|
|
460
354
|
# auth_names
|
|
461
355
|
auth_names = opts[:debug_auth_names] || ['pinterest_oauth2']
|
|
462
356
|
|
|
463
357
|
new_options = opts.merge(
|
|
464
|
-
:operation => :"AdAccountsApi.
|
|
358
|
+
:operation => :"AdAccountsApi.ad_accounts_create",
|
|
465
359
|
:header_params => header_params,
|
|
466
360
|
:query_params => query_params,
|
|
467
361
|
:form_params => form_params,
|
|
@@ -470,122 +364,55 @@ module PinterestSdkClient
|
|
|
470
364
|
:return_type => return_type
|
|
471
365
|
)
|
|
472
366
|
|
|
473
|
-
data, status_code, headers = @api_client.call_api(:
|
|
367
|
+
data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
|
|
474
368
|
if @api_client.config.debugging
|
|
475
|
-
@api_client.config.logger.debug "API called: AdAccountsApi#
|
|
369
|
+
@api_client.config.logger.debug "API called: AdAccountsApi#ad_accounts_create\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
476
370
|
end
|
|
477
371
|
return data, status_code, headers
|
|
478
372
|
end
|
|
479
373
|
|
|
480
|
-
# Get ad
|
|
481
|
-
# Get
|
|
482
|
-
# @param ad_account_id [String]
|
|
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's currency field. For USD,($1/1,000,000, or $0.000001 - one one-ten-thousandth of a cent). it's microdollars. Otherwise, it's in microunits of the advertiser's currency.<br/>For example, if the advertiser's currency is GBP (British pound sterling), all MICRO_DOLLARS fields will be in GBP microunits (1/1,000,000 British pound).<br/>If a column has no value, it may not be returned
|
|
487
|
-
# @param granularity [Granularity] Granularity
|
|
374
|
+
# Get ad account
|
|
375
|
+
# Get an ad account
|
|
376
|
+
# @param ad_account_id [String]
|
|
488
377
|
# @param [Hash] opts the optional parameters
|
|
489
|
-
# @
|
|
490
|
-
|
|
491
|
-
|
|
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)
|
|
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)
|
|
496
381
|
data
|
|
497
382
|
end
|
|
498
383
|
|
|
499
|
-
# Get ad
|
|
500
|
-
# Get
|
|
501
|
-
# @param ad_account_id [String]
|
|
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's currency field. For USD,($1/1,000,000, or $0.000001 - one one-ten-thousandth of a cent). it's microdollars. Otherwise, it's in microunits of the advertiser's currency.<br/>For example, if the advertiser's currency is GBP (British pound sterling), all MICRO_DOLLARS fields will be in GBP microunits (1/1,000,000 British pound).<br/>If a column has no value, it may not be returned
|
|
506
|
-
# @param granularity [Granularity] Granularity
|
|
384
|
+
# Get ad account
|
|
385
|
+
# Get an ad account
|
|
386
|
+
# @param ad_account_id [String]
|
|
507
387
|
# @param [Hash] opts the optional parameters
|
|
508
|
-
# @
|
|
509
|
-
|
|
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 `1` 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 = {})
|
|
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 = {})
|
|
514
390
|
if @api_client.config.debugging
|
|
515
|
-
@api_client.config.logger.debug 'Calling API: AdAccountsApi.
|
|
391
|
+
@api_client.config.logger.debug 'Calling API: AdAccountsApi.ad_accounts_get ...'
|
|
516
392
|
end
|
|
517
393
|
# verify the required parameter 'ad_account_id' is set
|
|
518
394
|
if @api_client.config.client_side_validation && ad_account_id.nil?
|
|
519
|
-
fail ArgumentError, "Missing the required parameter 'ad_account_id' when calling AdAccountsApi.
|
|
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"
|
|
395
|
+
fail ArgumentError, "Missing the required parameter 'ad_account_id' when calling AdAccountsApi.ad_accounts_get"
|
|
533
396
|
end
|
|
534
|
-
|
|
535
|
-
|
|
536
|
-
fail ArgumentError, "Missing the required parameter 'ad_ids' when calling AdAccountsApi.ads_analytics"
|
|
537
|
-
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.'
|
|
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.'
|
|
540
399
|
end
|
|
541
400
|
|
|
542
|
-
|
|
543
|
-
|
|
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}."
|
|
544
404
|
end
|
|
545
405
|
|
|
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
406
|
# resource path
|
|
571
|
-
local_var_path = '/ad_accounts/{ad_account_id}
|
|
407
|
+
local_var_path = '/ad_accounts/{ad_account_id}'.sub('{' + 'ad_account_id' + '}', CGI.escape(ad_account_id.to_s))
|
|
572
408
|
|
|
573
409
|
# query parameters
|
|
574
410
|
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?
|
|
584
411
|
|
|
585
412
|
# header parameters
|
|
586
413
|
header_params = opts[:header_params] || {}
|
|
587
414
|
# HTTP header 'Accept' (if needed)
|
|
588
|
-
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']
|
|
589
416
|
|
|
590
417
|
# form parameters
|
|
591
418
|
form_params = opts[:form_params] || {}
|
|
@@ -594,13 +421,13 @@ module PinterestSdkClient
|
|
|
594
421
|
post_body = opts[:debug_body]
|
|
595
422
|
|
|
596
423
|
# return_type
|
|
597
|
-
return_type = opts[:debug_return_type] || '
|
|
424
|
+
return_type = opts[:debug_return_type] || 'AdAccount'
|
|
598
425
|
|
|
599
426
|
# auth_names
|
|
600
|
-
auth_names = opts[:debug_auth_names] || ['pinterest_oauth2']
|
|
427
|
+
auth_names = opts[:debug_auth_names] || ['pinterest_oauth2', 'client_credentials']
|
|
601
428
|
|
|
602
429
|
new_options = opts.merge(
|
|
603
|
-
:operation => :"AdAccountsApi.
|
|
430
|
+
:operation => :"AdAccountsApi.ad_accounts_get",
|
|
604
431
|
:header_params => header_params,
|
|
605
432
|
:query_params => query_params,
|
|
606
433
|
:form_params => form_params,
|
|
@@ -611,110 +438,55 @@ module PinterestSdkClient
|
|
|
611
438
|
|
|
612
439
|
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
|
613
440
|
if @api_client.config.debugging
|
|
614
|
-
@api_client.config.logger.debug "API called: AdAccountsApi#
|
|
441
|
+
@api_client.config.logger.debug "API called: AdAccountsApi#ad_accounts_get\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
615
442
|
end
|
|
616
443
|
return data, status_code, headers
|
|
617
444
|
end
|
|
618
445
|
|
|
619
|
-
# List
|
|
620
|
-
# Get a list of the
|
|
621
|
-
# @param ad_account_id [String] Unique identifier of an ad account.
|
|
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).
|
|
622
448
|
# @param [Hash] opts the optional parameters
|
|
623
|
-
# @option opts [
|
|
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 <a href='/docs/api/v5/#tag/Pagination'>Pagination</a> 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.
|
|
449
|
+
# @option opts [Boolean] :include_shared_accounts Include shared ad accounts (default to true)
|
|
629
450
|
# @option opts [String] :bookmark Cursor used to fetch the next page of items
|
|
630
|
-
# @
|
|
631
|
-
|
|
632
|
-
|
|
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)
|
|
633
455
|
data
|
|
634
456
|
end
|
|
635
457
|
|
|
636
|
-
# List
|
|
637
|
-
# Get a list of the
|
|
638
|
-
# @param ad_account_id [String] Unique identifier of an ad account.
|
|
458
|
+
# List ad accounts
|
|
459
|
+
# 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).
|
|
639
460
|
# @param [Hash] opts the optional parameters
|
|
640
|
-
# @option opts [
|
|
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 <a href='/docs/api/v5/#tag/Pagination'>Pagination</a> 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.
|
|
461
|
+
# @option opts [Boolean] :include_shared_accounts Include shared ad accounts (default to true)
|
|
646
462
|
# @option opts [String] :bookmark Cursor used to fetch the next page of items
|
|
647
|
-
# @
|
|
648
|
-
|
|
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 = {})
|
|
649
466
|
if @api_client.config.debugging
|
|
650
|
-
@api_client.config.logger.debug 'Calling API: AdAccountsApi.
|
|
651
|
-
end
|
|
652
|
-
# verify the required parameter 'ad_account_id' is set
|
|
653
|
-
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"
|
|
655
|
-
end
|
|
656
|
-
pattern = Regexp.new(/^\d+$/)
|
|
657
|
-
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}."
|
|
659
|
-
end
|
|
660
|
-
|
|
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.'
|
|
663
|
-
end
|
|
664
|
-
|
|
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
|
|
668
|
-
|
|
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.'
|
|
671
|
-
end
|
|
672
|
-
|
|
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
|
|
676
|
-
|
|
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
|
|
680
|
-
|
|
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.'
|
|
683
|
-
end
|
|
684
|
-
|
|
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}"
|
|
467
|
+
@api_client.config.logger.debug 'Calling API: AdAccountsApi.ad_accounts_list ...'
|
|
688
468
|
end
|
|
689
|
-
if @api_client.config.client_side_validation && !opts[:'page_size'].nil? && opts[:'page_size'] >
|
|
690
|
-
fail ArgumentError, 'invalid value for "opts[:"page_size"]" when calling AdAccountsApi.
|
|
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.'
|
|
691
471
|
end
|
|
692
472
|
|
|
693
473
|
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.
|
|
474
|
+
fail ArgumentError, 'invalid value for "opts[:"page_size"]" when calling AdAccountsApi.ad_accounts_list, must be greater than or equal to 1.'
|
|
695
475
|
end
|
|
696
476
|
|
|
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}"
|
|
700
|
-
end
|
|
701
477
|
# resource path
|
|
702
|
-
local_var_path = '/ad_accounts
|
|
478
|
+
local_var_path = '/ad_accounts'
|
|
703
479
|
|
|
704
480
|
# query parameters
|
|
705
481
|
query_params = opts[:query_params] || {}
|
|
706
|
-
query_params[:'
|
|
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?
|
|
482
|
+
query_params[:'include_shared_accounts'] = opts[:'include_shared_accounts'] if !opts[:'include_shared_accounts'].nil?
|
|
712
483
|
query_params[:'bookmark'] = opts[:'bookmark'] if !opts[:'bookmark'].nil?
|
|
484
|
+
query_params[:'page_size'] = opts[:'page_size'] if !opts[:'page_size'].nil?
|
|
713
485
|
|
|
714
486
|
# header parameters
|
|
715
487
|
header_params = opts[:header_params] || {}
|
|
716
488
|
# HTTP header 'Accept' (if needed)
|
|
717
|
-
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']
|
|
718
490
|
|
|
719
491
|
# form parameters
|
|
720
492
|
form_params = opts[:form_params] || {}
|
|
@@ -723,13 +495,13 @@ module PinterestSdkClient
|
|
|
723
495
|
post_body = opts[:debug_body]
|
|
724
496
|
|
|
725
497
|
# return_type
|
|
726
|
-
return_type = opts[:debug_return_type] || '
|
|
498
|
+
return_type = opts[:debug_return_type] || 'AdAccountsList200Response'
|
|
727
499
|
|
|
728
500
|
# auth_names
|
|
729
|
-
auth_names = opts[:debug_auth_names] || ['pinterest_oauth2']
|
|
501
|
+
auth_names = opts[:debug_auth_names] || ['pinterest_oauth2', 'client_credentials']
|
|
730
502
|
|
|
731
503
|
new_options = opts.merge(
|
|
732
|
-
:operation => :"AdAccountsApi.
|
|
504
|
+
:operation => :"AdAccountsApi.ad_accounts_list",
|
|
733
505
|
:header_params => header_params,
|
|
734
506
|
:query_params => query_params,
|
|
735
507
|
:form_params => form_params,
|
|
@@ -740,47 +512,51 @@ module PinterestSdkClient
|
|
|
740
512
|
|
|
741
513
|
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
|
742
514
|
if @api_client.config.debugging
|
|
743
|
-
@api_client.config.logger.debug "API called: AdAccountsApi#
|
|
515
|
+
@api_client.config.logger.debug "API called: AdAccountsApi#ad_accounts_list\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
744
516
|
end
|
|
745
517
|
return data, status_code, headers
|
|
746
518
|
end
|
|
747
519
|
|
|
748
|
-
# Create
|
|
749
|
-
#
|
|
520
|
+
# Create a request for a brand, category, SKU report
|
|
521
|
+
# <a href=\"/docs/getting-started/using-beta-and-restricted-features/\" target=\"blank\" target=\"blank\">Restricted</a> 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.
|
|
750
522
|
# @param ad_account_id [String] Unique identifier of an ad account.
|
|
751
|
-
# @param
|
|
523
|
+
# @param conversion_product_report_request [ConversionProductReportRequest]
|
|
752
524
|
# @param [Hash] opts the optional parameters
|
|
753
525
|
# @return [AdsAnalyticsCreateAsyncResponse]
|
|
754
|
-
def
|
|
755
|
-
data, _status_code, _headers =
|
|
526
|
+
def analytics_create_conversion_product_report(ad_account_id, conversion_product_report_request, opts = {})
|
|
527
|
+
data, _status_code, _headers = analytics_create_conversion_product_report_with_http_info(ad_account_id, conversion_product_report_request, opts)
|
|
756
528
|
data
|
|
757
529
|
end
|
|
758
530
|
|
|
759
|
-
# Create
|
|
760
|
-
#
|
|
531
|
+
# Create a request for a brand, category, SKU report
|
|
532
|
+
# <a href=\"/docs/getting-started/using-beta-and-restricted-features/\" target=\"blank\" target=\"blank\">Restricted</a> 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.
|
|
761
533
|
# @param ad_account_id [String] Unique identifier of an ad account.
|
|
762
|
-
# @param
|
|
534
|
+
# @param conversion_product_report_request [ConversionProductReportRequest]
|
|
763
535
|
# @param [Hash] opts the optional parameters
|
|
764
536
|
# @return [Array<(AdsAnalyticsCreateAsyncResponse, Integer, Hash)>] AdsAnalyticsCreateAsyncResponse data, response status code and response headers
|
|
765
|
-
def
|
|
537
|
+
def analytics_create_conversion_product_report_with_http_info(ad_account_id, conversion_product_report_request, opts = {})
|
|
766
538
|
if @api_client.config.debugging
|
|
767
|
-
@api_client.config.logger.debug 'Calling API: AdAccountsApi.
|
|
539
|
+
@api_client.config.logger.debug 'Calling API: AdAccountsApi.analytics_create_conversion_product_report ...'
|
|
768
540
|
end
|
|
769
541
|
# verify the required parameter 'ad_account_id' is set
|
|
770
542
|
if @api_client.config.client_side_validation && ad_account_id.nil?
|
|
771
|
-
fail ArgumentError, "Missing the required parameter 'ad_account_id' when calling AdAccountsApi.
|
|
543
|
+
fail ArgumentError, "Missing the required parameter 'ad_account_id' when calling AdAccountsApi.analytics_create_conversion_product_report"
|
|
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.'
|
|
772
547
|
end
|
|
548
|
+
|
|
773
549
|
pattern = Regexp.new(/^\d+$/)
|
|
774
550
|
if @api_client.config.client_side_validation && ad_account_id !~ pattern
|
|
775
|
-
fail ArgumentError, "invalid value for 'ad_account_id' when calling AdAccountsApi.
|
|
551
|
+
fail ArgumentError, "invalid value for 'ad_account_id' when calling AdAccountsApi.analytics_create_conversion_product_report, must conform to the pattern #{pattern}."
|
|
776
552
|
end
|
|
777
553
|
|
|
778
|
-
# verify the required parameter '
|
|
779
|
-
if @api_client.config.client_side_validation &&
|
|
780
|
-
fail ArgumentError, "Missing the required parameter '
|
|
554
|
+
# verify the required parameter 'conversion_product_report_request' is set
|
|
555
|
+
if @api_client.config.client_side_validation && conversion_product_report_request.nil?
|
|
556
|
+
fail ArgumentError, "Missing the required parameter 'conversion_product_report_request' when calling AdAccountsApi.analytics_create_conversion_product_report"
|
|
781
557
|
end
|
|
782
558
|
# resource path
|
|
783
|
-
local_var_path = '/ad_accounts/{ad_account_id}/reports'.sub('{' + 'ad_account_id' + '}', CGI.escape(ad_account_id.to_s))
|
|
559
|
+
local_var_path = '/ad_accounts/{ad_account_id}/reports/brand_category_sku'.sub('{' + 'ad_account_id' + '}', CGI.escape(ad_account_id.to_s))
|
|
784
560
|
|
|
785
561
|
# query parameters
|
|
786
562
|
query_params = opts[:query_params] || {}
|
|
@@ -788,7 +564,7 @@ module PinterestSdkClient
|
|
|
788
564
|
# header parameters
|
|
789
565
|
header_params = opts[:header_params] || {}
|
|
790
566
|
# HTTP header 'Accept' (if needed)
|
|
791
|
-
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
|
567
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
|
|
792
568
|
# HTTP header 'Content-Type'
|
|
793
569
|
content_type = @api_client.select_header_content_type(['application/json'])
|
|
794
570
|
if !content_type.nil?
|
|
@@ -799,7 +575,7 @@ module PinterestSdkClient
|
|
|
799
575
|
form_params = opts[:form_params] || {}
|
|
800
576
|
|
|
801
577
|
# http body (model)
|
|
802
|
-
post_body = opts[:debug_body] || @api_client.object_to_http_body(
|
|
578
|
+
post_body = opts[:debug_body] || @api_client.object_to_http_body(conversion_product_report_request)
|
|
803
579
|
|
|
804
580
|
# return_type
|
|
805
581
|
return_type = opts[:debug_return_type] || 'AdsAnalyticsCreateAsyncResponse'
|
|
@@ -808,7 +584,7 @@ module PinterestSdkClient
|
|
|
808
584
|
auth_names = opts[:debug_auth_names] || ['pinterest_oauth2']
|
|
809
585
|
|
|
810
586
|
new_options = opts.merge(
|
|
811
|
-
:operation => :"AdAccountsApi.
|
|
587
|
+
:operation => :"AdAccountsApi.analytics_create_conversion_product_report",
|
|
812
588
|
:header_params => header_params,
|
|
813
589
|
:query_params => query_params,
|
|
814
590
|
:form_params => form_params,
|
|
@@ -819,71 +595,79 @@ module PinterestSdkClient
|
|
|
819
595
|
|
|
820
596
|
data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
|
|
821
597
|
if @api_client.config.debugging
|
|
822
|
-
@api_client.config.logger.debug "API called: AdAccountsApi#
|
|
598
|
+
@api_client.config.logger.debug "API called: AdAccountsApi#analytics_create_conversion_product_report\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
823
599
|
end
|
|
824
600
|
return data, status_code, headers
|
|
825
601
|
end
|
|
826
602
|
|
|
827
|
-
#
|
|
828
|
-
# This
|
|
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.
|
|
829
605
|
# @param ad_account_id [String] Unique identifier of an ad account.
|
|
830
|
-
# @param
|
|
606
|
+
# @param create_mmm_report_request [CreateMMMReportRequest]
|
|
831
607
|
# @param [Hash] opts the optional parameters
|
|
832
|
-
# @return [
|
|
833
|
-
def
|
|
834
|
-
data, _status_code, _headers =
|
|
608
|
+
# @return [CreateMMMReportResponse]
|
|
609
|
+
def analytics_create_mmm_report(ad_account_id, create_mmm_report_request, opts = {})
|
|
610
|
+
data, _status_code, _headers = analytics_create_mmm_report_with_http_info(ad_account_id, create_mmm_report_request, opts)
|
|
835
611
|
data
|
|
836
612
|
end
|
|
837
613
|
|
|
838
|
-
#
|
|
839
|
-
# This
|
|
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's in beta release.
|
|
840
616
|
# @param ad_account_id [String] Unique identifier of an ad account.
|
|
841
|
-
# @param
|
|
617
|
+
# @param create_mmm_report_request [CreateMMMReportRequest]
|
|
842
618
|
# @param [Hash] opts the optional parameters
|
|
843
|
-
# @return [Array<(
|
|
844
|
-
def
|
|
619
|
+
# @return [Array<(CreateMMMReportResponse, Integer, Hash)>] CreateMMMReportResponse data, response status code and response headers
|
|
620
|
+
def analytics_create_mmm_report_with_http_info(ad_account_id, create_mmm_report_request, opts = {})
|
|
845
621
|
if @api_client.config.debugging
|
|
846
|
-
@api_client.config.logger.debug 'Calling API: AdAccountsApi.
|
|
622
|
+
@api_client.config.logger.debug 'Calling API: AdAccountsApi.analytics_create_mmm_report ...'
|
|
847
623
|
end
|
|
848
624
|
# verify the required parameter 'ad_account_id' is set
|
|
849
625
|
if @api_client.config.client_side_validation && ad_account_id.nil?
|
|
850
|
-
fail ArgumentError, "Missing the required parameter 'ad_account_id' when calling AdAccountsApi.
|
|
626
|
+
fail ArgumentError, "Missing the required parameter 'ad_account_id' when calling AdAccountsApi.analytics_create_mmm_report"
|
|
851
627
|
end
|
|
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.'
|
|
630
|
+
end
|
|
631
|
+
|
|
852
632
|
pattern = Regexp.new(/^\d+$/)
|
|
853
633
|
if @api_client.config.client_side_validation && ad_account_id !~ pattern
|
|
854
|
-
fail ArgumentError, "invalid value for 'ad_account_id' when calling AdAccountsApi.
|
|
634
|
+
fail ArgumentError, "invalid value for 'ad_account_id' when calling AdAccountsApi.analytics_create_mmm_report, must conform to the pattern #{pattern}."
|
|
855
635
|
end
|
|
856
636
|
|
|
857
|
-
# verify the required parameter '
|
|
858
|
-
if @api_client.config.client_side_validation &&
|
|
859
|
-
fail ArgumentError, "Missing the required parameter '
|
|
637
|
+
# verify the required parameter 'create_mmm_report_request' is set
|
|
638
|
+
if @api_client.config.client_side_validation && create_mmm_report_request.nil?
|
|
639
|
+
fail ArgumentError, "Missing the required parameter 'create_mmm_report_request' when calling AdAccountsApi.analytics_create_mmm_report"
|
|
860
640
|
end
|
|
861
641
|
# resource path
|
|
862
|
-
local_var_path = '/ad_accounts/{ad_account_id}/
|
|
642
|
+
local_var_path = '/ad_accounts/{ad_account_id}/mmm_reports'.sub('{' + 'ad_account_id' + '}', CGI.escape(ad_account_id.to_s))
|
|
863
643
|
|
|
864
644
|
# query parameters
|
|
865
645
|
query_params = opts[:query_params] || {}
|
|
866
|
-
query_params[:'token'] = token
|
|
867
646
|
|
|
868
647
|
# header parameters
|
|
869
648
|
header_params = opts[:header_params] || {}
|
|
870
649
|
# HTTP header 'Accept' (if needed)
|
|
871
|
-
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
|
|
872
656
|
|
|
873
657
|
# form parameters
|
|
874
658
|
form_params = opts[:form_params] || {}
|
|
875
659
|
|
|
876
660
|
# http body (model)
|
|
877
|
-
post_body = opts[:debug_body]
|
|
661
|
+
post_body = opts[:debug_body] || @api_client.object_to_http_body(create_mmm_report_request)
|
|
878
662
|
|
|
879
663
|
# return_type
|
|
880
|
-
return_type = opts[:debug_return_type] || '
|
|
664
|
+
return_type = opts[:debug_return_type] || 'CreateMMMReportResponse'
|
|
881
665
|
|
|
882
666
|
# auth_names
|
|
883
667
|
auth_names = opts[:debug_auth_names] || ['pinterest_oauth2']
|
|
884
668
|
|
|
885
669
|
new_options = opts.merge(
|
|
886
|
-
:operation => :"AdAccountsApi.
|
|
670
|
+
:operation => :"AdAccountsApi.analytics_create_mmm_report",
|
|
887
671
|
:header_params => header_params,
|
|
888
672
|
:query_params => query_params,
|
|
889
673
|
:form_params => form_params,
|
|
@@ -892,122 +676,157 @@ module PinterestSdkClient
|
|
|
892
676
|
:return_type => return_type
|
|
893
677
|
)
|
|
894
678
|
|
|
895
|
-
data, status_code, headers = @api_client.call_api(:
|
|
679
|
+
data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
|
|
896
680
|
if @api_client.config.debugging
|
|
897
|
-
@api_client.config.logger.debug "API called: AdAccountsApi#
|
|
681
|
+
@api_client.config.logger.debug "API called: AdAccountsApi#analytics_create_mmm_report\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
898
682
|
end
|
|
899
683
|
return data, status_code, headers
|
|
900
684
|
end
|
|
901
685
|
|
|
902
|
-
#
|
|
903
|
-
#
|
|
686
|
+
# Create async request for an account analytics report
|
|
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 <a href=\"https://help.pinterest.com/en/business/article/share-and-manage-access-to-your-ad-accounts\">Business Access</a>: 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.
|
|
904
688
|
# @param ad_account_id [String] Unique identifier of an ad account.
|
|
905
|
-
# @param
|
|
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's currency field. For USD,($1/1,000,000, or $0.000001 - one one-ten-thousandth of a cent). it's microdollars. Otherwise, it's in microunits of the advertiser's currency.<br/>For example, if the advertiser's currency is GBP (British pound sterling), all MICRO_DOLLARS fields will be in GBP microunits (1/1,000,000 British pound).<br/>If a column has no value, it may not be returned
|
|
909
|
-
# @param granularity [Granularity] Granularity
|
|
689
|
+
# @param ads_analytics_create_async_request [AdsAnalyticsCreateAsyncRequest]
|
|
910
690
|
# @param [Hash] opts the optional parameters
|
|
911
|
-
# @
|
|
912
|
-
|
|
913
|
-
|
|
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)
|
|
691
|
+
# @return [AdsAnalyticsCreateAsyncResponse]
|
|
692
|
+
def analytics_create_report(ad_account_id, ads_analytics_create_async_request, opts = {})
|
|
693
|
+
data, _status_code, _headers = analytics_create_report_with_http_info(ad_account_id, ads_analytics_create_async_request, opts)
|
|
918
694
|
data
|
|
919
695
|
end
|
|
920
696
|
|
|
921
|
-
#
|
|
922
|
-
#
|
|
697
|
+
# Create async request for an account analytics report
|
|
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'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. - 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.
|
|
923
699
|
# @param ad_account_id [String] Unique identifier of an ad account.
|
|
924
|
-
# @param
|
|
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's currency field. For USD,($1/1,000,000, or $0.000001 - one one-ten-thousandth of a cent). it's microdollars. Otherwise, it's in microunits of the advertiser's currency.<br/>For example, if the advertiser's currency is GBP (British pound sterling), all MICRO_DOLLARS fields will be in GBP microunits (1/1,000,000 British pound).<br/>If a column has no value, it may not be returned
|
|
928
|
-
# @param granularity [Granularity] Granularity
|
|
700
|
+
# @param ads_analytics_create_async_request [AdsAnalyticsCreateAsyncRequest]
|
|
929
701
|
# @param [Hash] opts the optional parameters
|
|
930
|
-
# @
|
|
931
|
-
|
|
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 `1` 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 = {})
|
|
702
|
+
# @return [Array<(AdsAnalyticsCreateAsyncResponse, Integer, Hash)>] AdsAnalyticsCreateAsyncResponse data, response status code and response headers
|
|
703
|
+
def analytics_create_report_with_http_info(ad_account_id, ads_analytics_create_async_request, opts = {})
|
|
936
704
|
if @api_client.config.debugging
|
|
937
|
-
@api_client.config.logger.debug 'Calling API: AdAccountsApi.
|
|
705
|
+
@api_client.config.logger.debug 'Calling API: AdAccountsApi.analytics_create_report ...'
|
|
938
706
|
end
|
|
939
707
|
# verify the required parameter 'ad_account_id' is set
|
|
940
708
|
if @api_client.config.client_side_validation && ad_account_id.nil?
|
|
941
|
-
fail ArgumentError, "Missing the required parameter 'ad_account_id' when calling AdAccountsApi.
|
|
709
|
+
fail ArgumentError, "Missing the required parameter 'ad_account_id' when calling AdAccountsApi.analytics_create_report"
|
|
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.'
|
|
942
713
|
end
|
|
714
|
+
|
|
943
715
|
pattern = Regexp.new(/^\d+$/)
|
|
944
716
|
if @api_client.config.client_side_validation && ad_account_id !~ pattern
|
|
945
|
-
fail ArgumentError, "invalid value for 'ad_account_id' when calling AdAccountsApi.
|
|
717
|
+
fail ArgumentError, "invalid value for 'ad_account_id' when calling AdAccountsApi.analytics_create_report, must conform to the pattern #{pattern}."
|
|
946
718
|
end
|
|
947
719
|
|
|
948
|
-
# verify the required parameter '
|
|
949
|
-
if @api_client.config.client_side_validation &&
|
|
950
|
-
fail ArgumentError, "Missing the required parameter '
|
|
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"
|
|
720
|
+
# verify the required parameter 'ads_analytics_create_async_request' is set
|
|
721
|
+
if @api_client.config.client_side_validation && ads_analytics_create_async_request.nil?
|
|
722
|
+
fail ArgumentError, "Missing the required parameter 'ads_analytics_create_async_request' when calling AdAccountsApi.analytics_create_report"
|
|
959
723
|
end
|
|
960
|
-
|
|
961
|
-
|
|
724
|
+
# resource path
|
|
725
|
+
local_var_path = '/ad_accounts/{ad_account_id}/reports'.sub('{' + 'ad_account_id' + '}', CGI.escape(ad_account_id.to_s))
|
|
726
|
+
|
|
727
|
+
# query parameters
|
|
728
|
+
query_params = opts[:query_params] || {}
|
|
729
|
+
|
|
730
|
+
# header parameters
|
|
731
|
+
header_params = opts[:header_params] || {}
|
|
732
|
+
# HTTP header 'Accept' (if needed)
|
|
733
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
|
|
734
|
+
# HTTP header 'Content-Type'
|
|
735
|
+
content_type = @api_client.select_header_content_type(['application/json'])
|
|
736
|
+
if !content_type.nil?
|
|
737
|
+
header_params['Content-Type'] = content_type
|
|
962
738
|
end
|
|
963
739
|
|
|
964
|
-
|
|
965
|
-
|
|
740
|
+
# form parameters
|
|
741
|
+
form_params = opts[:form_params] || {}
|
|
742
|
+
|
|
743
|
+
# http body (model)
|
|
744
|
+
post_body = opts[:debug_body] || @api_client.object_to_http_body(ads_analytics_create_async_request)
|
|
745
|
+
|
|
746
|
+
# return_type
|
|
747
|
+
return_type = opts[:debug_return_type] || 'AdsAnalyticsCreateAsyncResponse'
|
|
748
|
+
|
|
749
|
+
# auth_names
|
|
750
|
+
auth_names = opts[:debug_auth_names] || ['pinterest_oauth2']
|
|
751
|
+
|
|
752
|
+
new_options = opts.merge(
|
|
753
|
+
:operation => :"AdAccountsApi.analytics_create_report",
|
|
754
|
+
:header_params => header_params,
|
|
755
|
+
:query_params => query_params,
|
|
756
|
+
:form_params => form_params,
|
|
757
|
+
:body => post_body,
|
|
758
|
+
:auth_names => auth_names,
|
|
759
|
+
:return_type => return_type
|
|
760
|
+
)
|
|
761
|
+
|
|
762
|
+
data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
|
|
763
|
+
if @api_client.config.debugging
|
|
764
|
+
@api_client.config.logger.debug "API called: AdAccountsApi#analytics_create_report\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
966
765
|
end
|
|
766
|
+
return data, status_code, headers
|
|
767
|
+
end
|
|
967
768
|
|
|
968
|
-
|
|
969
|
-
|
|
970
|
-
|
|
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.
|
|
773
|
+
# @param [Hash] opts the optional parameters
|
|
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. WEEKLY - metrics are broken down weekly. MONTHLY - 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)
|
|
780
|
+
data
|
|
781
|
+
end
|
|
782
|
+
|
|
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.
|
|
787
|
+
# @param [Hash] opts the optional parameters
|
|
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. WEEKLY - metrics are broken down weekly. MONTHLY - 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 = {})
|
|
793
|
+
if @api_client.config.debugging
|
|
794
|
+
@api_client.config.logger.debug 'Calling API: AdAccountsApi.analytics_create_template_report ...'
|
|
971
795
|
end
|
|
972
|
-
# verify the required parameter '
|
|
973
|
-
if @api_client.config.client_side_validation &&
|
|
974
|
-
fail ArgumentError, "Missing the required parameter '
|
|
796
|
+
# verify the required parameter 'ad_account_id' is set
|
|
797
|
+
if @api_client.config.client_side_validation && ad_account_id.nil?
|
|
798
|
+
fail ArgumentError, "Missing the required parameter 'ad_account_id' when calling AdAccountsApi.analytics_create_template_report"
|
|
975
799
|
end
|
|
976
|
-
|
|
977
|
-
|
|
978
|
-
fail ArgumentError, "invalid value for \"click_window_days\", must be one of #{allowable_values}"
|
|
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.'
|
|
979
802
|
end
|
|
980
|
-
|
|
981
|
-
|
|
982
|
-
|
|
803
|
+
|
|
804
|
+
pattern = Regexp.new(/^\d+$/)
|
|
805
|
+
if @api_client.config.client_side_validation && ad_account_id !~ pattern
|
|
806
|
+
fail ArgumentError, "invalid value for 'ad_account_id' when calling AdAccountsApi.analytics_create_template_report, must conform to the pattern #{pattern}."
|
|
983
807
|
end
|
|
984
|
-
|
|
985
|
-
|
|
986
|
-
|
|
808
|
+
|
|
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"
|
|
987
812
|
end
|
|
988
|
-
|
|
989
|
-
|
|
990
|
-
fail ArgumentError, "invalid value for \"conversion_report_time\", must be one of #{allowable_values}"
|
|
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.'
|
|
991
815
|
end
|
|
816
|
+
|
|
992
817
|
# resource path
|
|
993
|
-
local_var_path = '/ad_accounts/{ad_account_id}/
|
|
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))
|
|
994
819
|
|
|
995
820
|
# query parameters
|
|
996
821
|
query_params = opts[:query_params] || {}
|
|
997
|
-
query_params[:'start_date'] = start_date
|
|
998
|
-
query_params[:'end_date'] = end_date
|
|
999
|
-
query_params[:'
|
|
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?
|
|
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?
|
|
1006
825
|
|
|
1007
826
|
# header parameters
|
|
1008
827
|
header_params = opts[:header_params] || {}
|
|
1009
828
|
# HTTP header 'Accept' (if needed)
|
|
1010
|
-
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']
|
|
1011
830
|
|
|
1012
831
|
# form parameters
|
|
1013
832
|
form_params = opts[:form_params] || {}
|
|
@@ -1016,13 +835,13 @@ module PinterestSdkClient
|
|
|
1016
835
|
post_body = opts[:debug_body]
|
|
1017
836
|
|
|
1018
837
|
# return_type
|
|
1019
|
-
return_type = opts[:debug_return_type] || '
|
|
838
|
+
return_type = opts[:debug_return_type] || 'TemplateBasedReport'
|
|
1020
839
|
|
|
1021
840
|
# auth_names
|
|
1022
841
|
auth_names = opts[:debug_auth_names] || ['pinterest_oauth2']
|
|
1023
842
|
|
|
1024
843
|
new_options = opts.merge(
|
|
1025
|
-
:operation => :"AdAccountsApi.
|
|
844
|
+
:operation => :"AdAccountsApi.analytics_create_template_report",
|
|
1026
845
|
:header_params => header_params,
|
|
1027
846
|
:query_params => query_params,
|
|
1028
847
|
:form_params => form_params,
|
|
@@ -1031,90 +850,141 @@ module PinterestSdkClient
|
|
|
1031
850
|
:return_type => return_type
|
|
1032
851
|
)
|
|
1033
852
|
|
|
1034
|
-
data, status_code, headers = @api_client.call_api(:
|
|
853
|
+
data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
|
|
1035
854
|
if @api_client.config.debugging
|
|
1036
|
-
@api_client.config.logger.debug "API called: AdAccountsApi#
|
|
855
|
+
@api_client.config.logger.debug "API called: AdAccountsApi#analytics_create_template_report\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
1037
856
|
end
|
|
1038
857
|
return data, status_code, headers
|
|
1039
858
|
end
|
|
1040
859
|
|
|
1041
|
-
#
|
|
1042
|
-
#
|
|
860
|
+
# Get advertiser brand, category, SKU report
|
|
861
|
+
# <a href=\"/docs/getting-started/using-beta-and-restricted-features/\" target=\"blank\" target=\"blank\">Restricted</a> 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.
|
|
1043
862
|
# @param ad_account_id [String] Unique identifier of an ad account.
|
|
863
|
+
# @param token [String] Token returned from the post request creation call
|
|
1044
864
|
# @param [Hash] opts the optional parameters
|
|
1045
|
-
# @
|
|
1046
|
-
|
|
1047
|
-
|
|
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)
|
|
865
|
+
# @return [AdsAnalyticsGetAsyncResponse]
|
|
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)
|
|
1053
868
|
data
|
|
1054
869
|
end
|
|
1055
870
|
|
|
1056
|
-
#
|
|
1057
|
-
#
|
|
871
|
+
# Get advertiser brand, category, SKU report
|
|
872
|
+
# <a href=\"/docs/getting-started/using-beta-and-restricted-features/\" target=\"blank\" target=\"blank\">Restricted</a> 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.
|
|
1058
873
|
# @param ad_account_id [String] Unique identifier of an ad account.
|
|
874
|
+
# @param token [String] Token returned from the post request creation call
|
|
1059
875
|
# @param [Hash] opts the optional parameters
|
|
1060
|
-
# @
|
|
1061
|
-
|
|
1062
|
-
# @option opts [Integer] :page_size Maximum number of items to include in a single page of the response. See documentation on <a href='/docs/api/v5/#tag/Pagination'>Pagination</a> 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 = {})
|
|
876
|
+
# @return [Array<(AdsAnalyticsGetAsyncResponse, Integer, Hash)>] AdsAnalyticsGetAsyncResponse data, response status code and response headers
|
|
877
|
+
def analytics_get_conversion_product_report_with_http_info(ad_account_id, token, opts = {})
|
|
1067
878
|
if @api_client.config.debugging
|
|
1068
|
-
@api_client.config.logger.debug 'Calling API: AdAccountsApi.
|
|
879
|
+
@api_client.config.logger.debug 'Calling API: AdAccountsApi.analytics_get_conversion_product_report ...'
|
|
1069
880
|
end
|
|
1070
881
|
# verify the required parameter 'ad_account_id' is set
|
|
1071
882
|
if @api_client.config.client_side_validation && ad_account_id.nil?
|
|
1072
|
-
fail ArgumentError, "Missing the required parameter 'ad_account_id' when calling AdAccountsApi.
|
|
883
|
+
fail ArgumentError, "Missing the required parameter 'ad_account_id' when calling AdAccountsApi.analytics_get_conversion_product_report"
|
|
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.'
|
|
1073
887
|
end
|
|
888
|
+
|
|
1074
889
|
pattern = Regexp.new(/^\d+$/)
|
|
1075
890
|
if @api_client.config.client_side_validation && ad_account_id !~ pattern
|
|
1076
|
-
fail ArgumentError, "invalid value for 'ad_account_id' when calling AdAccountsApi.
|
|
891
|
+
fail ArgumentError, "invalid value for 'ad_account_id' when calling AdAccountsApi.analytics_get_conversion_product_report, must conform to the pattern #{pattern}."
|
|
1077
892
|
end
|
|
1078
893
|
|
|
1079
|
-
|
|
1080
|
-
|
|
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"
|
|
1081
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))
|
|
900
|
+
|
|
901
|
+
# query parameters
|
|
902
|
+
query_params = opts[:query_params] || {}
|
|
903
|
+
query_params[:'token'] = token
|
|
904
|
+
|
|
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']
|
|
1082
909
|
|
|
1083
|
-
|
|
1084
|
-
|
|
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] || 'AdsAnalyticsGetAsyncResponse'
|
|
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}"
|
|
1085
935
|
end
|
|
936
|
+
return data, status_code, headers
|
|
937
|
+
end
|
|
1086
938
|
|
|
1087
|
-
|
|
1088
|
-
|
|
1089
|
-
|
|
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] Unique identifier of an ad account.
|
|
942
|
+
# @param token [String] Token returned from the post request creation call
|
|
943
|
+
# @param [Hash] opts the optional parameters
|
|
944
|
+
# @return [GetMMMReportResponse]
|
|
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] Unique identifier of an ad account.
|
|
953
|
+
# @param token [String] Token returned from the post request creation call
|
|
954
|
+
# @param [Hash] opts the optional parameters
|
|
955
|
+
# @return [Array<(GetMMMReportResponse, Integer, Hash)>] GetMMMReportResponse 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 ...'
|
|
959
|
+
end
|
|
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"
|
|
1090
963
|
end
|
|
1091
|
-
if @api_client.config.client_side_validation &&
|
|
1092
|
-
fail ArgumentError, 'invalid value for "
|
|
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.'
|
|
1093
966
|
end
|
|
1094
967
|
|
|
1095
|
-
|
|
1096
|
-
|
|
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}."
|
|
1097
971
|
end
|
|
1098
972
|
|
|
1099
|
-
|
|
1100
|
-
if @api_client.config.client_side_validation &&
|
|
1101
|
-
fail ArgumentError, "
|
|
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"
|
|
1102
976
|
end
|
|
1103
977
|
# resource path
|
|
1104
|
-
local_var_path = '/ad_accounts/{ad_account_id}/
|
|
978
|
+
local_var_path = '/ad_accounts/{ad_account_id}/mmm_reports'.sub('{' + 'ad_account_id' + '}', CGI.escape(ad_account_id.to_s))
|
|
1105
979
|
|
|
1106
980
|
# query parameters
|
|
1107
981
|
query_params = opts[:query_params] || {}
|
|
1108
|
-
query_params[:'
|
|
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?
|
|
982
|
+
query_params[:'token'] = token
|
|
1113
983
|
|
|
1114
984
|
# header parameters
|
|
1115
985
|
header_params = opts[:header_params] || {}
|
|
1116
986
|
# HTTP header 'Accept' (if needed)
|
|
1117
|
-
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']
|
|
1118
988
|
|
|
1119
989
|
# form parameters
|
|
1120
990
|
form_params = opts[:form_params] || {}
|
|
@@ -1123,13 +993,13 @@ module PinterestSdkClient
|
|
|
1123
993
|
post_body = opts[:debug_body]
|
|
1124
994
|
|
|
1125
995
|
# return_type
|
|
1126
|
-
return_type = opts[:debug_return_type] || '
|
|
996
|
+
return_type = opts[:debug_return_type] || 'GetMMMReportResponse'
|
|
1127
997
|
|
|
1128
998
|
# auth_names
|
|
1129
999
|
auth_names = opts[:debug_auth_names] || ['pinterest_oauth2']
|
|
1130
1000
|
|
|
1131
1001
|
new_options = opts.merge(
|
|
1132
|
-
:operation => :"AdAccountsApi.
|
|
1002
|
+
:operation => :"AdAccountsApi.analytics_get_mmm_report",
|
|
1133
1003
|
:header_params => header_params,
|
|
1134
1004
|
:query_params => query_params,
|
|
1135
1005
|
:form_params => form_params,
|
|
@@ -1140,120 +1010,225 @@ module PinterestSdkClient
|
|
|
1140
1010
|
|
|
1141
1011
|
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
|
1142
1012
|
if @api_client.config.debugging
|
|
1143
|
-
@api_client.config.logger.debug "API called: AdAccountsApi#
|
|
1013
|
+
@api_client.config.logger.debug "API called: AdAccountsApi#analytics_get_mmm_report\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
1144
1014
|
end
|
|
1145
1015
|
return data, status_code, headers
|
|
1146
1016
|
end
|
|
1147
1017
|
|
|
1148
|
-
# Get
|
|
1149
|
-
#
|
|
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 <a href=\"https://help.pinterest.com/en/business/article/share-and-manage-access-to-your-ad-accounts\">Business Access</a>: Admin, Analyst, Campaign Manager.
|
|
1150
1020
|
# @param ad_account_id [String] Unique identifier of an ad account.
|
|
1151
|
-
# @param
|
|
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's currency field. For USD,($1/1,000,000, or $0.000001 - one one-ten-thousandth of a cent). it's microdollars. Otherwise, it's in microunits of the advertiser's currency.<br/>For example, if the advertiser's currency is GBP (British pound sterling), all MICRO_DOLLARS fields will be in GBP microunits (1/1,000,000 British pound).<br/>If a column has no value, it may not be returned
|
|
1155
|
-
# @param granularity [Granularity] Granularity
|
|
1021
|
+
# @param token [String] Token returned from the post request creation call
|
|
1156
1022
|
# @param [Hash] opts the optional parameters
|
|
1157
|
-
# @
|
|
1158
|
-
|
|
1159
|
-
|
|
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)
|
|
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)
|
|
1164
1026
|
data
|
|
1165
1027
|
end
|
|
1166
1028
|
|
|
1167
|
-
# Get
|
|
1168
|
-
#
|
|
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'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
1031
|
# @param ad_account_id [String] Unique identifier of an ad account.
|
|
1170
|
-
# @param
|
|
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's currency field. For USD,($1/1,000,000, or $0.000001 - one one-ten-thousandth of a cent). it's microdollars. Otherwise, it's in microunits of the advertiser's currency.<br/>For example, if the advertiser's currency is GBP (British pound sterling), all MICRO_DOLLARS fields will be in GBP microunits (1/1,000,000 British pound).<br/>If a column has no value, it may not be returned
|
|
1174
|
-
# @param granularity [Granularity] Granularity
|
|
1032
|
+
# @param token [String] Token returned from the post request creation call
|
|
1175
1033
|
# @param [Hash] opts the optional parameters
|
|
1176
|
-
# @
|
|
1177
|
-
|
|
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 `1` 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 = {})
|
|
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 = {})
|
|
1182
1036
|
if @api_client.config.debugging
|
|
1183
|
-
@api_client.config.logger.debug 'Calling API: AdAccountsApi.
|
|
1037
|
+
@api_client.config.logger.debug 'Calling API: AdAccountsApi.analytics_get_report ...'
|
|
1184
1038
|
end
|
|
1185
1039
|
# verify the required parameter 'ad_account_id' is set
|
|
1186
1040
|
if @api_client.config.client_side_validation && ad_account_id.nil?
|
|
1187
|
-
fail ArgumentError, "Missing the required parameter 'ad_account_id' when calling AdAccountsApi.
|
|
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.'
|
|
1188
1045
|
end
|
|
1046
|
+
|
|
1189
1047
|
pattern = Regexp.new(/^\d+$/)
|
|
1190
1048
|
if @api_client.config.client_side_validation && ad_account_id !~ pattern
|
|
1191
|
-
fail ArgumentError, "invalid value for 'ad_account_id' when calling AdAccountsApi.
|
|
1049
|
+
fail ArgumentError, "invalid value for 'ad_account_id' when calling AdAccountsApi.analytics_get_report, must conform to the pattern #{pattern}."
|
|
1192
1050
|
end
|
|
1193
1051
|
|
|
1194
|
-
# verify the required parameter '
|
|
1195
|
-
if @api_client.config.client_side_validation &&
|
|
1196
|
-
fail ArgumentError, "Missing the required parameter '
|
|
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"
|
|
1197
1055
|
end
|
|
1198
|
-
#
|
|
1199
|
-
|
|
1200
|
-
|
|
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
|
+
)
|
|
1089
|
+
|
|
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}"
|
|
1201
1093
|
end
|
|
1202
|
-
|
|
1203
|
-
|
|
1204
|
-
|
|
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
|
|
1106
|
+
|
|
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 ...'
|
|
1205
1115
|
end
|
|
1206
|
-
|
|
1207
|
-
|
|
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"
|
|
1119
|
+
end
|
|
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.'
|
|
1208
1122
|
end
|
|
1209
1123
|
|
|
1210
|
-
|
|
1211
|
-
|
|
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}."
|
|
1212
1127
|
end
|
|
1213
1128
|
|
|
1214
|
-
#
|
|
1215
|
-
|
|
1216
|
-
|
|
1129
|
+
# resource path
|
|
1130
|
+
local_var_path = '/ad_accounts/{ad_account_id}/sandbox'.sub('{' + 'ad_account_id' + '}', CGI.escape(ad_account_id.to_s))
|
|
1131
|
+
|
|
1132
|
+
# query parameters
|
|
1133
|
+
query_params = opts[:query_params] || {}
|
|
1134
|
+
|
|
1135
|
+
# header parameters
|
|
1136
|
+
header_params = opts[:header_params] || {}
|
|
1137
|
+
# HTTP header 'Accept' (if needed)
|
|
1138
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
|
|
1139
|
+
|
|
1140
|
+
# form parameters
|
|
1141
|
+
form_params = opts[:form_params] || {}
|
|
1142
|
+
|
|
1143
|
+
# http body (model)
|
|
1144
|
+
post_body = opts[:debug_body]
|
|
1145
|
+
|
|
1146
|
+
# return_type
|
|
1147
|
+
return_type = opts[:debug_return_type] || 'String'
|
|
1148
|
+
|
|
1149
|
+
# auth_names
|
|
1150
|
+
auth_names = opts[:debug_auth_names] || ['pinterest_oauth2']
|
|
1151
|
+
|
|
1152
|
+
new_options = opts.merge(
|
|
1153
|
+
:operation => :"AdAccountsApi.sandbox_delete",
|
|
1154
|
+
:header_params => header_params,
|
|
1155
|
+
:query_params => query_params,
|
|
1156
|
+
:form_params => form_params,
|
|
1157
|
+
:body => post_body,
|
|
1158
|
+
:auth_names => auth_names,
|
|
1159
|
+
:return_type => return_type
|
|
1160
|
+
)
|
|
1161
|
+
|
|
1162
|
+
data, status_code, headers = @api_client.call_api(:DELETE, local_var_path, new_options)
|
|
1163
|
+
if @api_client.config.debugging
|
|
1164
|
+
@api_client.config.logger.debug "API called: AdAccountsApi#sandbox_delete\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
1217
1165
|
end
|
|
1218
|
-
|
|
1219
|
-
|
|
1220
|
-
|
|
1166
|
+
return data, status_code, headers
|
|
1167
|
+
end
|
|
1168
|
+
|
|
1169
|
+
# List templates
|
|
1170
|
+
# Gets all Templates associated with an ad account ID.
|
|
1171
|
+
# @param ad_account_id [String] Unique identifier of an ad account.
|
|
1172
|
+
# @param [Hash] opts the optional parameters
|
|
1173
|
+
# @option opts [Integer] :page_size Maximum number of items to include in a single page of the response. See documentation on <a href='/docs/reference/pagination/'>Pagination</a> for more information. (default to 25)
|
|
1174
|
+
# @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.
|
|
1175
|
+
# @option opts [String] :bookmark Cursor used to fetch the next page of 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)
|
|
1179
|
+
data
|
|
1180
|
+
end
|
|
1181
|
+
|
|
1182
|
+
# List templates
|
|
1183
|
+
# Gets all Templates associated with an ad account ID.
|
|
1184
|
+
# @param ad_account_id [String] Unique identifier of an ad account.
|
|
1185
|
+
# @param [Hash] opts the optional parameters
|
|
1186
|
+
# @option opts [Integer] :page_size Maximum number of items to include in a single page of the response. See documentation on <a href='/docs/reference/pagination/'>Pagination</a> for more information. (default to 25)
|
|
1187
|
+
# @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.
|
|
1188
|
+
# @option opts [String] :bookmark Cursor used to fetch the next page of 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 = {})
|
|
1191
|
+
if @api_client.config.debugging
|
|
1192
|
+
@api_client.config.logger.debug 'Calling API: AdAccountsApi.templates_list ...'
|
|
1221
1193
|
end
|
|
1222
|
-
|
|
1223
|
-
if @api_client.config.client_side_validation &&
|
|
1224
|
-
fail ArgumentError, "
|
|
1194
|
+
# verify the required parameter 'ad_account_id' is set
|
|
1195
|
+
if @api_client.config.client_side_validation && ad_account_id.nil?
|
|
1196
|
+
fail ArgumentError, "Missing the required parameter 'ad_account_id' when calling AdAccountsApi.templates_list"
|
|
1225
1197
|
end
|
|
1226
|
-
|
|
1227
|
-
|
|
1228
|
-
fail ArgumentError, "invalid value for \"engagement_window_days\", must be one of #{allowable_values}"
|
|
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.'
|
|
1229
1200
|
end
|
|
1230
|
-
|
|
1231
|
-
|
|
1232
|
-
|
|
1201
|
+
|
|
1202
|
+
pattern = Regexp.new(/^\d+$/)
|
|
1203
|
+
if @api_client.config.client_side_validation && ad_account_id !~ pattern
|
|
1204
|
+
fail ArgumentError, "invalid value for 'ad_account_id' when calling AdAccountsApi.templates_list, must conform to the pattern #{pattern}."
|
|
1233
1205
|
end
|
|
1234
|
-
|
|
1235
|
-
if @api_client.config.client_side_validation && opts[:'
|
|
1236
|
-
fail ArgumentError,
|
|
1206
|
+
|
|
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.'
|
|
1209
|
+
end
|
|
1210
|
+
|
|
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.'
|
|
1213
|
+
end
|
|
1214
|
+
|
|
1215
|
+
allowable_values = ["ASCENDING", "DESCENDING"]
|
|
1216
|
+
if @api_client.config.client_side_validation && opts[:'order'] && !allowable_values.include?(opts[:'order'])
|
|
1217
|
+
fail ArgumentError, "invalid value for \"order\", must be one of #{allowable_values}"
|
|
1237
1218
|
end
|
|
1238
1219
|
# resource path
|
|
1239
|
-
local_var_path = '/ad_accounts/{ad_account_id}/
|
|
1220
|
+
local_var_path = '/ad_accounts/{ad_account_id}/templates'.sub('{' + 'ad_account_id' + '}', CGI.escape(ad_account_id.to_s))
|
|
1240
1221
|
|
|
1241
1222
|
# query parameters
|
|
1242
1223
|
query_params = opts[:query_params] || {}
|
|
1243
|
-
query_params[:'
|
|
1244
|
-
query_params[:'
|
|
1245
|
-
query_params[:'
|
|
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?
|
|
1224
|
+
query_params[:'page_size'] = opts[:'page_size'] if !opts[:'page_size'].nil?
|
|
1225
|
+
query_params[:'order'] = opts[:'order'] if !opts[:'order'].nil?
|
|
1226
|
+
query_params[:'bookmark'] = opts[:'bookmark'] if !opts[:'bookmark'].nil?
|
|
1252
1227
|
|
|
1253
1228
|
# header parameters
|
|
1254
1229
|
header_params = opts[:header_params] || {}
|
|
1255
1230
|
# HTTP header 'Accept' (if needed)
|
|
1256
|
-
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
|
1231
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
|
|
1257
1232
|
|
|
1258
1233
|
# form parameters
|
|
1259
1234
|
form_params = opts[:form_params] || {}
|
|
@@ -1262,13 +1237,13 @@ module PinterestSdkClient
|
|
|
1262
1237
|
post_body = opts[:debug_body]
|
|
1263
1238
|
|
|
1264
1239
|
# return_type
|
|
1265
|
-
return_type = opts[:debug_return_type] || '
|
|
1240
|
+
return_type = opts[:debug_return_type] || 'TemplatesList200Response'
|
|
1266
1241
|
|
|
1267
1242
|
# auth_names
|
|
1268
1243
|
auth_names = opts[:debug_auth_names] || ['pinterest_oauth2']
|
|
1269
1244
|
|
|
1270
1245
|
new_options = opts.merge(
|
|
1271
|
-
:operation => :"AdAccountsApi.
|
|
1246
|
+
:operation => :"AdAccountsApi.templates_list",
|
|
1272
1247
|
:header_params => header_params,
|
|
1273
1248
|
:query_params => query_params,
|
|
1274
1249
|
:form_params => form_params,
|
|
@@ -1279,7 +1254,7 @@ module PinterestSdkClient
|
|
|
1279
1254
|
|
|
1280
1255
|
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
|
1281
1256
|
if @api_client.config.debugging
|
|
1282
|
-
@api_client.config.logger.debug "API called: AdAccountsApi#
|
|
1257
|
+
@api_client.config.logger.debug "API called: AdAccountsApi#templates_list\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
1283
1258
|
end
|
|
1284
1259
|
return data, status_code, headers
|
|
1285
1260
|
end
|