// 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.updateAvailability({
// Request body metadata
requestBody: {
// request body parameters
// {
// "availabilities": []
// }
},
});
console.log(res.data);
// Example response
// {
// "availabilities": []
// }
}
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.get({
// Numeric ID of the ad group.
adGroupId: 'placeholder-value',
// Numeric ID of the ad.
adId: 'placeholder-value',
// Numeric ID of the advertiser.
advertiserId: 'placeholder-value',
// Numeric ID of the agency.
agencyId: 'placeholder-value',
// Numeric ID of the campaign.
campaignId: 'placeholder-value',
// Numeric ID of the criterion.
criterionId: 'placeholder-value',
// Last date (inclusive) on which to retrieve conversions. Format is yyyymmdd.
endDate: 'placeholder-value',
// Numeric ID of the engine account.
engineAccountId: 'placeholder-value',
// The number of conversions to return per call.
rowCount: 'placeholder-value',
// First date (inclusive) on which to retrieve conversions. Format is yyyymmdd.
startDate: 'placeholder-value',
// The 0-based starting index for retrieving conversions results.
startRow: 'placeholder-value',
});
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.reports.getFile({
// The index of the report fragment to download.
reportFragment: 'placeholder-value',
// ID of the report.
reportId: 'placeholder-value',
});
console.log(res.data);
}
main().catch(e => {
console.error(e);
throw e;
});