Discover how a bimodal integration strategy can address the major data management challenges facing your organization today.
Get the Report →Configure a Solicit-Response Send Port for the CData BizTalk Adapter for YouTube Analytics
Use the adapter for YouTube Analytics with a solicit-response send port to execute updategrams and data manipulation SQL in BizTalk.
This section provides step-by-step instructions for creating, configuring, and testing a static solicit-response send port using the CData BizTalk Adapter for YouTube Analytics. You can use a static solicit-response send port to execute commands and access the results in BizTalk. You can use send ports to execute updategram commands, SQL commands, and stored procedure operations.
Create and Configure the Send Port
Create a static solicit-response send port and configure it to use the adapter as its transport type.
- If you have not already done so, open your BizTalk application in the BizTalk Administration Console.
- In the node for your BizTalk application, right-click Send Ports and select New -> Static Solicit-Response Send Port. The Send Port Properties dialog is displayed.
- In the Send Port properties, enter a name for the receive port.
- In the Transport Type menu, select CData.YouTubeAnalytics;.
- In the Send pipeline menu, select the default option, PassThruTransmit.
- In the Receive pipeline menu, select the default option, PassThruReceive.
Configure the Adapter
Define the command the adapter will execute in the Transport Properties dialog.
- In the send port properties, click the Configure button. The Adapter Transport Properties dialog is displayed.
- In the CommandType property, select the command type you want.
- If you want to execute an SQL command, enter the command in the SQL Command box.
Configure the Connection to YouTube Analytics
Configure credentials and other properties required to connect to YouTube Analytics in the Connection String Options dialog.
- In the send port properties, click Configure. The adapter properties dialog is displayed.
- Click the button in the Connection String property. The Connection String Options dialog is displayed.
- Enter the connection properties. Below is a typical connection string:
ContentOwnerId=MyContentOwnerId;ChannelId=MyChannelId;InitiateOAuth=GETANDREFRESH
YouTube Analytics uses the OAuth authentication standard. You can use the embedded CData OAuth credentials or you can register an application with Google to obtain your own.
In addition to the OAuth values, to access YouTube Analytics data set ChannelId to the Id of a YouTube channel. You can obtain the channel Id in the advanced account settings for your channel. If not specified, the channel of the currently authenticated user will be used.
If you want to generate content owner reports, specify the ContentOwnerId property. This is the Id of the copyright holder for content in YouTube's rights management system. The content owner is the person or organization that claims videos and sets their monetization policy.
- Click Test Connection to verify the values and test connectivity.