Hi ,
With Python 3.7+ , googleads=37.0.0, I am unable to delete the GoogleAds
audience by passing ID and getting error:
AttributeError: module 'googleads' has no attribute 'GoogleAdsClient'
Following is the code:
import googleads
CLIENT_ID = '<client_id>'
CLIENT_SECRET = '<client_secret>'
REFRESH_TOKEN = '<refresh_token>'
service = googleads.GoogleAdsClient( client_id=CLIENT_ID,
client_secret=CLIENT_SECRET, refresh_token=REFRESH_TOKEN)
audience_id = 'INSERT_AUDIENCE_ID_HERE'
service.audiences().delete(audience_id=audience_id).execute()
if response.status_code == 200:
print('Audience deleted successfully')
else:
print('Error deleting audience')
Is this not supported ? How can we achieve this v13/12 of GoogleAds.
Please suggest. Thank you!
--
--
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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 [email protected]
To unsubscribe from this group, send email to
[email protected]
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 [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/adwords-api/4809ae41-8c63-426e-b33f-2807b5c01908n%40googlegroups.com.