Hi, Xiaoming. Thanks for answering me.

When I use the class "AdWordsClient" (because I want to get data from user 
authenticated in my system), I need to pass the following arguments:
- developer_token (string), which I generated in my non-approved manager 
account;
- oauth2_client, which I generated assigning 
googleads.oauth2.GoogleRefreshTokenClient("OAuth 2.0 Client ID" of Google 
Ads API (web application), "OAuth 2.0 Client secret" of Google Ads API (web 
application), refresh_token obtained from social connection)
- client_customer_id, which I get manually from a test account that I know 
it's not a manager account because it doesn't show the settings for API 
that is shown in the manager account.

The AdWordsClient creation seems to work just fine.

I try to run my script and it stops in the line with 
"adwords_client.GetReportDownloader(version='v201809').DownloadReportWithAwql". 
I get the following error message:

*googleads.errors.AdWordsReportBadRequestError: Type: 
ReportDefinitionError.CUSTOMER_SERVING_TYPE_REPORT_MISMATCH*

I know from here 
<https://developers.google.com/adwords/api/docs/common-errors#ReportDefinitionError.CUSTOMER_SERVING_TYPE_REPORT_MISMATCH>
 
this message is related to an idea of trying to get report from manager 
account (that I understand it shouldn't be possible, it makes sense to 
allow reports only from advertiser account), but the customer_id provided 
in AdWordsClient mentioned above belongs to a test (non-manager) account. 
One observation: the Google Account related to the token stored has both 
accounts (manager, with the developer token provided, and the test 
non-manager account). Is that a real problem? I create the test account here 
<https://developers.google.com/adwords/api/docs/guides/accounts-overview#getting_started_with_test_accounts>,
 
then I use the Create a test manager account 
<https://adwords.google.com/um/Welcome/?sf=mt>, even if I do it with 
another Google Account created only for this, I still get the error message 
above (after changing the user's tokens, of course). The 'developer token' 
is the same, from my corporate Google Account 
([email protected], which I use from the beginning of this 
process), I only change the test advertiser account, that I created for 
[email protected], a Google Account created only for this 
purpose.


On Wednesday, July 29, 2020 at 12:52:20 PM UTC-3 adsapiforumadvisor wrote:

> Hi Ciro,
>
> Thank you for reaching out. You could follow this guide 
> <https://developers.google.com/adwords/api/docs/guides/first-api-call> to 
> set up the Adwords API and create necessary credentials and install the 
> python 
> client library <https://github.com/googleads/googleads-python-lib> to 
> start making API calls. For retrieving data from the client’s account, you 
> could query the Video Performance Report 
> <https://developers.google.com/adwords/api/docs/appendix/reports/video-performance-report>
>  
> and it provides all sorts of metrics for the video campaigns.
>
> Thanks and regards,
> Xiaoming, Google Ads API Team
>
>
>  
>
> ref:_00D1U1174p._5004Q22Zs3J:ref
>

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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 
"AdWords API and Google Ads 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/278f86bc-0001-4fae-a95a-d1d57e5850fcn%40googlegroups.com.

Reply via email to