Hi,

I am getting Data using this

Adwords API
           $campaignCriterionService = (new AdWordsServices 
)->get($session, CampaignCriterionService::class);     
            $selector = new Selector();                                  
            $selector->setFields(['CampaignId','DayOfWeek', 'StartHour', 
'EndHour', 'CampaignCriterionStatus']);

            $selector->setPredicates([
                new Predicate('CriteriaType', PredicateOperator::IN, 
['AD_SCHEDULE']),
                new Predicate('CampaignCriterionStatus', 
PredicateOperator::IN, ['ACTIVE'])]);

But Not Similar response using Google Ads API

I tried both campaign_criteria and ad_schedule_view, but returned 0 results.

I have done like this in Google Ads API

SELECT campaign.id, campaign_criterion.ad_schedule.day_of_week, 
campaign_criterion.ad_schedule.end_hour, 
campaign_criterion.ad_schedule.start_hour, campaign_criterion.status FROM 
ad_schedule_view  WHERE campaign_criterion.type IN (AD_SCHEDULE) AND 
metrics.impressions >= 0

SELECT campaign.id, campaign_criterion.ad_schedule.day_of_week, 
campaign_criterion.ad_schedule.end_hour, 
campaign_criterion.ad_schedule.start_hour, campaign_criterion.status FROM 
campaign_criterion  WHERE campaign_criterion.type IN (AD_SCHEDULE) 


Thanks,








On Tuesday, 23 February 2021 at 18:30:36 UTC+5:30 cv wrote:

> HI,
>
> I specifically looking at criteria. Old Adwords API is giving AdSchedule 
> data but Google Ads API is not providing any.
>
> Thanks,
>
> On Tuesday, 23 February 2021 at 10:03:05 UTC+5:30 cv wrote:
>
>> HI Peter,
>>
>> How I can get those ALL_TIME Data which can match with Google Adwords API 
>> campaign criteria performance report?
>>
>> Thanks,
>>
>>
>> On Monday, 22 February 2021 at 10:53:16 UTC+5:30 adsapiforumadvisor wrote:
>>
>>> Hi,
>>>
>>> Unfortunately, it would not be possible to use/include segments 
>>> <https://developers.google.com/google-ads/api/fields/v6/segments> and 
>>> metrics <https://developers.google.com/google-ads/api/fields/v6/metrics> 
>>> fields in the campaign_criterion 
>>> <https://developers.google.com/google-ads/api/fields/v6/campaign_criterion> 
>>> view. 
>>>
>>> You should be able to retrieve all the current campaign criteria 
>>> associated to your campaigns via the said report, without specifying a date 
>>> range.
>>>
>>> Thanks,
>>>
>>> [image: Google Logo] 
>>> Peter Laurence Napa Oliquino 
>>> Google Ads API Team 
>>>   
>>>
>>> ref:_00D1U1174p._5004Q2CSTE8: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/8a3be703-2874-4150-a3b0-3e988dfb6d55n%40googlegroups.com.

Reply via email to