Re: OperationAccessDenied.ACTION_NOT_PERMITTED uploading offline conversion

2016-04-21 Thread 'Umesh Dengale' via AdWords API Forum
Hi Karl,

While generating the 
refresh
 
token 
,
 
if you login as the manager account user, so that the generated OAuth 2.0 
code will be associated with this user. This will allow your client 
application to manage your manager account's child accounts as well. If you 
login with read-only user then you will allowed to make only read only API 
call(e.g. get). You could regenerate the OAuth2.0 credential by login as 
manager account user if you haven't done already. Please check PHP OAuth2.0 
guide  
for more details. 

Regards,
Umesh, 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 adwords-api@googlegroups.com
To unsubscribe from this group, send email to
adwords-api+unsubscr...@googlegroups.com
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 adwords-api+unsubscr...@googlegroups.com.
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/0be58449-4253-43f5-9c1f-06c07ef85f4d%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: OperationAccessDenied.ACTION_NOT_PERMITTED uploading offline conversion

2016-04-21 Thread Karl Adler
Hello Umesh,

Can you tell me where I can check the credentials rights? I retrieved the 
access token as shown in this video 
, where can I change the 
access rights?

Best Regards
Karl

On Monday, 18 April 2016 18:49:52 UTC+2, Umesh Dengale wrote:
>
> Hello,
>
> The OperationAccessDenied.ACTION_NOT_PERMITTED 
> 
>  error 
> occurs when you don't have access to the service methods (e.g. mutate 
> 
>  etc.). 
> Could you check your OAuth2.0 credential has mutate operation rights (with 
> ADD/SET/REMOVE operator)?
>
> Regards,
> Umesh, 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 adwords-api@googlegroups.com
To unsubscribe from this group, send email to
adwords-api+unsubscr...@googlegroups.com
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 adwords-api+unsubscr...@googlegroups.com.
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/7d4504f2-75e4-4ae3-85e0-fe5a5911459d%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: OperationAccessDenied.ACTION_NOT_PERMITTED uploading offline conversion

2016-04-18 Thread 'Umesh Dengale' via AdWords API Forum
Hello,

The OperationAccessDenied.ACTION_NOT_PERMITTED 

 error 
occurs when you don't have access to the service methods (e.g. mutate 

 etc.). 
Could you check your OAuth2.0 credential has mutate operation rights (with 
ADD/SET/REMOVE operator)?

Regards,
Umesh, 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 adwords-api@googlegroups.com
To unsubscribe from this group, send email to
adwords-api+unsubscr...@googlegroups.com
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 adwords-api+unsubscr...@googlegroups.com.
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/6d329231-476d-47c0-90d2-092399392aab%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


OperationAccessDenied.ACTION_NOT_PERMITTED uploading offline conversion

2016-04-18 Thread Karl Adler
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 adwords-api@googlegroups.com
To unsubscribe from this group, send email to
adwords-api+unsubscr...@googlegroups.com
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 adwords-api+unsubscr...@googlegroups.com.
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.