Re: Permission error creating PMax campaigns using BatchJobs

2022-05-27 Thread Andrew Towe
Hello, 
We are also having issues with creating Performance Max Campaigns. The 
funny thing that we are experiencing is not the shopping setting problems, 
but instead having problems with the batch job. We can run the exact same 
operations with:
try ( GoogleAdsServiceClient googleAdsServiceClient = 
googleAdsClient.getLatestVersion().createGoogleAdsServiceClient() )
{
MutateGoogleAdsResponse response = 
googleAdsServiceClient.mutate(Long.toString(customerId), mutateOperations)
}
and get a different result then when we use 
try ( BatchJobServiceClient batch_job_service_client = 
client.getSimpleGoogleAdsClient().getLatestVersion().createBatchJobServiceClient()
 
)
{
batch_job_resource_name = 
createBatchJob(batch_job_service_client, 
client.getSimpleGoogleCustomerID());
addAllBatchJobOperations(batch_job_service_client, 
client.getSimpleGoogleCustomerID(), batch_job_resource_name);
OperationFuture operation_future = 
batch_job_service_client.runBatchJobAsync(batch_job_resource_name);


Can someone advise me as to why the runBatchJobAsync would have a different 
result then just the mutation?
On Thursday, May 19, 2022 at 12:23:32 AM UTC-7 ci...@channable.com wrote:

> Hi,
>
> I'd like to add to this that batch jobs containing AssetGroup operations 
> do not finish for our test MCC account. So I am not sure if you are able to 
> process these batch jobs, or if something needs to be enabled for our 
> account? The same operations do succeed if I use the MutateRequest.
>
> The operations are as follows:
>
> asset_group_operation {
>   create {
> resource_name: "customers//assetGroups/-1"
> campaign: "customers//campaigns/17306801024"
> name: "d26e8877-1a49-40da-9e98-6f8fcae2cf80"
> status: ENABLED
>   }
> }
>
> asset_group_operation {
>   create {
> resource_name: "customers//assetGroups/-2"
> campaign: "customers//campaigns/17295242067"
> name: "6b97b83c-1c71-4d5a-8d8b-e0b785e0eb70"
> status: ENABLED
>   }
> }
>
> We would like to continue the development for Performance Max campaigns 
> and - as an integrator - we rely heavily on batch jobs. Without it, we are 
> uncertain whether we can make the deadline before the auto-migration of 
> Smart Shopping Campaigns.
>
> Hope you can help.
>
> Best,
> Ciel
>
> On Monday, May 16, 2022 at 4:01:20 PM UTC+2 Miquel Isern Roca wrote:
>
>> Hello Google,
>>
>> We are facing an error when trying to create a PMax campaign through 
>> BatchJobs. We consistently get an error saying 'A mutate action is not 
>> allowed on this resource, from this client.' with the code: 
>> 'MUTATE_ACTION_NOT_PERMITTED_FOR_CLIENT'.
>>
>> We have checked and are able to create such campaigns via a 
>> MutateRequest, but when doing so with a MutateOperation inside a BatchJob 
>> the operation fails. The operations we send are to create exactly the same 
>> type of Campaign with the same settings. See the examples of the operations.
>>
>> The operation for the MutateRequest:
>> ```
>> create {
>>   status: PAUSED
>>   advertising_channel_type: PERFORMANCE_MAX
>>   bidding_strategy_type: MAXIMIZE_CONVERSION_VALUE
>>   maximize_conversion_value {
>> target_roas: 3.5
>>   }
>>   shopping_setting {
>> merchant_id: XXX
>> sales_country: "XX"
>>   }
>>   name: "automated_test_campaign_0_474d67eb-d35d-4bd4-8516-521e38483285"
>>   campaign_budget: "customers/XXX/campaignBudgets/XXX"
>>   url_expansion_opt_out: false
>> }
>> ```
>>
>> The operation inside the BatchJob:
>> ```
>> campaign_operation {
>>   create {
>> resource_name: "customers/XXX/campaigns/-57"
>> status: PAUSED
>> advertising_channel_type: PERFORMANCE_MAX
>> bidding_strategy_type: MAXIMIZE_CONVERSION_VALUE
>> maximize_conversion_value {
>>   target_roas: 0.5
>> }
>> shopping_setting {
>>   merchant_id: XXX
>>   sales_country: "XX"
>> }
>> name: "Test - Mutate Campaign ops - 57"
>> campaign_budget: "customers/XXX/campaignBudgets/XXX"
>> url_expansion_opt_out: false
>>   }
>> }
>> ```
>>
>> I have logs I can send privately of the BatchJob with the operation to 
>> create the Campaign failed.
>>
>> Thanks,
>>
>> Miquel Isern Roca
>>
>

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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 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 
"Google Ads API and AdWords API Forum" group.
To unsubscribe from this group and stop receiving emails from 

Re: Permission error creating PMax campaigns using BatchJobs

2022-05-19 Thread 'Ciel Eijssen' via Google Ads API and AdWords API Forum
Hi,

I'd like to add to this that batch jobs containing AssetGroup operations do 
not finish for our test MCC account. So I am not sure if you are able to 
process these batch jobs, or if something needs to be enabled for our 
account? The same operations do succeed if I use the MutateRequest.

The operations are as follows:

asset_group_operation {
  create {
resource_name: "customers//assetGroups/-1"
campaign: "customers//campaigns/17306801024"
name: "d26e8877-1a49-40da-9e98-6f8fcae2cf80"
status: ENABLED
  }
}

asset_group_operation {
  create {
resource_name: "customers//assetGroups/-2"
campaign: "customers//campaigns/17295242067"
name: "6b97b83c-1c71-4d5a-8d8b-e0b785e0eb70"
status: ENABLED
  }
}

We would like to continue the development for Performance Max campaigns and 
- as an integrator - we rely heavily on batch jobs. Without it, we are 
uncertain whether we can make the deadline before the auto-migration of 
Smart Shopping Campaigns.

Hope you can help.

Best,
Ciel

On Monday, May 16, 2022 at 4:01:20 PM UTC+2 Miquel Isern Roca wrote:

> Hello Google,
>
> We are facing an error when trying to create a PMax campaign through 
> BatchJobs. We consistently get an error saying 'A mutate action is not 
> allowed on this resource, from this client.' with the code: 
> 'MUTATE_ACTION_NOT_PERMITTED_FOR_CLIENT'.
>
> We have checked and are able to create such campaigns via a MutateRequest, 
> but when doing so with a MutateOperation inside a BatchJob the operation 
> fails. The operations we send are to create exactly the same type of 
> Campaign with the same settings. See the examples of the operations.
>
> The operation for the MutateRequest:
> ```
> create {
>   status: PAUSED
>   advertising_channel_type: PERFORMANCE_MAX
>   bidding_strategy_type: MAXIMIZE_CONVERSION_VALUE
>   maximize_conversion_value {
> target_roas: 3.5
>   }
>   shopping_setting {
> merchant_id: XXX
> sales_country: "XX"
>   }
>   name: "automated_test_campaign_0_474d67eb-d35d-4bd4-8516-521e38483285"
>   campaign_budget: "customers/XXX/campaignBudgets/XXX"
>   url_expansion_opt_out: false
> }
> ```
>
> The operation inside the BatchJob:
> ```
> campaign_operation {
>   create {
> resource_name: "customers/XXX/campaigns/-57"
> status: PAUSED
> advertising_channel_type: PERFORMANCE_MAX
> bidding_strategy_type: MAXIMIZE_CONVERSION_VALUE
> maximize_conversion_value {
>   target_roas: 0.5
> }
> shopping_setting {
>   merchant_id: XXX
>   sales_country: "XX"
> }
> name: "Test - Mutate Campaign ops - 57"
> campaign_budget: "customers/XXX/campaignBudgets/XXX"
> url_expansion_opt_out: false
>   }
> }
> ```
>
> I have logs I can send privately of the BatchJob with the operation to 
> create the Campaign failed.
>
> Thanks,
>
> Miquel Isern Roca
>

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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 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 
"Google Ads API and AdWords API Forum" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to adwords-api+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/adwords-api/6580f8a0-09cc-423a-8377-72275704500en%40googlegroups.com.


Permission error creating PMax campaigns using BatchJobs

2022-05-16 Thread 'Miquel Isern Roca' via Google Ads API and AdWords API Forum
Hello Google,

We are facing an error when trying to create a PMax campaign through 
BatchJobs. We consistently get an error saying 'A mutate action is not 
allowed on this resource, from this client.' with the code: 
'MUTATE_ACTION_NOT_PERMITTED_FOR_CLIENT'.

We have checked and are able to create such campaigns via a MutateRequest, 
but when doing so with a MutateOperation inside a BatchJob the operation 
fails. The operations we send are to create exactly the same type of 
Campaign with the same settings. See the examples of the operations.

The operation for the MutateRequest:
```
create {
  status: PAUSED
  advertising_channel_type: PERFORMANCE_MAX
  bidding_strategy_type: MAXIMIZE_CONVERSION_VALUE
  maximize_conversion_value {
target_roas: 3.5
  }
  shopping_setting {
merchant_id: XXX
sales_country: "XX"
  }
  name: "automated_test_campaign_0_474d67eb-d35d-4bd4-8516-521e38483285"
  campaign_budget: "customers/XXX/campaignBudgets/XXX"
  url_expansion_opt_out: false
}
```

The operation inside the BatchJob:
```
campaign_operation {
  create {
resource_name: "customers/XXX/campaigns/-57"
status: PAUSED
advertising_channel_type: PERFORMANCE_MAX
bidding_strategy_type: MAXIMIZE_CONVERSION_VALUE
maximize_conversion_value {
  target_roas: 0.5
}
shopping_setting {
  merchant_id: XXX
  sales_country: "XX"
}
name: "Test - Mutate Campaign ops - 57"
campaign_budget: "customers/XXX/campaignBudgets/XXX"
url_expansion_opt_out: false
  }
}
```

I have logs I can send privately of the BatchJob with the operation to 
create the Campaign failed.

Thanks,

Miquel Isern Roca

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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 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 
"Google Ads API and AdWords API Forum" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to adwords-api+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/adwords-api/c6147f77-6430-48c0-a6cc-21a04a7cba6cn%40googlegroups.com.