SelectorError.INVALID_FIELD_NAME for AdGroupCreativeApprovalStatus (AdGroupAd.ApprovalStatus)

98 views
Skip to first unread message

Артемий Гаврюшин

unread,
Jun 7, 2017, 4:01:19 AM6/7/17
to AdWords API Forum
Docs: https://developers.google.com/adwords/api/docs/reference/v201702/AdGroupAdService.AdGroupAd
Note: AdGroupAd.ApprovalStatus: This field can be selected using the value "AdGroupCreativeApprovalStatus".

<?php

...
$adGroupAdService
= (new AdWordsServices())->get($session, AdGroupAdService::class);
$selector = new Selector();
$selector->setFields(['Id', 'AdGroupCreativeApprovalStatus']);
...


Error: SelectorError.INVALID_FIELD_NAME

Question:
How get AdGroupAd.ApprovalStatus?

Peter Oliquino

unread,
Jun 7, 2017, 5:05:45 AM6/7/17
to AdWords API Forum
Hi,

In the latest version (v201705), the Ads policy related fields for the AdGroupAd have been removed and was transferred instead to the PolicySummary field. Using my test account, I was able to retrieve the "AdGroupCreativeApprovalStatus" field using the older v201702 version. 

This said, could you confirm which AdWords API version you are currently using? You may send to me the complete SOAP request and response so I may also have a better look at your concern. Please reply using Reply privately to author for the requested information.

Thanks and regards,
Peter
AdWords API Team

Артемий Гаврюшин

unread,
Jun 7, 2017, 5:34:14 AM6/7/17
to AdWords API Forum
Thank you.

I'm using the latest version (v201705).

I want to know: my ads are DISAPPROVED or APPROVED.

среда, 7 июня 2017 г., 12:05:45 UTC+3 пользователь Peter Oliquino написал:

Peter Oliquino

unread,
Jun 7, 2017, 10:45:30 PM6/7/17
to AdWords API Forum
Hi,

As mentioned in my previous response, you may get the PolicyApprovalStatus from the PolicySummary field. Could you retry your request and see if you are already able to retrieve the information you require through the mentioned fields?

Best regards,
Peter
AdWords API Team

Артемий Гаврюшин

unread,
Jun 13, 2017, 5:49:43 AM6/13/17
to AdWords API Forum
Thanks!

Its Work!
$selector->setFields(['PolicySummary']);
...
$ad->getPolicySummary()->getCombinedApprovalStatus();




четверг, 8 июня 2017 г., 5:45:30 UTC+3 пользователь Peter Oliquino написал:
Reply all
Reply to author
Forward
0 new messages