Re: Can AdGroupAdReturnValue Contains an AdGroupAd with its Policy Summary?

2018-03-23 Thread 'Anash P. Oommen (AdWords API Team)' via AdWords API Forum
Hi Alex,

The answer is "Maybe". Policy approval is asynchronous (including manual 
review steps), so you might not get back a PolicySummary field in response 
when you upload the ad. The only time you know for sure that the ad has no 
errors is when your ad's combinedApprovalStatus 

 
has become approved, and policyTopicEntries 

 return 
empty. So you might have to fetch the ads multiple times over a period of 
time to know for sure.

Cheers
Anash P. Oommen,
AdWords API Advisor.

On Friday, March 23, 2018 at 10:13:52 AM UTC-4, 
alex.komis...@dialogtech.com wrote:
>
> Can I get an answer to my last question, does this mean if there are no 
> errors in the ad that the policy summary will be NULL instead of including 
> the 'policy approval status'?
>
> On Tuesday, March 20, 2018 at 12:35:22 AM UTC-5, Peter Oliquino wrote:
>>
>> Hi Alex,
>>
>> My apologies as well if I missed this out on my previous response, 
>> however, the PolicySummary field would be null if there were no policy 
>> related errors encountered when uploading your ads.
>>
>> If your intention is to handle ad upload errors due to policy, you may 
>> refer to this guide 
>> 
>> .
>>
>> Best regards,
>> Peter
>> AdWords API Team
>>
>

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
Also find us on our blog and Google+:
https://googleadsdeveloper.blogspot.com/
https://plus.google.com/+GoogleAdsDevelopers/posts
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~

You received this message because you are subscribed to the Google
Groups "AdWords 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 Forum" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to adwords-api+unsubscr...@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/968971c6-6d3d-43c5-b101-5fd21b519e92%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: Can AdGroupAdReturnValue Contains an AdGroupAd with its Policy Summary?

2018-03-23 Thread alex . komisarz
Can I get an answer to my last question, does this mean if there are no 
errors in the ad that the policy summary will be NULL instead of including 
the 'policy approval status'?

On Tuesday, March 20, 2018 at 12:35:22 AM UTC-5, Peter Oliquino wrote:
>
> Hi Alex,
>
> My apologies as well if I missed this out on my previous response, 
> however, the PolicySummary field would be null if there were no policy 
> related errors encountered when uploading your ads.
>
> If your intention is to handle ad upload errors due to policy, you may 
> refer to this guide 
> 
> .
>
> Best regards,
> Peter
> AdWords API Team
>

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
Also find us on our blog and Google+:
https://googleadsdeveloper.blogspot.com/
https://plus.google.com/+GoogleAdsDevelopers/posts
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~

You received this message because you are subscribed to the Google
Groups "AdWords 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 Forum" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to adwords-api+unsubscr...@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/485c8bb9-29bc-42e1-8ae9-855d7a3ddc8c%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: Can AdGroupAdReturnValue Contains an AdGroupAd with its Policy Summary?

2018-03-20 Thread alex . komisarz
Thanks for the info, Peter. What I'm trying to do is store the policy 
summary's 'Policy Approval Status' after creating a new ad. Since the 
policy summary is not returned in the mutate request I'm unable to do this 
in one step. Is this expected behavior then, and will I just need to make 
another call in order to get the 'Policy Approval Status'?

Thanks again,
Alex

On Tuesday, March 20, 2018 at 12:35:22 AM UTC-5, Peter Oliquino wrote:
>
> Hi Alex,
>
> My apologies as well if I missed this out on my previous response, 
> however, the PolicySummary field would be null if there were no policy 
> related errors encountered when uploading your ads.
>
> If your intention is to handle ad upload errors due to policy, you may 
> refer to this guide 
> 
> .
>
> Best regards,
> Peter
> AdWords API Team
>

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
Also find us on our blog and Google+:
https://googleadsdeveloper.blogspot.com/
https://plus.google.com/+GoogleAdsDevelopers/posts
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~

You received this message because you are subscribed to the Google
Groups "AdWords 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 Forum" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to adwords-api+unsubscr...@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/70552d37-65c6-4ec8-9800-80ad17beea5e%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: Can AdGroupAdReturnValue Contains an AdGroupAd with its Policy Summary?

2018-03-19 Thread 'Peter Oliquino' via AdWords API Forum
Hi Alex,

My apologies as well if I missed this out on my previous response, however, 
the PolicySummary field would be null if there were no policy related 
errors encountered when uploading your ads.

If your intention is to handle ad upload errors due to policy, you may 
refer to this guide 
.

Best regards,
Peter
AdWords API Team

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
Also find us on our blog and Google+:
https://googleadsdeveloper.blogspot.com/
https://plus.google.com/+GoogleAdsDevelopers/posts
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~

You received this message because you are subscribed to the Google
Groups "AdWords 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 Forum" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to adwords-api+unsubscr...@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/dd35eee0-76ae-4b50-8563-49488d2703f5%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: Can AdGroupAdReturnValue Contains an AdGroupAd with its Policy Summary?

2018-03-19 Thread alex . komisarz
Hey sorry if I'm not understanding something but I am getting the AdGroupAd 
from the value field but it doesn't have the attached policy summary 
object. it comes back as null

On Monday, March 19, 2018 at 12:07:40 AM UTC-5, Peter Oliquino wrote:
>
> Hi,
>
> Since the AdGroupReturnValue 
> 
>  contains 
> the information of your AdGroupAd 
> 
>  object 
> through its Value 
> 
>  field, 
> you should be able to extract the PolicySummary 
> 
>  from 
> it without creating a separate Selector and get() request. I hope this 
> helps and feel free to write back if you require further information.
>
> Best regards,
> Peter
> AdWords API Team
>

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
Also find us on our blog and Google+:
https://googleadsdeveloper.blogspot.com/
https://plus.google.com/+GoogleAdsDevelopers/posts
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~

You received this message because you are subscribed to the Google
Groups "AdWords 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 Forum" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to adwords-api+unsubscr...@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/6bf61457-0366-4848-81dd-90a8e9717478%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: Can AdGroupAdReturnValue Contains an AdGroupAd with its Policy Summary?

2018-03-18 Thread 'Peter Oliquino' via AdWords API Forum
Hi,

Since the AdGroupReturnValue 

 contains 
the information of your AdGroupAd 

 object 
through its Value 

 field, 
you should be able to extract the PolicySummary 

 from 
it without creating a separate Selector and get() request. I hope this 
helps and feel free to write back if you require further information.

Best regards,
Peter
AdWords API Team

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
Also find us on our blog and Google+:
https://googleadsdeveloper.blogspot.com/
https://plus.google.com/+GoogleAdsDevelopers/posts
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~

You received this message because you are subscribed to the Google
Groups "AdWords 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 Forum" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to adwords-api+unsubscr...@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/5b785c4a-78fd-48b4-9d59-3d99acaa429f%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Can AdGroupAdReturnValue Contains an AdGroupAd with its Policy Summary?

2018-03-16 Thread alex . komisarz
After successfully creating a new AdGroupAd the return value does not seem 
to contain all of the information related to that AdGroupAd. 

I know that when using the php sdk and calling get on the AdGroupAdService 
you need to specify 'policySummary' in the selector in order to get it 
returned, however there is no option to specify the return value of a newly 
created ad. 

here is some example code to illustrate what I mean.

$adGroupAdService = $this->awServices->get($session, 
AdGroupAdService::class);
$operation = new AdGroupAdOperation();
$operation->setOperand($ad);
$operation->setOperator('ADD');

$result = $adGroupAdService->mutate($operations);
$adGroupAd = $result->getValue()[0];

// partial value of one of the AdGroupAds in result:
// adGroupId:protected] => 
// [ad:protected] => Google\AdsApi\AdWords\v201710\cm\CallOnlyAd Object
//{ad}
// [status:protected] => ENABLED
// [policySummary:protected] => NULL

$adGroupId = $$adGroupAd->getAdGroupId();
$adId = $adGroupAd->getAd()->getId();

$selector = new Selector();
$selector->setFields(['AdGroupId', 'PolicySummary']);
$selector->setPredicates([
   new Predicate('AdGroupId', PredicateOperator::EQUALS, [$adGroupId]),
   new Predicate('Id', PredicateOperator::EQUALS, [$adId])
]);
$page = $adGroupAdService->get($selector);
$adGroupAdFull = $page->getEntries()[0];

// partial value of one of the AdGroupAds in result:
// adGroupId:protected] => 
// [ad:protected] => Google\AdsApi\AdWords\v201710\cm\CallOnlyAd Object
//{ad}
// [status:protected] => ENABLED
// [policySummary:protected] => 
Google\AdsApi\AdWords\v201710\cm\AdGroupAdPolicySummary Object

Do I need to make that second call to get policy information or is there a 
way it can be returned from the mutate result?

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
Also find us on our blog and Google+:
https://googleadsdeveloper.blogspot.com/
https://plus.google.com/+GoogleAdsDevelopers/posts
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~

You received this message because you are subscribed to the Google
Groups "AdWords 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 Forum" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to adwords-api+unsubscr...@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/deb196e3-1a60-4d3a-98d1-e993ac192e80%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.