nodejs-google-adwords
Version:
Google Ads API Client Library for Node.js
40 lines (39 loc) • 1.42 kB
TypeScript
import { SoapService, AdwordsOperartionService } from '../../core';
import { ISelector } from '../../../types/adwords';
import { ILocationCriterion } from './LocationCriterion';
interface ILocationCriterionServiceOpts {
soapService: SoapService;
}
declare class LocationCriterionService extends AdwordsOperartionService {
/**
* https://developers.google.com/adwords/api/docs/appendix/selectorfields#v201809-LocationCriterionService
*
* @private
* @static
* @type {string[]}
* @memberof LocationCriterionService
*/
private static readonly selectorFields;
private soapService;
constructor(options: ILocationCriterionServiceOpts);
/**
* find location criterion by criterion ids
*
* @author dulin
* @param {string[]} criterionIds
* @returns
* @memberof LocationCriterionService
*/
getByIds(criterionIds: string[]): Promise<ILocationCriterion[] | undefined>;
/**
* find location criterion by location name
*
* @author dulin
* @param {string[]} criterionNames
* @returns
* @memberof LocationCriterionService
*/
getByNames(criterionNames: string[]): Promise<ILocationCriterion[] | undefined>;
protected get<ServiceSelector = ISelector, Rval = ILocationCriterion[]>(serviceSelector: ServiceSelector): Promise<Rval | undefined>;
}
export { LocationCriterionService, ILocationCriterion };