Connecting to Apple Search Ads via SQL
You can use SQL to connect to Apple Search Ads in the CData Virtuality Studio or the Code Editor in the Web UI.
Pre-requisites
You need the ClientId, ClientSecret, and orgId for gaining access to the API.
How to Connect
Before you start retrieving data, you need to run the connector script for Apple Search Ads in the CData Virtuality Studio or the Web UI and input your credentials in the following line:
CALL SYSADMIN.createConnection (
name => 'apple_search_ads_src'
,jbossCLITemplateName => 'ws'
,connectionOrResourceAdapterProperties => 'EndPoint=https://api.searchads.apple.com/api/v4,ClientId=<ClientId>,ClientSecret=<ClientSecret>'
);;
CALL SYSADMIN.createDataSource (
name => 'apple_search_ads_src'
,translator => 'apple_search_ads'
,modelProperties => 'orgId=<orgId>'
,translatorProperties => ''
);;