INVALID_TOKEN_HEADER, Trigger: New developers must use the Google Ads API

1,059 views
Skip to first unread message

ecommerce powerweave

unread,
May 21, 2021, 8:49:24 AM5/21/21
to AdWords API and Google Ads API Forum
Hi Team,

I've tried User authorization and generated the Refresh token. Next, I tried to fetch Campaign for AdWords API using 'OAuth 2.0 Client IDs' credentials and TestAccount details but its failing with the error 'INVALID_TOKEN_HEADER (Error: QuotaCheckError.INVALID_TOKEN_HEADER, FieldPath: Trigger: New developers must use the Google Ads API)

The sequence of steps as follows:
1. Obtained credential details from https://console.cloud.google.com/apis.

2. Used above Client ID & Client secret credentials in 'AdWords.Examples.CSharp.OAuth.csproj'->web.config' .

3.Since there is no developer token available in test accounts hence created the developer token by signing in to the manager account and fetched the Developer and Customer token from the API Center (TOOLS > MORE TOOLS > API Center). Set these details on 'web.config' file as mentioned above in step 2.

4. Created Test Account for customer client and linked that to another account. Then added AD Campaign.
5. Tried to get the campaign using these details and got the error below:
Failed to get campaigns. Exception says "AdWordsApiException: Exception of type 'Google.Api.Ads.AdWords.Lib.AdWordsApiException' was thrown. Customer passed in an invalid token in the header.. (Error: QuotaCheckError.INVALID_TOKEN_HEADER, FieldPath: Trigger: New developers must use the Google Ads API.) "

Please advise on.

ecommerce powerweave

unread,
May 22, 2021, 12:32:16 AM5/22/21
to AdWords API and Google Ads API Forum
Hi Team,
Any update on this.

--
--
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
Also find us on our blog:
https://googleadsdeveloper.blogspot.com/
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
 
You received this message because you are subscribed to the Google
Groups "AdWords API and Google Ads API Forum" group.
To post to this group, send email to adwor...@googlegroups.com
To unsubscribe from this group, send email to
adwords-api...@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 and Google Ads API Forum" group.
To unsubscribe from this group and stop receiving emails from it, send an email to adwords-api...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/adwords-api/8a92f365-7fb2-4266-826f-19eceb17d418n%40googlegroups.com.

Sergey Morozov

unread,
May 22, 2021, 3:12:56 AM5/22/21
to AdWords API and Google Ads API Forum
Hello,

Thanks for reaching out. Please see this blog post regarding the sunset of the AdWords API. If you have obtained your developer token after April 29, you will not be able to use the AdWords API. Instead, please use the new Google Ads API.

Enable  library in your application Google Ads API - https://console.cloud.google.com/apis/api/googleads.googleapis.com/overview

суббота, 22 мая 2021 г. в 07:32:16 UTC+3, powerweav...@gmail.com:

Google Ads API Forum Advisor Prod

unread,
May 24, 2021, 2:23:43 AM5/24/21
to powerweav...@gmail.com, adwor...@googlegroups.com
Hi,

Thank you for reaching out to our API support team.

Can you clarify when the developer token you used for these queries was created? Our team is currently looking into this, but it's possible that, since the AdWords API deprecation notice was announced, limitations have been placed on the usage of the AdWords API for new developer tokens.

Best regards,

Google Logo
Peter Laurence Napa Oliquino
Google Ads API Team
 


ref:_00D1U1174p._5004Q2HCfbw:ref

Google Ads API Forum Advisor Prod

unread,
May 24, 2021, 2:28:47 PM5/24/21
to nigg...@gmail.com, adwor...@googlegroups.com
Hello,

I'll take a look and see if this error message is intended or not. I will provide an update as soon as I hear any updates.

Regards,
Anthony

Google Logo
Anthony
Google Ads API Team
 


ref:_00D1U1174p._5004Q2HCtXm:ref

Google Ads API Forum Advisor Prod

unread,
May 25, 2021, 4:49:29 PM5/25/21
to nigg...@gmail.com, adwor...@googlegroups.com
Greetings!

In April, we announced the sunset of the AdWords API (https://ads-developers.googleblog.com/2021/04/upgrade-to-google-ads-api-from-adwords.html). In that blog post, we say, "Any developers applying for a new developer token after today will only be given access to the Google Ads API. " You can take a look at the Google Ads API here (https://developers.google.com/google-ads/api/docs/start). You can use the same developer token and OAuth credentials.

Cheers,
Nadine Wang, Google Ads API Team

ref:_00D1U1174p._5004Q2HCtXm:ref

Google Ads API Forum Advisor

unread,
Jun 24, 2021, 6:11:54 AM6/24/21
to powerweav...@gmail.com, adwor...@googlegroups.com
Hi,

Our team has now identified the cause of this error. That said, in order to avoid encountering this, you may refer to this guide when using newly created developer tokens.
Reply all
Reply to author
Forward
0 new messages