Hi Anthony,

Thanks a lot for clarifying this.

I tried that, and I'm getting AuthenticationError.OAUTH_TOKEN_INVALID.
And like I wrote Danica in this thread 
<https://groups.google.com/forum/#!topic/adwords-api/o-_7--pCabE>, I'm not 
sure if this is because I didn't specify a client_customer_id?

I coudn't create a test adwords client account using the ways suggested by 
google's documentation, as I described here 
<https://support.google.com/google-ads/thread/46366139?hl=en&msgid=46427977> 
(this 
is another issue, which seems to be unclear if it's product team or API 
team to solve).
Is there a way to run the code below without creating a test adwords client 
account? (I do have a working test adwords manager account)

client = 
adwords.AdWordsClient.LoadFromStorage(f'{os.getcwd()}/oauth/googleads.yaml')

# Initialize appropriate service.
campaign_service = client.GetService('CampaignService', version='v201809')
# Construct selector and get all campaigns.
offset = 0
selector = {
    'fields': ['Id', 'Name', 'Status'],
    'paging': {
        'startIndex': str(offset),
        'numberResults': str(PAGE_SIZE)
    }
}

more_pages = True
while more_pages:
    page = campaign_service.get(selector) # this line throws the exception



On Wednesday, May 13, 2020 at 4:55:46 PM UTC+3, adsapiforumadvisor wrote:
>
> Hi Tal,
>
> Yes, that's correct. Let me know if you face any issues.
>
> Cheers,
> Anthony
> Google Ads API Team
>
> ref:_00D1U1174p._5004Q1zLW3d: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 adwords-api@googlegroups.com
To unsubscribe from this group, send email to
adwords-api+unsubscr...@googlegroups.com
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 adwords-api+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/adwords-api/4cad1cc4-7f17-4a6a-88f4-5eeeaae30eaa%40googlegroups.com.

Reply via email to