- Open Source
- APIs
- Advertising
- Blog
- Events
- Podcasts
- Apps
- Native
- Documentation
- Yahoo Native to Yahoo DSP API Migration Guide
- Sign In
- Language:
Sample Code¶
All of the sample code for reading from Native and writing to DSP is available for download in Zip files by partners and developers who are working with Migration Scenario 3.
The samples are grouped in ordered sequence, as described in the navigation section below.
Important
You may wish to test the samples in a sandbox (preliminary and staged) environment before actually migrating your Native accounts to DSP.
Navigate to Java Code Samples¶
The Java code samples are grouped progressively in sequence, so you should begin by creating a DSP shell campaign for migration, then move on to create DSP creatives and populate those creatives with Native ad assets, and finally, flatten and filter Native targeting attributes for line-level campaign targeting on the DSP platform.
Java Code |
Description |
---|---|
Create DSP shell campaign for migration |
Code snippets that demonstrate how to create a DSP shell campaign and how to map Gemini campaign and adgroups to a DSP Native IO line. |
Create DSP creative for Native ad assets |
Example code that shows how to create DSP creatives for Native ad assets. |
Targeting attributes |
Sample code on how to migrate Native targeting attributes and types to DSP. |