Description Usage Arguments Value Examples
This function returns a lists of all the available data points for requested data type specified in the read_request. Most elements support the READ function except Companion Position, Competitive Category and Code.
1 2 3 4 5 6 7 8 9 10 11 12 | oas_read(credentials,
request_type=c('Advertiser', 'AdvertiserCategory',
'Affiliate', 'Agency', 'CampaignGroup',
'ConversionProcess', 'Zone', 'CreativeType',
'Event', 'InsertionOrder', 'RichMediaTemplate',
'Product', 'SalesPerson',
'Site', 'SiteGroup', 'Publisher',
'Page', 'Section', 'Transaction',
'Keyname', 'Keyword',
'Campaign', 'CreativeTarget',
'Creative', 'Notification'),
id, campaign_id=NULL)
|
credentials |
a character string as returned by oas_build_credentials |
request_type |
a character string in one of the supported object types for the API database read action |
id |
a character string that uniquely identifies an item to retrieve. For the request of some objects Id serves as the Name (Affiliate, ConversionProcess, Event, Transaction, Keyname) |
campaign_id |
a character string that identifies a campaign when CreativeTarget, Creative or Notification reads are being performed, otherwise this value will be ignored |
A list
of all fields available for the specified request type
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 | ## Not run:
my_credentials <- build_credentials('myaccount',
'myusername',
'mypassword')
site_details <- oas_read(credentials=my_credentials,
request_type='Site',
id='www.mysite.com')
campaign_details <- oas_read(credentials=my_credentials,
request_type='Campaign',
id='one_campaign_id')
creative_details <- oas_read(credentials=my_credentials,
request_type='Creative',
id='one_creative_id',
campaign_id='one_campaign_id')
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.