Re: GOOGLE_ACCOUNT_COOKIE_INVALID problem

2013-01-22 Thread Minh Le
Will do. Thanks for your advice. > In the meantime, if you could enclose the API request in a try-catch block > and clear the cache on error. See below for example cache clearing: > > Authtoken.Cache.Clear(); > (user.Config as AdwordsAppConfig).Authtoken = null; > // obtain a new service obje

Re: GOOGLE_ACCOUNT_COOKIE_INVALID problem

2013-01-22 Thread Minh Le
Here you are: > >

Re: GOOGLE_ACCOUNT_COOKIE_INVALID problem

2013-01-09 Thread Minh Le
I got that error every 2 weeks. Received an email from API Team in June 2012 that advised me to add one more line into the source code (I'm using .NET client library) Hi Minh, AdWords API .NET library caches authTokens, and reuse them, it doesn't create a new authToken everytime you create a n

Re: AuthenticationError.GOOGLE_ACCOUNT_COOKIE_INVALID

2013-01-09 Thread Minh Le
I got that error every 2 weeks. Received an email from API Team in June 2012 that advised me to add one more line into the source code (I'm using .NET client library) Hi Minh, AdWords API .NET library caches authTokens, and reuse them, it doesn't create a new authToken everytime you create a n

Re: AuthenticationError.GOOGLE_ACCOUNT_COOKIE_INVALID

2013-01-09 Thread Minh Le
I got that error every 2 weeks. Received an email from API Team in June 2012 that advised me to add one more line into the source code (I'm using .NET client library) Hi Minh, AdWords API .NET library caches authTokens, and reuse them, it doesn't create a new authToken everytime you create a n

AuthenticationError.GOOGLE_ACCOUNT_COOKIE_INVALID

2012-10-09 Thread Minh Le
I re-post this question again after months of waiting for a solution: I use a Windows service to hourly update the targets for a list of about 15 accounts consist of hundreds of campaigns. I always get this error after 2 weeks of running the service, which was written by C# and .NET using the .

Re: IsCookieInvalidError and SSL/TLS error reported

2012-07-16 Thread Minh Le
AdWords API Advisor. > > On Tuesday, 24 April 2012 00:36:28 UTC+5:30, Minh Le wrote: >> >> I've got this error in 3 days since April 20: >> >> System.NullReferenceException: Object reference not set to an instance of >> an object. >> at &

IsCookieInvalidError and SSL/TLS error reported

2012-04-23 Thread Minh Le
I've got this error in 3 days since April 20: System.NullReferenceException: Object reference not set to an instance of an object. at Google.Api.Ads.AdWords.Lib.AdWordsSoapClient.IsCookieInvalidError(AdWordsApiException awapiException) at Google.Api.Ads.AdWords.Lib.AdWordsSoapClient.ShouldRe

Re: AuthenticationError.GOOGLE_ACCOUNT_COOKIE_INVALID

2012-03-07 Thread Minh Le
= 3; > > Hope this helps. Let me know if you have more questions. > > Cheers, > Anash P. Oommen, > AdWords API Advisor. > > On Wednesday, 7 March 2012 06:14:04 UTC+5:30, Minh Le wrote: >> >> I got this error even when I'm coding as what the API sampl

AuthenticationError.GOOGLE_ACCOUNT_COOKIE_INVALID

2012-03-06 Thread Minh Le
I got this error even when I'm coding as what the API samples do after 2 weeks of running the .NET web app: Google.Api.Ads.AdWords.Lib. AdWordsApiException: An API exception has occurred. See ApiException and InnerException fields for more details. ---> System.Web.Services.Protocols.SoapExcept

AuthenticationError.GOOGLE_ACCOUNT_COOKIE_INVALID

2012-03-06 Thread Minh Le
I got this error even when I'm coding as what the API samples do after 2 weeks of running the .NET web app: Google.Api.Ads.AdWords.Lib.AdWordsApiException: An API exception has occurred. See ApiException and InnerException fields for more details. ---> System.Web.Services.Protocols.SoapExcepti

Re: How to add GeoLocation to Campaign (version 201109)

2012-01-17 Thread Minh Le
Alex: Please be notified that you have to remove unwanted targets before adding the new ones. You cannot use operator SET to update targets for CampaignCriterionOperation. On Jan 17, 10:01 am, Minh Le wrote: > Don't try to use ProximityTarget when it is not supported in v201109. >

Re: How to add GeoLocation to Campaign (version 201109)

2012-01-17 Thread Minh Le
roDegrees = xxx; newTarget.geoPoint = geoPoint; newTarget.radiusDistanceUnits = ProximityDistanceUnits.KILOMETERS; newTarget.radiusInUnits = xxx; On Jan 13, 7:27 pm, Alex Tran wrote: > Hi Minh Le, > Do you know how to add each of the proximity targets to each of th

Re: How to add GeoLocation to Campaign (version 201109)

2012-01-13 Thread Minh Le
- Create a list of Proximity - Create a list of CampaignCriterion, add each of the proximity targets to each of the CampaignCriterion - Use this function (C#) public static void addCampaignCriteria(AdWordsUser user, long campaignId, CampaignCriterion[] criteria, CampaignCriterionService campaignCr

Re: v201109 "Email cannot be null" issue

2012-01-13 Thread Minh Le
Just need to change how you do the user authentication. - v200909 AuthToken authToken = new AuthToken(email, password); string token = authToken.GetToken(); CampaignTargetService service = new CampaignTargetService(); service.Url = x

Re: SET-Operation not supported

2012-01-09 Thread Minh Le
Anash, I did solve the issue. The main reason was that I did not remove the old criteria before adding the new ones. I've updated the question in a new thread today: http://groups.google.com/group/adwords-api/browse_thread /thread/863f2b9567fb13f7/7cbdf54fafc2a73c#7cbdf54fafc2a73c Please help me

Re: CampaignCriterionOperation Operator.SET

2012-01-09 Thread Minh Le
newTarget.radiusDistanceUnits = ProximityDistanceUnits.KILOMETERS; newTarget.radiusInUnits = radii; } //end while ) On Jan 9, 2:19 am, "Anash P. Oommen" wrote: > Hi Minh Le, > > The new IDs should have pre

Re: CampaignCriterionOperation Operator.SET

2012-01-06 Thread Minh Le
temp.criterion.id, temp.criterion.CriterionType); } } else { Console.WriteLine("No campaign criteria were added."); } } catch (Exception ex) { Logger.L

CampaignCriterionOperation Operator.SET

2012-01-06 Thread Minh Le
Could anyone help me solve this issue in urgent? http://groups.google.com/group/adwords-api/browse_thread/thread/cf278... Now I'm doing this process: - get all the criteria of a campaign - delete those criteria - add new criteria to the campaign The criteria includes Language, Location and Pr

CampaignCriterionOperation Operator.SET

2012-01-06 Thread Minh Le
Could anyone help me solve this issue in urgent? http://groups.google.com/group/adwords-api/browse_thread/thread/cf278... Now I'm doing this process: - get all the criteria of a campaign - delete those criteria - add new criteria to the campaign The criteria includes Language, Location and Pr

SET-Operation not supported Options

2012-01-06 Thread Minh Le
Could anyone help me solve this issue in urgent? http://groups.google.com/group/adwords-api/browse_thread/thread/cf27839990fe67b2 Now I'm doing this process: - get all the criteria of a campaign - delete those criteria - add new criteria to the campaign The criteria includes Language, Locatio

Re: new language criteriaId?

2012-01-05 Thread Minh Le
The language id (1002, for example) is different from the criteria id. You cannot delete any criterion without providing a criterion id. You can follow these steps: - get all criteria of a campaign - look for the criterion that has criterionType is "Language", language id is the id you want to del

Re: Guide on V201109 and clarify Can we use package V201101

2012-01-05 Thread Minh Le
Same as my issues. http://groups.google.com/group/adwords-api/browse_thread/thread/cf27839990fe67b2 On Jan 5, 5:54 am, sudhansu ray wrote: > Dear team. >  we are trying to use adwords java api with new version V201109, > But here we are facing so many issues. > 1)we want to pause all campaigns

Re: Unable to update/remove campaign criteria v201109

2012-01-05 Thread Minh Le
Here are my questions: http://groups.google.com/group/adwords-api/browse_thread/thread/cf27839990fe67b2 On Jan 5, 9:18 am, Minh Le wrote: > How can I remove the criteria when I don't know the criterion Id? I > did post a question so far but I still have not received any answer. &g

Re: Unable to update/remove campaign criteria v201109

2012-01-05 Thread Minh Le
How can I remove the criteria when I don't know the criterion Id? I did post a question so far but I still have not received any answer. On Dec 12 2011, 8:50 am, Kevin Winter wrote: > Hi Neha, >   The problem is the SET operator.  Since these used to be CampaignTargets > in a list, the only way

Re: SET-Operation not supported

2012-01-03 Thread Minh Le
Could s/b help me on this issue? On Dec 30 2011, 11:44 am, Minh Le wrote: > Anash, > > I don't know if I was wrong, but I want to clarify the situation: > > -with API v200909: > >                   LanguageTargetList languageTargetList

Re: SET-Operation not supported

2011-12-30 Thread Minh Le
ation criteria, so I'll have 301 operations? I think that was the reason I got the error EntityCountLimitExceeded.CAMPAIGN_LIMIT but I don't know how to solve the problem. The above code was written based on AddCampaignTargetingCriteria.cs in v201109 package samples. On Dec 30

Re: Location target - find id of cities

2011-12-30 Thread Minh Le
Thanks for recommendation. I'll try it. On Dec 30, 2:46 am, Evgeniy Bogdanov wrote: > You can change your code for cache Location Ids in the database for > already known IDs... > This will be faster and cheaper. > > Regards, > Evgeniy. > > On

Re: SET-Operation not supported

2011-12-30 Thread Minh Le
Hi Anash, Did you mean I have to remove all the old criteria before adding the new one? How to know which one is unwanted? For each campaign, I have over 100 proximity criteria and over 200 location criteria. I run a timing schedule to update the campaign hourly. I did tried to do the removing;

Re: SET-Operation not supported

2011-12-29 Thread Minh Le
I got the same problem with you. As I already knew by doing searching on the internet, CampaignCriterionOperation only supports ADD and REMOVE even though it has SET operator. So that, I'm facing a critical error, EntityCountLimitExceeded.CAMPAIGN_LIMIT, when I added the criteria to CampaignCriter

Re: Location target - find id of cities

2011-12-29 Thread Minh Le
Thanks for your reply. I'm using .NET & C#. I've got the solution from the similar example in the API package. However, it's so painful when I have to look up for over 100 location ids for each campaign! public static void Main(string[] args) { Location loc = new Location(); string st

Location target - find id of cities

2011-12-29 Thread Minh Le
How to find the criteriaId of a city if I know the city name? -- =~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~ Also find us on our blog and discussion group: http://adwordsapi.blogspot.com http://groups.google.com/group/adwords-api =~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~ You received

CampaignCriterionOperation Operator.SET

2011-12-29 Thread Minh Le
I used CampaignCriterionOperation to add criteria to the campaigns. However, when I used Operator.SET, I got error messages like OperatorError.OPERATOR_NOT_SUPPORTED. Then I changed to Operator.ADD, and then I got errors messages like EntityCountLimitExceeded.CAMPAIGN_LIMIT after running the servi

Response is not well-formed XML - Debug mode

2011-12-27 Thread Minh Le
I got this error when running the application in debug mode: System.InvalidOperationException: Response is not well-formed XML. --- > System.X ml.XmlException: Data at the root level is invalid. Line 1, position 1. at System.Xml.XmlTextReaderImpl.Throw(Exception e) at System.Xml.XmlTextReade

Re: Google Adwords API Migration

2011-12-22 Thread Minh Le
I've got the solution. On Dec 21, 4:06 pm, Minh Le wrote: > I am doing migration from Google Adwords API v200909 to v201109. Now I > have some troubles with my code in a .NET project: > > private void StoreCampaignInDB(string campaign_email, string > campaign_password, str

Re: C# API v201109 GetAllAdGroups returns always NULL.

2011-12-21 Thread Minh Le
HI Claudio, Could you send me the source code you used to get CampaignPage (page.entries)? I'm facing the same problem with my project. On Dec 20, 11:13 am, Carballal Claudio wrote: > Thank You!! I was using "clientId" instead  "clientCustomerId". Now it > works perfectly. > > Thanks again to al

Google Adwords API Migration

2011-12-21 Thread Minh Le
I am doing migration from Google Adwords API v200909 to v201109. Now I have some troubles with my code in a .NET project: private void StoreCampaignInDB(string campaign_email, string campaign_password, string clientEmail, int AccountID, StringBuilder sDailyReport) { try