Hi,
I have solved the problem, my mistake is because i filter not a same fields,
string StartDate = "20200706";
string EndDate = "20200731";
selector.predicates = new Predicate[]
> {
> Predicate.GreaterThanEquals(Campaign.Fields.*StartDate*, StartDate),
> Predicate.LessThanEquals(Campaign.Fields.*EndDate*, EndDate) *Wrong
> (my Campaign.Fields.EndDate = **20371230**)*
Predicate.LessThanEquals(Campaign.Fields.*StartDate * , EndDate) *Success
> Filter*
};
>
Thanks, Regards
On Wed, Jul 15, 2020 at 8:51 AM [email protected] <[email protected]>
wrote:
> Hi,
>
> Thanks for the reply, but in this documentation
> <https://developers.google.com/adwords/api/docs/reference/v201809/CampaignService.Campaign>,
> there is field selector startDate and endDate field in it say like this
>
> startDate
>
> xsd:string
>
> Date the campaign begins. On add, defaults to the current day in the
> parent account's local timezone. The date's format should be YYYYMMDD.
> This field can be selected using the value "StartDate".
> *This field can be filtered on.*
>
> This field can be filtered on, it mean i can use this for filter my data
> request, right?
> Then, how can i filter by StartDate and EndDate?
>
> Thanks, regards.
> On Tuesday, July 14, 2020 at 9:05:44 PM UTC+7 adsapiforumadvisor wrote:
>
>> Hi,
>>
>> Thank you for reaching out. Please see here
>> <https://developers.google.com/adwords/api/docs/guides/reporting#custom_date_ranges>
>> for details on setting a custom date range in your report. As it says, you
>> have to create a date range object and set its min and max values to your
>> start and end date. Then, you set the dat erange type to CUSTOM_DATE.
>>
>> If you are using AWQL, you just need to set the DURING clause to your
>> desired dates.
>>
>> This is only applicable for reports, not for the CampaignService.
>>
>> Regards,
>> Mitchell
>> Google Ads API Team
>>
>> ref:_00D1U1174p._5004Q21lWKa: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 a topic in the
> Google Groups "AdWords API and Google Ads API Forum" group.
> To unsubscribe from this topic, visit
> https://groups.google.com/d/topic/adwords-api/GABxh4IqXt8/unsubscribe.
> To unsubscribe from this group and all its topics, send an email to
> [email protected].
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/adwords-api/57f1505f-4320-4127-80a8-71488b9f475bn%40googlegroups.com
> <https://groups.google.com/d/msgid/adwords-api/57f1505f-4320-4127-80a8-71488b9f475bn%40googlegroups.com?utm_medium=email&utm_source=footer>
> .
>
--
--
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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/CAGt7WguzdrpoPSYuhxYOW1nLC6geRvOh0tE653mk4mwpkLLa4g%40mail.gmail.com.