It look that I need to publish the API and send a video on Youtube.
A video explaining what I do exactly.

Am I right ?

On Monday, 17 January 2022 at 10:10:36 UTC+1 Nicolas Gonzales wrote:

> Hi Team
>
> I am switching to the new Google Ads Api library and get some trouble with 
> the Refresh Token.
>
> I am using this code in php :
>
> try {
>
> $clickConversion = new ClickConversion([
> 'conversion_action' =>
> ResourceNames::forConversionAction($customerId, $conversionActionId),
> 'gclid' => $gclid,
> 'conversion_value' => $conversionValue,
> 'conversion_date_time' => $conversionDateTime,
> 'currency_code' => 'EUR'
> ]);
>
>
> $conversionUploadServiceClient = 
> $googleAdsClient->getConversionUploadServiceClient();
> /** @var UploadClickConversionsResponse $response */
> $response = $conversionUploadServiceClient->uploadClickConversions(
> $customerId,
> [$clickConversion],
> true
> );
>
>
> And using a google_ads_php.ini with the value of the refresh token.
>
> It works during 7 days but after, I get the refresh token denied.
>
> API Error: 
> GuzzleHttp\Exception\ClientException: Client error: `POST 
> https://oauth2.googleapis.com/token` <https://oauth2.googleapis.com/token> 
> resulted in a `400 Bad Request` response:
> {
> "error": "invalid_grant",
> "error_description": "Token has been expired or revoked."
> }
>
> *"Auto-refresh token before it expires"* is also ticked on the Google 
> Developers Console.
>
> So my question is :
>
> How can I get a refresh token without using the Google Developers console ?
> Or how can I get this refresh token automatically refreshed ?
>
> Thanks for your help
>
>

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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/d35b7fed-32f2-4dda-be4c-5a3eacc33c19n%40googlegroups.com.
  • Go... Nicolas Gonzales
    • ... Nicolas Gonzales
      • ... 'Google Ads API Forum Advisor' via Google Ads API and AdWords API Forum

Reply via email to