create audience with python api and get id

338 views
Skip to first unread message

Monty808

unread,
Feb 10, 2021, 3:03:34 AM2/10/21
to AdWords API and Google Ads API Forum
Hello Google
]
Totally no clear with the python api how how to create on how to a create an audience 
for -> 

People who searched for any of these terms on Google == yummy

So How do I create from the api, get the ID, then add to adgroup?  I even created an audience in the UI cant figure out how to even get from the api the audience id I created.

Thanks

Google Ads API Forum Advisor Prod

unread,
Feb 11, 2021, 12:11:14 AM2/11/21
to davidmo...@gmail.com, adwor...@googlegroups.com
Hi,

Thanks for posting your concern.

It appears that you want to create and get custom audience using API. The creation of custom audience is only supported in Google Ads API so let me provide guidance on how to create and get using it.

To get you started, you will need to set up your API environment. In order to do so, you may follow this guide. It includes downloading of Python client library or other client libraries supported by the APIs.

After setting up the API environment, you may then start creating custom audience by following this document.

As for retrieving the information of the created custom audience including its ID, you can use the ad_group_audience_view and include the ad_group_criterion.criterion_id.

Let me know if you have further questions.

Regards,
Google Logo
Ernie John Blanca Tacata
Google Ads API Team
 


ref:_00D1U1174p._5004Q2BfRVl:ref

David Montgomery

unread,
Feb 11, 2021, 8:03:34 AM2/11/21
to Google Ads API Forum Advisor Prod, adwor...@googlegroups.com
Hi

This is a completely unpleasant  api. I go to the URL and wow another error Tracking Number: c4311830744000493.  

status = StatusCode.PERMISSION_DENIED

details = "Google Ads API has not been used in project 814450330638 before or it is disabled. Enable it by visiting https://console.developers.google.com/apis/api/googleads.googleapis.com/overview?project=814450330638 then retry. If you enabled this API recently, wait a few minutes for the action to propagate to our systems and retry."

debug_error_string = "{"created":"@1613048255.663005000","description":"Error received from peer ipv4:142.250.69.202:443","file":"src/core/lib/surface/call.cc","file_line":1068,"grpc_message":"Google Ads API has not been used in project 814450330638 before or it is disabled. Enable it by visiting https://console.developers.google.com/apis/api/googleads.googleapis.com/overview?project=814450330638 then retry. If you enabled this API recently, wait a few minutes for the action to propagate to our systems and retry.","grpc_status":7}"



Really? https://console.developers.google.com/apis/api/googleads.googleapis.com/overview?project=814450330638

I get the below?


There was an error while loading /apis/api/googleads.googleapis.com/overview?project=versatile-art-302204. Please try again.

Tracking Number: c4311830744000493

Reply all
Reply to author
Forward
0 new messages