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:
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.