This integration allows you to create advertising campaigns on Yahoo! Ads using a customized list of 1st party data from company websites and mission-critical systems related to Yahoo! Japan. Treasure Data helps you send your own user segment to Yahoo! Ads.

Yahoo! Ads supports the marketing activities of companies with simple settings, various marketing channels, and flexible expandability. Strategic marketing communication is possible due to the various advertising distribution aspects unique to Yahoo! JAPAN.

With the Treasure Data export, you can engage in:

The diagram describes the flow for Direct Targeting and Custom Segment Targeting.



About Identifying a User

With Treasure Data, you have the following ways to identify a user:


A 3rd party cookie provided by Treasure Data.

It allows you to identify users without implementing CookieSync on your end because the td_global_id is always synced on the Yahoo! Japan website.

hashed email

It allows you to identify users without Cookie. Emails sent to Yahoo! Ads create a user list by matching the same hashed email on Yahoo! Ads.

Use email address hashed without a salt value or an email address that has not been hashed.


Enables you to identify users with IDFA (Identifier for Advertisers) on iOS or ADID (AdvertisingId) on Android instead of using the cookie.

No longer recommended.

Exporting to Yahoo! Ads

 Create Audience List in Yahoo! Ads

  1. Log in to Yahoo! Business center, in the Display Ads tab, click on the Tools drop down list and open the Target Lists page. If you have difficulty navigating the Yahoo! Ads Campaign Management Tool layout, contact the Yahoo! Japan support team.

  2. Click on the Add Target List drop-down list and select the Create Custom List option.

  3. Check the Custom Audience ID / Target List ID.

  4. If the Audience List ID column is not shown, click on Display and select the Target List ID checkbox.

Get Brand ID on Yahoo! Ads for Treasure Integration

Please contact your Treasure Data Customer Success representative.

Use the TD Console to Create Your Connection

Create a New Connection

In Treasure Data, you must create and configure the data connection, to be used during export, before running your query. As part of the data connection, you provide authentication to access the integration.

  1. Open TD Console.

  2. Navigate to Integrations HubCatalog.

  3. Search for and select Yahoo! Ads.

  4. The following dialog opens.

  5. Enter your Brand ID.

  6. Enter a name for your connection.

  7. Select Done.

Define your Query

Integration Parameters for Yahoo! Ads

Set the following parameters:



user_list_type (required)

User list type:

  • direct_targeting

  • custom_segment_targeting

user_id_type (required)

User ID type:

  • cookie

  • email: the first column, uid, is an email or hashed email SHA256

    • If the content of the column is not hashed, it will be hashed automatically
  • IDFA: the first column, uid, is a UUID

  • AAID: the first column, uid, is a UUID

ignore_invalid_records (optional)

Ignore the invalid records.

custom_audience_id (optional)

Custom audience id (site retargeting id), required when user_list_type is direct_targeting

target_list_id (optional)

Audience list id, required when user_list_type is direct_targeting

client_id (optional)

Client id, required when user_list_type is custom_segment_targeting

data_source_number (optional)

Data source number, required when user_list_type is custom_segment_targeting

Here is a sample configuration:

  type: yahoo_dmp
  brand_id: brand_id
  user_list_type: direct_targeting
  user_id_type: hashed_email
  custom_audience_id: custom_audience_id
  target_list_id: target_list_id
  client_id: client_id
  data_source_number: data_source_number
  ignore_invalid_records: false

Example Query for Yahoo! Ads

For direct_targeting, Treasure Data supports one column with the format string or number. For example:

SELECT '' as uid;

For custom_segment_targeting, the first column is the UID and has a string or number format.

SELECT '' as uid,
       '012345' as sms,
       '123' as sid,
       'My Name' as name,
       'Mar 11' as dob; 

Or, write an SQL query to extract user data with attributes to analyze and create custom segments on Yahoo! Ads. The User ID must be the first column. For example, extract td_global_id with attributes:

td_global_id AS td_global_id,
MAX(td_os) AS type,
COUNT(td_global_id) AS price
GROUP BY td_global_id

Or for the raw email, you can send as is, or hash by SQL before sending those to Yahoo! Ads.

The data is compressed by gzip when it’s sent to Yahoo! Ads. If the compressed data exceeds 1GB, you have to split the data before sending.


Optionally Schedule the Query Export Jobs

You can use Scheduled Jobs with Result Export to periodically write the output result to a specified target destination.

Optionally Configure Export Results in Workflow

Within Treasure Workflow, you can specify the use of this data connector to export data.

Learn more at Using Workflows to Export Data with the TD Toolbelt.

Extract the User List to Send to Yahoo! Ads

  1. Using your favourite text editor or the Treasure Data Workflow editor, open your Yahoo! Ads workflow file.
  2. Write a SQL query to extract the user list you want to send to Yahoo! Ads. See Creating and Deleting Files.

Run the Workflow to Send the User List to Yahoo! Ads

If you have just created a new custom target list Yahoo! Ads, wait for approximately an hour to run the workflow, because it can take time for the new list to be processed.

  1. Open TD Console.

  2. Navigate to Data Workbench > Workflows.

  3. Highlight your Yahoo! Ads workflow.
  4. Select the New Run button or define a schedule that runs the workflow repeatedly.

  5. Review your workflow results to make sure they were successful.

  6. Validate that the Reach number is correct after the workflow is done processing (which typically takes 3 - 4 hours).

Validate the Processing Status on Yahoo! Ads

If the Reach number remains at zero and is not updated after the 3-4 hour processing period, you can check the processing status in Yahoo! Ads.

  1. Validate the GUID value in the Workflow log for exporting to Yahoo! Ads API.

  2. Use an HTTP GET inquiry for the Yahoo! Ads API. For example:

    $ curl --location --request GET '<guid_value>' --header 'x-api-key: <x-api-key>'

  3. Replace the empty values with the relevant information.




GUID from workflow


x-API-key string that you used to set the workflow secrets. (Please contact TD for the api-key)







If you receive "status":"CREATED" as an HTTP result, the process has been completed in Yahoo! Ads successfully.