Update:

Now generated refresh token using

but getting the below error, trying OAuth consent screen with test user only

[2023-04-18T08:31:24.602255+02:00] google-ads.WARNING: Request made: Host: "
googleads.googleapis.com", Method:
"/google.ads.googleads.v13.services.GoogleAdsService/SearchStream",
CustomerId: 1012152333, RequestId: "SlpcHJj4FGbR6fDnb_4QTA", IsFault: 1,
FaultMessage: "["The developer token is only approved for use with test
accounts. To access non-test accounts, apply for Basic or Standard access.
"]"
[2023-04-18T08:31:24.603980+02:00] google-ads.NOTICE: Request
-------
Method Name: /google.ads.googleads.v13.services
.GoogleAdsService/SearchStream
Host: googleads.googleapis.com
Headers: {
    "x-goog-api-client": "gl-php\/7.4.29 gccl\/19.0.0 gapic\/19.0.0
gax\/1.19.1 grpc\/1.43.0 rest\/1.19.1 pb\/+n",
    "x-goog-request-params": "customer_id=1012152333",
    "developer-token": "REDACTED"
}
Request:
{"customerId":"1012152333","query":"SELECT campaign.id, campaign.name FROM
campaign ORDER BY campaign.id"}

Response
-------
Headers: {
    "request-id": "SlpcHJj4FGbR6fDnb_4QTA",
    "date": "Tue, 18 Apr 2023 06:31:24 GMT",
    "alt-svc": "h3=\":443\"; ma=2592000,h3-29=\":443\"; ma=2592000"
}

Fault
-------
Status code: 7
Details: The caller does not have permission
Failure: {"errors":[{"errorCode":{"authorizationError":
"DEVELOPER_TOKEN_NOT_APPROVED"},"message":"The developer token is only
approved for use with test accounts. To access non-test accounts, apply for
Basic or Standard access."}],"requestId":"SlpcHJj4FGbR6fDnb_4QTA"}


On Tue, 18 Apr 2023 at 11:17, google-api-tester <
chillartech.prim...@gmail.com> wrote:

> As I mentioned earlier,
>
> - getting hung at
> https://github.com/googleads/google-ads-php/blob/af5bbaf010eca772cebdf0a56581adac8137f1f9/examples/Authentication/GenerateUserCredentials.php#L74
> - No logs generated for  GenerateUserCredentials
> <https://github.com/googleads/google-ads-php/blob/HEAD/examples/Authentication/GenerateUserCredentials.php>
>
> probably issue is with Windows
>
> On Monday, 17 April 2023 at 23:51:11 UTC+5:30 Google Ads API Forum Advisor
> wrote:
>
>> Hi,
>>
>> Thank you for reaching out to Google Ads API Forum.
>>
>> Moving forward with your concern, in order for us to investigate further,
>> can you provide us the complete API logs (*request* and *response* logs
>> with the *request-id*) generated on your end when you encountered the
>> issue? This is so we can also check on our end as well and investigate
>> further.
>>
>> For the PHP client library, logging can be enabled by following the *PHP
>> Logging* guide.You can provide it via the Reply privately to author
>> option. If this option is not available, then send it instead on this email
>> address googleadsa...@google.com <https://groups.google.com/>.
>>
>> Reference links included in this email:
>>
>>    - request:
>>    
>> *https://developers.google.com/google-ads/api/docs/concepts/field-service?hl=en#request*
>>    
>> <https://developers.google.com/google-ads/api/docs/concepts/field-service?hl=en#request>
>>    - response:
>>    
>> *https://developers.google.com/google-ads/api/docs/concepts/field-service?hl=en#response*
>>    
>> <https://developers.google.com/google-ads/api/docs/concepts/field-service?hl=en#response>
>>    - request-id:
>>    
>> *https://developers.google.com/google-ads/api/docs/concepts/call-structure?hl=en#request-id*
>>    
>> <https://developers.google.com/google-ads/api/docs/concepts/call-structure?hl=en#request-id>
>>    - PHP Logging:
>>    
>> *https://developers.google.com/google-ads/api/docs/client-libs/php/logging*
>>    
>> <https://developers.google.com/google-ads/api/docs/client-libs/php/logging>
>>
>> Regards,
>> [image: Google Logo] Google Ads API Team
>>
>> ref:_00D1U1174p._5004Q2kWN9e: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
> "Google Ads API and AdWords 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/7dafb25b-d181-4175-9d8b-5b4fce97be46n%40googlegroups.com
> <https://groups.google.com/d/msgid/adwords-api/7dafb25b-d181-4175-9d8b-5b4fce97be46n%40googlegroups.com?utm_medium=email&utm_source=footer>
> .
>

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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 
"Google Ads API and AdWords 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/CAGy%2BXrCBQC90YYb9ZNoBOSvhT%2BpQ202OaefWVbkwfoSSx2mvjA%40mail.gmail.com.

Reply via email to