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

2021-06-01 Thread denis kolmer
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 *
which returned *New conversion action added with resource name: 
'customers//conversionActions/'*

Then I ran
*php .\examples\Remarketing\UploadOfflineConversion.php --customerId  
--conversionActionId  --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: , RequestId: "elftztJ9gLLJYppP-fzkyg", IsFault: 0, 
FaultMessage: "None"*
*Partial failures occurred: 'Resource name 
'customers//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

Le mercredi 2 juin 2021 à 05:41:31 UTC+10, adsapiforumadvisor a écrit :

> 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,
>
> Matt
> Google Ads API Team
>
> [image: Google Logo] 
> Matt 
> Google Ads API Team 
>   
>
> ref:_00D1U1174p._5004Q2HCemA:ref
>

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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 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 and Google Ads API Forum" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to adwords-api+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/adwords-api/aea9eb45-ce42-4224-82bf-de85314b7251n%40googlegroups.com.


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

2021-06-01 Thread denis kolmer
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.
Le jeudi 27 mai 2021 à 01:07:20 UTC+10, adsapiforumadvisor a écrit :

> 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
>
> [image: Google Logo] 
> Matt 
> Google Ads API Team 
>   
>
>  
>
> ref:_00D1U1174p._5004Q2HCemA:ref
>

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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 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 and Google Ads API Forum" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to adwords-api+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/adwords-api/598f32df-79cd-48f1-87d7-cc0c0464b977n%40googlegroups.com.


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

2021-05-26 Thread denis kolmer
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?

Le lundi 24 mai 2021 à 13:13:14 UTC+10, adsapiforumadvisor a écrit :

> 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,
>
> [image: Google Logo] 
> Peter Laurence Napa Oliquino 
> Google Ads API Team 
>   
>
> ref:_00D1U1174p._5004Q2HCemA:ref
>

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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 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 and Google Ads API Forum" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to adwords-api+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/adwords-api/b73db807-78ae-4131-a345-e37bb218f6fan%40googlegroups.com.


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

2021-05-21 Thread denis kolmer
Hi,
I just got my google Ads Api application approved, i followed all the steps 
to complete adsapi_php.ini.
I added the following in adseapi_php.ini

   - developerToken = "aaa"
   - clientCustomerId = "bbb"
   - clientId = "ccc"
   - clientSecret = "ddd"
   - refreshToken = "eee"
   
I'm using *https://github.com/googleads/googleads-php-lib* and the 
associated examples 
*https://github.com/googleads/googleads-php-lib/tree/master/examples/AdWord*
s. 

Because I'm beginning, I will use the example file 
*Google\AdsApi\Examples\AdWords\v201809\Remarketing\UploadOfflineConversions.php
 
*to test if it works.

I updated the 4 constant at the top of the file with somes values then run 
the file through the command line.

I got the message *"[QuotaCheckError.INVALID_TOKEN_HEADER @ ; trigger:'New 
developers must use the Google Ads API.']"*

I did 
check 
https://developers.google.com/adwords/api/docs/common-errors#QuotaCheckError.INVALID_TOKEN_HEADER
 
but

   - Ensure that a developer token has been set and matches the value in 
   the AdWords API Center. --> verified 3 times
   - Ensure that the headers of the request are in the namespace 
   https://adwords.google.com/api/adwords/cm/{version}, where {version} is 
   replaced with the version of the API being used. --> the soap envelop 
   contains: https://adwords.google.com/api/adwords/cm/v201809
   
Bottom line, this message is very confusing, because I'm using the Google 
Ads Api, and I have the impression I'm following the required 
implementation.

Any thoughts on what I'm doing wrong? Or where should I look?
Thank you by advance.


The full output of my OfflineConversion request is 

[2021-05-21T10:33:48.820766+00:00] AW_SOAP.WARNING: clientCustomerId=bbb 
operations=1 service=OfflineConversionFeedService method=mutate 
responseTime=125 requestId=0005c2d49850eb440aa78ac610010a74 
server=adwords.google.com isFault=1 
faultMessage=[QuotaCheckError.INVALID_TOKEN_HEADER @ ; trigger:'New 
developers must use the Google Ads API.']
[2021-05-21T10:33:48.820933+00:00] AW_SOAP.NOTICE: POST 
/api/adwords/cm/v201809/OfflineConversionFeedService?wsdl HTTP/1.1
Host: adwords.google.com
Connection: close
User-Agent: PHP-SOAP/7.3.21
Content-Type: text/xml; charset=utf-8
SOAPAction: ""
Content-Length: 950
Authorization: REDACTED


http://schemas.xmlsoap.org/soap/envelope/; 
xmlns:ns1="https://adwords.google.com/api/adwords/cm/v201809;>bbbREDACTEDunknown
 
(AwApi-PHP, googleads-php-lib/52.0.0, 
PHP/7.3.21)falsefalseADDtest_glid_01test-conv-shopify-v320210521
 
00 
America/Los_Angeles1

HTTP/1.1 500 Internal Server Error
Content-Type: text/xml; charset=UTF-8
Date: Fri, 21 May 2021 10:33:47 GMT
Expires: Fri, 21 May 2021 10:33:47 GMT
Cache-Control: private, max-age=0
X-Content-Type-Options: nosniff
X-Frame-Options: SAMEORIGIN
Content-Security-Policy: frame-ancestors 'self'
X-XSS-Protection: 1; mode=block
Server: GSE
Alt-Svc: h3-29=":443"; ma=2592000,h3-T051=":443"; 
ma=2592000,h3-Q050=":443"; ma=2592000,h3-Q046=":443"; 
ma=2592000,h3-Q043=":443"; ma=2592000,quic=":443"; ma=2592000; v="46,43"
Accept-Ranges: none
Vary: Accept-Encoding
Connection: close
Transfer-Encoding: chunked

http://schemas.xmlsoap.org/soap/envelope/;>https://adwords.google.com/api/adwords/cm/v201809;>0005c2d49850eb440aa78ac610010a74OfflineConversionFeedServicemutate1125soap:Client[QuotaCheckError.INVALID_TOKEN_HEADER
 
@ ; trigger:'New developers must use the Google Ads 
API.']https://adwords.google.com/api/adwords/cm/v201809;>[QuotaCheckError.INVALID_TOKEN_HEADER
 
@ ; trigger:'New developers must use the Google Ads 
API.']ApiExceptionhttp://www.w3.org/2001/XMLSchema-instance; 
xsi:type="QuotaCheckError">New developers 
must use the Google Ads 
API.QuotaCheckError.INVALID_TOKEN_HEADERQuotaCheckErrorINVALID_TOKEN_HEADER


Fatal error: Uncaught Google\AdsApi\AdWords\v201809\cm\ApiException: 
[QuotaCheckError.INVALID_TOKEN_HEADER @ ; trigger:'New developers must use 
the Google Ads API.'] in 
C:\wamp64\www\app-fortrabbit\vendor\googleads\googleads-php-lib\src\Google\AdsApi\Common\Util\Reflection.php:43
Stack trace:
#0 
C:\wamp64\www\app-fortrabbit\vendor\googleads\googleads-php-lib\src\Google\AdsApi\Common\Util\Reflection.php(43):
 
ReflectionClass->newInstanceArgs(Array)
#1 
C:\wamp64\www\app-fortrabbit\vendor\googleads\googleads-php-lib\src\Google\AdsApi\Common\AdsSoapClient.php(203):
 
Google\AdsApi\Common\Util\Reflection->createInstance('Google\\AdsApi\\A...', 
Array)
#2 
C:\wamp64\www\app-fortrabbit\vendor\googleads\googleads-php-lib\src\Google\AdsApi\Common\AdsSoapClient.php(165):
 
Google\AdsApi\Common\AdsSoapClient->parseApiExceptionFromSoapFault(Object(SoapFault))
#3 
C:\wamp64\www\app-fortrabbit\vendor\googleads\googleads-php-lib\src\Google\AdsApi\AdWords\v201809\cm\OfflineConversionFeedService.php(92):
 
Google\AdsApi\Common\AdsSoapClient->__soap in 
C:\wamp64\www\app-fortrabbit\vendor\googleads\googleads-php-lib\src\Google\AdsApi\Common\Util\Reflection.php
 
on line 43

-- 
--