Hi Ellis,
The issue I had encountered was a rather silly one. Depending on your
authentication flow (from storage, YAML file or string, or dict) with
python, the login-customer-id flag - which is the account number seen when
clicking on the user's google account logo/picture on the right hand side
of the UI to switch accounts - is written as login_customer_id
(underscores rather than dashes). Example below:
credentials = {
"developer_token": "XXXXXX",
"refresh_token": "XXXXXXX",
"client_id": "XXXXXXXXXXX",
"client_secret": "XXXXXXXXXXXXXXXXX",
"login_customer_id" : "##########",
"use_proto_plus":False}
googleads_client =
GoogleAdsClient.load_from_dict(credentials,version="v9")
I'm not sure if that is the issue you are encountering, but hopefully this
helps.
Moshik
On Monday, December 13, 2021 at 6:57:02 PM UTC+2 [email protected] wrote:
>
> @moshik
>
> Did you find any solution? I have encountered the same issue as you when
> migrating from Adwords to Google Ads API but haven't found any solution yet
>
> Thanks,
> Ellis
> On Thursday, 15 July 2021 at 10:59:00 UTC+2 adsapi wrote:
>
>> Hi Daniel,
>>
>> Thank you for commenting on this forum post. I am happy to know also that
>> you've fixed the error on your end.
>>
>> In addition to what you've mentioned, please note that the format of
>> login-customer-id will be varied based on the client library (list of
>> supported client libraries here
>> <https://developers.google.com/google-ads/api/docs/client-libs?hl=en>)
>> that you are using. With this, I would suggest checking the Configuration
>> document (*Client library (e.g. Python) > Configuration*) first of the
>> client library that you are using to know the correct format.
>>
>> Let me know if you have further questions.
>>
>> Regards,
>> [image: Google Logo]
>> Ernie John Blanca Tacata
>> Google Ads API Team
>>
>>
>> ref:_00D1U1174p._5004Q2JYa3Y: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/12b8f2e6-c70b-4727-ab66-1b7f4e317a38n%40googlegroups.com.