Is it the "examples/Planning/ForecastReach.php" file?
https://github.com/googleads/google-ads-php/blob/986e0ead76e9d73950f5689474768497a501f592/examples/Planning/ForecastReach.php

When I execute, an error message appears like below:

ApiException was thrown with message '{
    "message": "The caller does not have permission",
    "code": 7,
    "status": "PERMISSION_DENIED",
    "details": [
        {
            "@type": 
"type.googleapis.com\/google.ads.googleads.v11.errors.GoogleAdsFailure",
            "errors": [
                {
                    "errorCode": {
                        "authorizationError": "ACTION_NOT_PERMITTED"
                    },
                    "message": "This request is not authorized to call 
ReachPlanningService. Developer Token not enabled: 8f8WLAItn3W8wWpmys_xxx",
                    "location": []
                }
            ],
            "requestId": "XOuaJSmDRyrmC5qrAyk8uw"
        }
    ]
}'.

It seems that my account doesn't have permission to call 
ReachPlanningService. How can I make the call. Thank you.

On Friday, July 8, 2022 at 1:50:36 PM UTC+7 adsapi wrote:

> Hi Quang,
>
> Thank you for reaching out to us.
>
> Moving forward, you could use the Forecast metrics 
> <https://support.google.com/google-ads/answer/3022575> in the API which 
> is similar to the Keyword Planner in the UI. However, you will only be able 
> to get the reach by location and keyword and not by age or gender. You can 
> find more details here 
> <https://developers.google.com/google-ads/api/docs/keyword-planning/generate-forecast-metrics?hl=en>
>  
> .
>
> Moving forward, if this is currently available in the UI, you may provide 
> our team with the full screenshot of it so we can further validate its 
> availability in the API.
>
> Best regards,
> [image: Google Logo] 
> Heidi 
> Google Ads API Team 
>   
>
> ref:_00D1U1174p._5004Q2cTr9i: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/19a8b498-610a-4d25-a458-c4b4027f9e22n%40googlegroups.com.
  • Ge... Quang Binh Dinh
    • ... Quang Binh Dinh
      • ... 'Google Ads API Forum Advisor' via Google Ads API and AdWords API Forum
        • ... Quang Binh Dinh
          • ... 'Google Ads API Forum Advisor' via Google Ads API and AdWords API Forum
            • ... Quang Binh Dinh
              • ... 'Google Ads API Forum Advisor' via Google Ads API and AdWords API Forum

Reply via email to