事实证明,要使其正常工作,您需要两个魔术数字。登录帐户时,在网址中,您会看到__u =
之后,您可以在所有脚本中包含该功能,并可以深层链接到您的心脏内容。它不是世界上最漂亮的东西,但是它是独立的,因此应该很容易复制到脚本的底部。
谢谢,
拉斯
// Link to the Keyword Tab of the AdGroup Logger.log(getUrl(someAdGroupEntity,'Keywords')); // Link to the Ads Tab of the AdGroup Logger.log(getUrl(someAdGroupEntity,'Ads')); // Link to Location Settings Tab of the Campaign Logger.log(getUrl(comeCampaignEntity,'Settings:Locations'));
/*********************************** * Build Deep Link Urls for Entities * Version 1.0 * Created By: 拉斯 Savage * FreeAdWordsScripts.com ***********************************/ function getUrl(entity,tab) { var 顾客ID = '__c from the url'; var EffectiveUserId = '__u from the url'; var decodedTab = getTab(tab); var base = '//adwords.google.com/cm/CampaignMgmt?'; var url = base+'__c='+customerId+'&__u='+effectiveUserId+'#'; if(typeof 实体['getBudget'] !== 'undefined') { //A Campaign return url+'c.'+entity.getId()+'.'+decodedTab+'&app=cm'; } if(typeof 实体['createKeyword'] !== 'undefined') { //An AdGroup return url+'a.'+entity.getId()+'_'+entity.getCampaign().getId()+'.'+decodedTab+'&app=cm'; } if(typeof 实体['getMatchType'] !== 'undefined') { //A Keyword return url+'a.'+entity.getAdGroup().getId()+'_'+entity.getCampaign().getId()+'.key&app=cm'; } if(typeof 实体['getHeadline'] !== 'undefined') { //An Ad return url+'a.'+entity.getAdGroup().getId()+'_'+entity.getCampaign().getId()+'.create&app=cm'; } return url+'r.ONLINE.di&app=cm'; function getTab(tab) { var mapping = { 'Ad groups':'ag','Settings:All settings':'st_sum', 'Settings:Locations':'st_loc','Settings:Ad schedule':'st_as', 'Settings:Devices':'st_p','Ads':'create', 'Keywords':'key','Audiences':'au','Ad extensions':'ae', 'Auto targets':'at','Dimensions' : 'di' }; if(mapping[tab]) { return mapping[tab]; } return 'key'; //default to 关键词 tab } }
你应该考虑 这个 而您要将此代码应用于现代现实。
回复删除除了这篇文章实际上是一篇不错的文章外,我已经阅读了许多有关博客爱好者的内容,
回复删除保持。
VCUT专业版