Hi!
My goal is to pull a simple video performance report as per the following:
#!/usr/bin/python3
import settings
from googleads import adwords
from googleads import oauth2
oauth2_client=oauth2.GoogleServiceAccountClient(oauth2.GetAPIScope("adwords"),
client_email=None,
key_file="privkey.json")
adwords_downloader=adwords.AdWordsClient(settings.DEVELOPER_TOKEN,
oauth2_client).GetReportDownloader()
adwords_downloader.DownloadReportAsStringWithAwql("SELECT CustomerDescriptiveName,ExternalCustomerId,CampaignName,CampaignId,AdGroupName,AdGroupId,VideoTitle,VideoId,Im
pressions,VideoViews,Clicks,Cost,Conversions FROM VIDEO_PERFORMANCE_REPORT DURING 20170621","CSV",client_customer_id="<one of our client ids>")
And then process it.
But when i run this, I keep getting a "NOT_ADS_USER" error message.
- I have created a service account in the API console
- The json private key file for the service account is located in 'privkey.json'
- We have a valid developer token for our MCC, which I've checked and double-checked
What is wrong?