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!