Hi,

I do not believe this error message has anything to do with specific 
campaigns. Rather, it's an issue with the access token you're using to make 
the request. Access tokens are only valid for a short amount of time, so if 
you're enumerating enough things there's a chance the one you generated 
when initially instantiating the service expires before you're finished. Is 
this a sporadic error or is it occurring after a certain amount of time?

Regards,
Mike, AdWords API Advisor

On Tuesday, April 15, 2014 9:37:24 AM UTC-4, apiapi wrote:
>
> Downloaded v17.0 of the .NET API library, using the included sample code.
>
> Enumerating all campaigns for an account with 
> AdWordsService.v201402.CampaignService, some of the data throws an 
> Exception "invalid header". I think the levels of indirection within the 
> .NET wrapper and masking the actual problem with particular campaigns - I 
> have over 100 campaigns within a particular account, and they all show in 
> the Adwords GUI, but some of them are making the wrapper throw.
>
> The exact error is
>
>
> Failed to get access token for service account.
> {
>   "error" : "invalid_request"
> }
>  
>
> I am using a SERVICE_ACCOUNT to do the query, which works fine in other 
> API operations, so I think there is something "special" about certain 
> campaigns.
>  
>  
> Please help me understand how to get info from all Campaigns, or figure 
> out how to best trap those with errors.
>
>
> Thanks.
>
>
>  
>  
>
>  
>

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
Also find us on our blog and Google+:
https://googleadsdeveloper.blogspot.com/
https://plus.google.com/+GoogleAdsDevelopers/posts
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~

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
--- 
You received this message because you are subscribed to the Google Groups 
"AdWords API Forum" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to adwords-api+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to