my $address = $service->getBillingAddress('', @headers);
which results in XML looking like:
... <SOAP-ENV:Body><getBillingAddress
xmlns=""><parameters/></getBillingAddress></SOAP-ENV:Body> ...
But the response is an error: 'operation description is missing
parameter description'
Why is it failing?
<parameters>1</parameters>
$svc = SOAP::Lite->service( "$url?wsdl" )
$svc->proxy($url);
my @params = ();
my $call = $svc->call( getBillingAddress => @params, @headers );
@result = ($call->result, $call->paramsout);
here is the code:
my $service = SOAP::Lite->service($url);
$service->proxy($url);
# Disable autotyping.
$service->autotype(0);
# Register a fault handler.
$service->on_fault(\&faulthandler);
my @headers =
(SOAP::Header->name("email")->value($email)->uri($namespace)->prefix("impl"),
SOAP::Header->name("password")->value($password)->uri($namespace)->prefix("impl"),
SOAP::Header->name("useragent")->value($useragent)->uri($namespace)->prefix("impl"),
SOAP::Header->name("token")->value($token)->uri($namespace)->prefix("impl"));
# Call the service method.
my $param=0;
my $call = $service->call( getAccountCurrency => $param, @headers );
@result = ($call->result, $call->paramsout);
could you see something wrong?
http://groups-beta.google.com/group/adwords-api/browse_frm/thread/c277302ff1555b63/23e960ccf8b9845d
Unfortunately the problem I have now (impossible to use functions that
do not use parameters) seems to have a different origin....
in any case many thanks!
$r->attr( {'xsi:type' => 'impl:KeywordReportJob',
'xmlns:impl' => $namespace } );
with this:
$r->attr( {'xsi:type' => 'api:KeywordReportJob',
'xmlns:api' => $namespace } );
the line causing the error is (as always):
my $call = $service->call( getAccountCurrency => $param, @headers );
It's interesting to know that the same code with the same version of
SOAP::Lite gives different results for different users....
my @param = ();
my $call = $service->call( getAccountCurrency => @param, @headers );
I have uploaded my working sample at:
Now, thanks to you I can associate a currency (and other infos) to an
account, but (maybe you know) when I run a CustomReportJob with
'crossClient' => 'true' (I use an MCC login so I got a report covering
different accounts), it seems that I'm not able to distinguish between
different accounts...in fact if I include the AccountName in the list
of customOptions in the report output I always have: account="Account"
(while in standard reports, for ex. UrlReportJob, there is a different
value of the variable acctname for each account)...
Do you have any idea about how to identify different account in a
CustomReportJob...or maybe the fact that the name of the variable is
different (account instead of acctname) indicates jusy that that kind
of infos is not available in a CustomReport?
sorry to profit again by you...I'm trying to implement a sort of
automatic bidding procedure and it's so hard to get infos using this
forum...