import { SoapService, AdwordsOperartionService } from '../../core'; import { ISelector } from './Selector'; import { IAdGroupPage } from './AdGroupPage'; import { IAdGroupOperation } from './AdGroupOperation'; import { IAdGroupReturnValue } from './AdGroupReturnValue'; import { IAdGroup } from './AdGroup'; import { ITargetingSetting, IExplorerAutoOptimizerSetting } from './Setting'; interface IAdGroupServiceOpts { soapService: SoapService; } /** * https://developers.google.com/adwords/api/docs/reference/v201809/AdGroupService * * @author dulin * @class AdGroupService * @extends {AdwordsOperartionService} */ declare class AdGroupService extends AdwordsOperartionService { static isTargetingSetting(setting: ITargetingSetting | IExplorerAutoOptimizerSetting): setting is ITargetingSetting; static isExplorerAutoOptimizerSetting(setting: ITargetingSetting | IExplorerAutoOptimizerSetting): setting is IExplorerAutoOptimizerSetting; /** * https://developers.google.com/adwords/api/docs/appendix/selectorfields?hl=zh-cn#v201809-AdGroupService * * @private * @static * @memberof AdGroupService */ private static readonly selectorFields; private soapService; constructor(options: IAdGroupServiceOpts); getAll(): Promise; /** * get ad groups by campaign ids * * @author dulin * @param {string[]} campaignIds * @returns * @memberof AdGroupService */ getAllByCampaignIds(campaignIds: string[]): Promise; add(adGroup: IAdGroup): Promise; protected get(serviceSelector: ServiceSelector): Promise; protected mutate(operations: Operation[]): Promise; private setType; } export { AdGroupService, IAdGroupServiceOpts, IAdGroupPage, IAdGroupOperation, IAdGroupReturnValue, IAdGroup };