REST API endpoint for GenerateKeywordIdeas

543 views
Skip to first unread message

David Pollak

unread,
Oct 25, 2022, 11:39:29 PM10/25/22
to Google Ads API and AdWords API Forum
Hi,

I can't find the REST endpoint for the KeywordPlanIdeaService.GenerateKeywordIdeas.

Can you please help direct me to what the endpoint is?

Thanks!

Google Ads API Forum Advisor

unread,
Oct 26, 2022, 3:33:09 AM10/26/22
to dav...@ultracanadian.com, adwor...@googlegroups.com
Hi David,

This is Carmela from the Google Ads API team. Thank you for reaching out.

With regard to your concern, I understand that you are looking for the REST endpoint for the KeywordPlanIdeaService.GenerateKeywordIdeas. Having said that, please see this REST documentation for generateKeywordIdeas. Let me know if this is what you're looking for.

Regards,
Google Logo
Carmela
Google Ads API Team
 
 

ref:_00D1U1174p._5004Q2foDeT:ref

David Pollak

unread,
Oct 26, 2022, 12:18:37 PM10/26/22
to Google Ads API and AdWords API Forum
Hi,

Thank you for that information. 

I set up a request which is returning an error that my developer token is only authorized for use with test accounts. The customer id I am using is the one from the account I received the API developer token from, which I believe is a test account.

Can you  please help me resolve this?

Thanks!

Error details below:

{
    "error": {
        "code": 403,
        "message": "The caller does not have permission",
        "status": "PERMISSION_DENIED",
        "details": [
            {
                "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": "cSZpS7mP3TRX8BzGms6QNg"
            }
        ]
    }
}





David Pollak

unread,
Oct 26, 2022, 12:45:27 PM10/26/22
to Google Ads API and AdWords API Forum
UPDATE:

I see now that my account is not a test account.

I opened a test account under a different user. However it does not look like there is a way to get developer credentials for a test account.

I tried using Ouath2 desktop flow to generate a refresh token to use with the other account but I am being denied due to that email address not being in my organization.

I added that email address to my organization and I am still getting the same error.


Can you please help me resolve this?

Thanks!

Google Ads API Forum Advisor

unread,
Oct 26, 2022, 12:52:21 PM10/26/22
to dav...@ultracanadian.com, adwor...@googlegroups.com
Hi David,

Thank you for your reply. I work with Carmela and allow me to assist you here.

With regard to your concern, allow me to explain this, upon seeing the provided logs, I can see that you are encountering the DEVELOPER_TOKEN_NOT_APPROVED error as your developer token is with the Test access only, however, you were trying to make API calls to a production account. Please note that non-approved developer tokens can only be used with test accounts. That said, you can apply for Basic Access by following the steps outlined here.

Moving forward, if you want to know the updates / status of your API Basic Access application, I would suggest you reach out to the compliance team, they will review your request and they are the ones who process and approve this kind of request. Let me know if you have further questions.

Best regards,
Google Logo
Jinky
Google Ads API Team
 


ref:_00D1U1174p._5004Q2foDeT:ref
Message has been deleted

Google Ads API Forum Advisor

unread,
Oct 26, 2022, 4:46:37 PM10/26/22
to dav...@ultracanadian.com, adwor...@googlegroups.com
Hi David,

The refresh tokens are created with the client ID and client secret, and not for specific accounts. However, the user email that created the client ID and client secret must be a listed user in the account (test or production) that is being targeted. 

Can you please provide us with steps that you are taking to create the refresh token? Also, can you please tell us at which point the 'Access blocked' screen appears? 

Regards,

Google Logo
Matt
Google Ads API Team
 


ref:_00D1U1174p._5004Q2foDeT:ref
Message has been deleted

Google Ads API Forum Advisor

unread,
Oct 27, 2022, 11:19:27 AM10/27/22
to dav...@ultracanadian.com, adwor...@googlegroups.com
Hi David,

Thank you for your response.

However, I had to delete you recent post as it contained user information as well as details from your Google Cloud Project. When sending over sensitive information, feel free to send those to our (googleadsa...@google.com) alias instead.

Moving forward, in your Google Cloud Project, could you confirm whether your OAuth consent screen > Publishing status is set to Testing? If yes, and under the OAuth user cap section, it states that :
  • While publishing status is set to "Testing", only test users are able to access the app.
That said, in the event that you are under this scenario, you may include other users in the Test users section for them to also be able to access your app. 

Should the issues persist, you may also try creating a completely new set of credentials and refresh token instead, using the new user account. However if you still wish to use the existing credentials, and since the Google Cloud Project configuration are generally already outside of our API support team's expertise, you may reach out as well to the API Console Support team, via this link, for further guidance.

Best regards,

Google Logo
Peter Laurence
Google Ads API Team
 


ref:_00D1U1174p._5004Q2foDeT:ref

David Pollak

unread,
Oct 27, 2022, 4:05:06 PM10/27/22
to Google Ads API and AdWords API Forum

Thank you so much.  I hadn't realized I had to change the Publishing status.

One more question. I am using the C# client library to generate the refresh token. Is there a way I can do that using the REST API?

Google Ads API Forum Advisor

unread,
Oct 27, 2022, 11:02:52 PM10/27/22
to dav...@ultracanadian.com, adwor...@googlegroups.com

Hi David,

Here's the guide on generating a refresh token using REST/cURL. Once you have a refresh token, you may then check this guide for reference on generating new access tokens.

I hope this helps. Let us know if you have any further clarifications.

Regards,

Google Logo
Kevin Gil
Google Ads API Team
 


ref:_00D1U1174p._5004Q2foDeT:ref
Reply all
Reply to author
Forward
0 new messages