Hey,
I'm using a modified function from the Adwords php examples to upload
offline conversions but unfortunately I always get the error in response
{
"error": {
"code": 500,
"message": "Internal Server Error",
"exception": [
{
"message": "[OperationAccessDenied.ACTION_NOT_PERMITTED @ class
com.google.ads.api.serviceimpls.campaignmgmt.conversiontracking.offlinecon]"
,
the upload function:
function UploadConversion($conversionName, $gclid, $conversionTime,
$conversionValue = null) {
// Get the services, which loads the required classes.
$offlineConversionService = $this->user->GetService(
'OfflineConversionFeedService');
// Associate offline conversions with the existing named conversion
tracker.
$feed = new OfflineConversionFeed();
$feed->conversionName = $conversionName;
$feed->conversionTime = $conversionTime;
$feed->googleClickId = $gclid;
($conversionValue !== null) ?: $feed->conversionValue =
$conversionValue;
$offlineConversionOperation = new OfflineConversionFeedOperation();
$offlineConversionOperation->operator = 'ADD';
$offlineConversionOperation->operand = $feed;
$offlineConversionOperations = array($offlineConversionOperation);
$result = $offlineConversionService->mutate(
$offlineConversionOperations);
$feed = $result->value[0];
return array(
'gclid' => $feed->googleClickId,
'conversionName' => $feed->conversionName,
'conversionValue' => $feed->conversionValue
);
}
The OAuth credentials should be fine, since I can perform a working get
request listing campaigns...
--
--
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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/01c780b5-eb6b-4b61-a7b4-27d24941cf38%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.