DV360 Exchange Reporting API onboarding and OAuth setup
Stay organized with collections
Save and categorize content based on your preferences.
The DV360 Exchange Reporting API is exposed as an allowlist based Google Cloud
API which uses OAuth. The allowlist process is handled by the DV360 Exchange
Reporting API team.
Procedure
Here are the DV360 Exchange Reporting API onboarding steps:
Note that this account is to be used to manage access tokens for your
production client, so don't use your personal Gmail account.
Contact Google DV360 with the account information to have it added to the
allowlist.
After you've been notified that you're on the allowlist, request an OAuth
verification review
to get your app access to the doubleclickbidmanager scope.
Navigate to API & Services > Library > Private. You should see a DV360
Exchange Reporting API listed as one of the API available to you. Enable the
DV360 Exchange Reporting API.
A service account allows your code to send application credentials directly to
the API. A service account, like a user account, is represented by an email
address. Unlike a user account, however, a service account belongs only to an
application, and can only be used to access the API for which it was created.
Here are the steps to create service account credentials using the Google Cloud
console:
Select New service account from the Service account drop-down.
Enter a Name for this service account. This name is used as the default
name for your Service account ID, to the left of the @ in the
generated service account ID address.
Under Key type, we recommend that you leave this value as JSON. Click
Create to generate a JSON key as a .json text file. When prompted,
download the file to your computer and a Service account created dialog
is displayed.
Store your JSON file securely, as it contains your private key, and this
file is the only copy of that key. The credentials in this file are needed
when your code make calls to the API.
Contact DV360 with the service account information you created,
specifically, the email address of the service account. This is part of the
allowlist process for API access.
Access token
After your service account is authorized to make calls to the API, you can
proceed with the examples in the API guides. To get an access token manually,
you can use a tool such as oauth2l; or, use one
of our client
libraries to
authenticate programmatically.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2024-09-18 UTC."],[[["\u003cp\u003eThe DV360 Exchange Reporting API requires allowlisting and OAuth verification for access.\u003c/p\u003e\n"],["\u003cp\u003eYou must create a Google Cloud service account and share its email with DV360 for allowlisting.\u003c/p\u003e\n"],["\u003cp\u003eYour application must undergo an OAuth verification review and be granted access to the \u003ccode\u003edoubleclickbidmanager\u003c/code\u003e scope.\u003c/p\u003e\n"],["\u003cp\u003eAfter authorization, use your service account credentials to generate an access token for API calls.\u003c/p\u003e\n"]]],["To access the DV360 Exchange Reporting API, first sign up for a Google Cloud account. Then, contact DV360 to be added to the API allowlist. Request an OAuth verification review for `doubleclickbidmanager` scope. Next, enable the API in the Google Cloud console and create a service account key (JSON). Store this key securely and share the service account email with DV360. Finally, obtain an access token to make API calls. Remember that OAuth scope must be `doubleclickbidmanager`.\n"],null,["The DV360 Exchange Reporting API is exposed as an allowlist based Google Cloud\nAPI which uses OAuth. The allowlist process is handled by the DV360 Exchange\nReporting API team.\n| **Key Point:** Before your app can access the DV360 Exchange Reporting API, it must first pass the [OAuth verification\n| review](//support.google.com/cloud/answer/7454865#verification). If you see **unverified app** on the screen when testing your app, you must submit a verification request to remove it. Learn more about [unverified\n| apps](//support.google.com/cloud/answer/7454865) or get answers to [frequently\n| asked questions about app\n| verification](//support.google.com/cloud/answer/9110914).\n\nProcedure\n\nHere are the DV360 Exchange Reporting API onboarding steps:\n\n1. Sign up a Google Account on the [Google Cloud\n console](//console.cloud.google.com).\n\n Note that this account is to be used to manage access tokens for your\n production client, so don't use your personal Gmail account.\n2. Contact Google DV360 with the account information to have it added to the\n allowlist.\n\n3. After you've been notified that you're on the allowlist, request an [OAuth\n verification review](//support.google.com/cloud/answer/7454865#verification)\n to get your app access to the `doubleclickbidmanager` scope.\n\n4. Sign in on the [Google Cloud console](//console.cloud.google.com).\n\n Navigate to **API \\& Services \\\u003e Library \\\u003e Private**. You should see a DV360\n Exchange Reporting API listed as one of the API available to you. Enable the\n DV360 Exchange Reporting API.\n5. Navigate to **Credentials \\\u003e Create a Credential \\\u003e Service Account Key** .\n Follow the [instructions to create a service\n account](/identity/protocols/OAuth2ServiceAccount).\n\nService account\n\nA service account allows your code to send application credentials directly to\nthe API. A service account, like a user account, is represented by an email\naddress. Unlike a user account, however, a service account belongs only to an\napplication, and can only be used to access the API for which it was created.\n\nHere are the steps to create service account credentials using the Google Cloud\nconsole:\n\n1. From the [API Manager \\\u003e\n Credentials](//console.cloud.google.com/apis/credentials) page, select\n **Create credentials→Service account key**.\n\n2. Select **New service account** from the **Service account** drop-down.\n\n Enter a **Name** for this service account. This name is used as the default\n name for your **Service account ID** , to the left of the `@` in the\n generated service account ID address.\n\n Under **Key type** , we recommend that you leave this value as `JSON`. Click\n **Create** to generate a JSON key as a `.json` text file. When prompted,\n download the file to your computer and a **Service account created** dialog\n is displayed.\n\n Here is a sample JSON key: \n\n {\n \"type\": \"service_account\",\n \"project_id\": \"project-id\",\n \"private_key_id\": \"some_number\",\n \"private_key\": \"-----BEGIN PRIVATE KEY-----\\n....\n =\\n-----END PRIVATE KEY-----\\n\",\n \"client_email\": \"\u003capi-name\u003eapi@project-id.iam.gserviceaccount.com\",\n \"client_id\": \"...\",\n \"auth_uri\": \"https://accounts.google.com/o/oauth2/auth\",\n \"token_uri\": \"https://accounts.google.com/o/oauth2/token\",\n \"auth_provider_x509_cert_url\": \"https://www.googleapis.com/oauth2/v1/certs\",\n \"client_x509_cert_url\": \"https://www.googleapis.com/...\u003capi-name\u003eapi%40project-id.iam.gserviceaccount.com\"\n }\n\n3. Store your JSON file securely, as it contains your private key, and this\n file is the only copy of that key. The credentials in this file are needed\n when your code make calls to the API.\n\n4. Contact DV360 with the *service account* information you created,\n specifically, the email address of the service account. This is part of the\n allowlist process for API access.\n\nAccess token\n\nAfter your service account is authorized to make calls to the API, you can\nproceed with the examples in the API guides. To get an access token manually,\nyou can use a tool such as [oauth2l](//github.com/google/oauth2l); or, use one\nof our [client\nlibraries](//cloud.google.com/docs/authentication/client-libraries) to\nauthenticate programmatically.\n| **Important:** In your API calls, the OAuth scope needs to be `doubleclickbidmanager`."]]