Skip to content

Latest commit

 

History

History

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

README.md

DCM/DFA Reporting and Trafficking API .NET Samples

This is a collection of samples written in C# which provide a starting place for your experimentation into the DCM/DFA Reporting and Trafficking API.

Prerequisites

Install Visual Studio 2013+ and Nuget 2.12+

Setup Authentication

This API uses OAuth 2.0. Learn more about Google APIs and OAuth 2.0 here: https://developers.google.com/accounts/docs/OAuth2

Or, if you'd like to dive right in, follow these steps.

  • Visit https://console.developers.google.com to register your application.
  • From the API Manager -> Google APIs screen, activate access to "DCM/DFA Reporting and Trafficking API".
  • Click on "Credentials" in the left navigation menu
  • Click the button labeled "Create credentials" and select "OAuth Client ID"
  • Select "Other" as the "Application type", then "Create"
  • From the Credentials page, click "Download JSON" next to the client ID you just created and save the file as client_secrets.json in the samples project directory

Running the Examples

Once you've checked out the code:

  1. Open the DfaReporting.Samples.csproj file.

  2. Choose a sample and fill in any prerequisite values. Required values can be identified by the placeholder text: "ENTER_..._HERE".

  3. Add the sample name as a command line argument and build/run the project.

  4. Complete the authorization steps on your browser.

  5. Examine the console output, be inspired and start hacking an amazing new app!