Hi Swetha,
thanks for your answer. The problem is, we are doing it the way you
describe it, but if we resend the AdGroup oder KeywordOperations with an
ExemptionRequest the temporary IDs are wrong. Here is a dump of the error:
object(MutateResult)#4184 (3) { ["result"]=> NULL ["errorList"]=>
object(ErrorList)#4186 (1) { ["errors"]=> object(EntityNotFound)#4062 (6) {
["reason"]=> string(10) "INVALID_ID" ["fieldPath"]=> string(31)
"operations[1].operand.adGroupId" ["trigger"]=> string(16) "TempAdGroupId:
3" ["errorString"]=> string(25) "EntityNotFound.INVALID_ID"
["ApiErrorType"]=> string(14) "EntityNotFound"
["_parameterMap":"ApiError":private]=> array(1) { ["ApiError.Type"]=>
string(12) "ApiErrorType" } } } ["index"]=> int(1) }
How do we handle it? Because we create everything with temporary IDs first
(campaign, adgroup, adgroupad, keywords), and if there is an exemptable
error (e.g. pharma), we want to resend the operation with the exemption
request.
Thanks,
Christian
Am Montag, 20. Juni 2016 23:50:30 UTC+2 schrieb Shwetha Vastrad (AdWords
API Team):
>
> Hi Christian,
>
> You can set the ExemptionRequest
> <https://developers.google.com/adwords/api/docs/reference/v201605/AdGroupAdService.AdGroupAdOperation#exemptionrequests>
> of
> the AdGroupAdOperation
> <https://developers.google.com/adwords/api/docs/reference/v201605/AdGroupAdService.AdGroupAdOperation>
> just
> like you would using a regular mutate operation. The results of the
> BatchJobOperation
> <https://developers.google.com/adwords/api/docs/reference/v201605/BatchJobService.BatchJobOperation>
> will
> be available in the downloadUrl
> <https://developers.google.com/adwords/api/docs/reference/v201605/BatchJobService.BatchJob#downloadurl>
> of
> the BatchJobResponse. You need to check for errors which are exemptable
> <https://developers.google.com/adwords/api/docs/reference/v201605/AdGroupAdService.PolicyViolationError#isexemptable>
> and
> add an exemptionRequest with the corresponding PolicyViolationKey
> <https://developers.google.com/adwords/api/docs/reference/v201605/AdGroupAdService.PolicyViolationKey>
> and
> retry the operation. If you know that your Ad will result in an exemptable
> policyViolationError ahead of time, you can add this exemptionRequest in
> the first BatchJobOperation itself.
>
> Regards,
> Shwetha, 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 [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 https://groups.google.com/group/adwords-api.
To view this discussion on the web visit
https://groups.google.com/d/msgid/adwords-api/06bb2f7a-a5e1-4aad-8a79-f713ed52e3c7%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.