How to use where clause in Knex
Create refunds with Stripe
Load HTML with Cheerio
How to send POST request with Axios
Find intersection of array in Lodash
Powered by Official white Bloop logo with a period

Terms / Privacy / Search / Support

  • const {google} = require('googleapis');
    const doubleclicksearch = google.doubleclicksearch('v2');
    Docs
  • // 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;
    });
    
    Docs
  • // 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;
    });
    
    Docs
  • // 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;
    });
    
    Docs
  • // 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;
    });
    
    Docs
  • Powered by Official black Bloop logo with a period
    download the IDE extension

    View other examples