Hi Pham,

The AdvertisingChannelType
<https://developers.google.com/adwords/api/docs/appendix/reports/all-reports#advertisingchanneltype> field
is available only in the report types listed in the link. that said, you
may want to change the CRITERIA_PERFORMANCE_REPORT and use
CAMPAIGN_PERFORMANCE_REPORT instead. Let me know if this helps.

Thanks and regards,
Peter
Google Ads API Team


=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
Also find us on our blog and discussion group:
    https://ads-developers.googleblog.com/search/label/google_ads_api
    https://developers.google.com/adwords/api/community/
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~

On 05/15/19 12:37:20 [email protected] wrote:

Hi there,
I have an issue when getting Campaigns. I tried with the code below but it
errors notification.

***Query
$query = ( new ReportQueryBuilder() )
    ->select([
        'Date',
        'CampaignId',
        'CampaignName',
        'Cost',
        'AllConversionValue',
        'Conversions',
    ])
    ->from(ReportDefinitionReportType::CRITERIA_PERFORMANCE_REPORT)
    ->where('Status')->in($camStatus)
    ->where('advertisingChannelType')->in($camTypes)
    ->during($startdate, $enddate)
    ->build();
***Error
Details: [fieldPath: advertisingChannelType; trigger: Invalid predicate
name: advertisingChannelType; errorString:
SelectorError.INVALID_PREDICATE_FIELD_NAME]

Please, help me.
Thanks all.

--
--
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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].
Visit this group at https://groups.google.com/group/adwords-api.
To view this discussion on the web visit
https://groups.google.com/d/msgid/adwords-api/a09c64ad-4df9-4b8e-8e0a-89b1e5b660cb%40googlegroups.com
<https://groups.google.com/d/msgid/adwords-api/a09c64ad-4df9-4b8e-8e0a-89b1e5b660cb%40googlegroups.com?utm_medium=email&utm_source=footer>
.
For more options, visit https://groups.google.com/d/optout.

--
--
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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].
Visit this group at https://groups.google.com/group/adwords-api.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/adwords-api/08p11g00040000000t33hs00015kt0y6cmjec1p6co30c1g68r32e1m%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.
  • How to ... Pham Triet
    • RE... googleadsapi-forumadvisor via AdWords API and Google Ads API Forum
    • Re... Pham Triet

Reply via email to