Hi,
I see you are only waiting until the status is neither PENDING nor
PROCESSING. Are you also checking the status after that loop exits to make
sure that it's *COMPLETED* and not *FAILED*?
If that doesn't explain the difference in behavior, could you send over the
ad text that triggers a policy violation from *AdGroupAdService* but not
*MutateJobService*?
Thanks,
Josh, AdWords API Team
On Wednesday, February 4, 2015 at 6:18:57 AM UTC-5, Erkan Ceran wrote:
>
> Hi Josh,
>
> I already check status of jobs with MutateJobService->get. I checked
> example in api documents and i did all steps on KeywordAddBulk.php for
> error handling.
>
> $jobs = $mutateJobService->get($selector);
> $job = $jobs[0];
> switch ($job->status) {
> ..etc.
>
> } while (($job->status == 'PENDING' || $job->status == 'PROCESSING'));
>
> Any other idea ?
>
>
> 3 Şubat 2015 Salı 19:34:33 UTC+2 tarihinde Josh Radcliff (AdWords API
> Team) yazdı:
>>
>> Hi,
>>
>> Are you polling the job status via MutateJobService.get
>> <https://developers.google.com/adwords/api/docs/reference/v201409/MutateJobService#get>
>> and
>> waiting for the status
>> <https://developers.google.com/adwords/api/docs/reference/v201409/MutateJobService.SimpleMutateJob#status>
>> to
>> be *COMPLETED* before attempting to get the results via
>> MutateJobService.getResult
>> <https://developers.google.com/adwords/api/docs/reference/v201409/MutateJobService#getResult>?
>>
>> If not, then the results you get from *getResult* will be incomplete or
>> empty.
>>
>> Thanks,
>> Josh, AdWords API Team
>>
>> On Tuesday, February 3, 2015 at 10:20:06 AM UTC-5, Erkan Ceran wrote:
>>>
>>> Hi,
>>>
>>> I try to add ads using bulk jobs. Old api versions was return
>>> trademark error when create ads. But in v201409 api, i use some code
>>> but its return all success. I try to create one ad with
>>> using AdGroupAdService (not bulk) its return to me error like '
>>> PolicyViolationKey{policyName=trademark,violatingText=Nike'.
>>>
>>> So you can see if you try to bulk jobs for create ads, all them will
>>> success.
>>>
>>> How can i catch trademark errors ?
>>>
>>> $jobResult = ChoiceUtils::GetValue(
>>> $mutateJobService->getResult($selector));
>>>
>>> after this code i try to show $jobResult->errors but its empty and i see
>>> in adwords panel all ads created. After 1 hours later i get email about all
>>> my ads disapproved.
>>>
>>> I think is there a bug ?
>>>
>>
--
--
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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 [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 Forum" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
Visit this group at http://groups.google.com/group/adwords-api.
To view this discussion on the web visit
https://groups.google.com/d/msgid/adwords-api/9bf3e60c-aae8-44cb-bc80-bcae28123482%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.