I found a solution but it does not work completly

campaign_criterion_service = client.GetService(
'CampaignCriterionService', version='v201809')

# Construct selector and get all campaign targets.
offset = 0
selector = {
'fields': ['DayOfWeek', 'StartHour', 'StartMinute', 'EndHour',
'EndMinute'],
'paging': {
'startIndex': str(offset),
'numberResults': str(PAGE_SIZE)
}
}

page = campaign_criterion_service.get(selector)

It returns an empty campaign object, could you help me please?

See the result below

{
    'totalNumEntries': 0,
    'Page.Type': 'CampaignCriterionPage',
    'entries': []
}

If you can also help me to filter the results by campaign, like starts with 
of a specific string, will be also great! 

On Thursday, November 21, 2019 at 7:48:33 PM UTC, adsapiforumadvisor wrote:
>
> Hi Juan,
>
> Unfortunately, we don't have any examples on how to add it using any 
> language. Just like with other criteria, you will need to set the fields 
> specific to the criteria. For ad schedules, you will need to set fields 
> such as start_hour and end_hour. If you are facing any difficulties, you 
> can share your logs 
> <https://github.com/googleads/google-ads-python/#enabling-and-configuring-logging>
>  
> so that I can take a closer look. 
>
> Regards,
> Anthony
> Google Ads API Team
>
>
> ref:_00D1U1174p._5001UJaVr8: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/ebf88efc-c321-4a6e-aed4-9dd7ce590d9a%40googlegroups.com.

Reply via email to