API ERROR

41 views
Skip to first unread message

אביגדור שפיצר

unread,
Aug 28, 2014, 5:28:58 PM8/28/14
to adwor...@googlegroups.com
when running api example i get an error

in the config


  <add key="UserAgent" value="APIPRG"/>
  <add key="DeveloperToken" value="aaaaa"/>

  <add key="ClientCustomerId"     value="123"/>
  <add key='AuthorizationMethod' value='OAuth2' />
  <add key='OAuth2ClientId' value='xxx.apps.googleusercontent.com' />
  <add key='OAuth2ClientSecret' value='xxx' />
  <add key='OAuth2RefreshToken' value='xxx' />

 

i get an error ,,,,

Please Help ....


This code example lists all campaigns. To add a campaign, run AddCampaign.vb.
An exception occurred while running this code example. System.Reflection.TargetI
nvocationException (Exception has been thrown by the target of an invocation.)\n
\n   at System.RuntimeMethodHandle.InvokeMethod(Object target, Object[] argument
s, Signature sig, Boolean constructor)
   at System.Reflection.RuntimeMethodInfo.UnsafeInvokeInternal(Object obj, Objec
t[] parameters, Object[] arguments)
   at System.Reflection.RuntimeMethodInfo.Invoke(Object obj, BindingFlags invoke
Attr, Binder binder, Object[] parameters, CultureInfo culture)
   at System.Reflection.MethodBase.Invoke(Object obj, Object[] parameters)
   at ConsoleApplication7.ConsoleApplication7.Examples.VB.Program.InvokeRun(Obje
ct codeExample, AdWordsUser user) in c:\temp\ConsoleApplication7\ConsoleApplicat
ion7\Program.vb:line 95
   at ConsoleApplication7.ConsoleApplication7.Examples.VB.Program.RunACodeExampl
e(AdWordsUser user, Object codeExample) in c:\temp\ConsoleApplication7\ConsoleAp
plication7\Program.vb:line 131\n\nCaused by\n\nSystem.ApplicationException (Fail
ed to retrieve campaign(s).)\n\n   at ConsoleApplication7.ConsoleApplication7.Ex
amples.VB.v201309.GetCampaigns.Run(AdWordsUser user) in c:\temp\ConsoleApplicati
on7\ConsoleApplication7\v201309\BasicOperations\GetCampaigns.vb:line 117\n\nCaus
ed by\n\nGoogle.Api.Ads.AdWords.Lib.AdWordsApiException (An API exception has oc
curred. See ApiException and InnerException fields for more details.)\n\n   at G
oogle.Api.Ads.Common.Lib.AdsSoapClient.MakeApiCall(String methodName, Object[] p
arameters)
   at Google.Api.Ads.Common.Lib.AdsSoapClient.Invoke(String methodName, Object[]
 parameters)
   at Google.Api.Ads.AdWords.v201309.CampaignService.get(Selector serviceSelecto
r)
   at ConsoleApplication7.ConsoleApplication7.Examples.VB.v201309.GetCampaigns.R
un(AdWordsUser user) in c:\temp\ConsoleApplication7\ConsoleApplication7\v201309\
BasicOperations\GetCampaigns.vb:line 102\n\nCaused by\n\nSystem.Web.Services.Pro
tocols.SoapException ([QuotaCheckError.ACCOUNT_INACTIVE @ ; trigger:'<null>'])\n
\n   at System.Web.Services.Protocols.SoapHttpClientProtocol.ReadResponse(SoapCl
ientMessage message, WebResponse response, Stream responseStream, Boolean asyncC
all)
   at System.Web.Services.Protocols.SoapHttpClientProtocol.Invoke(String methodN
ame, Object[] parameters)
   at Google.Api.Ads.Common.Lib.AdsSoapClient.MakeApiCall(String methodName, Obj
ect[] parameters)\n
Press [Enter] to continue

Josh Radcliff (AdWords API Team)

unread,
Aug 29, 2014, 12:20:23 AM8/29/14
to adwor...@googlegroups.com
Hi,

I see that you are using v201309 of the AdWords API, which is past its sunset date and is therefore no longer supported. Please submit your request using v201402 or v201406 of the API and report back if you still encounter this error.

Thanks,
Josh, AdWords API Team
Reply all
Reply to author
Forward
0 new messages