The CData Sync App provides a straightforward way to continuously pipeline your Pinterest data to any database, data lake, or data warehouse, making it easily available for Analytics, Reporting, AI, and Machine Learning.
The Pinterest connector can be used from the CData Sync application to pull data from Pinterest and move it to any of the supported destinations.
Create a connection to Pinterest by navigating to the Connections page in the Sync App application and selecting the corresponding icon in the Add Connections panel. If the Pinterest icon is not available, click the Add More icon to download and install the Pinterest connector from the CData site.
Required properties are listed under the Settings tab. The Advanced tab lists connection properties that are not typically required.
Pinterest authentication is based on the standard OAuth flow. To authenticate, you must initially create an app via the Pinterest developer's platform where you can obtain an OAuthClientId, OAuthClientSecret, and CallbackURL.
InitiateOAuth to GETANDREFRESH, OAuthClientId, OAuthClientSecret, and CallbackURL parameters will be set as connection properties to your driver.
See Connecting to Pinterest for other OAuth authentication flows.
This section shows the available API objects and provides more information on executing SQL to Pinterest APIs.
Views describes the available views. Views are statically defined to model ... here will go view names.
Views are composed of columns and pseudo columns. Views are similar to tables in the way that data is represented; however, views do not support updates. Entities that are represented as views are typically read-only entities. Often, a stored procedure is available to update the data if such functionality is applicable to the data source.
Queries can be executed against a view as if it were a normal table, and the data that comes back is similar in that regard.
Dynamic views, such as queries exposed as views, and views for looking up specific combinations of project_team work items are supported.
Name | Description |
AdAccountAnalytics | Get analytics for the specified AdAccountId |
AdAccounts | Get a list of the ad_accounts that the User has access to. |
AdAnalytics | Get analytics for the ads in the specified AdAccountId |
AdCampaignAnalytics | Get analytics for the specified campaigns in the specified AdAccountId |
AdGroupAnalytics | Get analytics for the ad groups in the specified AdAccountId |
AdGroups | Get a list of the ad_accounts that the User has access to. |
AdGroupTargetingAnalytics | Get targeting analytics for one or more ad groups. |
Ads | Get a list of the ad_accounts that the User has access to. |
Boards | Get a list of the boards owned by the User |
BoardSections | Get a list of the boards owned by the User |
Campaigns | Get account information for the operation user_account |
Pins | Get a Pin owned by the owned by the User or on a group board that has been shared with this account |
TargetingTypeAgeBucket | Get a list of the age bucket which are available inside the targets. |
TargetingTypeAppType | Get a list of the app type which are available inside the targets. |
TargetingTypeGender | Get a list of the gender which are available inside the targets. |
TargetingTypeGeo | Get a list of the geo which are available inside the targets. |
TargetingTypeInterests | Get a list of the interest which are available inside the targets. |
TargetingtypeLocale | Get a list of the locale which are available inside the targets. |
TargetingTypeLocations | Get a list of the location which are available inside the targets. |
UserAccount | Get account information for the operation User Account |
UserAccountDailyMetrics | Get Daily Metric of User Account |
UserAccountSummaryMetrics | Get Summary Metric of User Account |
Get analytics for the specified AdAccountId
The Sync App will use the Pinterest API to process WHERE clause conditions built with the following column and operator. The rest of the filter is executed client side within the Sync App.
SELECT * FROM AdAccountAnalytics WHERE AdAccountId = '3457832451'
Name | Type | References | Description |
AdAccountId | String |
AdAccounts.Id | Id of the ad account |
Date | Date | Current metrics date. Only returned when granularity is a time-based value. | |
CampaignEntityStatus | String | Status of the campaign. | |
AdGroupEntityStatus | String | Status of the ad group. | |
SpendInDollar | Double | Total spend in dollars. | |
EcpcInDollar | Double | Ecpc in dollars. | |
Ctr | Double | Ctr. | |
Ectr | Double | Ectr. | |
EcpeInDollar | Double | Ecpe in Dollars. | |
EngagementRate | Double | The engagement rate. | |
EengagementRate | Double | E Engagement rate. | |
RepinRate | Double | The repin rate. | |
Ctr2 | Double | Ctr2 | |
CpmInDollar | Double | Cpm in Dollars. | |
WebCheckoutCostPerAction | Double | Web checkout cost per action. | |
WebCheckoutRoas | Double | Web checkout roas | |
PageVisitCostPerAction | Double | Page visit cost per action. | |
PageVisitRoas | Double | Page visit roas. | |
CheckoutRoas | Double | Checkout roas. | |
Video3secViews2 | Integer | Videos with at least 3 seconds of viewing. | |
VideoP100Complete2 | Integer | Videos 100 percent complete | |
VideoP0Combined2 | Integer | Videos 0 percent combined viewed. | |
VideoP25Combined2 | Integer | Videos 25 percent combined viewed. | |
VideoP50Combined2 | Integer | Video 50 percent combined viewed. | |
VideoP75Combined2 | Integer | Video 75 percent combined viewed. | |
VideoP95Combined2 | Integer | Video 95 percent combined viewed. | |
VideoMrcViews2 | Integer | Video Mrc Views. | |
EcpvInDollar | Double | Ecpv in dollars. | |
EcpcvInDollar | Double | E Cpcv in Dollars | |
EcpcvP95InDollar | Double | E Cpcv 95 percent in Dollars. | |
TotalClickthrough | Integer | Total Clickthrough. | |
TotalImpressionFrequency | Double | Total Impression Frequency. | |
TotalEngagementSignup | Integer | Total Engagement Signup. | |
TotalEngagementCheckout | Integer | Total Engagement Checkout. | |
TotalClickSignup | Integer | Total Click Signup. | |
TotalClickCheckout | Integer | Total Click Checkout. | |
TotalViewSignup | Integer | Total View Signup. | |
TotalViewCheckout | Integer | Total View Checkout. | |
TotalConversions | Integer | Total Conversions. | |
TotalEngagementSignupValueInMicroDollar | Double | Total Engagement Signup Value In Micro Dollar. | |
TotalEngagementCheckoutValueInMicroDollar | Double | Total Engagement Checkout Value In Micro Dollar. | |
TotalClickSignupValueInMicroDollar | Double | Total Click Signup Value In Micro Dollar. | |
TotalClickCheckoutValueInMicroDollar | Double | Total Click Checkout Value In Micro Dollar. | |
TotalViewSignupValueInMicroDollar | Double | Total View Signup Value In Micro Dollar. | |
TotalViewCheckoutValueInMicroDollar | Double | Total View Checkout Value In Micro Dollar. | |
TotalPageVisit | Integer | Total Page Visit. | |
TotalSignup | Integer | Total Signup. | |
TotalCheckout | Integer | Total Checkout. | |
TotalSignupValueInMicroDollar | Double | Total Signup Value In Micro Dollar. | |
TotalCheckoutValueInMicroDollar | Double | Total Checkout Value In Micro Dollar. | |
TotalVideo3secViews | Integer | Total Video 3 second Views. | |
TotalVideoP100Complete | Integer | Total Video 100 percent Complete. | |
TotalVideoP0Combined | Integer | Total Video 0 percent Combined. | |
TotalVideoP25Combined | Integer | Total Video 25 percent Combined. | |
TotalVideoP50Combined | Integer | Total Video 50 percent Combined. | |
TotalVideoP75Combined | Integer | Total Video 75 percent Combined. | |
TotalVideoP95Combined | Integer | Total Video 95 percent Combined. | |
TotalVideoMrcViews | Integer | Total Video Mrc Views. | |
TotalVideoAvgWatchtimeInSecond | Integer | Total Video Avg Watchtime In Seconds. | |
TotalRepinRate | Double | Total Repin Rate. | |
TotalWebCheckout | Integer | Total Web Checkout. | |
TotalWebCheckoutValueInMicroDollar | Double | Total Web Checkout Value In Micro Dollar. | |
TotalWebClickCheckout | Integer | Total Web Click Checkout. | |
TotalWebClickCheckoutValueInMicroDollar | Double | Total Web Click Checkout Value In Micro Dollar. | |
TotalWebEngagementCheckout | Integer | Total Web Engagement Checkout. | |
TotalWebEngagementCheckoutValueInMicroDollar | Double | Total Web Engagement Checkout Value In Micro Dollar. | |
TotalWebViewCheckout | Integer | Total Web View Checkout. | |
TotalWebViewCheckoutValueInMicroDollar | Double | Total Web View Checkout Value In Micro Dollar. | |
Clickthrough1 | Integer | Clickthrough1. | |
Clickthrough1Gross | Integer | Clickthrough1 Gross. | |
Impression1 | Integer | Impression1. | |
Impression1Gross | Integer | Impression1 Gross. | |
AdId | String |
Ads.Id | Id of the Ad. |
CampaignId | String |
Campaigns.Id | Id of the Campaign. |
StartDate | Date | Metric report start date. | |
EndDate | Date | Metric report end date. | |
Granularity | String | Granularity
The allowed values are TOTAL, DAY, HOUR, WEEK, MONTH. |
Pseudo column fields are used in the WHERE clause of SELECT statements and offer a more granular control over the tuples that are returned from the data source.
Name | Type | Description | |
ClickWindowDays | Integer | Number of days to use as the conversion attribution window for a pin click action.
The allowed values are 1, 7, 30, 60. | |
EngagementWindowDays | Integer | Number of days to use as the conversion attribution window for an engagement action.
The allowed values are 1, 7, 30, 60. | |
ViewWindowDays | Integer | Number of days to use as the conversion attribution window for a view action.
The allowed values are 1, 7, 30, 60. | |
ConversionReportTime | String | The date by which the conversion metrics returned from this endpoint will be reported.
The allowed values are TIME_OF_AD_ACTION, TIME_OF_CONVERSION. |
Get a list of the ad_accounts that the User has access to.
The Sync App will use the Pinterest API to process WHERE clause conditions built with the following column and operator. The rest of the filter is executed client side within the Sync App.
SELECT * FROM AdAccounts
Name | Type | References | Description |
Id [KEY] | String | Id of the Ad Account. | |
Name | String | Name of the Ad Account. | |
OwnerUsername | String | Owner Usernameof the Ad Account. | |
Country | String | Country of the ad account. | |
Currency | String | Currency of the ad account. |
Pseudo column fields are used in the WHERE clause of SELECT statements and offer a more granular control over the tuples that are returned from the data source.
Name | Type | Description | |
IncludeSharedAccounts | Boolean | Include shared ad accounts |
Get analytics for the ads in the specified AdAccountId
The Sync App will use the Pinterest API to process WHERE clause conditions built with the following column and operator. The rest of the filter is executed client side within the Sync App.
SELECT * FROM AdAnalytics WHERE AdAccountId = '3457832451' AND AdId = '3457862457'
Name | Type | References | Description |
AdId | String |
Ads.Id | Id of the ad |
AdAccountId | String |
AdAccounts.Id | Id of the ad account |
Date | Date | Current metrics date. Only returned when granularity is a time-based value. | |
CampaignEntityStatus | String | Status of the campaign. | |
AdGroupEntityStatus | String | Status of the ad group. | |
SpendInDollar | Double | Total spend in dollars. | |
EcpcInDollar | Double | Ecpc in dollars. | |
Ctr | Double | Ctr. | |
Ectr | Double | Ectr. | |
EcpeInDollar | Double | Ecpe in Dollars. | |
EngagementRate | Double | The engagement rate. | |
EengagementRate | Double | E Engagement rate. | |
RepinRate | Double | The repin rate. | |
Ctr2 | Double | Ctr2 | |
CpmInDollar | Double | Cpm in Dollars. | |
WebCheckoutCostPerAction | Double | Web checkout cost per action. | |
WebCheckoutRoas | Double | Web checkout roas | |
PageVisitCostPerAction | Double | Page visit cost per action. | |
PageVisitRoas | Double | Page visit roas. | |
CheckoutRoas | Double | Checkout roas. | |
Video3secViews2 | Integer | Videos with at least 3 seconds of viewing. | |
VideoP100Complete2 | Integer | Videos 100 percent complete | |
VideoP0Combined2 | Integer | Videos 0 percent combined viewed. | |
VideoP25Combined2 | Integer | Videos 25 percent combined viewed. | |
VideoP50Combined2 | Integer | Video 50 percent combined viewed. | |
VideoP75Combined2 | Integer | Video 75 percent combined viewed. | |
VideoP95Combined2 | Integer | Video 95 percent combined viewed. | |
VideoMrcViews2 | Integer | Video Mrc Views. | |
EcpvInDollar | Double | Ecpv in dollars. | |
EcpcvInDollar | Double | E Cpcv in Dollars | |
EcpcvP95InDollar | Double | E Cpcv 95 percent in Dollars. | |
TotalClickthrough | Integer | Total Clickthrough. | |
TotalImpressionFrequency | Double | Total Impression Frequency. | |
TotalEngagementSignup | Integer | Total Engagement Signup. | |
TotalEngagementCheckout | Integer | Total Engagement Checkout. | |
TotalClickSignup | Integer | Total Click Signup. | |
TotalClickCheckout | Integer | Total Click Checkout. | |
TotalViewSignup | Integer | Total View Signup. | |
TotalViewCheckout | Integer | Total View Checkout. | |
TotalConversions | Integer | Total Conversions. | |
TotalEngagementSignupValueInMicroDollar | Double | Total Engagement Signup Value In Micro Dollar. | |
TotalEngagementCheckoutValueInMicroDollar | Double | Total Engagement Checkout Value In Micro Dollar. | |
TotalClickSignupValueInMicroDollar | Double | Total Click Signup Value In Micro Dollar. | |
TotalClickCheckoutValueInMicroDollar | Double | Total Click Checkout Value In Micro Dollar. | |
TotalViewSignupValueInMicroDollar | Double | Total View Signup Value In Micro Dollar. | |
TotalViewCheckoutValueInMicroDollar | Double | Total View Checkout Value In Micro Dollar. | |
TotalPageVisit | Integer | Total Page Visit. | |
TotalSignup | Integer | Total Signup. | |
TotalCheckout | Integer | Total Checkout. | |
TotalSignupValueInMicroDollar | Double | Total Signup Value In Micro Dollar. | |
TotalCheckoutValueInMicroDollar | Double | Total Checkout Value In Micro Dollar. | |
TotalVideo3secViews | Integer | Total Video 3 second Views. | |
TotalVideoP100Complete | Integer | Total Video 100 percent Complete. | |
TotalVideoP0Combined | Integer | Total Video 0 percent Combined. | |
TotalVideoP25Combined | Integer | Total Video 25 percent Combined. | |
TotalVideoP50Combined | Integer | Total Video 50 percent Combined. | |
TotalVideoP75Combined | Integer | Total Video 75 percent Combined. | |
TotalVideoP95Combined | Integer | Total Video 95 percent Combined. | |
TotalVideoMrcViews | Integer | Total Video Mrc Views. | |
TotalVideoAvgWatchtimeInSecond | Integer | Total Video Avg Watchtime In Seconds. | |
TotalRepinRate | Double | Total Repin Rate. | |
TotalWebCheckout | Integer | Total Web Checkout. | |
TotalWebCheckoutValueInMicroDollar | Double | Total Web Checkout Value In Micro Dollar. | |
TotalWebClickCheckout | Integer | Total Web Click Checkout. | |
TotalWebClickCheckoutValueInMicroDollar | Double | Total Web Click Checkout Value In Micro Dollar. | |
TotalWebEngagementCheckout | Integer | Total Web Engagement Checkout. | |
TotalWebEngagementCheckoutValueInMicroDollar | Double | Total Web Engagement Checkout Value In Micro Dollar. | |
TotalWebViewCheckout | Integer | Total Web View Checkout. | |
TotalWebViewCheckoutValueInMicroDollar | Double | Total Web View Checkout Value In Micro Dollar. | |
Clickthrough1 | Integer | Clickthrough1. | |
Clickthrough1Gross | Integer | Clickthrough1 Gross. | |
Impression1 | Integer | Impression1. | |
Impression1Gross | Integer | Impression1 Gross. | |
CampaignId | String |
Campaigns.Id | Id of the Campaign. |
AdvertiserId | String | Id of the ad account | |
AdGroupId | String |
AdGroups.Id | Id of the ad group. |
CampaignDailySpendCap | Integer | Campaign daily spend cap. | |
CampaignLifetimeSpendCap | Integer | Campaign Lifetime Spend Cap. | |
CampaignName | String | Name of the Campaign | |
Clickthrough2 | Integer | Clickthrough2. | |
CpcInMicroDollar | Decimal | Cpc In MicroDollar. | |
CpmInMicroDollar | Decimal | Cpm In MicroDollar. | |
EcpcInMicroDollar | Decimal | Ecpc In MicroDollar. | |
EcpmInMicroDollar | Decimal | Ecpm In MicroDollar. | |
Engagement1 | Integer | Engagement1. | |
Engagement2 | Integer | Engagement2. | |
IdeaPinProductTagVisit1 | Integer | Idea Pin Product Tag Visit1. | |
IdeaPinProductTagVisit2 | Integer | Idea Pin Product Tag Visit2. | |
Impression2 | Integer | Impression2. | |
InAppCheckoutCostPerAction | Double | In App Checkout Cost Per Action. | |
OutboundClick1 | Integer | Outboundclick1. | |
OutboundClick2 | Integer | Outboundclick2. | |
PaidImpression | Integer | PaidImpression. | |
PinId | String |
Pins.Id | Id of the Pins. |
Repin1 | Integer | Repin1. | |
Repin2 | Integer | Repin2. | |
SpendInMicroDollar | Decimal | Total spend in dollars. | |
TotalClickAddToCart | Integer | Total click add to cart. | |
TotalClickLead | Integer | Total click lead. | |
TotalCustom | Integer | Total custom. | |
TotalEngagement | Integer | Total Engagement. | |
TotalEngagementLead | Integer | Total Engagement Lead. | |
TotalIdeaPinProductTagVisit | Integer | Total Idea Pin Product Tag Visit. | |
TotalImpressionUser | Integer | Total Impression User. | |
TotalLead | Integer | Total Lead. | |
TotalOfflineCheckout | Integer | Total offline checkout. | |
TotalViewAddToCart | Integer | Total view add to cart. | |
TotalViewLead | Integer | Total view Lead. | |
TotalWebSessions | Integer | Total web sessions. | |
VideoLength | Integer | VideoLength. | |
WebSessions1 | Integer | WebSessions1. | |
WebSessions2 | Integer | WebSessions2. | |
StartDate | Date | Metric report start date. | |
EndDate | Date | Metric report end date. | |
Granularity | String | Granularity
The allowed values are TOTAL, DAY, HOUR, WEEK, MONTH. |
Pseudo column fields are used in the WHERE clause of SELECT statements and offer a more granular control over the tuples that are returned from the data source.
Name | Type | Description | |
ClickWindowDays | Integer | Number of days to use as the conversion attribution window for a pin click action.
The allowed values are 1, 7, 30, 60. | |
EngagementWindowDays | Integer | Number of days to use as the conversion attribution window for an engagement action.
The allowed values are 1, 7, 30, 60. | |
ViewWindowDays | Integer | Number of days to use as the conversion attribution window for a view action.
The allowed values are 1, 7, 30, 60. | |
ConversionReportTime | String | The date by which the conversion metrics returned from this endpoint will be reported.
The allowed values are TIME_OF_AD_ACTION, TIME_OF_CONVERSION. |
Get analytics for the specified campaigns in the specified AdAccountId
Name | Type | References | Description |
CampaignId | String |
Campaigns.Id | Id of the campaign. |
AdAccountId | String |
AdAccounts.Id | Id of the ad account. |
Date | Date | Date the analytics row covers. | |
CampaignEntityStatus | String | Status of the campaign. | |
AdGroupEntityStatus | String | Status of the ad group. | |
SpendInDollar | Double | Total spend in dollars. | |
EcpcInDollar | Double | Ecpc in dollars. | |
Ctr | Double | Ctr. | |
Ectr | Double | Ectr. | |
EcpeInDollar | Double | Ecpe in Dollars. | |
EngagementRate | Double | The engagement rate. | |
EengagementRate | Double | E Engagement rate. | |
RepinRate | Double | The repin rate. | |
Ctr2 | Double | Ctr2 | |
CpmInDollar | Double | Cpm in Dollars. | |
WebCheckoutCostPerAction | Double | Web checkout cost per action. | |
WebCheckoutRoas | Double | Web checkout roas | |
PageVisitCostPerAction | Double | Page visit cost per action. | |
PageVisitRoas | Double | Page visit roas. | |
CheckoutRoas | Double | Checkout roas. | |
Video3secViews2 | Integer | Videos with at least 3 seconds of viewing. | |
VideoP100Complete2 | Integer | Videos 100 percent complete | |
VideoP0Combined2 | Integer | Videos 0 percent combined viewed. | |
VideoP25Combined2 | Integer | Videos 25 percent combined viewed. | |
VideoP50Combined2 | Integer | Video 50 percent combined viewed. | |
VideoP75Combined2 | Integer | Video 75 percent combined viewed. | |
VideoP95Combined2 | Integer | Video 95 percent combined viewed. | |
VideoMrcViews2 | Integer | Video Mrc Views. | |
EcpvInDollar | Double | Ecpv in dollars. | |
EcpcvInDollar | Double | E Cpcv in Dollars | |
EcpcvP95InDollar | Double | E Cpcv 95 percent in Dollars. | |
TotalClickthrough | Integer | Total Clickthrough. | |
TotalImpressionFrequency | Double | Total Impression Frequency. | |
TotalEngagementSignup | Integer | Total Engagement Signup. | |
TotalEngagementCheckout | Integer | Total Engagement Checkout. | |
TotalClickSignup | Integer | Total Click Signup. | |
TotalClickCheckout | Integer | Total Click Checkout. | |
TotalViewSignup | Integer | Total View Signup. | |
TotalViewCheckout | Integer | Total View Checkout. | |
TotalConversions | Integer | Total Conversions. | |
TotalEngagementSignupValueInMicroDollar | Double | Total Engagement Signup Value In Micro Dollar. | |
TotalEngagementCheckoutValueInMicroDollar | Double | Total Engagement Checkout Value In Micro Dollar. | |
TotalClickSignupValueInMicroDollar | Double | Total Click Signup Value In Micro Dollar. | |
TotalClickCheckoutValueInMicroDollar | Double | Total Click Checkout Value In Micro Dollar. | |
TotalViewSignupValueInMicroDollar | Double | Total View Signup Value In Micro Dollar. | |
TotalViewCheckoutValueInMicroDollar | Double | Total View Checkout Value In Micro Dollar. | |
TotalPageVisit | Integer | Total Page Visit. | |
TotalSignup | Integer | Total Signup. | |
TotalCheckout | Integer | Total Checkout. | |
TotalSignupValueInMicroDollar | Double | Total Signup Value In Micro Dollar. | |
TotalCheckoutValueInMicroDollar | Double | Total Checkout Value In Micro Dollar. | |
TotalVideo3secViews | Integer | Total Video 3 second Views. | |
TotalVideoP100Complete | Integer | Total Video 100 percent Complete. | |
TotalVideoP0Combined | Integer | Total Video 0 percent Combined. | |
TotalVideoP25Combined | Integer | Total Video 25 percent Combined. | |
TotalVideoP50Combined | Integer | Total Video 50 percent Combined. | |
TotalVideoP75Combined | Integer | Total Video 75 percent Combined. | |
TotalVideoP95Combined | Integer | Total Video 95 percent Combined. | |
TotalVideoMrcViews | Integer | Total Video Mrc Views. | |
TotalVideoAvgWatchtimeInSecond | Integer | Total Video Avg Watchtime In Seconds. | |
TotalRepinRate | Double | Total Repin Rate. | |
TotalWebCheckout | Integer | Total Web Checkout. | |
TotalWebCheckoutValueInMicroDollar | Double | Total Web Checkout Value In Micro Dollar. | |
TotalWebClickCheckout | Integer | Total Web Click Checkout. | |
TotalWebClickCheckoutValueInMicroDollar | Double | Total Web Click Checkout Value In Micro Dollar. | |
TotalWebEngagementCheckout | Integer | Total Web Engagement Checkout. | |
TotalWebEngagementCheckoutValueInMicroDollar | Double | Total Web Engagement Checkout Value In Micro Dollar. | |
TotalWebViewCheckout | Integer | Total Web View Checkout. | |
TotalWebViewCheckoutValueInMicroDollar | Double | Total Web View Checkout Value In Micro Dollar. | |
Clickthrough1 | Integer | Clickthrough1. | |
Clickthrough1Gross | Integer | Clickthrough1 Gross. | |
Impression1 | Integer | Impression1. | |
Impression1Gross | Integer | Impression1 Gross. | |
AdId | String |
Ads.Id | Id of the Ad. |
StartDate | Date | Metric report start date. | |
EndDate | Date | Metric report end date. | |
Granularity | String | Granularity
The allowed values are TOTAL, DAY, HOUR, WEEK, MONTH. |
Pseudo column fields are used in the WHERE clause of SELECT statements and offer a more granular control over the tuples that are returned from the data source.
Name | Type | Description | |
ClickWindowDays | Integer | Number of days to use as the conversion attribution window for a pin click action.
The allowed values are 1, 7, 30, 60. | |
EngagementWindowDays | Integer | Number of days to use as the conversion attribution window for an engagement action.
The allowed values are 1, 7, 30, 60. | |
ViewWindowDays | Integer | Number of days to use as the conversion attribution window for a view action.
The allowed values are 1, 7, 30, 60. | |
ConversionReportTime | String | The date by which the conversion metrics returned from this endpoint will be reported.
The allowed values are TIME_OF_AD_ACTION, TIME_OF_CONVERSION. |
Get analytics for the ad groups in the specified AdAccountId
The Sync App will use the Pinterest API to process WHERE clause conditions built with the following column and operator. The rest of the filter is executed client side within the Sync App.
SELECT * FROM AdGroupAnalytics WHERE AdAccountId = '3457832451' AND AdGroupId = '3457862457'
Name | Type | References | Description |
AdGroupId | String |
AdGroups.Id | Id of the ad group. |
AdAccountId | String |
AdAccounts.Id | Id of the ad account. |
Date | Date | Date the analytics row covers. | |
CampaignEntityStatus | String | Status of the campaign. | |
AdGroupEntityStatus | String | Status of the ad group. | |
SpendInDollar | Double | Total spend in dollars. | |
EcpcInDollar | Double | Ecpc in dollars. | |
Ctr | Double | Ctr. | |
Ectr | Double | Ectr. | |
EcpeInDollar | Double | Ecpe in Dollars. | |
EngagementRate | Double | The engagement rate. | |
EengagementRate | Double | E Engagement rate. | |
RepinRate | Double | The repin rate. | |
Ctr2 | Double | Ctr2 | |
CpmInDollar | Double | Cpm in Dollars. | |
WebCheckoutCostPerAction | Double | Web checkout cost per action. | |
WebCheckoutRoas | Double | Web checkout roas | |
PageVisitCostPerAction | Double | Page visit cost per action. | |
PageVisitRoas | Double | Page visit roas. | |
CheckoutRoas | Double | Checkout roas. | |
Video3secViews2 | Integer | Videos with at least 3 seconds of viewing. | |
VideoP100Complete2 | Integer | Videos 100 percent complete | |
VideoP0Combined2 | Integer | Videos 0 percent combined viewed. | |
VideoP25Combined2 | Integer | Videos 25 percent combined viewed. | |
VideoP50Combined2 | Integer | Video 50 percent combined viewed. | |
VideoP75Combined2 | Integer | Video 75 percent combined viewed. | |
VideoP95Combined2 | Integer | Video 95 percent combined viewed. | |
VideoMrcViews2 | Integer | Video Mrc Views. | |
EcpvInDollar | Double | Ecpv in dollars. | |
EcpcvInDollar | Double | E Cpcv in Dollars | |
EcpcvP95InDollar | Double | E Cpcv 95 percent in Dollars. | |
TotalClickthrough | Integer | Total Clickthrough. | |
TotalImpressionFrequency | Double | Total Impression Frequency. | |
TotalEngagementSignup | Integer | Total Engagement Signup. | |
TotalEngagementCheckout | Integer | Total Engagement Checkout. | |
TotalClickSignup | Integer | Total Click Signup. | |
TotalClickCheckout | Integer | Total Click Checkout. | |
TotalViewSignup | Integer | Total View Signup. | |
TotalViewCheckout | Integer | Total View Checkout. | |
TotalConversions | Integer | Total Conversions. | |
TotalEngagementSignupValueInMicroDollar | Double | Total Engagement Signup Value In Micro Dollar. | |
TotalEngagementCheckoutValueInMicroDollar | Double | Total Engagement Checkout Value In Micro Dollar. | |
TotalClickSignupValueInMicroDollar | Double | Total Click Signup Value In Micro Dollar. | |
TotalClickCheckoutValueInMicroDollar | Double | Total Click Checkout Value In Micro Dollar. | |
TotalViewSignupValueInMicroDollar | Double | Total View Signup Value In Micro Dollar. | |
TotalViewCheckoutValueInMicroDollar | Double | Total View Checkout Value In Micro Dollar. | |
TotalPageVisit | Integer | Total Page Visit. | |
TotalSignup | Integer | Total Signup. | |
TotalCheckout | Integer | Total Checkout. | |
TotalSignupValueInMicroDollar | Double | Total Signup Value In Micro Dollar. | |
TotalCheckoutValueInMicroDollar | Double | Total Checkout Value In Micro Dollar. | |
TotalVideo3secViews | Integer | Total Video 3 second Views. | |
TotalVideoP100Complete | Integer | Total Video 100 percent Complete. | |
TotalVideoP0Combined | Integer | Total Video 0 percent Combined. | |
TotalVideoP25Combined | Integer | Total Video 25 percent Combined. | |
TotalVideoP50Combined | Integer | Total Video 50 percent Combined. | |
TotalVideoP75Combined | Integer | Total Video 75 percent Combined. | |
TotalVideoP95Combined | Integer | Total Video 95 percent Combined. | |
TotalVideoMrcViews | Integer | Total Video Mrc Views. | |
TotalVideoAvgWatchtimeInSecond | Integer | Total Video Avg Watchtime In Seconds. | |
TotalRepinRate | Double | Total Repin Rate. | |
TotalWebCheckout | Integer | Total Web Checkout. | |
TotalWebCheckoutValueInMicroDollar | Double | Total Web Checkout Value In Micro Dollar. | |
TotalWebClickCheckout | Integer | Total Web Click Checkout. | |
TotalWebClickCheckoutValueInMicroDollar | Double | Total Web Click Checkout Value In Micro Dollar. | |
TotalWebEngagementCheckout | Integer | Total Web Engagement Checkout. | |
TotalWebEngagementCheckoutValueInMicroDollar | Double | Total Web Engagement Checkout Value In Micro Dollar. | |
TotalWebViewCheckout | Integer | Total Web View Checkout. | |
TotalWebViewCheckoutValueInMicroDollar | Double | Total Web View Checkout Value In Micro Dollar. | |
Clickthrough1 | Integer | Clickthrough1. | |
Clickthrough1Gross | Integer | Clickthrough1 Gross. | |
Impression1 | Integer | Impression1. | |
Impression1Gross | Integer | Impression1 Gross. | |
Impression2 | Integer | Impression2. | |
TotalImpressionUser | Integer | Total ImpressionUser. | |
CampaignDailySpendCap | Integer | Campaign Daily Spend Cap. | |
CampaignLifetimeSpendCap | Integer | Campaign Lifetime Spend Cap. | |
Clickthrough2 | Integer | Clickthrough2. | |
CpcInMicroDollar | Double | Cpc In MicroDollar. | |
CpmInMicroDollar | Double | Cpm In MicroDollar. | |
EcpcInMicroDollar | Double | Ecpc In MicroDollar. | |
EcpmInMicroDollar | Double | Ecpm In MicroDollar. | |
Engagement1 | Integer | Engagement1. | |
Engagement2 | Integer | Engagement2. | |
IdeaPinProductTagVisit1 | Integer | Idea Pin Product Tag Visit1. | |
IdeaPinProductTagVisit2 | Integer | Idea Pin Product Tag Visit2. | |
InAppCheckoutCostPerAction | Double | In App Checkout Cost Per Action. | |
OutboundClick1 | Integer | Outboundclick1. | |
OutboundClick2 | Integer | Outboundclick2. | |
PaidImpression | Integer | PaidImpression. | |
Repin1 | Integer | Repin1. | |
Repin2 | Integer | Repin2. | |
SpendInMicroDollar | Double | Spend In MicroDollar. | |
TotalClickAddToCart | Integer | Total Click Add To Cart. | |
TotalClickLead | Integer | Total ClickLead. | |
TotalCustom | Integer | Total Custom. | |
TotalEngagement | Integer | Total Engagement. | |
TotalEngagementLead | Integer | Total Engagement Lead. | |
TotalIdeaPinProductTagVisit | Integer | Total Idea Pin Product Tag Visit. | |
TotalLead | Integer | Total Lead. | |
TotalOfflineCheckout | Integer | Total Offline Checkout. | |
TotalViewAddToCart | Integer | Total View Add To Cart. | |
TotalViewLead | Integer | Total View Lead. | |
TotalWebSessions | Integer | Total Web Sessions. | |
VideoLength | Integer | VideoLength. | |
WebSessions1 | Integer | WebSessions1. | |
WebSessions2 | Integer | WebSessions2. | |
AdId | String |
Ads.Id | Id of the Ad. |
CampaignId | String |
Campaigns.Id | Id of the Campaign. |
StartDate | Date | Metric report start date. | |
EndDate | Date | Metric report end date. | |
Granularity | String | Granularity
The allowed values are TOTAL, DAY, HOUR, WEEK, MONTH. |
Pseudo column fields are used in the WHERE clause of SELECT statements and offer a more granular control over the tuples that are returned from the data source.
Name | Type | Description | |
ClickWindowDays | Integer | Number of days to use as the conversion attribution window for a pin click action.
The allowed values are 1, 7, 30, 60. | |
EngagementWindowDays | Integer | Number of days to use as the conversion attribution window for an engagement action.
The allowed values are 1, 7, 30, 60. | |
ViewWindowDays | Integer | Number of days to use as the conversion attribution window for a view action.
The allowed values are 1, 7, 30, 60. | |
ConversionReportTime | Integer | The date by which the conversion metrics returned from this endpoint will be reported.
The allowed values are TIME_OF_AD_ACTION, TIME_OF_CONVERSION. |
Get a list of the ad_accounts that the User has access to.
The Sync App will use the Pinterest API to process WHERE clause conditions built with the following column and operator. The rest of the filter is executed client side within the Sync App.
SELECT * FROM AdGroups WHERE AdAccountId = '3457832451'
Name | Type | References | Description |
Id [KEY] | String | Advertiser ID. | |
AdAccountId | String |
AdAccounts.Id | Ad Account ID. |
CampaignId | String |
Campaigns.Id | Campaign ID of the ad group. |
FeedProfileId | String | Feed Profile ID associated to the adgroup. | |
AutoTargetingEnabled | Boolean | Enable auto-targeting for ad group. | |
BidInMicroCurrency | Integer | Bid price in micro currency. | |
BillableEvent | String | Ad group billable event type. | |
BudgetInMicroCurrency | Integer | Budget in micro currency. | |
BudgetType | String | Budget type | |
ConversionLearningModeType | String | oCPM learn mode | |
CreatedTime | Datetime | Ad group creation time. | |
EndTime | Datetime | Ad group end time. | |
LifetimeFrequencyCap | Integer | Set a limit to the number of times a promoted pin from this campaign can be impressed by a pinner within the past rolling 30 days. | |
Name | String | Ad group name. | |
PacingDeliveryType | String | PacingDeliveryType | |
PlacementGroup | String | PlacementGroup | |
StartTime | Datetime | Ad group start time | |
Status | String | Ad group/entity status.
The allowed values are ACTIVE, PAUSED, ARCHIVED. | |
SummaryStatus | String | Ad group summary status. | |
TargetingSpec | String | Ad group targeting specification defining the ad group target audience. | |
TrackingUrlsAudienceVerification | String | Third-party tracking URLs. | |
TrackingUrlsBuyableButton | String | Third-party tracking URLs. | |
TrackingUrlsClick | String | Third-party tracking URLs. | |
TrackingUrlsEngagement | String | Third-party tracking URLs. | |
TrackingUrlsImpression | String | Third-party tracking URLs. | |
Type | String | Type of ad group. | |
UpdatedTime | Datetime | Ad group last update time. |
Pseudo column fields are used in the WHERE clause of SELECT statements and offer a more granular control over the tuples that are returned from the data source.
Name | Type | Description | |
TranslateInterestsToNames | Boolean | Return interests as text names and not topic IDs? |
Get targeting analytics for one or more ad groups.
The Sync App will use the Pinterest API to process WHERE clause conditions built with the following column and operator. The rest of the filter is executed client side within the Sync App.
SELECT * FROM AdGroupTargetingAnalytics WHERE TargetingType = 'LOCATION'
Name | Type | References | Description |
AdAccountId | String |
AdAccounts.Id | Unique identifier of an ad account. |
AdGroupId | String |
AdGroups.Id | Id of the ad group. |
TargetingType | String | Targeting type.
The allowed values are KEYWORD, APPTYPE, GENDER, LOCATION, PLACEMENT, COUNTRY, TARGETED_INTEREST, PINNER_INTEREST, AUDIENCE_INCLUDE, AUDIENCE_EXCLUDE, GEO, AGE_BUCKET, REGION. | |
TargetingValues | String | Targeting type value. | |
Date | Date | Date the analytics row covers. | |
SpendInDollar | Decimal | Total spend in dollars. | |
AdvertiserId | Double | Id of the advertiser. | |
AdGroupEntityStatus | Double | Id of the advertiser. | |
AdId | Double | Id of the advertiser. | |
CampaignId | String |
Campaigns.Id | Id of the Campaign. |
CampaignDailySpendCap | String | Campaign daily spend cap. | |
CampaignEntityStatus | String | Campaign entity status. | |
CampaignLifetimeSpendCap | Integer | Campaign Lifetime Spend Cap. | |
Ctr | Double | Ctr. | |
Ctr2 | Double | Ctr2. | |
CheckoutRoas | Double | Checkout roas. | |
Clickthrough1 | Integer | Clickthrough1. | |
Clickthrough2 | Integer | Clickthrough2. | |
Clickthrough1Gross | Integer | Clickthrough1 Gross. | |
CpcInMicroDollar | Decimal | Cpc In MicroDollar. | |
CpmInMicroDollar | Decimal | Cpm In MicroDollar. | |
Ectr | Decimal | Ectr. | |
EcpeInDollar | Decimal | Ecpe in Dollars. | |
EngagementRate | Double | The engagement rate. | |
EengagementRate | Double | E Engagement rate. | |
EcpvInDollar | Decimal | Ecpv in dollars. | |
EcpcvInDollar | Decimal | E Cpcv in Dollars. | |
EcpcvP95InDollar | Decimal | E Cpcv 95 percent in Dollars. | |
EcpcInMicroDollar | Decimal | Ecpc In MicroDollar. | |
EcpmInMicroDollar | Decimal | Ecpm In MicroDollar. | |
Engagement1 | Integer | Engagement1. | |
Engagement2 | Integer | Engagement2. | |
Impression1 | Integer | Impression1. | |
Impression1Gross | Integer | Impression1 Gross. | |
Impression2 | Integer | Impression2. | |
IdeaPinProductTagVisit1 | Integer | Idea Pin Product Tag Visit1. | |
IdeaPinProductTagVisit2 | Integer | Idea Pin Product Tag Visit2. | |
InAppCheckoutCostPerAction | Double | In App Checkout Cost Per Action. | |
OutboundClick1 | Integer | Outboundclick1. | |
OutboundClick2 | Integer | Outboundclick2. | |
PinId | String |
Pins.Id | Id of the Pins. |
PageVisitCostPerAction | Double | Page visit cost per action. | |
PageVisitRoas | Double | Page visit roas. | |
PaidImpression | Integer | PaidImpression. | |
Repin1 | Integer | Repin1. | |
Repin2 | Integer | Repin2. | |
RepinRate | Double | The repin rate. | |
TotalClickthrough | Integer | Total Clickthrough. | |
TotalEngagementSignup | Integer | Total Engagement Signup. | |
TotalEngagementCheckout | Integer | Total Engagement Checkout. | |
TotalClickSignup | Integer | Total Click Signup. | |
TotalClickCheckout | Integer | Total Click Checkout. | |
TotalViewSignup | Integer | Total View Signup. | |
TotalViewCheckout | Integer | Total View Checkout. | |
TotalConversions | Integer | Total Conversions. | |
TotalEngagementSignupValueInMicroDollar | Decimal | Total Engagement Signup Value In Micro Dollar. | |
TotalEngagementCheckoutValueInMicroDollar | Decimal | Total Engagement Checkout Value In Micro Dollar. | |
TotalClickSignupValueInMicroDollar | Decimal | Total Click Signup Value In Micro Dollar. | |
TotalClickCheckoutValueInMicroDollar | Decimal | Total Click Checkout Value In Micro Dollar. | |
TotalViewSignupValueInMicroDollar | Decimal | Total View Signup Value In Micro Dollar. | |
TotalViewCheckoutValueInMicroDollar | Decimal | Total View Checkout Value In Micro Dollar. | |
TotalPageVisit | Integer | Total Page Visit. | |
TotalSignup | Integer | Total Signup. | |
TotalCheckout | Integer | Total Checkout. | |
TotalSignupValueInMicroDollar | Decimal | Total Signup Value In Micro Dollar. | |
TotalCheckoutValueInMicroDollar | Decimal | Total Checkout Value In Micro Dollar. | |
TotalVideo3secViews | Integer | Total Video 3 second Views. | |
TotalVideoP100Complete | Integer | Total Video 100 percent Complete. | |
TotalVideoP0Combined | Integer | Total Video 0 percent Combined. | |
TotalVideoP25Combined | Integer | Total Video 25 percent Combined. | |
TotalVideoP50Combined | Integer | Total Video 50 percent Combined. | |
TotalVideoP75Combined | Integer | Total Video 75 percent Combined. | |
TotalVideoP95Combined | Integer | Total Video 95 percent Combined. | |
TotalVideoMrcViews | Integer | Total Video Mrc Views. | |
TotalVideoAvgWatchtimeInSecond | Integer | Total Video Avg Watchtime In Seconds. | |
TotalRepinRate | Double | Total Repin Rate. | |
TotalWebCheckout | Integer | Total Web Checkout. | |
TotalWebCheckoutValueInMicroDollar | Decimal | Total Web Checkout Value In Micro Dollar. | |
TotalWebClickCheckout | Integer | Total Web Click Checkout. | |
TotalWebClickCheckoutValueInMicroDollar | Decimal | Total Web Click Checkout Value In Micro Dollar. | |
TotalWebEngagementCheckout | Integer | Total Web Engagement Checkout. | |
TotalWebEngagementCheckoutValueInMicroDollar | Decimal | Total Web Engagement Checkout Value In Micro Dollar. | |
TotalWebViewCheckout | Integer | Total Web View Checkout. | |
TotalWebViewCheckoutValueInMicroDollar | Decimal | Total Web View Checkout Value In Micro Dollar. | |
Video3secViews2 | Integer | Video 3 second Views. | |
VideoLength | Integer | VideoLength. | |
VideoMrcViews2 | Integer | Video 2 second Views. | |
VideoP0Combined2 | Integer | Video 0 percent Combined Views. | |
VideoP100Complete2 | Integer | Video 100 percent Complete Views. | |
VideoP25Combined2 | Integer | Video 25 percent Complete Views. | |
VideoP50Combined2 | Integer | Video 50 percent Complete Views. | |
VideoP75Combined2 | Integer | Video 75 percent Complete Views. | |
VideoP95Combined2 | Integer | Video 95 percent Complete Views. | |
WebCheckoutCostPerAction | Double | Web checkout cost per action. | |
WebCheckoutRoas | Double | Web checkout roas. | |
WebSessions1 | Integer | WebSessions1. | |
WebSessions2 | Integer | WebSessions2. | |
StartDate | Date | Metric report start date. | |
EndDate | Date | Metric report end date. | |
Granularity | String | Granularity.
The allowed values are TOTAL, DAY, HOUR, WEEK, MONTH. |
Pseudo column fields are used in the WHERE clause of SELECT statements and offer a more granular control over the tuples that are returned from the data source.
Name | Type | Description | |
AttributionTypes | String | List of types of attribution for the conversion report.
The allowed values are INDIVIDUAL, HOUSEHOLD. | |
ClickWindowDays | Integer | Number of days to use as the conversion attribution window for a pin click action.
The allowed values are 1, 7, 30, 60. | |
EngagementWindowDays | Integer | Number of days to use as the conversion attribution window for an engagement action.
The allowed values are 1, 7, 30, 60. | |
ViewWindowDays | Integer | Number of days to use as the conversion attribution window for a view action.
The allowed values are 1, 7, 30, 60. | |
ConversionReportTime | Integer | The date by which the conversion metrics returned from this endpoint will be reported.
The allowed values are TIME_OF_AD_ACTION, TIME_OF_CONVERSION. |
Get a list of the ad_accounts that the User has access to.
The Sync App will use the Pinterest API to process WHERE clause conditions built with the following column and operator. The rest of the filter is executed client side within the Sync App.
SELECT * FROM Ads WHERE AdAccountId = '3457832451'
Name | Type | References | Description |
Id [KEY] | String | The ID of this ad. | |
AdAccountId | String |
AdAccounts.Id | Unique identifier of an ad account. |
AdGroupId | String |
AdGroups.Id | ID of the ad group that contains the ad. |
AndroidDeepLink | String | Deep link URL for Android devices. Not currently available. Using this field will generate an error. | |
CampaignId | String |
Campaigns.Id | ID of the ad campaign that contains this ad. |
CarouselAndroidDeepLinks | String | Comma-separated deep links for the carousel pin on Android. | |
CarouselDestinationUrls | String | Comma-separated destination URLs for the carousel pin to promote. | |
CarouselIosDeepLinks | String | Comma-separated deep links for the carousel pin on iOS. | |
ClickTrackingUrl | String | Tracking url for the ad clicks. | |
CollectionItemsDestinationUrlTemplate | String | Destination URL template for all items within a collections drawer. | |
CreatedTime | Datetime | Pin creation time. | |
CreativeType | String | Ad creative type | |
DestinationUrl | String | Destination URL. | |
IosDeepLink | String | Deep link URL for iOS devices. | |
IsPinDeleted | Boolean | Is original pin deleted? | |
IsRemovable | Boolean | Is pin repinnable? | |
Name | String | Name of the ad. | |
PinId | String | Pin ID. | |
RejectedReasons | String | Reason why the pin was rejected. | |
RejectionLabels | String | Text reason why the pin was rejected. | |
ReviewStatus | String | Ad review status | |
Status | String | Entity status
The allowed values are ACTIVE, PAUSED, ARCHIVED. | |
SummaryStatus | String | Ad summary status. | |
TrackingUrlsAudienceVerification | String | Tracking Urls Audience Verification. | |
TrackingUrlsBuyableButton | String | Tracking Urls Buyable Button. | |
TrackingUrlsClick | String | Tracking Urls Click. | |
TrackingUrlsEngagement | String | Tracking Urls Engagement. | |
TrackingUrlsImpression | String | Tracking Urls Impression. | |
Type | String | Type of ad. | |
UpdatedTime | Datetime | Last update time. | |
ViewTrackingUrl | String | Tracking URL for ad impressions. |
Get a list of the boards owned by the User
The Sync App will use the Pinterest API to process WHERE clause conditions built with the following column and operator. The rest of the filter is executed client side within the Sync App.
SELECT * FROM Boards SELECT * FROM Boards WHERE Id = '345787634451'
Name | Type | References | Description |
Id [KEY] | String | Id of the Board | |
Name | String | Name of the Board | |
Description | String | Description of the Board | |
OwnerUsername | String | UserName of the Owner. | |
Privacy | String | Privacy setting for the board.
The allowed values are PUBLIC, PROTECTED, SECRET. |
Get a list of the boards owned by the User
The Sync App will use the Pinterest API to process WHERE clause conditions built with the following column and operator. The rest of the filter is executed client side within the Sync App.
SELECT * FROM BoardSections WHERE BoardId = '345787634451'
Name | Type | References | Description |
Id [KEY] | String | Id of the Section. | |
Name | String | Name of the Section. | |
BoardId | String |
Boards.Id | Id of the Board. |
Get account information for the operation user_account
The Sync App will use the Pinterest API to process WHERE clause conditions built with the following column and operator. The rest of the filter is executed client side within the Sync App.
SELECT * FROM Campaigns WHERE AdAccountId = '3457832451'
Name | Type | References | Description |
Id [KEY] | String | Campaign ID. | |
AdAccountId | String |
AdAccounts.Id | Campaign's Advertiser ID. |
CreatedTime | Datetime | Campaign creation time. | |
DailySpendCap | Integer | Campaign total spending cap. | |
LifetimeSpendCap | Integer | Campaign daily spending cap. | |
Name | String | Campaign name. | |
ObjectiveType | String | Campaign objective type. | |
OrderLineId | String | Order line ID that appears on the invoice. | |
Status | String | Entity status.
The allowed values are ACTIVE, PAUSED, ARCHIVED. | |
TrackingUrlsAudienceVerification | String | Tracking Urls Audience Verification. | |
TrackingUrlsBuyableButton | String | Tracking Urls Buyable Button. | |
TrackingUrlsClick | String | Tracking Urls Click. | |
TrackingUrlsEngagement | String | Tracking Urls Engagement | |
TrackingUrlsImpression | String | Tracking Urls Impression. | |
Type | String | Type of campaign. | |
UpdatedTime | Datetime | Last update time. |
Get a Pin owned by the owned by the User or on a group board that has been shared with this account
The Sync App will use the Pinterest API to process WHERE clause conditions built with the following column and operator. The rest of the filter is executed client side within the Sync App.
SELECT * FROM Pins WHERE Id = '3457832451' SELECT * FROM Pins WHERE BoardId = '3457832451'
Name | Type | References | Description |
Id [KEY] | String | Id of the Pin | |
BoardId | String |
Boards.Id | Id of the Board |
SectionId | String | Id of the Section | |
AltText | String | AltText | |
BoardOwnerUsername | String | UserName of the BoardOwner. | |
CreatedAt | Datetime | Created At Date Time | |
Description | String | Description of the Pin. | |
Link | String | Link to the Pin. | |
MediaType | String | MediaType of the Pin. | |
Media | String | Media for the Pin. | |
Title | String | Title of the Pin. |
Get a list of the age bucket which are available inside the targets.
Name | Type | References | Description |
AgeBucketKey | String | It contains the key of the age bucket. | |
AgeBucketValue | String | It contains the value of the age bucket. |
Get a list of the app type which are available inside the targets.
Name | Type | References | Description |
AppKey | String | It contains the key of the apptype. | |
AppValue | String | It contains the value of the apptype. |
Get a list of the gender which are available inside the targets.
Name | Type | References | Description |
GenderKey | String | It contains the key of the gender. | |
GenderValue | String | It contains the value of the gender. |
Get a list of the geo which are available inside the targets.
Name | Type | References | Description |
GeoKey | String | It contains the key of the Geo. | |
GeoValue | String | It contains the value of the Geo. |
Get a list of the interest which are available inside the targets.
Name | Type | References | Description |
InterestId | String | It contains the id of the interest. | |
InterestLevel | String | It contains the level of the interest. | |
InterestName | String | It contains the name of the interest. | |
InterestAggregate | String | It contains the data inside the particular level of the interest. |
Get a list of the locale which are available inside the targets.
Name | Type | References | Description |
LocaleKey | String | It contains the key of the locale | |
LocaleValue | String | It contains the value of the locale |
Get a list of the location which are available inside the targets.
No filters are supported server side for this table. All criteria will be handled client side within the Sync App.
For example, the following queries are processed server side:
SELECT * FROM TargetingTypeLocations
Name | Type | References | Description |
LocationKey | String | It contains the key of the Location | |
LocationValue | String | It contains the value of the Location |
Get account information for the operation User Account
No filters are supported server side for this table. All criteria will be handled client side within the Sync App.
Name | Type | References | Description |
AccountType | String | Type of account. | |
ProfileImage | String | Profile Image. | |
Username | String | Username. | |
WebsiteURL | String | Website URL. |
Pseudo column fields are used in the WHERE clause of SELECT statements and offer a more granular control over the tuples that are returned from the data source.
Name | Type | Description | |
AdAccountID | String | Specify an ad_account_id to use the owner of that ad_account as the operation user_account. |
Get Daily Metric of User Account
The Sync App will use the Pinterest API to process WHERE clause conditions built with the following column and operator. The rest of the filter is executed client side within the Sync App.
SELECT * FROM UserAccountDailyMetrics WHERE AppTypes = 'MOBILE'
Name | Type | References | Description |
OutboundClick | Integer | Total outbound click. | |
OutboundClickRate | Decimal | Outbound Click Rate. | |
Engagement | Integer | Total engagements. | |
EngagementRate | Decimal | Engagement Rate. | |
PinClick | Integer | Total pin clicks. | |
PinClickRate | Decimal | Pin Click Rate. | |
Impression | Integer | Total impressions. | |
Save | Integer | Total saves. | |
SaveRate | Decimal | Save Rate. | |
DataStatus | String | Metrics Availablity. | |
Date | Date | Metrics Date. | |
StartDate | Date | Metric report start date. | |
EndDate | Date | Metric report end date. |
Pseudo column fields are used in the WHERE clause of SELECT statements and offer a more granular control over the tuples that are returned from the data source.
Name | Type | Description | |
FromClaimedContent | String | Filter on Pins that match your claimed domain.
The allowed values are OTHER, CLAIMED, BOTH. The default value is BOTH. | |
PinFormat | String | Pin formats to get data for, default is all.
The allowed values are ALL, PRODUCT, REGULAR, VIDEO. The default value is ALL. | |
AppTypes | String | Apps or devices to get data for, default is all.
The allowed values are ALL, MOBILE, TABLET, WEB. The default value is ALL. | |
MetricTypes | String | Metric types to get data for, default is all.
The allowed values are ENGAGEMENT, ENGAGEMENT_RATE, IMPRESSION, OUTBOUND_CLICK, OUTBOUND_CLICK_RATE, PIN_CLICK, PIN_CLICK_RATE, SAVE, SAVE_RATE, ALL. The default value is ALL. | |
SplitField | String | How to split the data into groups. Not including this param means data won't be split.
The allowed values are NO_SPLIT, APP_TYPE, CONTENT_TYPE, OWNED_CONTENT, SOURCE, PIN_FORMAT, CONVERSION_TYPE, ATTRIBUTION_EVENT. The default value is NO_SPLIT. | |
AdAccountID | String | Unique identifier of an ad account. |
Get Summary Metric of User Account
The Sync App will use the Pinterest API to process WHERE clause conditions built with the following column and operator. The rest of the filter is executed client side within the Sync App.
SELECT * FROM UserAccountSummaryMetrics WHERE AppTypes = 'MOBILE'
Name | Type | References | Description |
OutboundClick | Integer | Total outbound click. | |
OutboundClickRate | Decimal | Outbound Click Rate. | |
Engagement | Integer | Total engagements. | |
EngagementRate | Decimal | Engagement Rate. | |
PinClick | Integer | Total pin clicks. | |
PinClickRate | Decimal | Pin Click Rate. | |
Impression | Integer | Total impressions. | |
Save | Integer | Total saves. | |
SaveRate | Decimal | Save Rate. | |
StartDate | Date | Metric report start date. | |
EndDate | Date | Metric report end date. |
Pseudo column fields are used in the WHERE clause of SELECT statements and offer a more granular control over the tuples that are returned from the data source.
Name | Type | Description | |
FromClaimedContent | String | Filter on Pins that match your claimed domain.
The allowed values are OTHER, CLAIMED, BOTH. The default value is BOTH. | |
PinFormat | String | Pin formats to get data for, default is all.
The allowed values are ALL, PRODUCT, REGULAR, VIDEO. The default value is ALL. | |
AppTypes | String | Apps or devices to get data for, default is all.
The allowed values are ALL, MOBILE, TABLET, WEB. The default value is ALL. | |
MetricTypes | String | Metric types to get data for, default is all.
The allowed values are ENGAGEMENT, ENGAGEMENT_RATE, IMPRESSION, OUTBOUND_CLICK, OUTBOUND_CLICK_RATE, PIN_CLICK, PIN_CLICK_RATE, SAVE, SAVE_RATE, ALL. The default value is ALL. | |
SplitField | String | How to split the data into groups. Not including this param means data won't be split.
The allowed values are NO_SPLIT, APP_TYPE, CONTENT_TYPE, OWNED_CONTENT, SOURCE, PIN_FORMAT, CONVERSION_TYPE, ATTRIBUTION_EVENT. The default value is NO_SPLIT. | |
AdAccountID | String | Unique identifier of an ad account. |
The connection string properties are the various options that can be used to establish a connection. This section provides a complete list of the options you can configure in the connection string for this provider. Click the links for further details.
For more information on establishing a connection, see Establishing a Connection.
Property | Description |
AdAccountId | Unique identifier of an Ad Account. |
Property | Description |
OAuthClientId | The client Id assigned when you register your application with an OAuth authorization server. |
OAuthClientSecret | The client secret assigned when you register your application with an OAuth authorization server. |
Property | Description |
SSLServerCert | The certificate to be accepted from the server when connecting using TLS/SSL. |
Property | Description |
FirewallType | The protocol used by a proxy-based firewall. |
FirewallServer | The name or IP address of a proxy-based firewall. |
FirewallPort | The TCP port for a proxy-based firewall. |
FirewallUser | The user name to use to authenticate with a proxy-based firewall. |
FirewallPassword | A password used to authenticate to a proxy-based firewall. |
Property | Description |
ProxyAutoDetect | This indicates whether to use the system proxy settings or not. This takes precedence over other proxy settings, so you'll need to set ProxyAutoDetect to FALSE in order use custom proxy settings. |
ProxyServer | The hostname or IP address of a proxy to route HTTP traffic through. |
ProxyPort | The TCP port the ProxyServer proxy is running on. |
ProxyAuthScheme | The authentication type to use to authenticate to the ProxyServer proxy. |
ProxyUser | A user name to be used to authenticate to the ProxyServer proxy. |
ProxyPassword | A password to be used to authenticate to the ProxyServer proxy. |
ProxySSLType | The SSL type to use when connecting to the ProxyServer proxy. |
ProxyExceptions | A semicolon separated list of destination hostnames or IPs that are exempt from connecting through the ProxyServer . |
Property | Description |
LogModules | Core modules to be included in the log file. |
Property | Description |
Location | A path to the directory that contains the schema files defining tables, views, and stored procedures. |
BrowsableSchemas | This property restricts the schemas reported to a subset of the available schemas. For example, BrowsableSchemas=SchemaA,SchemaB,SchemaC. |
Tables | This property restricts the tables reported to a subset of the available tables. For example, Tables=TableA,TableB,TableC. |
Views | Restricts the views reported to a subset of the available tables. For example, Views=ViewA,ViewB,ViewC. |
Property | Description |
MaxRows | Limits the number of rows returned rows when no aggregation or group by is used in the query. This helps avoid performance issues at design time. |
Other | These hidden properties are used only in specific use cases. |
PseudoColumns | This property indicates whether or not to include pseudo columns as columns to the table. |
Timeout | The value in seconds until the timeout error is thrown, canceling the operation. |
UserDefinedViews | A filepath pointing to the JSON configuration file containing your custom views. |
This section provides a complete list of the Connection properties you can configure in the connection string for this provider.
Property | Description |
AdAccountId | Unique identifier of an Ad Account. |
Unique identifier of an Ad Account.
Driver will use this Account where required. If not fed, it will pick the first Ad Account configured for the Account.
This section provides a complete list of the OAuth properties you can configure in the connection string for this provider.
Property | Description |
OAuthClientId | The client Id assigned when you register your application with an OAuth authorization server. |
OAuthClientSecret | The client secret assigned when you register your application with an OAuth authorization server. |
The client Id assigned when you register your application with an OAuth authorization server.
As part of registering an OAuth application, you will receive the OAuthClientId value, sometimes also called a consumer key, and a client secret, the OAuthClientSecret.
The client secret assigned when you register your application with an OAuth authorization server.
As part of registering an OAuth application, you will receive the OAuthClientId, also called a consumer key. You will also receive a client secret, also called a consumer secret. Set the client secret in the OAuthClientSecret property.
This section provides a complete list of the SSL properties you can configure in the connection string for this provider.
Property | Description |
SSLServerCert | The certificate to be accepted from the server when connecting using TLS/SSL. |
The certificate to be accepted from the server when connecting using TLS/SSL.
If using a TLS/SSL connection, this property can be used to specify the TLS/SSL certificate to be accepted from the server. Any other certificate that is not trusted by the machine is rejected.
This property can take the following forms:
Description | Example |
A full PEM Certificate (example shortened for brevity) | -----BEGIN CERTIFICATE----- MIIChTCCAe4CAQAwDQYJKoZIhv......Qw== -----END CERTIFICATE----- |
A path to a local file containing the certificate | C:\cert.cer |
The public key (example shortened for brevity) | -----BEGIN RSA PUBLIC KEY----- MIGfMA0GCSq......AQAB -----END RSA PUBLIC KEY----- |
The MD5 Thumbprint (hex values can also be either space or colon separated) | ecadbdda5a1529c58a1e9e09828d70e4 |
The SHA1 Thumbprint (hex values can also be either space or colon separated) | 34a929226ae0819f2ec14b4a3d904f801cbb150d |
If not specified, any certificate trusted by the machine is accepted.
Use '*' to signify to accept all certificates. Note that this is not recommended due to security concerns.
This section provides a complete list of the Firewall properties you can configure in the connection string for this provider.
Property | Description |
FirewallType | The protocol used by a proxy-based firewall. |
FirewallServer | The name or IP address of a proxy-based firewall. |
FirewallPort | The TCP port for a proxy-based firewall. |
FirewallUser | The user name to use to authenticate with a proxy-based firewall. |
FirewallPassword | A password used to authenticate to a proxy-based firewall. |
The protocol used by a proxy-based firewall.
This property specifies the protocol that the Sync App will use to tunnel traffic through the FirewallServer proxy. Note that by default, the Sync App connects to the system proxy; to disable this behavior and connect to one of the following proxy types, set ProxyAutoDetect to false.
Type | Default Port | Description |
TUNNEL | 80 | When this is set, the Sync App opens a connection to Pinterest and traffic flows back and forth through the proxy. |
SOCKS4 | 1080 | When this is set, the Sync App sends data through the SOCKS 4 proxy specified by FirewallServer and FirewallPort and passes the FirewallUser value to the proxy, which determines if the connection request should be granted. |
SOCKS5 | 1080 | When this is set, the Sync App sends data through the SOCKS 5 proxy specified by FirewallServer and FirewallPort. If your proxy requires authentication, set FirewallUser and FirewallPassword to credentials the proxy recognizes. |
To connect to HTTP proxies, use ProxyServer and ProxyPort. To authenticate to HTTP proxies, use ProxyAuthScheme, ProxyUser, and ProxyPassword.
The name or IP address of a proxy-based firewall.
This property specifies the IP address, DNS name, or host name of a proxy allowing traversal of a firewall. The protocol is specified by FirewallType: Use FirewallServer with this property to connect through SOCKS or do tunneling. Use ProxyServer to connect to an HTTP proxy.
Note that the Sync App uses the system proxy by default. To use a different proxy, set ProxyAutoDetect to false.
The TCP port for a proxy-based firewall.
This specifies the TCP port for a proxy allowing traversal of a firewall. Use FirewallServer to specify the name or IP address. Specify the protocol with FirewallType.
The user name to use to authenticate with a proxy-based firewall.
The FirewallUser and FirewallPassword properties are used to authenticate against the proxy specified in FirewallServer and FirewallPort, following the authentication method specified in FirewallType.
A password used to authenticate to a proxy-based firewall.
This property is passed to the proxy specified by FirewallServer and FirewallPort, following the authentication method specified by FirewallType.
This section provides a complete list of the Proxy properties you can configure in the connection string for this provider.
Property | Description |
ProxyAutoDetect | This indicates whether to use the system proxy settings or not. This takes precedence over other proxy settings, so you'll need to set ProxyAutoDetect to FALSE in order use custom proxy settings. |
ProxyServer | The hostname or IP address of a proxy to route HTTP traffic through. |
ProxyPort | The TCP port the ProxyServer proxy is running on. |
ProxyAuthScheme | The authentication type to use to authenticate to the ProxyServer proxy. |
ProxyUser | A user name to be used to authenticate to the ProxyServer proxy. |
ProxyPassword | A password to be used to authenticate to the ProxyServer proxy. |
ProxySSLType | The SSL type to use when connecting to the ProxyServer proxy. |
ProxyExceptions | A semicolon separated list of destination hostnames or IPs that are exempt from connecting through the ProxyServer . |
This indicates whether to use the system proxy settings or not. This takes precedence over other proxy settings, so you'll need to set ProxyAutoDetect to FALSE in order use custom proxy settings.
This takes precedence over other proxy settings, so you'll need to set ProxyAutoDetect to FALSE in order use custom proxy settings.
To connect to an HTTP proxy, see ProxyServer. For other proxies, such as SOCKS or tunneling, see FirewallType.
The hostname or IP address of a proxy to route HTTP traffic through.
The hostname or IP address of a proxy to route HTTP traffic through. The Sync App can use the HTTP, Windows (NTLM), or Kerberos authentication types to authenticate to an HTTP proxy.
If you need to connect through a SOCKS proxy or tunnel the connection, see FirewallType.
By default, the Sync App uses the system proxy. If you need to use another proxy, set ProxyAutoDetect to false.
The TCP port the ProxyServer proxy is running on.
The port the HTTP proxy is running on that you want to redirect HTTP traffic through. Specify the HTTP proxy in ProxyServer. For other proxy types, see FirewallType.
The authentication type to use to authenticate to the ProxyServer proxy.
This value specifies the authentication type to use to authenticate to the HTTP proxy specified by ProxyServer and ProxyPort.
Note that the Sync App will use the system proxy settings by default, without further configuration needed; if you want to connect to another proxy, you will need to set ProxyAutoDetect to false, in addition to ProxyServer and ProxyPort. To authenticate, set ProxyAuthScheme and set ProxyUser and ProxyPassword, if needed.
The authentication type can be one of the following:
If you need to use another authentication type, such as SOCKS 5 authentication, see FirewallType.
A user name to be used to authenticate to the ProxyServer proxy.
The ProxyUser and ProxyPassword options are used to connect and authenticate against the HTTP proxy specified in ProxyServer.
You can select one of the available authentication types in ProxyAuthScheme. If you are using HTTP authentication, set this to the user name of a user recognized by the HTTP proxy. If you are using Windows or Kerberos authentication, set this property to a user name in one of the following formats:
user@domain domain\user
A password to be used to authenticate to the ProxyServer proxy.
This property is used to authenticate to an HTTP proxy server that supports NTLM (Windows), Kerberos, or HTTP authentication. To specify the HTTP proxy, you can set ProxyServer and ProxyPort. To specify the authentication type, set ProxyAuthScheme.
If you are using HTTP authentication, additionally set ProxyUser and ProxyPassword to HTTP proxy.
If you are using NTLM authentication, set ProxyUser and ProxyPassword to your Windows password. You may also need these to complete Kerberos authentication.
For SOCKS 5 authentication or tunneling, see FirewallType.
By default, the Sync App uses the system proxy. If you want to connect to another proxy, set ProxyAutoDetect to false.
The SSL type to use when connecting to the ProxyServer proxy.
This property determines when to use SSL for the connection to an HTTP proxy specified by ProxyServer. This value can be AUTO, ALWAYS, NEVER, or TUNNEL. The applicable values are the following:
AUTO | Default setting. If the URL is an HTTPS URL, the Sync App will use the TUNNEL option. If the URL is an HTTP URL, the component will use the NEVER option. |
ALWAYS | The connection is always SSL enabled. |
NEVER | The connection is not SSL enabled. |
TUNNEL | The connection is through a tunneling proxy. The proxy server opens a connection to the remote host and traffic flows back and forth through the proxy. |
A semicolon separated list of destination hostnames or IPs that are exempt from connecting through the ProxyServer .
The ProxyServer is used for all addresses, except for addresses defined in this property. Use semicolons to separate entries.
Note that the Sync App uses the system proxy settings by default, without further configuration needed; if you want to explicitly configure proxy exceptions for this connection, you need to set ProxyAutoDetect = false, and configure ProxyServer and ProxyPort. To authenticate, set ProxyAuthScheme and set ProxyUser and ProxyPassword, if needed.
This section provides a complete list of the Logging properties you can configure in the connection string for this provider.
Property | Description |
LogModules | Core modules to be included in the log file. |
Core modules to be included in the log file.
Only the modules specified (separated by ';') will be included in the log file. By default all modules are included.
See the Logging page for an overview.
This section provides a complete list of the Schema properties you can configure in the connection string for this provider.
Property | Description |
Location | A path to the directory that contains the schema files defining tables, views, and stored procedures. |
BrowsableSchemas | This property restricts the schemas reported to a subset of the available schemas. For example, BrowsableSchemas=SchemaA,SchemaB,SchemaC. |
Tables | This property restricts the tables reported to a subset of the available tables. For example, Tables=TableA,TableB,TableC. |
Views | Restricts the views reported to a subset of the available tables. For example, Views=ViewA,ViewB,ViewC. |
A path to the directory that contains the schema files defining tables, views, and stored procedures.
The path to a directory which contains the schema files for the Sync App (.rsd files for tables and views, .rsb files for stored procedures). The folder location can be a relative path from the location of the executable. The Location property is only needed if you want to customize definitions (for example, change a column name, ignore a column, and so on) or extend the data model with new tables, views, or stored procedures.
If left unspecified, the default location is "%APPDATA%\\CData\\Pinterest Data Provider\\Schema" with %APPDATA% being set to the user's configuration directory:
This property restricts the schemas reported to a subset of the available schemas. For example, BrowsableSchemas=SchemaA,SchemaB,SchemaC.
Listing the schemas from databases can be expensive. Providing a list of schemas in the connection string improves the performance.
This property restricts the tables reported to a subset of the available tables. For example, Tables=TableA,TableB,TableC.
Listing the tables from some databases can be expensive. Providing a list of tables in the connection string improves the performance of the Sync App.
This property can also be used as an alternative to automatically listing views if you already know which ones you want to work with and there would otherwise be too many to work with.
Specify the tables you want in a comma-separated list. Each table should be a valid SQL identifier with any special characters escaped using square brackets, double-quotes or backticks. For example, Tables=TableA,[TableB/WithSlash],WithCatalog.WithSchema.`TableC With Space`.
Note that when connecting to a data source with multiple schemas or catalogs, you will need to provide the fully qualified name of the table in this property, as in the last example here, to avoid ambiguity between tables that exist in multiple catalogs or schemas.
Restricts the views reported to a subset of the available tables. For example, Views=ViewA,ViewB,ViewC.
Listing the views from some databases can be expensive. Providing a list of views in the connection string improves the performance of the Sync App.
This property can also be used as an alternative to automatically listing views if you already know which ones you want to work with and there would otherwise be too many to work with.
Specify the views you want in a comma-separated list. Each view should be a valid SQL identifier with any special characters escaped using square brackets, double-quotes or backticks. For example, Views=ViewA,[ViewB/WithSlash],WithCatalog.WithSchema.`ViewC With Space`.
Note that when connecting to a data source with multiple schemas or catalogs, you will need to provide the fully qualified name of the table in this property, as in the last example here, to avoid ambiguity between tables that exist in multiple catalogs or schemas.
This section provides a complete list of the Miscellaneous properties you can configure in the connection string for this provider.
Property | Description |
MaxRows | Limits the number of rows returned rows when no aggregation or group by is used in the query. This helps avoid performance issues at design time. |
Other | These hidden properties are used only in specific use cases. |
PseudoColumns | This property indicates whether or not to include pseudo columns as columns to the table. |
Timeout | The value in seconds until the timeout error is thrown, canceling the operation. |
UserDefinedViews | A filepath pointing to the JSON configuration file containing your custom views. |
Limits the number of rows returned rows when no aggregation or group by is used in the query. This helps avoid performance issues at design time.
Limits the number of rows returned rows when no aggregation or group by is used in the query. This helps avoid performance issues at design time.
These hidden properties are used only in specific use cases.
The properties listed below are available for specific use cases. Normal driver use cases and functionality should not require these properties.
Specify multiple properties in a semicolon-separated list.
DefaultColumnSize | Sets the default length of string fields when the data source does not provide column length in the metadata. The default value is 2000. |
ConvertDateTimeToGMT | Determines whether to convert date-time values to GMT, instead of the local time of the machine. |
RecordToFile=filename | Records the underlying socket data transfer to the specified file. |
This property indicates whether or not to include pseudo columns as columns to the table.
This setting is particularly helpful in Entity Framework, which does not allow you to set a value for a pseudo column unless it is a table column. The value of this connection setting is of the format "Table1=Column1, Table1=Column2, Table2=Column3". You can use the "*" character to include all tables and all columns; for example, "*=*".
The value in seconds until the timeout error is thrown, canceling the operation.
If Timeout = 0, operations do not time out. The operations run until they complete successfully or until they encounter an error condition.
If Timeout expires and the operation is not yet complete, the Sync App throws an exception.
A filepath pointing to the JSON configuration file containing your custom views.
User Defined Views are defined in a JSON-formatted configuration file called UserDefinedViews.json. The Sync App automatically detects the views specified in this file.
You can also have multiple view definitions and control them using the UserDefinedViews connection property. When you use this property, only the specified views are seen by the Sync App.
This User Defined View configuration file is formatted as follows:
For example:
{ "MyView": { "query": "SELECT * FROM AdAccounts WHERE MyColumn = 'value'" }, "MyView2": { "query": "SELECT * FROM MyTable WHERE Id IN (1,2,3)" } }Use the UserDefinedViews connection property to specify the location of your JSON configuration file. For example:
"UserDefinedViews", "C:\\Users\\yourusername\\Desktop\\tmp\\UserDefinedViews.json"