public void GetTargetIdsByLocationNames() { AdwordsUserHelper adwordsUserHelper = new AdwordsUserHelper(); AdWordsUser adwordsUser = adwordsUserHelper.SetupAdwordsUser(); LocationNameHelper client = new LocationNameHelper(adwordsUser); List <KeyValuePair <string, string> > list = new List <KeyValuePair <string, string> >(); list.Add(new KeyValuePair <string, string>("DALLAS", "TEXAS")); var pairs = client.GetTargetIdsByLocationNames(list); Assert.That(pairs, Is.Not.Null); }
public void GetLocationNamesByTargetIds() { AdwordsUserHelper adwordsUserHelper = new AdwordsUserHelper(); AdWordsUser adwordsUser = adwordsUserHelper.SetupAdwordsUser(); LocationNameHelper client = new LocationNameHelper(adwordsUser); List <string> idList = new List <string>(); idList.Add("21137"); var pairs = client.GetLocationNamesByTargetIds(idList); Assert.That(pairs, Is.Not.Null); }