Re: Need Help Setting up Sandbox with v201003 - php Libraries
That worked. Thanks! On Jul 26, 10:47 am, AdWords API Advisor wrote: > Hi John, > > I've looked into the issue a bit more, and it looks like the problem > is that you have two email addresses associated with your account. > The client accounts are generated using the primary email on the > account, which in this case ends with "@gmail.com". If you use > client_1+...@gmail.com then the request should work successfully. > > Best, > - Eric > > On Jul 24, 11:31 am, JohnW2G wrote: > > > Here is the debug print out I get when running the AddCampaign.php > > script: > > > SoapFault Object > > ( > > [message:protected] => AuthenticationError.CLIENT_EMAIL_INVALID > > @ ; trigger:'client_1+jwri...@where2getit.com' > > Service[CampaignService.mutate] > > [string:private] => > > [code:protected] => 0 > > [file:protected] => /u/client/gads/src/Google/Api/Ads/Common/Lib/ > > AdsSoapClient.php > > [line:protected] => 179 > > [trace:private] => Array > > ( > > [0] => Array > > ( > > [file] => /u/client/gads/src/Google/Api/Ads/Common/ > > Lib/AdsSoapClient.php > > [line] => 179 > > [function] => __soapCall > > [class] => SoapClient > > [type] => -> > > [args] => Array > > ( > > [0] => mutate > > [1] => Array > > ( > > [0] => CampaignServiceMutate > > Object > > ( > > [operations] => Array > > ( > > [0] => > > CampaignOperation Object > > ( > > > [biddingTransition] => > > [operand] > > => Campaign Object > > ( > > > [id] => > > > [name] => Interplanetary Cruise #1279985222 > > > [status] => PAUSED > > > [servingStatus] => > > > [startDate] => > > > [endDate] => > > > [budget] => Budget Object > > > ( > > > [period] => DAILY > > > [amount] => Money Object > > > ( > > > [microAmount] => 5000 > > > [ComparableValueType] => > > > [_parameterMap:private] => Array > > > ( > > > [ComparableValue.Type] => ComparableValueType > > > > ) > > > > > ) > > > [deliveryMethod] => STANDARD > > ) > > > [biddingStrategy] => ManualCPC Object > > > ( > > > [positionPreference] => > > > [BiddingStrategyType] => > > > [_parameterMap:private] => Array > > > ( > > > [BiddingStrategy.Type] => BiddingStrategyType > > > > ) > > > ) > > > [autoKeywordMatchingStatus] => > > > [campaignStats] => > > > [adServingOptimizationStatus] => > > > [frequencyCap] => > > ) > > > [operator] > > => ADD > > > [OperationType] => > > > [_parameterMap:private] => Array > > ( > > > [Operation.Type] => OperationType > > ) > > > ) > > > ) > > > ) > > > ) > > > [2] => > > [3] => Array > > ( > >
Re: Need Help Setting up Sandbox with v201003 - php Libraries
ARD ) [biddingStrategy] => ManualCPC Object ( [positionPreference] => [BiddingStrategyType] => [_parameterMap:private] => Array ( [BiddingStrategy.Type] => BiddingStrategyType ) ) [autoKeywordMatchingStatus] => [campaignStats] => [adServingOptimizationStatus] => [frequencyCap] => ) [operator] => ADD [OperationType] => [_parameterMap:private] => Array ( [Operation.Type] => OperationType ) ) ) ) ) ) [faultstring] => AuthenticationError.CLIENT_EMAIL_INVALID @ ; trigger:'client_1+jx...@xxx.com' Service[CampaignService.mutate] [faultcode] => soap:Server [detail] => stdClass Object ( [ApiExceptionFault] => stdClass Object ( [message] => AuthenticationError.CLIENT_EMAIL_INVALID @ ; trigger:'client_1+jx...@xxx.com' Service[CampaignService.mutate] [ApplicationException.Type] => ApiException [errors] => SoapVar Object ( [enc_type] => 0 [enc_value] => AuthenticationError Object ( [reason] => CLIENT_EMAIL_INVALID [fieldPath] => [trigger] => client_1+jx...@xxx.com [errorString] => AuthenticationError.CLIENT_EMAIL_INVALID [ApiErrorType] => AuthenticationError [_parameterMap:private] => Array ( [ApiError.Type] => ApiErrorType ) ) [enc_stype] => AuthenticationError [enc_ns] => https://adwords.google.com/api/adwords/cm/v201003 ) ) ) ) On Jul 24, 10:24 am, JohnW2G wrote: > Nope the setting in my auth.ini looks like: > clientId = "client_1+jwri...@where2getit.com" > > On Jul 23, 1:59 pm, AdWords API Advisor > wrote: > > > Hi John, > > > If you look in the trigger field of the error, you'll see that your > > clientEmail header contains some extra information: > > > client_1+jwri...@where2getit.com > m> > > > It looks like the email is being repeated in brackets. Does it look > > this way in the configuration file too? > > > Best, > > - Eric > > > On Jul 22, 10:56 am, John Wright wrote: > > > > Here is the request_info.log information: > > > > [Jul 22 2010 09:50:09.00 - INFO] > > > email=jwri...@where2getit.comeffectiveuser= > > > client_1+jwri...@where2getit.com > > > service=CampaignService > > > method=mutate operators={ADD: 1} responseTime=311 > > > requestId=8515499a097f1b0bd8e8493b1e2d3a3e operations=0 units=0 server= > > > adwords-sandbox.google.com isFault=true > > > faultMessage=AuthenticationError.CLIENT_EMAIL_INVALID @ ; > > > trigger:'client_1+jwri...@where2getit.com > > here2getit.com>' > > > Service[CampaignService.mutate] > > > > Here is the soap_xml.log information: > > > > [Jul 22 2010 09:50:09.00 - INFO] POST > > > /api/adwords/cm/v201003/CampaignService HTTP/1.1^M > > > Host: adwords-sandbox.google.com^M > > > Connection: Keep-Alive^M > > > User-Agent: PHP-SOAP/5.2.11, gzip^M > > > Accept-Encoding: gzip, deflate^M > > > Content-Encoding: gzip^M > > > Content-Type: text/xml; charset=utf-8^M > > > SOAPAction: ""^M > > > Content-Length: 772^M > > > ^M > > > > > > > > xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/"; > > > xmlns:ns1="https://adwords.google.com/api/adwords/cm/v201003"; > > > xmlns:xsi="http://www.w3
Re: Need Help Setting up Sandbox with v201003 - php Libraries
Nope the setting in my auth.ini looks like: clientId = "client_1+jwri...@where2getit.com" On Jul 23, 1:59 pm, AdWords API Advisor wrote: > Hi John, > > If you look in the trigger field of the error, you'll see that your > clientEmail header contains some extra information: > > client_1+jwri...@where2getit.com m> > > It looks like the email is being repeated in brackets. Does it look > this way in the configuration file too? > > Best, > - Eric > > On Jul 22, 10:56 am, John Wright wrote: > > > Here is the request_info.log information: > > > [Jul 22 2010 09:50:09.00 - INFO] > > email=jwri...@where2getit.comeffectiveuser= > > client_1+jwri...@where2getit.com > > service=CampaignService > > method=mutate operators={ADD: 1} responseTime=311 > > requestId=8515499a097f1b0bd8e8493b1e2d3a3e operations=0 units=0 server= > > adwords-sandbox.google.com isFault=true > > faultMessage=AuthenticationError.CLIENT_EMAIL_INVALID @ ; > > trigger:'client_1+jwri...@where2getit.com > here2getit.com>' > > Service[CampaignService.mutate] > > > Here is the soap_xml.log information: > > > [Jul 22 2010 09:50:09.00 - INFO] POST > > /api/adwords/cm/v201003/CampaignService HTTP/1.1^M > > Host: adwords-sandbox.google.com^M > > Connection: Keep-Alive^M > > User-Agent: PHP-SOAP/5.2.11, gzip^M > > Accept-Encoding: gzip, deflate^M > > Content-Encoding: gzip^M > > Content-Type: text/xml; charset=utf-8^M > > SOAPAction: ""^M > > Content-Length: 772^M > > ^M > > > > > xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/"; > > xmlns:ns1="https://adwords.google.com/api/adwords/cm/v201003"; > > xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";> > > > > > > * > > > > client_1+jwri...@where2getit.com > getit.com> > > > > jwri...@where2getit.com++usd > > AwApi-PHP-2.2.0-Where2GetIt > > > > > > > > > > > > ADD > > > > Interplanetary Cruise #1279810209 > > PAUSED > > > > DAILY > > > > 5000 > > > > STANDARD > > > > > xmlns:ns1="https://adwords.google.com/api/adwords/cm/v201003"; > > xsi:type="ns1:ManualCPC"/> > > > > > > > > > > > > > HTTP/1.1 500 Internal Server Error^M > > Content-Type: text/xml; charset=UTF-8^M > > Content-Encoding: gzip^M > > Transfer-Encoding: chunked^M > > Date: Thu, 22 Jul 2010 14:50:09 GMT^M > > Expires: Thu, 22 Jul 2010 14:50:09 GMT^M > > Cache-Control: private, max-age=0^M > > X-Content-Type-Options: nosniff^M > > X-Frame-Options: SAMEORIGIN^M > > X-XSS-Protection: 1; mode=block^M > > Server: GSE^M > > > > > http://schemas.xmlsoap.org/soap/envelope/";> > > > > https://adwords.google.com/api/adwords/cm/v201003 > > "> > > 8515499a097f1b0bd8e8493b1e2d3a3e > > 0 > > 311 > > 0 > > > > > > > > > > soap:Server > > AuthenticationError.CLIENT_EMAIL_INVALID @ ; > > trigger:'client_1+jwri...@where2getit.com > here2getit.com>' > > Service[CampaignService.mutate] > > > > > xmlns="https://adwords.google.com/api/adwords/cm/v201003";> > > AuthenticationError.CLIENT_EMAIL_INVALID @ ; > > trigger:'client_1+jwri...@where2getit.com > here2getit.com>' > > Service[CampaignService.mutate] > > > ApiException > > http://www.w3.org/2001/XMLSchema-instance"; > > xsi:type="AuthenticationError"> > > > > > > client_1+jwri...@where2getit.com > m> > > > > > AuthenticationError.CLIENT_EMAIL_INVALID > > AuthenticationError > > CLIENT_EMAIL_INVALID > > > > > > > > > > > > > > > Here is my auth.ini file configuration: > > > email = "jwri...@where2getit.com" > > password = "jwright6764" > > userAgent = "Where2GetIt" > > applicationToken = "" > > ;developerToken = "mQCnQwKx0N62S_s2MTAdBA" > > developerToken = "jwri...@where2getit.com++usd" &
Re: Need Help Setting up Sandbox with v201003 - php Libraries
I changed auth.ini, uncommenting out the clientID field as shown: auth.ini email = "jx...@.com" password = "" userAgent = "Johns Test" applicationToken = "" developerToken = "jx...@.com++usd" ; Uncomment to make requests against a client account. clientId = "client_1+jx...@.com" I then reran AddCampaign.php and got the following error: AuthenticationError.CLIENT_EMAIL_INVALID On Jul 16, 4:08 pm, AdWords API Advisor wrote: > Hi, > > That error is correct, as campaigns can only be added to client > accounts. What error are you receiving when the clientId is not > commented out? > > Best, > - Eric > > On Jul 15, 3:52 pm, JohnW2G wrote: > > > Hey Eric, > > > Thanks for the reply. > > > I changed auth.ini, commenting out the clientID field as shown: > > auth.ini > > > email = "jx...@.com" > > password = "" > > userAgent = "Johns Test" > > applicationToken = "" > > developerToken = "jx...@.com++usd" > > > ; Uncomment to make requests against a client account. > > ;clientId = "client_1+jx...@.com" > > > I then reran AddCampaign.php and got the following error: > > > OperationAccessDenied.ADD_OPERATION_NOT_PERMITTED > > > On Jul 15, 12:56 pm, AdWords API Advisor > > > wrote: > > > Hi, > > > > Did you run AddCampaign without the clientEmail specified as well? > > > Campaigns can only be added to a client account, as MCC accounts are > > > not allowed to have campaigns of their own. > > > > Best, > > > - Eric Koleda, AdWords API Team > > > > On Jul 14, 11:22 am, JohnW2G wrote: > > > > > I am trying to setup a sandbox using the v201003 PHP libraries and > > > > sample code. > > > > > No matter what I do I keep getting the CLIENT_EMAIL_INVALID error. > > > > Here are my configurations: > > > > > auth.ini > > > > > email = "jx...@.com" > > > > password = "" > > > > userAgent = "Johns Test" > > > > applicationToken = "" > > > > developerToken = "jx...@.com++usd" > > > > > ; Uncomment to make requests against a client account. > > > > clientId = "client_1+jx...@.com" > > > > > --- > > > > > settings.ini > > > > > [SERVER] > > > > ;DEFAULT_VERSION = "v200909" > > > > DEFAULT_VERSION = "v201003" > > > > > ; Change tohttps://adwords-sandbox.google.comtoworkinthe sandbox > > > > ; environment. > > > > ;DEFAULT_SERVER = "https://adwords.google.com"; > > > > DEFAULT_SERVER = "https://adwords-sandbox.google.com"; > > > > > I tried running GetAllCampaigns.php in the examples folder with no > > > > clientID specified in the auth.ini file to initialize the account with > > > > a get statement and did get the expected return back of "No campaigns > > > > were found" but still got the error when trying to run AddCampaign.php > > -- =~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~ Also find us on our blog and discussion group: http://adwordsapi.blogspot.com http://groups.google.com/group/adwords-api =~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~ You received this message because you are subscribed to the Google Groups "AdWords API Forum" group. To post to this group, send email to adwords-api@googlegroups.com To unsubscribe from this group, send email to adwords-api+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/adwords-api?hl=en
Re: Need Help Setting up Sandbox with v201003 - php Libraries
Hey Eric, Thanks for the reply. I changed auth.ini, commenting out the clientID field as shown: auth.ini email = "jx...@.com" password = "" userAgent = "Johns Test" applicationToken = "" developerToken = "jx...@.com++usd" ; Uncomment to make requests against a client account. ;clientId = "client_1+jx...@.com" I then reran AddCampaign.php and got the following error: OperationAccessDenied.ADD_OPERATION_NOT_PERMITTED On Jul 15, 12:56 pm, AdWords API Advisor wrote: > Hi, > > Did you run AddCampaign without the clientEmail specified as well? > Campaigns can only be added to a client account, as MCC accounts are > not allowed to have campaigns of their own. > > Best, > - Eric Koleda, AdWords API Team > > On Jul 14, 11:22 am, JohnW2G wrote: > > > I am trying to setup a sandbox using the v201003 PHP libraries and > > sample code. > > > No matter what I do I keep getting the CLIENT_EMAIL_INVALID error. > > Here are my configurations: > > > auth.ini > > > email = "jx...@.com" > > password = "" > > userAgent = "Johns Test" > > applicationToken = "" > > developerToken = "jx...@.com++usd" > > > ; Uncomment to make requests against a client account. > > clientId = "client_1+jx...@.com" > > > --- > > > settings.ini > > > [SERVER] > > ;DEFAULT_VERSION = "v200909" > > DEFAULT_VERSION = "v201003" > > > ; Change tohttps://adwords-sandbox.google.comtowork in the sandbox > > ; environment. > > ;DEFAULT_SERVER = "https://adwords.google.com"; > > DEFAULT_SERVER = "https://adwords-sandbox.google.com"; > > > I tried running GetAllCampaigns.php in the examples folder with no > > clientID specified in the auth.ini file to initialize the account with > > a get statement and did get the expected return back of "No campaigns > > were found" but still got the error when trying to run AddCampaign.php > > -- =~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~ Also find us on our blog and discussion group: http://adwordsapi.blogspot.com http://groups.google.com/group/adwords-api =~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~ You received this message because you are subscribed to the Google Groups "AdWords API Forum" group. To post to this group, send email to adwords-api@googlegroups.com To unsubscribe from this group, send email to adwords-api+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/adwords-api?hl=en
Need Help Setting up Sandbox with v201003 - php Libraries
I am trying to setup a sandbox using the v201003 PHP libraries and sample code. No matter what I do I keep getting the CLIENT_EMAIL_INVALID error. Here are my configurations: auth.ini email = "jx...@.com" password = "" userAgent = "Johns Test" applicationToken = "" developerToken = "jx...@.com++usd" ; Uncomment to make requests against a client account. clientId = "client_1+jx...@.com" --- settings.ini [SERVER] ;DEFAULT_VERSION = "v200909" DEFAULT_VERSION = "v201003" ; Change to https://adwords-sandbox.google.com to work in the sandbox ; environment. ;DEFAULT_SERVER = "https://adwords.google.com"; DEFAULT_SERVER = "https://adwords-sandbox.google.com"; I tried running GetAllCampaigns.php in the examples folder with no clientID specified in the auth.ini file to initialize the account with a get statement and did get the expected return back of "No campaigns were found" but still got the error when trying to run AddCampaign.php -- =~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~ Also find us on our blog and discussion group: http://adwordsapi.blogspot.com http://groups.google.com/group/adwords-api =~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~ You received this message because you are subscribed to the Google Groups "AdWords API Forum" group. To post to this group, send email to adwords-api@googlegroups.com To unsubscribe from this group, send email to adwords-api+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/adwords-api?hl=en
Re: v200909 for Perl - display_stats.pl Error Response From Sandbox
I see that this problem has been posted before and an Issue ticket was made for it: http://code.google.com/p/google-api-adwords-perl/issues/detail?id=12 But there has been no traction on it for over two months. Is there any ETA for a fix on this? On Jun 2, 9:30 am, JohnW2G wrote: > I have set up the v200909 of the API libraries for Perl and tried to > run the sample display_stats.pl file. I am able to send a request to > the sandbox environment just fine but I am getting back an error > response, here are the xmls: > > Outgoing Request: > http://www.w3.org/2001/XMLSchema"; > xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"; xmlns:SOAP- > ENV="http://schemas.xmlsoap.org/soap/envelope/"; > > > xmlns="https://adwords.google.com/api/adwords/cm/ > v200909"> > REDACTED > xxx > Perl Google::AdWords::Client 1.3.2: > xxx > false > > > > xmlns="https://adwords.google.com/api/adwords/cm/v200909";> > > > > 20090602 > 20100602 > > > > > > > > Incoming Response: > http://schemas.xmlsoap.org/soap/envelope/";> > > > soap:Server > Unmarshalling Error: > cvc-complex-type.2.4.a: Invalid > content was found starting with element 'statsSelector'. One of > '{"https://adwords.google.com/api/adwords/cm/v200909":campaignIds, > "https://adwords.google.com/api/adwords/cm/v200909":adGroupIds, > "https://adwords.google.com/api/adwords/cm/v200909":adIds, "https:// > adwords.google.com/api/adwords/cm/v200909":statsSelector, "https:// > adwords.google.com/api/adwords/cm/v200909":paging}' is expected. faultstring> > > > > > Error deserializing message: Unmarshalling Error: cvc-complex-type. > 2.4.a: Invalid content was found starting with element > 'statsSelector'. One of '{"https://adwords.google.com/api/adwords/cm/ > v200909":campaignIds, "https://adwords.google.com/api/adwords/cm/ > v200909":adGroupIds, "https://adwords.google.com/api/adwords/cm/ > v200909":adIds, "https://adwords.google.com/api/adwords/cm/ > v200909":statsSelector, "https://adwords.google.com/api/adwords/cm/ > v200909":paging}' is expected. > . > Message was: > http://schemas.xmlsoap.org/soap/envelope/";> > > > soap:Server > Unmarshalling Error: > cvc-complex-type.2.4.a: Invalid > content was found starting with element 'statsSelector'. One of > '{"https://adwords.google.com/api/adwords/cm/v200909":campaignIds, > "https://adwords.google.com/api/adwords/cm/v200909":adGroupIds, > "https://adwords.google.com/api/adwords/cm/v200909":adIds, "https:// > adwords.google.com/api/adwords/cm/v200909":statsSelector, "https:// > adwords.google.com/api/adwords/cm/v200909":paging}' is expected. faultstring> > > > -- =~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~ Also find us on our blog and discussion group: http://adwordsapi.blogspot.com http://groups.google.com/group/adwords-api =~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~ You received this message because you are subscribed to the Google Groups "AdWords API Forum" group. To post to this group, send email to adwords-api@googlegroups.com To unsubscribe from this group, send email to adwords-api+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/adwords-api?hl=en
v200909 for Perl - display_stats.pl Error Response From Sandbox
I have set up the v200909 of the API libraries for Perl and tried to run the sample display_stats.pl file. I am able to send a request to the sandbox environment just fine but I am getting back an error response, here are the xmls: Outgoing Request: http://www.w3.org/2001/XMLSchema"; xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"; xmlns:SOAP- ENV="http://schemas.xmlsoap.org/soap/envelope/"; > https://adwords.google.com/api/adwords/cm/ v200909"> REDACTED xxx Perl Google::AdWords::Client 1.3.2: xxx false https://adwords.google.com/api/adwords/cm/v200909";> 20090602 20100602 Incoming Response: http://schemas.xmlsoap.org/soap/envelope/";> soap:Server Unmarshalling Error: cvc-complex-type.2.4.a: Invalid content was found starting with element 'statsSelector'. One of '{"https://adwords.google.com/api/adwords/cm/v200909":campaignIds, "https://adwords.google.com/api/adwords/cm/v200909":adGroupIds, "https://adwords.google.com/api/adwords/cm/v200909":adIds, "https:// adwords.google.com/api/adwords/cm/v200909":statsSelector, "https:// adwords.google.com/api/adwords/cm/v200909":paging}' is expected. Error deserializing message: Unmarshalling Error: cvc-complex-type. 2.4.a: Invalid content was found starting with element 'statsSelector'. One of '{"https://adwords.google.com/api/adwords/cm/ v200909":campaignIds, "https://adwords.google.com/api/adwords/cm/ v200909":adGroupIds, "https://adwords.google.com/api/adwords/cm/ v200909":adIds, "https://adwords.google.com/api/adwords/cm/ v200909":statsSelector, "https://adwords.google.com/api/adwords/cm/ v200909":paging}' is expected. . Message was: http://schemas.xmlsoap.org/soap/envelope/";> soap:Server Unmarshalling Error: cvc-complex-type.2.4.a: Invalid content was found starting with element 'statsSelector'. One of '{"https://adwords.google.com/api/adwords/cm/v200909":campaignIds, "https://adwords.google.com/api/adwords/cm/v200909":adGroupIds, "https://adwords.google.com/api/adwords/cm/v200909":adIds, "https:// adwords.google.com/api/adwords/cm/v200909":statsSelector, "https:// adwords.google.com/api/adwords/cm/v200909":paging}' is expected. -- =~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~ Also find us on our blog and discussion group: http://adwordsapi.blogspot.com http://groups.google.com/group/adwords-api =~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~ You received this message because you are subscribed to the Google Groups "AdWords API Forum" group. To post to this group, send email to adwords-api@googlegroups.com To unsubscribe from this group, send email to adwords-api+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/adwords-api?hl=en
Re: v200909 - Getting a compilation error while attempting to test the API in a Perl environmen
With some help from Perl Monks found the and fixed the issue: Quoted from the Perl Monks ticket... Line 24 of Google/AdWords/Deserializer.pm reads use SOAP::Lite; use base qw(SOAP::Deserializer); The code for the package SOAP::Deserializer is contained in the file SOAP/Lite.pm. In other words, there is normally no SOAP/ Deserializer.pm file — at least not in the current SOAP::Lite release. OTOH, base checks if there exists a package variable $SOAP::Deserializer::VERSION (which doesn't in this case), and if not tries to load SOAP/Deserializer.pm. This is all fine as long as there is in fact no such file, as the error "Can't locate SOAP/ Deserializer.pm at..." would silently be ignored by base. Now, the thing is that you do seem to have such a file (as the error message indicates), and apparently one which doesn't return a true value when requireed, which is an error condition that base does not ignore... Further support for this theory is that if I put an empty Deserializer.pm file in my SOAP-Lite installation, I can reproduce the issue: $ perl -MSOAP::Lite -e'use base qw(SOAP::Deserializer);' SOAP/ Deserializer.pm did not return a true value at (eval 80) line 3. ...propagated at /usr/lib/perl5/5.10.1/base.pm line 93. BEGIN failed--compilation aborted at -e line 1. [download] Anyhow, the short version of all this is that replacing the above line (in Google/AdWords/Deserializer.pm) use base qw(SOAP::Deserializer); with BEGIN { our @ISA = "SOAP::Deserializer"; } should also fix the issue... End Quote I have edited the module and I no longer am getting a compilation error. On Jun 1, 9:07 am, JohnW2G wrote: > I see there was some traction with perl issues in general on: > > http://groups.google.com/group/adwords-api/browse_thread/thread/d7384... > > Though it looks like the thread went cold back in March, nor can I > make a reply on that thread to see what updates, if any, have been > made. > > On Jun 1, 8:44 am, JohnW2G wrote: > > > I am attempting to setup the v2009 Adwords API for perl and I am > > running into a compilation error. > > > I have downloaded and installed the latest library package: > > awapi_perl_lib_1.3.2.tar.gz > > > I have downloaded and installed the latest version of the SOAP WSDL > > module (no on version 861 the last time I checked > > BTW):http://soap-wsdl.svn.sourceforge.net/viewvc/soap-wsdl/SOAP-WSDL/branc... > > > Ran the patch. > > > I created a adwords.properties file in my home directory and edited it > > with my account data (I did not turn on the Sandbox setting). > > > Made a copy of display_stats.pl, when I tried to run the script I got > > the following errors: > > SOAP/Deserializer.pm did not return a true value at (eval 93) line 3. > > ...propagated at /usr/lib/perl5/5.8.8/base.pm line 85. > > BEGIN failed--compilation aborted at /usr/lib/perl5/site_perl/5.8.8/ > > Google/AdWords/Deserializer.pm line 24. > > Compilation failed in require at /usr/lib/perl5/site_perl/5.8.8/ > > Google/ > > AdWords/Client.pm line 26. > > BEGIN failed--compilation aborted at /usr/lib/perl5/site_perl/5.8.8/ > > Google/AdWords/Client.pm line 26. > > Compilation failed in require at display_stats.pl line 24. > > BEGIN failed--compilation aborted at display_stats.pl line 24. > > > Any help? > > -- =~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~ Also find us on our blog and discussion group: http://adwordsapi.blogspot.com http://groups.google.com/group/adwords-api =~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~ You received this message because you are subscribed to the Google Groups "AdWords API Forum" group. To post to this group, send email to adwords-api@googlegroups.com To unsubscribe from this group, send email to adwords-api+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/adwords-api?hl=en
Re: v200909 - Getting a compilation error while attempting to test the API in a Perl environmen
I see there was some traction with perl issues in general on: http://groups.google.com/group/adwords-api/browse_thread/thread/d738463da3b5bdbe?tvc=2&q=perl Though it looks like the thread went cold back in March, nor can I make a reply on that thread to see what updates, if any, have been made. On Jun 1, 8:44 am, JohnW2G wrote: > I am attempting to setup the v2009 Adwords API for perl and I am > running into a compilation error. > > I have downloaded and installed the latest library package: > awapi_perl_lib_1.3.2.tar.gz > > I have downloaded and installed the latest version of the SOAP WSDL > module (no on version 861 the last time I checked > BTW):http://soap-wsdl.svn.sourceforge.net/viewvc/soap-wsdl/SOAP-WSDL/branc... > > Ran the patch. > > I created a adwords.properties file in my home directory and edited it > with my account data (I did not turn on the Sandbox setting). > > Made a copy of display_stats.pl, when I tried to run the script I got > the following errors: > SOAP/Deserializer.pm did not return a true value at (eval 93) line 3. > ...propagated at /usr/lib/perl5/5.8.8/base.pm line 85. > BEGIN failed--compilation aborted at /usr/lib/perl5/site_perl/5.8.8/ > Google/AdWords/Deserializer.pm line 24. > Compilation failed in require at /usr/lib/perl5/site_perl/5.8.8/ > Google/ > AdWords/Client.pm line 26. > BEGIN failed--compilation aborted at /usr/lib/perl5/site_perl/5.8.8/ > Google/AdWords/Client.pm line 26. > Compilation failed in require at display_stats.pl line 24. > BEGIN failed--compilation aborted at display_stats.pl line 24. > > Any help? -- =~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~ Also find us on our blog and discussion group: http://adwordsapi.blogspot.com http://groups.google.com/group/adwords-api =~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~ You received this message because you are subscribed to the Google Groups "AdWords API Forum" group. To post to this group, send email to adwords-api@googlegroups.com To unsubscribe from this group, send email to adwords-api+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/adwords-api?hl=en
v200909 - Getting a compilation error while attempting to test the API in a Perl environmen
I am attempting to setup the v2009 Adwords API for perl and I am running into a compilation error. I have downloaded and installed the latest library package: awapi_perl_lib_1.3.2.tar.gz I have downloaded and installed the latest version of the SOAP WSDL module (no on version 861 the last time I checked BTW): http://soap-wsdl.svn.sourceforge.net/viewvc/soap-wsdl/SOAP-WSDL/branches/Typemap.tar.gz?view=tar&pathrev=861 Ran the patch. I created a adwords.properties file in my home directory and edited it with my account data (I did not turn on the Sandbox setting). Made a copy of display_stats.pl, when I tried to run the script I got the following errors: SOAP/Deserializer.pm did not return a true value at (eval 93) line 3. ...propagated at /usr/lib/perl5/5.8.8/base.pm line 85. BEGIN failed--compilation aborted at /usr/lib/perl5/site_perl/5.8.8/ Google/AdWords/Deserializer.pm line 24. Compilation failed in require at /usr/lib/perl5/site_perl/5.8.8/ Google/ AdWords/Client.pm line 26. BEGIN failed--compilation aborted at /usr/lib/perl5/site_perl/5.8.8/ Google/AdWords/Client.pm line 26. Compilation failed in require at display_stats.pl line 24. BEGIN failed--compilation aborted at display_stats.pl line 24. Any help? -- =~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~ Also find us on our blog and discussion group: http://adwordsapi.blogspot.com http://groups.google.com/group/adwords-api =~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~ You received this message because you are subscribed to the Google Groups "AdWords API Forum" group. To post to this group, send email to adwords-api@googlegroups.com To unsubscribe from this group, send email to adwords-api+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/adwords-api?hl=en
SOAP/Deserializer.pm did not return a true value at (eval 93) line 3.
Getting a compilation error while attempting to test the API in a Perl environment: I have downloaded and installed the latest library package: awapi_perl_lib_1.3.2.tar.gz I have downloaded and installed the latest version of the SOAP WSDL module: http://soap-wsdl.svn.sourceforge.net/viewvc/soap-wsdl/SOAP-WSDL/branches/Typemap.tar.gz?view=tar&pathrev=861 I created a adwords.properties file in my home directory and edited it with my account data (I did not turn on the Sandbox setting). I copied display_stats.pl from http://google-api-adwords-perl.googlecode.com/svn/trunk/example/display_stats.pl I tried running the display_stats.pl and got the following errors: SOAP/Deserializer.pm did not return a true value at (eval 93) line 3. ...propagated at /usr/lib/perl5/5.8.8/base.pm line 85. BEGIN failed--compilation aborted at /usr/lib/perl5/site_perl/5.8.8/ Google/AdWords/Deserializer.pm line 24. Compilation failed in require at /usr/lib/perl5/site_perl/5.8.8/Google/ AdWords/Client.pm line 26. BEGIN failed--compilation aborted at /usr/lib/perl5/site_perl/5.8.8/ Google/AdWords/Client.pm line 26. Compilation failed in require at display_stats.pl line 24. BEGIN failed--compilation aborted at display_stats.pl line 24. Any help? -- =~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~ Also find us on our blog and discussion group: http://adwordsapi.blogspot.com http://groups.google.com/group/adwords-api =~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~ You received this message because you are subscribed to the Google Groups "AdWords API Forum" group. To post to this group, send email to adwords-api@googlegroups.com To unsubscribe from this group, send email to adwords-api+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/adwords-api?hl=en