use report type CAMPAIGN_PERFORMANCE_REPORT fail

10 views
Skip to first unread message

joe502...@qq.com

unread,
May 6, 2019, 3:53:01 AM5/6/19
to AdWords API and Google Ads API Forum
Hi Team,
I am using AdWords API in version v201809. The default report type is CRITERIA_PERFORMANCE_REPORT and I can get data in CSV format.
But i got a 400 status fail when i change CRITERIA_PERFORMANCE_REPORT to CAMPAIGN_PERFORMANCE_REPORT.The return message is like the picture in the attachment.

By the way,the fields is being changed like this:

$selector->setFields(
[
'CampaignId',
'CampaignName',
'Clicks',
'Impressions',
'Cost'
]
);



Look forward to your reply
1341557040924_.pic_hd.jpg

googleadsapi...@google.com

unread,
May 6, 2019, 5:04:40 AM5/6/19
to adwor...@googlegroups.com, AdWords API and Google Ads API Forum
Hi Joe,

Thanks for reaching out.

Upon checking the SOAP logs in the provided screenshot, I noticed that you've used the 'Status' field in the filter of your report so that all the campaigns with paused status will not be included in the response. However, this field doesn't exist in the Campaign Performance Report and this is the reason why you encountered the INVALID_PREDICATE_FIELD_NAME error. What you can do is to change the 'Status' field into 'CampaignStatus' field and try to re-execute the API call.

Let me know if the issue persists.

Regards,
Ejay
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/
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~

Was your question answered? Please rate your experience with us by taking a short survey.
If not -- reply to this email and tell us what else we can do to help.

Take Survey

Also find us on our blog and discussion group:
http://googleadsdeveloper.blogspot.com/search/label/adwords_api
https://developers.google.com/adwords/api/community/

--
--
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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 adwor...@googlegroups.com
To unsubscribe from this group, send email to
adwords-api+unsubscribe@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+unsubscribe@googlegroups.com.
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/5e464cc0-c1f8-41b7-af87-81e2fd7de732%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Reply all
Reply to author
Forward
0 new messages