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/a7f0a636-1698-41b0-866f-46c552c0dacf%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.