Are you setting the alternate_url for sandbox? For Example:
my $client = Google::Ads::AdWords::Client->new({alternate_url => "
https://adwords-sandbox.google.com"});
-Mike
On Tuesday, 9 October 2012 14:07:57 UTC-4, Yeison Rodriguez wrote:
>
> When I try to use the delete_keywords example script on Sandbox, I end up
> with the error in the subject line:
>
> QuotaCheckError.INVALID_TOKEN_HEADER
>
>
> It seems to be an issue with my developer token. I've verified that the
> token itself works. I was able to use it and my current .properties file
> to connect with the sandbox-account-viewer.jnlp. The token does contain a
> hyphen, and perhaps that's causing an issue. I'll have to try and obtain
> another developer token and investigate further. In the meantime, if
> anyone else has encountered this problem, any insight would be very helpful.
>
> [09 October 2012 09:36:30,319 - INFO ] Outgoing Request:
>> <SOAP-ENV:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
>> xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/"
>> ><SOAP-ENV:Header><RequestHeader xmlns="
>> https://adwords.google.com/api/adwords/cm/v201206"><clientCustomerId
>> xmlns="https://adwords.google.com/api/adwords/cm/v201206">45743</clientCustomerId><developerToken
>>
>> xmlns="https://adwords.google.com/api/adwords/cm/v201206">REDACTED</developerToken><userAgent
>>
>> xmlns="https://adwords.google.com/api/adwords/cm/v201206">./
>> delete_keyword.pl (AwApi-Perl/2.7.2, Common-Perl/2.0.0,
>> SOAP-WSDL/2.00.10, libwww-perl/5.833,
>> perl/5.010001)</userAgent><validateOnly xmlns="
>> https://adwords.google.com/api/adwords/cm/v201206">false</validateOnly><partialFailure
>>
>> xmlns="https://adwords.google.com/api/adwords/cm/v201206">false</partialFailure></RequestHeader></SOAP-ENV:Header><SOAP-ENV:Body><mutate
>>
>> xmlns="https://adwords.google.com/api/adwords/cm/v201206
>> "><operations><operator>REMOVE</operator><operand><adGroupId>3062330175</adGroupId><criterion><id>15412086</id></criterion></operand></operations></mutate></SOAP-ENV:Body></SOAP-ENV:Envelope>
>>
>
>
>> [09 October 2012 09:36:31,618 - INFO ] Incoming response:
>> <soap:Envelope
>> xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/"><soap:Header><ResponseHeader
>>
>> xmlns="https://adwords.google.com/api/adwords/cm/v201206"><requestId>0004cba21a3161b80aedb21200007722</requestId><serviceName>AdGroupCriterionService</serviceName><methodName>mutate</methodName><operations>0</operations><responseTime>70</responseTime><units>0</units></ResponseHeader></soap:Header><soap:Body><soap:Fault><faultcode>soap:Server</faultcode><faultstring>[QuotaCheckError.INVALID_TOKEN_HEADER
>>
>> @ ;REDACTED]</faultstring><detail><ApiExceptionFault xmlns="
>> https://adwords.google.com/api/adwords/cm/v201206"><message>[QuotaCheckError.INVALID_TOKEN_HEADER
>>
>> @ ;
>> trigger:'REDACTED']</message><ApplicationException.Type>ApiException</ApplicationException.Type><errors
>>
>> xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
>> xsi:type="QuotaCheckError"><fieldPath></fieldPath><trigger>REDACTED</trigger><errorString>QuotaCheckError.INVALID_TOKEN_HEADER</errorString><ApiError.Type>QuotaCheckError</ApiError.Type><reason>INVALID_TOKEN_HEADER</reason></errors></ApiExceptionFault></detail></soap:Fault></soap:Body></soap:Envelope>
>
>
--
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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 [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/adwords-api?hl=en