Change name to audience

25 views
Skip to first unread message

Jonhatan David Fajardo Portillo

unread,
Jan 17, 2022, 9:43:31 AM1/17/22
to Google Ads API and AdWords API Forum
Hi, I tried to change the name to an existing google audience with your credentials and it returned this error code OWNERSHIP_REQUIRED_FOR_SET Only an owner account may edit a user list. 
Next, I tried to make this operation with the refresh_token of the user and it returns this issue
{RefreshError}('unauthorized_client: Unauthorized', {'error': 'unauthorized_client', 'error_description': 'Unauthorized'})

I have a question is possible in google_ads.yaml, it is possible to assign a value in refresh_token that does not correspond to the owner of the app, this refresh_token is obtained through an OAuth with the same app

example, google_ads.yaml
adwords:
  client_id: owner_app
  client_secret: owner_app
  refresh_token: user_token, this is obtained through an oauth with the same app
  developer_token: owner_app

Google Ads API Forum Advisor

unread,
Jan 18, 2022, 2:41:22 AM1/18/22
to adwor...@googlegroups.com
Hi Jonhatan,

Thank you for reaching out.

Regarding the OWNERSHIP_REQUIRED_FOR_SET error you encountered when updating the audience name, could you confirm whether the account specified in your request is indeed the original account where the audience was created? Also, is the said audience a shared audience?

That said, so our team can take a closer look, could you also provide the complete request and response logs, with the request-id, generated when the error occurred? If you haven't yet, logging can be enabled by navigating to the Client libraries > Your client library (ex. Java) > Logging documentation, which you can access from this link.

You may then send the requested information via the Reply privately to author option. If this option is not available, you may send the details directly to our googleadsa...@google.com alias instead.

As for your question regarding the refresh_token, these details along with the other credentials (client ID / client secret) should be generated from the same user.

Best regards,

Google Logo
Peter Laurence Napa Oliquino
Google Ads API Team
 


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