Hi Ben,

I'm still a little concerned about my account setup since the documentation 
is dispersed over several different documents that are all written for a 
variety of use cases.  Also the curl response contains the message: "User 
in the cookie is not a valid Ads user."

I will set up the client library in a few hours when my kids are in bed!  
Meanwhile I will send you privately the logs from my curl request; if there 
is an error in my access token retrieval it should be apparent from the 
request log.

Regards,
Martin
On Wednesday, December 1, 2021 at 6:58:52 PM UTC+2 adsapi wrote:

> Thanks Martin,
>
> As far as I can tell your account set up looks OK, but since it lives in 
> Pantheon I can't examine your account directly so I can't be 100% sure.
>
> One benefit of using a client library is it will handle the process of 
> generating and refreshing your access token automatically, which might be 
> very valuable in this case. While I look over your script below, would you 
> mind running a basic test to see if the PHP client library can make a 
> successful request with your existing service account credentials? The 
> documentation for setting up the library is here 
> <https://developers.google.com/google-ads/api/docs/client-libs/php/oauth-service>.
>  
> You should be able to execute the test locally to verify it, so that you 
> don't have to modify your cron job script. Mainly I'm curious if you get 
> the same error, if not, and the request succeeds, then there might be an 
> issue with your logic that retrieves the access token.
>
>
> Thanks,
> Ben, Google Ads API Team
>
> ref:_00D1U1174p._5004Q2R74x8: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/fec77851-265e-400c-998f-8c5660b31685n%40googlegroups.com.
  • Se... Martin Levi
    • ... 'Google Ads API Forum Advisor' via AdWords API and Google Ads API Forum
      • ... Martin Levi
        • ... Martin Levi
          • ... 'Google Ads API Forum Advisor' via AdWords API and Google Ads API Forum
            • ... Martin Levi
              • ... 'Google Ads API Forum Advisor' via AdWords API and Google Ads API Forum
                • ... Martin Levi
                • ... Martin Levi
                • ... Martin Levi
                • ... 'Google Ads API Forum Advisor' via AdWords API and Google Ads API Forum

Reply via email to