Movatterモバイル変換


[0]ホーム

URL:


DOCS >INTEGRATIONS >SAAS >CAMPAIGN MANAGER (V1)

Get started with a free trial today

Already have an account? Sign in

Campaign Manager (v1)

Campaign Manager is supported by the Singer community
This integration is powered bySinger's Campaign Manager tap. For support,visit the GitHub repo orjoin the Singer Slack.

Campaign Manager integration summary

Stitch’s Campaign Manager integration replicates data using theCampaign Manager 360 API. Refer to theSchema section for a list of objects available for replication.

Campaign Manager feature snapshot

A high-level look at Stitch's Campaign Manager (v1) integration, including release status, useful links, and the features supported in Stitch.

STITCH
Release status

Released on August 17, 2018

Supported by

Singer Community

Stitch plan

Standard

API availability

Available

Singer GitHub repository

singer-io/tap-doubleclick-campaign-manager

REPLICATION SETTINGS
Anchor Scheduling

Supported

Advanced Scheduling

Unsupported

Table-level reset

Unsupported

Configurable Replication Methods

Unsupported

DATA SELECTION
Table selection

Supported

Column selection

Unsupported

Select all

Supported

TRANSPARENCY
Extraction Logs

Supported

Loading Reports

Supported

Connecting Campaign Manager

Campaign Manager setup requirements

To set up Campaign Manager in Stitch, you need:

  • A Campaign Manager account. Refer toGoogle’s website for signup information.

  • API access. Most accounts have this enabled by default. If you’re not sure, contact your representative or the support team.

  • Access to the reports you want to replicate. Stitch will only be able to replicate the reports that the user who authorizes the integration has access to.


Step 1: Verify report access

Before you connect Campaign Manager to Stitch, you should verify that you have access to the reports you want to replicate. Stitch will only be able to replicate data for the same reports that you have access to in Campaign Manager.

  1. Sign into your Campaign Manager account and navigate to theReport Builder page.
  2. UnderReports, clickMy Reports.
  3. A list of all the reports you have access to will display:

    List of reports in Campaign Manager

  4. Verify that the reports you want to replicate are listed on this page.

Step 2: Locate your Campaign Manager profile ID

Need to connect multiple profiles? To connect more than one Campaign Manager profile, you’ll need to create additional Campaign Manager integrations in your Stitch account.

  1. Sign into your Campaign Manager account.
  2. Click the user menu (your icon) in the top right corner.
  3. In the dropdown beneath theSign out button will be a list of the profiles you have access to.
  4. Locate the ID of the profile you want to connect. This will be a seven digit number next to the name of the profile. For example:9999999

    An example is highlighted in the image to the right.

  5. Copy the profile ID.

Keep this handy - you’ll need it in the next step.

Step 3: Add Campaign Manager as a Stitch data source

  1. Sign into your Stitch account.
  2. On the Stitch Dashboard page, click theAdd Integration button.

  3. Click theCampaign Manager icon.

  4. Enter a name for the integration. This is the name that will display on the Stitch Dashboard for the integration; it’ll also be used to create the schema in your destination.

    For example, the name “Stitch Campaign Manager” would create a schema calledstitch_campaign_manager in the destination.Note: Schema names cannot be changed after you save the integration.

  5. In theProfile ID field, paste the ID of the Campaign Manager profile fromStep 2. This value should be a seven digit number such as9999999.

Step 4: Create a replication schedule

Replication schedules affect the time Extraction begins, not the time to data loaded. Refer to theReplication Scheduling documentation for more information.

In theReplication Frequency section, you’ll create the integration’sreplication schedule. An integration’s replication schedule determines how often Stitch runs a replication job, and the time that job begins.

Campaign Manager integrations support the following replication scheduling methods:

To keep your row usage low, consider setting the integration to replicate less frequently. See theUnderstanding and Reducing Your Row Usage guide for tips on reducing your usage.

Step 5: Authorize Stitch to access Campaign Manager

  1. If you aren’t already signed into your Google account, you’ll be prompted for your credentials.
  2. After you sign in, you’ll see a list of the permissions requested by Stitch:
    • View and manage DoubleClick for Advertisers reports - This is required to allow Stitch to view and run reports.Note: Stitch will not alter report settings, and will only ever read data. Refer to theReplication section below for more info.
  3. To grant access, click theAllow button.
  4. After you’ve granted access, you’ll be redirected back to Stitch to finish setting up the integration.

Step 6: Set objects to replicate

Is an object missing or not replicating? Verify that the object meets the requirements forselection andreplication.

The last step is to select the tables you want to replicate.Learn about the available tables for this integration.

Note: If a replication job is currently in progress, new selections won’t be used until the next job starts.

For Campaign Manager integrations, you can select:

  1. **Individual tables **

  2. All tables and columns

Click the tabs to view instructions for each selection method.

  1. In the integration’sTables to Replicate tab, locate a table you want to replicate.
  2. To track a table, click thecheckbox next to the table’s name. A blue checkmark means the table is set to replicate.

  3. Repeat this process for all the tables you want to replicate.
  4. When finished, click theFinalize Your Selections button at the bottom of the screen to save your selections.
Important: Using theSelect All feature will overwrite any previous selections. However, selections aren’t final untilFinalize Your Selections is clicked. ClickingCancel will restore your previous selections.Refer to theSelect All guide for more info about this feature.
  1. Click into the integration from the Stitch Dashboard page.
  2. Click theTables to Replicate tab.

  3. In the list of tables, click the box next to theTable Names column.
  4. In the menu that displays, clickTrack all Tables and Fields:

    The Track all Tables and Fields menu in the Tables to Replicate tab

  5. Click theFinalize Your Selections button at the bottom of the page to save your data selections.

Initial and historical replication jobs

After you finish setting up Campaign Manager, itsSync Status may show asPending on either the Stitch Dashboard or in the Integration Details page.

For a new integration, aPending status indicates that Stitch is in the process of scheduling the initial replication job for the integration.This may take some time to complete.

Initial replication jobs with Anchor Scheduling

If using Anchor Scheduling, an initial replication job may not kick off immediately. This depends on the selected Replication Frequency and Anchor Time. Refer to theAnchor Scheduling documentation for more information.

Free historical data loads

The first seven days of replication, beginning when data is first replicated, are free. Rows replicated from the new integration during this time won’t count towards your quota. Stitch offers this as a way of testing new integrations, measuring usage, and ensuring historical data volumes don’t quickly consume your quota.

Replication will continue after the seven days are over. If you’re no longer interested in this source, be sure topause ordelete the integration to prevent unwanted usage.

Campaign Manager replication

When Stitch replicates data from Campaign Manager, the process will look like this:

  1. Stitch runs the selected report using the report’s defined date range and included dimensions and metrics.
  2. Campaign Manager creates a CSV file of the report results.
  3. Stitch replicates the results from the CSV.

Each run of a report will have its own CSV file in Campaign Manager, which you can access bysigning into your Campaign Manager account.

Report date ranges

When Stitch replicates data for a given report, it will use the date range currently defined in Campaign Manager for that report.

For example: The image below shows the configuration for a report namedad_performance_report, where the date range is set to the last 30 days. When Stitch replicates data for this report, it will run the report using these settings:

Report date range field highlighted in Campaign Manager

Data loading and Append-Only Replication

When Stitch loads the extracted data into your destination, it will do so using Append-Only Replication. This is a type of Incremental Replication where existing rows aren’t updated, but appended to the end of the table.

Additionally, the number of rows loaded into the table during each replication job is dependent on the combination of unique values in the dimension columns you track. See theColumn Selection and Statistic Aggregation section for more info and examples.

Example

Let’s say these columns are tracking in thead_performance_report table:

  • date (dimension) - The date pertaining to the record.

  • campaignId (dimension) - This is the ID associated with a campaign. In this example, there are two campaigns:929007494 and929599581
  • device (dimension) - The device type. There are two values for this example:Computer andTablet
  • impressions (metric) - The total number of impressions.

Every time Stitch replicates and loads data, a row for each unique combination of the dimension columns will be appended to the end of the table:

_sdc_report_datetimedate campaignIddeviceimpressions
2017-10-01 17:48:26.7912017-09-10 00:00:00 929007494Computer61
2017-10-01 17:48:26.7912017-09-10 00:00:00 929007494Tablet15
2017-10-01 17:48:26.7912017-09-10 00:00:00 929599581Computer37
2017-10-01 17:48:26.7912017-09-10 00:00:00 929599581Tablet9

Query for the latest data

You may need to alter this query

The query below is meant to act as a foundation for writing your own. Depending on your SQL syntax and the dimensions contained in a given table, you may need to alter this query for your own usage.

When querying your Campaign Manager data, you’ll want to include the Dimensions you’re analyzing in the partition. For example: If you’re analyzing campaigns over time, you’d include columns likecampaignId anddate.

If you want only the most recently replicated data for any Campaign Manager table, you can use the sample query below to account for the Append-Only Replication Stitch uses.

This query will use the report’s Dimensions and the_sdc_report_datetime column to return the latest data:

SELECT*FROM(SELECT*,RANK()OVER(PARTITIONBYdimension_1,dimension_2,etc.,ORDERBY_sdc_report_datetimeDESC)FROMad_performance_reportORDERBYdimension_1,dimension_2,etc.ASC)ASlatestWHERElatest.rank=1

In this query:

  1. A subquery first uses a window function to create a ‘window’ of data for each combination of Dimensions,
  2. The values of the_sdc_report_datetime column are ranked within each window partition, and
  3. Then, in the outer query, only the rows with_sdc_report_datetime values ranked as1 - which is equal to the maximum timestamp - are returned.

Campaign Manager table reference

Schemas and versioning

Schemas and naming conventions can change from version to version, so we recommend verifying your integration’s version before continuing.

The schema and info displayed below is forversion 1 of this integration.

This is the latest version of the Campaign Manager integration.

Table and column names in your destination

Depending on your destination, table and column names may not appear as they are outlined below.

For example: Object names are lowercased in Redshift (CusTomERs >customers), while case is maintained in PostgreSQL destinations (CusTomERs >CusTomERs). Refer to theLoading Guide for your destination for more info.

RelatedTroubleshooting

Questions? Feedback?

Did this article help? If you have questions or feedback, feel free tosubmit a pull request with your suggestions,open an issue on GitHub, orreach out to us.


[8]ページ先頭

©2009-2026 Movatter.jp