Hi all,
previously, the AdWords API allowed downlaoding the results of a BatchJob
through a downloadUrl which had detailed information on the resulting items
created by the batch job. This included, in the case of Ad Groups:
* $adGroup->getCampaignName(), $adGroup->getName(),
$adGroup->getId()*
the parent Campaign Name, the Ad Group Name, and the Ad Group Id.
In the Google Ads API, all we get in the response:
* foreach ($batchJobResults->iterateAllElements() as $batchJobResult) {
/** @var BatchJobResult $batchJobResult */ printf(
"Batch job #%d has a status '%s' and response of type '%s'.%s",
$batchJobResult->getOperationIndex(),
$batchJobResult->getStatus() ?
$batchJobResult->getStatus()->getMessage() : 'N/A',
$batchJobResult->getMutateOperationResponse() ?
$batchJobResult->getMutateOperationResponse()->getResponse()
: 'N/A', PHP_EOL ); }*
is basically nothing else than only the *resource name*. However, as you do
not know the resource name in advance, there is no way to check which item
has actually been created. You would have to make a new request to query
the API for the details of the resource name, or worse yet, get an entire
report on the elements of the account, in this case, the Ad Groups.
Is there a way to get a more detailed batch job result response, like in
the elder days?
--
--
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
Also find us on our blog:
https://googleadsdeveloper.blogspot.com/
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
You received this message because you are subscribed to the Google
Groups "AdWords API and Google Ads 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 and Google Ads API Forum" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/adwords-api/62bd5555-3386-4ae3-9275-8d6832b4ddb7n%40googlegroups.com.