Hi Jan, It looks like your useragent, developerToken, and applicationToken headers aren't being set correctly. Can you verify that those variable have values?
Best, - Eric Koleda, AdWords API Team On Mar 16, 9:26 am, Jan Kapusta <jan.kapu...@gmail.com> wrote: > Hi, > > I try to use AdWords api with perl. I started with AdGroupAdService. > > After call method with selector and headers, i get error message > "QuotaCheckError.INVALID_TOKEN_HEADER @" > > I am using Google::AdWords::AuthToken library. > > So code look like (logic has beeen copied from adwords-api-perl- > samples from google code): > > my $namespace = 'https://adwords.google.com/api/adwords/cm/v200909'; > my $sub_headers = SOAP::Header->value( > SOAP::Header->name('authToken' => > Google::AdWords::AuthToken::get_token({ > email => 'f...@flym.sk', > password => "password" > })), > SOAP::Header->name('clientEmail' =>'f...@flym.sk'), > SOAP::Header->name('useragent' => $Gua), > SOAP::Header->name('developerToken' => $DevTok), > SOAP::Header->name('applicationToken' => $AppTok)); > my $headers = SOAP::Header->name('RequestHeader' => \$sub_headers)->attr({ > > 'xmlns' => $namespace}); > > my $proxy_url = $namespace . '/AdGroupAdService'; > my $ad_group_ad_service = SOAP::Lite->service($proxy_url . '? > wsdl')->autotype(0) > ->readable(1)->proxy($proxy_url); > > # Get all ads. > my $ad_group_id = '23'; > my $soap_action = SOAP::Data->name('get')->attr({'xmlns' => > $namespace}); > my $selector = SOAP::Data->name('selector' => { > 'adGroupAdIdFilters' => [{ > 'adGroupId' => { > 'id' => $ad_group_id > } > }] > }); > my $response = $ad_group_ad_service->call($soap_action => > $selector, $headers); > my $ads = $response->result()->{'entries'}; > > I tried to print out token, and there is very long string - look fine. > Can you help me?, .. i don't know what i can do with this problem. -- =~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~ Have you migrated to v200909 yet? The v13 sunset is on April 22, 2010. 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