Hi Team,
Thanks for quick response.
I tried the suggested approach but it does not do a filter based on 
CampaignId instead it return all the Campaigns.

ReportQuery query =
        new ReportQuery.Builder()
            .fields(
                "CampaignId",
                "CampaignName")
            .from(ReportDefinitionReportType.CAMPAIGN_PERFORMANCE_REPORT)
         //   .where("Status").in("ENABLED", "PAUSED")
           // .during(ReportDefinitionDateRangeType.LAST_7_DAYS)
                .where("CampaignId").equalTo(6299310791)
            .build();

Regards,
Anurag Sinha

On Tuesday, August 31, 2021 at 12:43:16 PM UTC+5:30 adsapi wrote:

> Hi Anurag,
>
> When using the CampaignId 
> <https://developers.google.com/adwords/api/docs/appendix/reports/campaign-performance-report#campaignid>
>  (Long) as 
> a predicate you should use other operators such as "=". This is because 
> operators such as CONTAINS are designed more for string values.
>
> I hope this helps.
>
> Best regards,
>
> [image: Google Logo] 
> Peter Laurence Napa Oliquino 
> Google Ads API Team 
>   
>
> ref:_00D1U1174p._5004Q2Mk98O: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/1d6f57cc-b60a-43cb-acf9-6e626040c578n%40googlegroups.com.

Reply via email to