// Before running the sample:
// - Enable the API at:
// https://console.developers.google.com/apis/api/doubleclicksearch.googleapis.com
// - Login into gcloud by running:
// `$ gcloud auth application-default login`
// - Install the npm module by running:
// `$ npm install googleapis`
const {google} = require('googleapis');
const doubleclicksearch = google.doubleclicksearch('v2');
async function main() {
const auth = new google.auth.GoogleAuth({
// Scopes can be specified either as an array or as a single, space-delimited string.
scopes: ['https://www.googleapis.com/auth/doubleclicksearch'],
});
// Acquire an auth client, and bind it to all future calls
const authClient = await auth.getClient();
google.options({auth: authClient});
// Do the magic
const res = await doubleclicksearch.reports.request({
// Request body metadata
requestBody: {
// request body parameters
// {
// "columns": [],
// "downloadFormat": "my_downloadFormat",
// "filters": [],
// "includeDeletedEntities": false,
// "includeRemovedEntities": false,
// "maxRowsPerFile": 0,
// "orderBy": [],
// "reportScope": {},
// "reportType": "my_reportType",
// "rowCount": 0,
// "startRow": 0,
// "statisticsCurrency": "my_statisticsCurrency",
// "timeRange": {},
// "verifySingleTimeZone": false
// }
},
});
console.log(res.data);
// Example response
// {
// "files": [],
// "id": "my_id",
// "isReportReady": false,
// "kind": "my_kind",
// "request": {},
// "rowCount": 0,
// "rows": [],
// "statisticsCurrencyCode": "my_statisticsCurrencyCode",
// "statisticsTimeZone": "my_statisticsTimeZone"
// }
}
main().catch(e => {
console.error(e);
throw e;
});
// Before running the sample:
// - Enable the API at:
// https://console.developers.google.com/apis/api/doubleclicksearch.googleapis.com
// - Login into gcloud by running:
// `$ gcloud auth application-default login`
// - Install the npm module by running:
// `$ npm install googleapis`
const {google} = require('googleapis');
const doubleclicksearch = google.doubleclicksearch('v2');
async function main() {
const auth = new google.auth.GoogleAuth({
// Scopes can be specified either as an array or as a single, space-delimited string.
scopes: ['https://www.googleapis.com/auth/doubleclicksearch'],
});
// Acquire an auth client, and bind it to all future calls
const authClient = await auth.getClient();
google.options({auth: authClient});
// Do the magic
const res = await doubleclicksearch.reports.generate({
// Request body metadata
requestBody: {
// request body parameters
// {
// "columns": [],
// "downloadFormat": "my_downloadFormat",
// "filters": [],
// "includeDeletedEntities": false,
// "includeRemovedEntities": false,
// "maxRowsPerFile": 0,
// "orderBy": [],
// "reportScope": {},
// "reportType": "my_reportType",
// "rowCount": 0,
// "startRow": 0,
// "statisticsCurrency": "my_statisticsCurrency",
// "timeRange": {},
// "verifySingleTimeZone": false
// }
},
});
console.log(res.data);
// Example response
// {
// "files": [],
// "id": "my_id",
// "isReportReady": false,
// "kind": "my_kind",
// "request": {},
// "rowCount": 0,
// "rows": [],
// "statisticsCurrencyCode": "my_statisticsCurrencyCode",
// "statisticsTimeZone": "my_statisticsTimeZone"
// }
}
main().catch(e => {
console.error(e);
throw e;
});
// Before running the sample:
// - Enable the API at:
// https://console.developers.google.com/apis/api/doubleclicksearch.googleapis.com
// - Login into gcloud by running:
// `$ gcloud auth application-default login`
// - Install the npm module by running:
// `$ npm install googleapis`
const {google} = require('googleapis');
const doubleclicksearch = google.doubleclicksearch('v2');
async function main() {
const auth = new google.auth.GoogleAuth({
// Scopes can be specified either as an array or as a single, space-delimited string.
scopes: ['https://www.googleapis.com/auth/doubleclicksearch'],
});
// Acquire an auth client, and bind it to all future calls
const authClient = await auth.getClient();
google.options({auth: authClient});
// Do the magic
const res = await doubleclicksearch.conversion.update({
// Request body metadata
requestBody: {
// request body parameters
// {
// "conversion": [],
// "kind": "my_kind"
// }
},
});
console.log(res.data);
// Example response
// {
// "conversion": [],
// "kind": "my_kind"
// }
}
main().catch(e => {
console.error(e);
throw e;
});
// Before running the sample:
// - Enable the API at:
// https://console.developers.google.com/apis/api/doubleclicksearch.googleapis.com
// - Login into gcloud by running:
// `$ gcloud auth application-default login`
// - Install the npm module by running:
// `$ npm install googleapis`
const {google} = require('googleapis');
const doubleclicksearch = google.doubleclicksearch('v2');
async function main() {
const auth = new google.auth.GoogleAuth({
// Scopes can be specified either as an array or as a single, space-delimited string.
scopes: ['https://www.googleapis.com/auth/doubleclicksearch'],
});
// Acquire an auth client, and bind it to all future calls
const authClient = await auth.getClient();
google.options({auth: authClient});
// Do the magic
const res = await doubleclicksearch.conversion.insert({
// Request body metadata
requestBody: {
// request body parameters
// {
// "conversion": [],
// "kind": "my_kind"
// }
},
});
console.log(res.data);
// Example response
// {
// "conversion": [],
// "kind": "my_kind"
// }
}
main().catch(e => {
console.error(e);
throw e;
});
// Before running the sample:
// - Enable the API at:
// https://console.developers.google.com/apis/api/doubleclicksearch.googleapis.com
// - Login into gcloud by running:
// `$ gcloud auth application-default login`
// - Install the npm module by running:
// `$ npm install googleapis`
const {google} = require('googleapis');
const doubleclicksearch = google.doubleclicksearch('v2');
async function main() {
const auth = new google.auth.GoogleAuth({
// Scopes can be specified either as an array or as a single, space-delimited string.
scopes: ['https://www.googleapis.com/auth/doubleclicksearch'],
});
// Acquire an auth client, and bind it to all future calls
const authClient = await auth.getClient();
google.options({auth: authClient});
// Do the magic
const res = await doubleclicksearch.conversion.updateAvailability({
// Request body metadata
requestBody: {
// request body parameters
// {
// "availabilities": []
// }
},
});
console.log(res.data);
// Example response
// {
// "availabilities": []
// }
}
main().catch(e => {
console.error(e);
throw e;
});