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?
--
--
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
Also find us on our blog and Google+:
https://googleadsdeveloper.blogspot.com/
https://plus.google.com/+GoogleAdsDevelopers/posts
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
You received this message because you are subscribed to the Google
Groups "AdWords 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
"AdWords API Forum" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
Visit this group at https://groups.google.com/group/adwords-api.
To view this discussion on the web visit
https://groups.google.com/d/msgid/adwords-api/6fec0e4e-180a-40ca-a699-73b02dd14cda%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.