RE: [QuotaCheckError.INVALID_TOKEN_HEADER @ ; trigger:'New developers must use the Google Ads API.']

203 views
Skip to first unread message
Message has been deleted

Google Ads API Forum Advisor Prod

unread,
May 23, 2021, 11:13:14 PM5/23/21
to dene...@gmail.com, adwor...@googlegroups.com
Hi Denis,

Thank you for reaching out to our API support team.

However, I had to delete your initial post as it contained the details of your logs. For further discussion on your logs, you may send the details using the Reply privately to author option, or email us directly via our googleadsa...@google.com alias.

Moving forward, can you clarify when the developer token you used for these queries was created? Our team is looking into this issue, 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._5004Q2HCemA:ref

denis kolmer

unread,
May 26, 2021, 2:24:19 AM5/26/21
to AdWords API and Google Ads API Forum
Hi,
To clarify, I received the token, and tried to push an offline conversion. I didn't do anything else.
So I guess I should wait for your feedback about this?

Google Ads API Forum Advisor Prod

unread,
May 26, 2021, 11:07:20 AM5/26/21
to dene...@gmail.com, adwor...@googlegroups.com
Hello,

My name is Matt and I work alongside Peter. Can you please provide us with the date that your developer token was created?

Thanks,
Matt
Google Ads API Team

Google Logo
Matt
Google Ads API Team
 


 

ref:_00D1U1174p._5004Q2HCemA:ref

denis kolmer

unread,
Jun 1, 2021, 2:23:56 AM6/1/21
to AdWords API and Google Ads API Forum
Hi
Since you are implying that the issue come from the Authentication, I created a new token just now, and in the authentication process I chose to access both API, to test something new. (with option = 2)
-> same issue 1st of June at 16:10 Sydney Time.
-> time: [2021-06-01T06:10:41.671123+00:00]
-> requestId = 0005c3ae337bd9a60a62ce4f33063b62 
-> POST  /api/adwords/cm/v201809/OfflineConversionFeedService?wsld

I really don't know what to do to make it work?
I'm using the PHP version of the examples, and run the PHP code via command line.

Since I"m supposed to use Ads API only, I created a new token at 16:16 same day (with option = 0)
-> same issue
-> time : [2021-06-01T06:18:42.472158+00:00]
-> requestId = 0005c3ae5024e95b0a625b05910664f2 

Let me know what else I should test or do to progress with this matter.

Thank you.

Google Ads API Forum Advisor Prod

unread,
Jun 1, 2021, 3:41:31 PM6/1/21
to dene...@gmail.com, adwor...@googlegroups.com
Hi Denis,

The AdWords API is no longer available for new users. Please use the new Google Ads API.

Can you please confirm if you have had any specific issues with using the Ads API with your developer token? If you're having trouble getting started, can you let us know what stage you are currently at?

Regards,

denis kolmer

unread,
Jun 2, 2021, 1:44:28 AM6/2/21
to AdWords API and Google Ads API Forum
Thank you.

So I was using the wrong library, that's why It wasn't working.

I'm now using the code you suggested, and i successfully ran the example to get the campaigns from https://github.com/googleads/google-ads-php.

Unfortunately when I run an UploadOfflineConversation, i can't pass the following partial error.

Intially, I ran php .\examples\Remarketing\AddConversionAction.php --customerId XXXX
which returned New conversion action added with resource name: 'customers/XXXX/conversionActions/AAAA'

Then I ran
php .\examples\Remarketing\UploadOfflineConversion.php --customerId XXXX --conversionActionId AAAA --gclid gclid123 --conversionDateTime '2021-01-01 12:32:45-08:00' --conversionValue 1.0 --conversionCustomVariableId customVarId1 --conversionCustomVariableValue customVarValue1
which returns  
[2021-06-02T05:27:10.506647+00:00] google-ads.INFO: Request made: Host: "googleads.googleapis.com", Method: "/google.ads.googleads.v7.services.ConversionUploadService/UploadClickConversions", CustomerId: XXXX, RequestId: "elftztJ9gLLJYppP-fzkyg", IsFault: 0, FaultMessage: "None"
Partial failures occurred: 'Resource name 'customers/XXXX/conversionCustomVariables/customVarId1' is malformed: expected 'customers/{customer_id}/conversionCustomVariables/{ConversionCustomVariable.conversion_custom_variable_id}'., at conversions[0].custom_variables[0].conversion_custom_variable'.

I don't really want to use "conversionCustomVariableId" or "conversionCustomVariableValue"  but they are required parameters, so I'm lost.
I looked in Google Ads interface without finding any clue.

I know this issue is not related to the title anymore, but since I'm still not able to complete my OfflineConversion, I thought I will add in this topic.
Thank you by advance.

Cheers
Denis

Google Ads API Forum Advisor Prod

unread,
Jun 2, 2021, 12:35:55 PM6/2/21
to dene...@gmail.com, adwor...@googlegroups.com
Hi Denis,

It looks like you are using the upload offline conversions sample. The sample specifies that custom variable constants are optional:

    // Optional: Specify the conversion custom variable ID and value you want to
    // associate with the click conversion upload.
    private const CONVERSION_CUSTOM_VARIABLE_ID = null;
    private const CONVERSION_CUSTOM_VARIABLE_VALUE = null;

You should be able to just leave these as null
Reply all
Reply to author
Forward
0 new messages