LogoLogo
  • Release Notes
    • 2024
      • July 2024
      • June 2024
      • May 2024
      • April 2024
      • March 2024
      • February 2024
      • January 2024
    • 2023
      • December 2023
      • November 2023
      • October 2023
      • September 2023
      • August 2023
      • July 2023
      • June 2023
      • May 2023
      • April 2023
      • March 2023
      • February 2023
      • January 2023
    • 2022
      • December 2022
      • November 2022
      • October 2022
      • September 2022
      • August 2022
      • July 2022
      • June 2022
      • May 2022
      • April 2022
      • March 2022
      • February 2022
      • January 2022
  • CDP 365 INTRODUCTION
    • Overview of CDP 365
    • Feature Structure
    • CDP 365's Interface
    • Help feature
  • PERSONAS
    • Visitors & Customers
      • Data table
      • Explore data
      • Upload data
      • Apply data view
      • View profile
    • Segments
    • Plannings
    • Predictive Models
      • RFM Model
      • Lifecycle Stages
  • DATA HUB
    • Event Sources
      • Source
        • Website
        • System delivery
      • Conversion Event
    • Business Objects
      • Data Objects
        • Data table
        • Attributes
          • Custom Attribute
          • Computed Attribute
            • Event Counter
            • Aggregation
            • Most Frequent
            • First
            • Last
            • Unique List
            • Unique Count
            • Conversion Attribution
            • Virtual Custom Function
            • Schedule Custom Function
        • Collections
        • Groups
        • Setting
      • Data Views
      • Import Histories
      • Export Histories
    • Analytic Models
    • Data Schema
  • Marketing Hub
    • Customer Journeys
      • Work with Journey
        • Destination nodes
          • Web Embedded
            • Design from JSON
              • Control Toolbar
              • Setting
                • Template Setting
                • Blocks & Settings
                  • Countdown
                  • Dynamic Content
                  • Image
                  • Video
                  • Boolean
                  • Number
                  • Text
                  • Array
                  • Object
          • Line App
          • Zalo
      • Blast Campaign
      • Third-party campaigns
      • Metrics
      • Label
      • Custom Function
      • Status of Journey
    • Channel Integration - Destinations
      • All Destinations
        • Email
        • Web Personalization
        • Web Push-Notification
        • App Push Notification
        • Smart Inbox
        • Conversation
        • Webhook
        • SMS
        • Viber
        • Whatsapp
        • Line
        • Zalo
        • File Transfer
    • Promotion Center
    • Media Template
      • Control Toolbar
      • Settings
        • Template Settings
          • Basic
          • Advanced
        • Blocks & Settings
          • Columns
          • Text
          • Image
          • Button
          • Optin Fields
            • Email
            • Phone
            • Dropdown select
            • Datetime
            • Radio button/ Checkbox
            • Privacy Notice
          • Yes/No
          • Count down
          • Video
          • Coupon Wheel
          • Spacer
          • Divider
          • Icon
          • HTML
          • Slide show
          • Group
          • Rating
          • Table
          • Shake and Win
          • Lucky gift box
          • OTP Verification
      • Layers
      • Live Preview
    • Email Template
      • Control Toolbar
      • Settings
        • Email Template Settings
          • Basic
          • Advanced
        • Blocks & Settings
          • Columns
          • Text
          • Image
          • Button
          • Count down
          • Spacer
          • Divider
          • Icon
          • HTML
          • Menu
          • Table
          • Unsubscribe
          • Group
      • Layers
      • Live Preview
    • Link Management
  • Insights
    • Quick start guide
    • Data Source
      • Create a data source
    • Reports
      • Create reports
        • About reports
        • Build, stylize, and add data to reports
          • Set report date ranges
          • Add and configure components
          • Chart references
            • Area chart reference
            • Bar chart reference
            • Bullet chart reference
            • Geo chart reference
            • Line chart reference
            • Pie chart reference
            • Pivot table reference
            • Scatter and bubble chart reference
            • Scorecard reference
            • Table reference
            • Time series reference
            • Tree map reference
          • Add reference lines to charts
          • Add and edit data
          • Add pages and report navigation
          • Report layout options
          • Work with color
          • Add text, images, lines, and shapes
          • Arrange and distribute components
          • Use the Insights Report Editor
        • Copy a report
        • Delete a report
        • Tutorial: Create a new report
      • Filter your data
        • About filters
        • Create, edit, and manage filters
        • Configure filter conditions
        • Filter examples
      • Make reports interactive
        • Let your viewers control the date range
        • About controls
        • Use controls across data sources
        • Add chart interaction filters
        • Let viewers drill down into your data
        • Link to a page
        • Export data from a chart
        • Embed external content in reports
        • Let viewers select the fields in charts
      • Blend multiple data sources in a chart
        • About data blending
        • Blend data in charts
        • Filter blended data
        • Change the date range for blended data
        • Use blending to reaggregate data
      • Glossary
        • Aggregation
        • Blended data
        • Chart
        • Component
        • Component, report-level
        • Connector
        • Data set
        • Data source
        • Dimension
        • Edit mode
        • Field
        • Join key
        • Metric
        • Owner
        • Page
        • Properties panel
        • Report
        • View mode
        • Viewer (user type)
  • DATAFLOWS
    • Dataflows
      • Creating a Dataflows
        • Action node
          • Add data
          • Delay
          • Filter
          • Script
          • SQL
          • Branch
          • Add column
          • Aggregate
          • Select column
          • Join
          • Bin
          • Merge Columns
          • Split Columns
          • Group
          • Union Rows
          • Save data
        • Destination channel
          • Send mail
          • Export to Google Sheet
          • Google Audience
          • Facebook Audience
          • Big Query
          • Postgre
          • Export to CDP 356 Events
          • Export to CDP 365 Business Object
          • Export to CDP 365 Segment
      • Work with Dataflow
      • Status of Dataflow
    • Data Destinations
      • Create a Data Destination
      • View/Edit a Data Destination
      • Data Destinations Connectors
        • Amazon S3
        • CDP Coupon
        • Google Audiences
        • CDP Business Object
        • CDP Segment
        • CDP Event
        • Audience SaleForce Maketing Cloud
        • Google BigQuery
        • Facebook Audiences
        • Google Ads Audiences
        • Postgres
        • Send Mail
        • Google Sheet
    • Data Source
      • Create a Data Source
      • View/Edit a Data Source
      • Data Source Connectors
        • Google Sheets
        • Oracle
        • KiotViet
        • Elastic Search
        • Haravan
        • Tiki
        • Sapo
        • Lazada
        • Shopee
        • Fanpage Messages
        • Google Analytics
        • CDP ANTSOMI
        • Trello
        • Google Ads
        • Facebook Ads
        • Youtube
        • PostgreSQL
        • MySQL
        • File Upload (Big Table)
        • Business Object
        • JSON API
        • SQL Workspace
        • CDP 365 Segment's Members
        • Analytic Model Antsomi
        • SQL Server
  • PORTAL SETTINGS
    • Overview
    • Data Protect
    • General Setting
      • Roles
    • Accounts
    • IP Restriction
    • Menus
    • Account Sharing
  • Annotation
    • Conditions
    • Time range
    • Data Format
    • Function List
  • TICKET MANAGEMENT
    • Tickets
  • Use cases
    • Personas
      • Visitors/Customers
        • How to add new and update Customers to CDP
        • How to create a Customer Custom Attribute
        • How to create a Customer Computed-Last Attribute
      • Segments
        • How to export .xml file?
        • How to create a Dynamic Segment
        • How to create a Static Segment (Matching file)
        • How to create a new segment?
        • Create a segment for Cart Abandonment
        • Set up a "Segment" containing emails to be excluded before sending mail
      • How to create "Attribute" for "Customer"/"Visitors"?
    • Data Hub
      • Event Sources
        • Set up Event Tracking code to track events into CDP
        • Set up Event Tracking code to track events into CDP
        • How to check data after you track an event on the website and app?
      • Business Objects
        • How to create "Data Source" connected with the "Data Object" of CDP 365
        • How to create a Collection
        • How to create "Custom Attributes" with Input via UI feature
    • Marketing Hub
      • How do I set up an advertising SMS campaign using the SMS FPT destination?
      • Strengthening User Identity Verification with OTP Authentication
      • How to use Line Message Templates?
      • How to set up a Webhook Journey
      • How to set up a campaign using SMS channel
      • How to setup a campaign using App Notification channel?
      • How to configure a smart inbox campaign? (In Progress...)
      • How to calculate conversion goals for a journey?
      • How to recommend products using the Parent-Child Algorithm
      • How to create Branded domain in Link Management?
      • How to send messages using OneWay SMS destination?
      • How to explore Journeys?
      • How to test a Journey using Email channel?
      • How to send marketing email using Mailgun Destination?
      • How to send marketing SMS using One Way SMS Destination?
      • How to create Web Personalization using Media JSON in CDP 365?
      • How to create an Email Customer Journey?
      • How to create a Web personalization journey?
      • How to create a "Trello Card" using CDP 365
      • How to display template on website using CDP 365
      • Initialize customer after submitting form
      • How to create Customer Journey?
      • How to set up some Inline templates
      • How to monitor campaign performance?
      • How to create "Promotion"/"Coupon" by uploading files?
      • How to create Coupon from Magento or ERP system to CDP 365?
      • How to send "SMS Yondu" using CDP 365
      • How to send mail from email upload?
      • How to send "Zalo Notification Service" using CDP 365
      • How to send message using "FB Messenger" in CDP
      • How to Send SMS using "Klasik SMS" in CDP 365
      • How to push notification "Firebase Cloud Messaging" using CDP 365
      • How to Send email using "Amazon SES" in CDP 365
      • How to define zone in website for improve web personalize performance
      • How to Send "Viber Yondu" using CDP 365
      • How to send "Infobip Viber" using CDP 365
      • How to send "eSMS Viber" using CDP 365
      • How to create a new "Display Zone"
      • How to Send SMS using "Telerivet SMS" in CDP 365
      • How to push notification using "Onesignal (App Push)" in CDP 365
      • How to push notification using Antsomi Web Push in CDP 365?
      • How to Send email using "SendGrid" in CDP 365
      • How to send email using "Mailjet" in CDP 365?
      • How to send WhatsApp message in CDP 365?
      • How to send Telegram message in CDP 365?
      • How to track click metric of OneSignal App Push
      • How to send Ticket from CDP 365 to Antbuddy?
    • Insights
      • How to create "Report" with “Journey performance” data source?
      • How to create a new "Data sources"?
    • Dataflows
      • How can I export data from CDP 365 to Google Sheets?
      • Collect data from TikTok Form to CDP 365
      • How to create a Segment Data Source
      • How to create a report from multiple data sources?
      • How to send messages using "Facebook Messenger" in CDP 365
      • How to create a new Google Analytics data source?
      • How to create Facebook Ads data source?
      • How to create Google Ads data source?
      • How to create a "Destination Channel" in "Dataflows"?
      • Set up Dataflows to push data to a Business Object in CDP 365
      • Set up Dataflows to push data to Google and Facebook Audiences
      • How to upload segment data into Google Ad Manager (GAM) 360 using Dataflow?
    • Portal Settings
      • How to set up two-step authentication?
Powered by GitBook
On this page
  • Prerequisites
  • Connect to Google Cloud Storage (GCS)
  • Prepare your Visitor Segments
  • Prepare your Segment Data Source
  • Create the upload file
  • 1. Add Data
  • 2. Add Columns
  • 3. Select Columns
  • 4. Export data to GCS
  • Example exported file

Was this helpful?

  1. Use cases
  2. Dataflows

How to upload segment data into Google Ad Manager (GAM) 360 using Dataflow?

Optimize ad delivery with targeted in-sync audiences

PreviousSet up Dataflows to push data to Google and Facebook AudiencesNextPortal Settings

Last updated 8 months ago

Was this helpful?

The Google Ad Manager 360 (GAM 360) destination allows you to batch upload identifiers to audience segments in bulk by sending your desired segments to an Ad Manager cloud storage bucket. The segments appear as , which you can then use in GAM 360.

Prerequisites

Before you can use Antsomi to batch upload your identifiers to GAM 360, ensure you've completed these steps, taken from :

  1. Locate and submit your network code. Find your network code in Ad Manager under Admin -> Global settings -> Network code.

  2. Ensure that you've created an active first-party audience segment with which you want to associate the identifiers. If you don't want this segment to collect users using your own inventory, select "Publisher Managed" as the Population method.

Expect to wait up for 24 hours from the time of segment creation to the time when you can perform batch upload.

  1. that contains all Google Accounts that will have access to upload and view files.

  2. Inject your Antsomi Website SDK to your website source code.

If you haven't injected the Antsomi SDK, please follow these .

  1. In your website source code, include the following code snippets in the GAM360 function (in the function googletag.cmd.push() and before the statement googletag.enableServices();).

<script>
    window.googletag = window.googletag || {cmd: []};
    googletag.cmd.push(function() {
        googletag.defineSlot('/16055XXXX,2310342YYYY/example.com/Multibanner1', [[300,250],[320,50]], 'div-gpt-ad-8144AAA-Z').addService(googletag.pubads());
        googletag.defineSlot('/16055XXXX,2310342YYYY/example.com/Multibanner1', [[320,100],[320,50]], 'div-gpt-ad-8144AAA-U').addService(googletag.pubads());
        googletag.defineSlot('/16055XXXX,2310342YYYY/example.com/Multibanner1', [[336,280],[300,250],[300,600]], 'div-gpt-ad-8144AAA-V').addService(googletag.pubads());

        googletag.pubads().enableSingleRequest();
        googletag.pubads().collapseEmptyDivs();
        googletag.pubads().setCentering(true);

        // <-- Add this snippet
        var getCookie=function(e){return(cookieMatch=RegExp("(^|;)[ ]*"+e+"=([^;]*)").exec(document.cookie))?window.decodeURIComponent(cookieMatch[2]):0};
        var md5=function($){function _($,_){return $<<_|$>>>32-_}function x($,_){var x,r,F,n,C;return(F=2147483648&$,n=2147483648&_,x=1073741824&$,r=1073741824&_,C=(1073741823&$)+(1073741823&_),x&r)?2147483648^C^F^n:x|r?1073741824&C?3221225472^C^F^n:1073741824^C^F^n:C^F^n}function r($,_,x){return $&_|~$&x}function F($,_,x){return $&x|_&~x}function n($,_,x){return $^_^x}function C($,_,x){return _^($|~x)}function t($,r,F,n,C,t,A){var D,E,o;return $=x($,x(x((D=r,E=F,D&E|~D&(o=n)),C),A)),x(_($,t),r)}function A($,r,F,n,C,t,A){var D,E,o;return $=x($,x(x((D=r,E=F,D&(o=n)|E&~o),C),A)),x(_($,t),r)}function D($,r,F,n,C,t,A){var D,E,o;return $=x($,x(x((D=r,E=F,D^E^(o=n)),C),A)),x(_($,t),r)}function E($,r,F,n,C,t,A){var D,E,o;return $=x($,x(x((D=r,E=F,E^(D|~(o=n))),C),A)),x(_($,t),r)}function o($){var _,x,r="",F="";for(x=0;x<=3;x++)r+=(F="0"+(_=$>>>8*x&255).toString(16)).substr(F.length-2,2);return r}var e,B,u,f,a,c,i,h,v,d=[];for(e=0,d=function $(_){for(var x,r=_.length,F=r+8,n=((F-F%64)/64+1)*16,C=Array(n-1),t=0,A=0;A<r;)x=(A-A%4)/4,t=A%4*8,C[x]=C[x]|_.charCodeAt(A)<<t,A++;return x=(A-A%4)/4,t=A%4*8,C[x]=C[x]|128<<t,C[n-2]=r<<3,C[n-1]=r>>>29,C}($=function $(_){_=_.replace(/\r\n/g,"\n");for(var x="",r=0;r<_.length;r++){var F=_.charCodeAt(r);F<128?x+=String.fromCharCode(F):F>127&&F<2048?(x+=String.fromCharCode(F>>6|192),x+=String.fromCharCode(63&F|128)):(x+=String.fromCharCode(F>>12|224),x+=String.fromCharCode(F>>6&63|128),x+=String.fromCharCode(63&F|128))}return x}($)),c=1732584193,i=4023233417,h=2562383102,v=271733878;e<d.length;e+=16)B=c,u=i,f=h,a=v,c=t(c,i,h,v,d[e+0],7,3614090360),v=t(v,c,i,h,d[e+1],12,3905402710),h=t(h,v,c,i,d[e+2],17,606105819),i=t(i,h,v,c,d[e+3],22,3250441966),c=t(c,i,h,v,d[e+4],7,4118548399),v=t(v,c,i,h,d[e+5],12,1200080426),h=t(h,v,c,i,d[e+6],17,2821735955),i=t(i,h,v,c,d[e+7],22,4249261313),c=t(c,i,h,v,d[e+8],7,1770035416),v=t(v,c,i,h,d[e+9],12,2336552879),h=t(h,v,c,i,d[e+10],17,4294925233),i=t(i,h,v,c,d[e+11],22,2304563134),c=t(c,i,h,v,d[e+12],7,1804603682),v=t(v,c,i,h,d[e+13],12,4254626195),h=t(h,v,c,i,d[e+14],17,2792965006),i=t(i,h,v,c,d[e+15],22,1236535329),c=A(c,i,h,v,d[e+1],5,4129170786),v=A(v,c,i,h,d[e+6],9,3225465664),h=A(h,v,c,i,d[e+11],14,643717713),i=A(i,h,v,c,d[e+0],20,3921069994),c=A(c,i,h,v,d[e+5],5,3593408605),v=A(v,c,i,h,d[e+10],9,38016083),h=A(h,v,c,i,d[e+15],14,3634488961),i=A(i,h,v,c,d[e+4],20,3889429448),c=A(c,i,h,v,d[e+9],5,568446438),v=A(v,c,i,h,d[e+14],9,3275163606),h=A(h,v,c,i,d[e+3],14,4107603335),i=A(i,h,v,c,d[e+8],20,1163531501),c=A(c,i,h,v,d[e+13],5,2850285829),v=A(v,c,i,h,d[e+2],9,4243563512),h=A(h,v,c,i,d[e+7],14,1735328473),i=A(i,h,v,c,d[e+12],20,2368359562),c=D(c,i,h,v,d[e+5],4,4294588738),v=D(v,c,i,h,d[e+8],11,2272392833),h=D(h,v,c,i,d[e+11],16,1839030562),i=D(i,h,v,c,d[e+14],23,4259657740),c=D(c,i,h,v,d[e+1],4,2763975236),v=D(v,c,i,h,d[e+4],11,1272893353),h=D(h,v,c,i,d[e+7],16,4139469664),i=D(i,h,v,c,d[e+10],23,3200236656),c=D(c,i,h,v,d[e+13],4,681279174),v=D(v,c,i,h,d[e+0],11,3936430074),h=D(h,v,c,i,d[e+3],16,3572445317),i=D(i,h,v,c,d[e+6],23,76029189),c=D(c,i,h,v,d[e+9],4,3654602809),v=D(v,c,i,h,d[e+12],11,3873151461),h=D(h,v,c,i,d[e+15],16,530742520),i=D(i,h,v,c,d[e+2],23,3299628645),c=E(c,i,h,v,d[e+0],6,4096336452),v=E(v,c,i,h,d[e+7],10,1126891415),h=E(h,v,c,i,d[e+14],15,2878612391),i=E(i,h,v,c,d[e+5],21,4237533241),c=E(c,i,h,v,d[e+12],6,1700485571),v=E(v,c,i,h,d[e+3],10,2399980690),h=E(h,v,c,i,d[e+10],15,4293915773),i=E(i,h,v,c,d[e+1],21,2240044497),c=E(c,i,h,v,d[e+8],6,1873313359),v=E(v,c,i,h,d[e+15],10,4264355552),h=E(h,v,c,i,d[e+6],15,2734768916),i=E(i,h,v,c,d[e+13],21,1309151649),c=E(c,i,h,v,d[e+4],6,4149444226),v=E(v,c,i,h,d[e+11],10,3174756917),h=E(h,v,c,i,d[e+2],15,718787259),i=E(i,h,v,c,d[e+9],21,3951481745),c=x(c,B),i=x(i,u),h=x(h,f),v=x(v,a);return(o(c)+o(i)+o(h)+o(v)).toLowerCase()};

        var ppid = getCookie("_asm_uid");
        if (ppid && ppid != "") {
            googletag.pubads().setPublisherProvidedId(md5(ppid));
        }
        // end -->

        googletag.enableServices();
    });
</script>

The _cdpEventFunction is a utility object from the Antsomi Website SDK, please kindly wait for the SDK script to be fully loaded and check for its existence before using it.

Once your account manager has completed your setup, you can create the file of identifiers you want to upload.

Connect to Google Cloud Storage (GCS)

  1. Log into the CDP system. After logging in, click the menu in the left corner of the screen

  2. Go to menu: DATAFLOWS -> Data Destinations

  1. You can then authenticate Antsomi to Google Ad Manager 360 by entering your GCP Credentials.

  1. After validated successfully, input the Destination name and click the Connect button.

Prepare your Visitor Segments

Skip this step if you have your segment(s) already.

Prepare your Segment Data Source

Skip this step if you have your Segment Data Source already.

Create the upload file

Once you've set up your Google Ad Manager 360 Destination and have a Segment(s) Data Source to pull data from, you can set up your dataflow to begin syncing data.

  1. Select the relevant Segment data source where you want to pull data from, then click Create dataflow.

1. Add Data

Select your desired segment(s) and the field "User ID".

2. Add Columns

In the next step, you need to denote the audience segment IDs with which the identifiers from the previous step should be associated. You need to specify a static value to associate all identifiers with the same segment.

List of identifiers

We only supports this identifier type of the GAM 360:

Identifier
Description
Source
Upload as

PPID

Publisher provided identifiers

Raw (external source)

ppid

  1. Input the column names, following this setup:

Column Name
Data Type
Formula

ppid

Text

Select the field "User ID"

list_id

Text

Static value

process_consent

Text

Static empty string: ''

3. Select Columns

To ensure the uploading file is in the correct format that GAM360 can read and process, you need to specify only the required columns.

  1. From the list of available columns, select 3 columns: "ppid", "list_id", and "process_consent".

4. Export data to GCS

The GCS destination lets you specify the bucket name, the parent directory, and the name of the file you want to use for your results.

You can include timestamp variables in the filename, surrounding each with {}. Antsomi supports these timestamp variables:

  • timestamp: Unix timestamp in milliseconds.

  • year: Represents the full year in four digits.

  • month: Two-digit month format (01-12).

  • day: Two-digit day format (01-31).

  • hour: Two-digit hour format in the 24-hour clock (00-23).

  • minute: Two-digit minute format (00-59).

All dates and times are GMT +8 (Singapore timezone).

If a file already exists at the path you entered at the time of a sync, Antsomi will overwrite it.

Example exported file

Example file content:

2024-05-14-12-10.csv
ppid,list_id,process_consent
0b96df113fd7a881ea7f8e5681c816c1,3153490,
a8fc1749045aa359d2b576fdccd296cc,3153490,

Click the Add destination button. Select Google Cloud Storage.

If you need to create a cloud credential, consult the guide from Google .

Please follow the steps in this .

Please follow the steps in this .

Go to the Dataflows -> Batch Streaming page and click the Blank Dataflow button to begin.

Click Add New Node -> .

Click Add New Node -> .

documentation
document
document
Google Ad Manager Help
Create a Google Group
instructions
a CSV file