import { AdwordsOperartionService, SoapService } from '../../core'; import { ISelector } from '../../../types/adwords'; import { IAdGroupCriterionPage } from './AdGroupCriterionPage'; import { Criterion } from './enum/Criterion'; import { IAdGroupCriterionOperation } from './AdGroupCriterionOperation'; import { IAdGroupCriterionReturnValue } from './AdGroupCriterionReturnValue'; import { IBiddableAdGroupCriterion, INegativeAdGroupCriterion } from './AdGroupCriterion'; import { IKeyword, IGender, IAgeRange } from './Criterion'; interface IAdGroupCriterionServiceOpts { soapService: SoapService; } declare class AdGroupCriterionService extends AdwordsOperartionService { static setType(operand: IBiddableAdGroupCriterion | INegativeAdGroupCriterion): IBiddableAdGroupCriterion | INegativeAdGroupCriterion; static isBiddableAdGroupCriterion(operand: IBiddableAdGroupCriterion | INegativeAdGroupCriterion): operand is IBiddableAdGroupCriterion; static isNegativeAdGroupCriterion(operand: IBiddableAdGroupCriterion | INegativeAdGroupCriterion): boolean; static isKeyword(criterion: IKeyword | IGender | IAgeRange): criterion is IKeyword; static isGender(criterion: IKeyword | IGender | IAgeRange): criterion is IGender; static isAgeRange(criterion: IKeyword | IGender | IAgeRange): criterion is IAgeRange; private static readonly selectorFields; private soapService; constructor(options: IAdGroupCriterionServiceOpts); getByAdGroupIds(adGroupIds: string[]): Promise; getKeywordCriterionByAdGroupIds(adGroupIds: string[]): Promise; /** * add ad group criterion such as Keyword, Gender. Support partial failure * https://developers.google.com/adwords/api/docs/guides/partial-failure * * @author dulin * @param {(Array)} adGroupCriterions * @returns * @memberof AdGroupCriterionService */ add(adGroupCriterions: Array): Promise; protected get(serviceSelector: ServiceSelector): Promise; protected mutate(operaions: Operation[]): Promise; } export { AdGroupCriterionService, IAdGroupCriterionPage, Criterion, IAdGroupCriterionOperation, IAdGroupCriterionReturnValue, IBiddableAdGroupCriterion, INegativeAdGroupCriterion, };