Re: Label update returns DUPLICATE_NAME

2020-10-08 Thread 'Kostas Kougios' via AdWords API and Google Ads API Forum
ok thanks, I've send the email

On Tuesday, 6 October 2020 at 20:19:18 UTC+1 adsapiforumadvisor wrote:

> Hello,
>
> Please share the request and response for the API calls that fail for 
> these updates. Do so using *reply privately to author*.
>
> Regards,
> Anthony
> Google Ads API Team
>
> [image: Google Logo] 
> Anthony 
> Google Ads API Team 
>   
>
> ref:_00D1U1174p._5004Q25ZEgo:ref
>

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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 
"AdWords API and Google Ads 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/e5fb0022-adf3-4474-94d9-a8918ba11e7an%40googlegroups.com.


Re: campaign setBiddingScheme on v9.0.0 of the api?

2020-10-08 Thread 'Kostas Kougios' via AdWords API and Google Ads API Forum
Ok thanks

On Thursday, 8 October 2020 at 08:49:28 UTC+1 adsapiforumadvisor wrote:

> Hi Kostas,
>
> Thanks for posting your concern.
>
> It is indeed that the bidding scheme is not part of of the said Campaign 
> resource. The reason is, it is not possible to set bidding scheme directly 
> to a campaign, the bidding scheme should be set first in the 
> BiddingStrategy 
> .
>  
>
>
>
> Then you may set your campaign's bidding strategy via the campaign 
> resource's campaign_bidding_strategy 
> 
> .
>
> Let me know if you have further questions.
>
> Regards,
> [image: Google Logo] 
> Ernie John Blanca Tacata 
> Google Ads API Team 
>   
>
> ref:_00D1U1174p._5004Q25ZowM:ref
>

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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 
"AdWords API and Google Ads 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/bdf4519d-0f3f-41e5-a2a4-15c12a8e874en%40googlegroups.com.


campaign setBiddingScheme on v9.0.0 of the api?

2020-10-07 Thread 'Kostas Kougios' via AdWords API and Google Ads API Forum

Hi, I can't seem to find the setBiddingScheme on class 
com.google.ads.googleads.v5.resources.Campaign . It seems to be in some 
javadocs like

public Campaign.Builder setBiddingStrategyType(@NotNull 
com.google.ads.googleads.v5.enums.BiddingStrategyTypeEnum.BiddingStrategyType 
value)
   Output only. The type of bidding strategy.
   A bidding strategy can be created by* setting either the bidding 
scheme* to
   create a standard bidding strategy or the `bidding_strategy` field to
   create a portfolio bidding strategy.
   This field is read-only.

How can I set it?

Thanks

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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 
"AdWords API and Google Ads 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/7929400c-6a27-4842-90db-61aef84a4db1n%40googlegroups.com.


Re: FAILURE REQUEST SUMMARY. Method: google.ads.googleads.v5.services.GoogleAdsService/Search, Endpoint: googleads.googleapis.com:443, CustomerID: XXX, RequestID: null, ResponseCode: UNAVAILABLE, Faul

2020-10-07 Thread 'Kostas Kougios' via AdWords API and Google Ads API Forum
Hi, I don't "have perms to reply to the author in this group".

Here is req/response that I just got from a test run:

10:00:04.671 [Gax-105] INFO  c.g.ads.googleads.lib.request.detail - FAILURE 
REQUEST DETAIL.
Request
---
MethodName: 
google.ads.googleads.v5.services.CampaignBudgetService/MutateCampaignBudgets
Endpoint: googleads.googleapis.com:443
Headers: {developer-token=REDACTED, login-customer-id=XXX, 
x-goog-api-client=gl-java/1.8.0_265 gapic/ gax/1.57.0 grpc/1.30.0}
Body: customer_id: "YYY"
operations {
  create {
status: ENABLED
delivery_method: STANDARD
name: "test-8dda91c7-6a72-40bb-aff1-de162e628786"
amount_micros: 5
explicitly_shared: false
  }
}


Response

Headers: null
Body: null
Failure message: null
Status: Status{code=UNAVAILABLE, description=io exception, 
cause=io.grpc.netty.shaded.io.netty.channel.ConnectTimeoutException: 
connection timed out: 
googleads.googleapis.com/2a00:1450:4009:818:0:0:0:200a:443
at 
io.grpc.netty.shaded.io.netty.channel.epoll.AbstractEpollChannel$AbstractEpollUnsafe$2.run(AbstractEpollChannel.java:575)
at 
io.grpc.netty.shaded.io.netty.util.concurrent.PromiseTask.runTask(PromiseTask.java:98)
at 
io.grpc.netty.shaded.io.netty.util.concurrent.ScheduledFutureTask.run(ScheduledFutureTask.java:170)
at 
io.grpc.netty.shaded.io.netty.util.concurrent.AbstractEventExecutor.safeExecute(AbstractEventExecutor.java:164)
at 
io.grpc.netty.shaded.io.netty.util.concurrent.SingleThreadEventExecutor.runAllTasks(SingleThreadEventExecutor.java:472)
at 
io.grpc.netty.shaded.io.netty.channel.epoll.EpollEventLoop.run(EpollEventLoop.java:384)
at 
io.grpc.netty.shaded.io.netty.util.concurrent.SingleThreadEventExecutor$4.run(SingleThreadEventExecutor.java:989)
at 
io.grpc.netty.shaded.io.netty.util.internal.ThreadExecutorMap$2.run(ThreadExecutorMap.java:74)
at 
io.grpc.netty.shaded.io.netty.util.concurrent.FastThreadLocalRunnable.run(FastThreadLocalRunnable.java:30)
at java.lang.Thread.run(Thread.java:748)
}.


On Tuesday, 6 October 2020 at 19:53:03 UTC+1 adsapiforumadvisor wrote:

> Hello,
>
> Thanks for reaching out. I see that you are getting intermittent errors 
> using the Google Ads API. Can you please provide detailed logs of the 
> request and response along with your customerClientId so that I can take a 
> closer look at the issue? You can enable logging by following this 
>  
> guide for your respective client library. Ensure that you provide these 
> details via the *Reply privately to author *option.
>
> Regards,
> [image: Google Logo] 
> Danica 
> Google Ads API Team 
>   
>
> ref:_00D1U1174p._5004Q25ZURW:ref
>

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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 
"AdWords API and Google Ads 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/f8b6d854-076a-4410-a158-5cbf09e7cb9fn%40googlegroups.com.


Re: Label update returns DUPLICATE_NAME

2020-10-06 Thread 'Kostas Kougios' via AdWords API and Google Ads API Forum
and managed to recreate with plain java api code (in scala, v9.0.0 of the 
java api dep, v5 of the api): 

val resource = "customers/###/labels/###" // note please ask for ids, it 
may be occurring only in certain accounts

import com.google.ads.googleads.v5.enums.LabelStatusEnum.LabelStatus
import com.google.ads.googleads.v5.resources.Label
import com.google.ads.googleads.v5.services.LabelOperation

val l = Label.newBuilder
.setName(StringValue.of("Keyword_Coverage_v4.0_Native"))
.setStatus(LabelStatus.ENABLED)
.setResourceName(resource)
.build

val op=LabelOperation.newBuilder
.setUpdate(l)
.setUpdateMask(FieldMasks.allSetFieldsOf(l))
.build

val client = clientProvider.googleAdsVersion.createLabelServiceClient

try {
client.mutateLabels(account.id.toString, Seq(op).asJava)
} finally client.close()


When I actually changed the label name, the update worked:

.setName(StringValue.of("Keyword_Coverage_v4.0_Native-UPD"))

and when I changed the name back, it now works fine:

.setName(StringValue.of("Keyword_Coverage_v4.0_Native"))

(run twice, the update now succeeds!)


On Tuesday, 6 October 2020 at 14:20:46 UTC+1 Kostas Kougios wrote:

> Ok it happened again, during an update. The update doesn't change the 
> label name:
>
> error_code {
>   label_error: DUPLICATE_NAME
> }
> message: "Label names must be unique."
> trigger {
>   string_value: "Keyword_Coverage_v4.0_Native"
>
> }
> location {
>   field_path_elements {
> field_name: "operations"
> index {
> }
>   }
>   field_path_elements {
> field_name: "*update*"
>   }
>   field_path_elements {
> field_name: "name"
>   }
> }
>
> So my label is already there when I run the update. The update doesn't 
> change the label.
>
>
> +---+---+---+
> |name   |status 
> |resource   |
>
> +---+---+---+
> |Keyword_Coverage_v4.0_Native   |ENABLED|customers/###/labels/### 
>
> I can send customer id and label id in a private msg if required.
>
>
>
>
> On Tuesday, 6 October 2020 at 10:56:33 UTC+1 Kostas Kougios wrote:
>
>> The op I did was for an
>>
>> field_path_elements {
>> field_name: "update"
>>   }
>> but it stopped happening since yesterday so I can't reproduce it now. 
>> What I tried is to retrieve an existing label and just update it without 
>> changing anything. That failed with a DUPLICATE_NAME.
>>
>> If I manage to reproduce I will post again
>> On Tuesday, 6 October 2020 at 08:12:50 UTC+1 adsapiforumadvisor wrote:
>>
>>> Hi Kostas,
>>>
>>> The error you are encountering indicates that the label you are trying 
>>> to use in your UPDATE already exists. I would recommend that you perform a 
>>> GetLabelRequest 
>>> 
>>>  
>>> initially, to validate whether the name you will be using already exists, 
>>> before using it in an UPDATE or CREATE request.
>>>
>>> If it already exists, you would need to use a different name for the 
>>> said label. Let me know if this helps.
>>>
>>> Thanks,
>>>
>>> [image: Google Logo] 
>>> Peter Laurence Napa Oliquino 
>>> Google Ads API Team 
>>>   
>>>
>>> ref:_00D1U1174p._5004Q25ZEgo:ref
>>>
>>

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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 
"AdWords API and Google Ads 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/17e4cf02-ab39-4db5-8b6d-ee176dd8c207n%40googlegroups.com.


Re: Label update returns DUPLICATE_NAME

2020-10-06 Thread 'Kostas Kougios' via AdWords API and Google Ads API Forum
Ok it happened again, during an update. The update doesn't change the label 
name:

error_code {
  label_error: DUPLICATE_NAME
}
message: "Label names must be unique."
trigger {
  string_value: "Keyword_Coverage_v4.0_Native"
}
location {
  field_path_elements {
field_name: "operations"
index {
}
  }
  field_path_elements {
field_name: "*update*"
  }
  field_path_elements {
field_name: "name"
  }
}

So my label is already there when I run the update. The update doesn't 
change the label.

+---+---+---+
|name   |status 
|resource   |
+---+---+---+
|Keyword_Coverage_v4.0_Native   |ENABLED|customers/###/labels/### 

I can send customer id and label id in a private msg if required.




On Tuesday, 6 October 2020 at 10:56:33 UTC+1 Kostas Kougios wrote:

> The op I did was for an
>
> field_path_elements {
> field_name: "update"
>   }
> but it stopped happening since yesterday so I can't reproduce it now. What 
> I tried is to retrieve an existing label and just update it without 
> changing anything. That failed with a DUPLICATE_NAME.
>
> If I manage to reproduce I will post again
> On Tuesday, 6 October 2020 at 08:12:50 UTC+1 adsapiforumadvisor wrote:
>
>> Hi Kostas,
>>
>> The error you are encountering indicates that the label you are trying to 
>> use in your UPDATE already exists. I would recommend that you perform a 
>> GetLabelRequest 
>> 
>>  
>> initially, to validate whether the name you will be using already exists, 
>> before using it in an UPDATE or CREATE request.
>>
>> If it already exists, you would need to use a different name for the said 
>> label. Let me know if this helps.
>>
>> Thanks,
>>
>> [image: Google Logo] 
>> Peter Laurence Napa Oliquino 
>> Google Ads API Team 
>>   
>>
>> ref:_00D1U1174p._5004Q25ZEgo:ref
>>
>

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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 
"AdWords API and Google Ads 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/ac69d54a-2d06-4771-8113-641fd36aa101n%40googlegroups.com.


FAILURE REQUEST SUMMARY. Method: google.ads.googleads.v5.services.GoogleAdsService/Search, Endpoint: googleads.googleapis.com:443, CustomerID: XXX, RequestID: null, ResponseCode: UNAVAILABLE, Fault: i

2020-10-06 Thread 'Kostas Kougios' via AdWords API and Google Ads API Forum

Hi,

I am occasionally get these. Some days it's quite often. Makes working with 
the api quite slow. Today it is pretty bad.

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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 
"AdWords API and Google Ads 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/ab5342aa-8518-4fea-8823-a8970ce0a720n%40googlegroups.com.


Re: Label update returns DUPLICATE_NAME

2020-10-06 Thread 'Kostas Kougios' via AdWords API and Google Ads API Forum
The op I did was for an

field_path_elements {
field_name: "update"
  }
but it stopped happening since yesterday so I can't reproduce it now. What 
I tried is to retrieve an existing label and just update it without 
changing anything. That failed with a DUPLICATE_NAME.

If I manage to reproduce I will post again
On Tuesday, 6 October 2020 at 08:12:50 UTC+1 adsapiforumadvisor wrote:

> Hi Kostas,
>
> The error you are encountering indicates that the label you are trying to 
> use in your UPDATE already exists. I would recommend that you perform a 
> GetLabelRequest 
> 
>  
> initially, to validate whether the name you will be using already exists, 
> before using it in an UPDATE or CREATE request.
>
> If it already exists, you would need to use a different name for the said 
> label. Let me know if this helps.
>
> Thanks,
>
> [image: Google Logo] 
> Peter Laurence Napa Oliquino 
> Google Ads API Team 
>   
>
> ref:_00D1U1174p._5004Q25ZEgo:ref
>

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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 
"AdWords API and Google Ads 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/c8594ced-d992-48b0-967e-09c5c5d1aaf3n%40googlegroups.com.


Label update returns DUPLICATE_NAME

2020-10-05 Thread 'Kostas Kougios' via AdWords API and Google Ads API Forum

Hi,

I am having this issue where I can't update any labels. The update doesn't 
change the label name.

My code is pretty standard I think (scala):

val g = Label.newBuilder
.setName(StringValue.of("Keyword_Coverage_v4.0_Native"))
.setStatus(LabelStatus.valueOf("ENABLED"))
.setResourceName("customers/$ACC/labels/$LABEL_ID")
.build
val fields = FieldMasks.allSetFieldsOf(g)
val op=LabelOperation.newBuilder
.setUpdate(g)
.setUpdateMask(fields)
.build
val client = clientProvider.googleAdsVersion.createLabelServiceClient
client.mutateLabels(account.id.toString,Seq(op).asJava) 

*Keyword_Coverage_v4.0_Native* exists already but I am getting this error:

[error_code {
  label_error: DUPLICATE_NAME
}
message: "Label names must be unique."
trigger {
  string_value: "Keyword_Coverage_v4.0"
}
location {
  field_path_elements {
field_name: "operations"
index {
}
  }
  field_path_elements {
field_name: "create"
  }
  field_path_elements {
field_name: "name"
  }
}
,]

Any ideas why?

Thanks

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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 
"AdWords API and Google Ads 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/8e182415-f729-4ffa-8fad-892d3940c748n%40googlegroups.com.


(java client v9.0.0) Batch Job, random "task was cancelled" on OperationFutureImpl.get()

2020-09-30 Thread 'Kostas Kougios' via AdWords API and Google Ads API Forum
Hi,

While creating batcj jobs, I am randomly getting the following exception. 2 
out of 3 times it works ok but the other 1 time the exception occurs with 
no info on what caused it. The data I send are always the same, so it can't 
be data related.

Exception in thread "main" java.util.concurrent.CancellationException: Task 
was cancelled.
at 
com.google.common.util.concurrent.AbstractFuture.cancellationExceptionWithCause(AbstractFuture.java:1377)
at 
com.google.common.util.concurrent.AbstractFuture.getDoneValue(AbstractFuture.java:551)
at 
com.google.common.util.concurrent.AbstractFuture.get(AbstractFuture.java:514)
at 
com.google.common.util.concurrent.FluentFuture$TrustedFuture.get(FluentFuture.java:86)
at 
com.google.common.util.concurrent.ForwardingFuture.get(ForwardingFuture.java:62)
at 
com.google.api.gax.longrunning.OperationFutureImpl.get(OperationFutureImpl.java:127)

My code is quite standard, create a batch job, addAllMutateOperations and 
addBatchJobOperations, 
and so on, as per 
https://developers.google.com/google-ads/api/docs/batch-processing/best-practices

Any ideas?

Thanks

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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 
"AdWords API and Google Ads 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/dedcce4a-87d8-4655-ad4c-9120a927843fn%40googlegroups.com.


(java google api client v9.0.0) Batch Job api error reporting lacking vs bulk mutate errors

2020-09-28 Thread 'Kostas Kougios' via AdWords API and Google Ads API Forum

Hi, when uploading data via the google api v5 java client and using the 
bulk mutate, I get more information i.e. policy error information when I 
upload a problematic keyword. The class returned is GoogleAdsError which 
contains ErrorDetails which in turn has PolicyViolationDetails. But when 
using the batch job api, no information on the policy is returned. Is this 
something that will be added in the future?

Note: this is what I get from the response of the batch job api:

code: 3
message: "A policy was violated. See PolicyViolationDetails for more 
detail., at 
mutate_operations[5].ad_group_criterion_operation.create.keyword.text"
details {
  type_url: 
"type.googleapis.com/google.ads.googleads.v5.errors.GoogleAdsFailure"
  value: "\n\257\001\n\003\310\006\002\022BA policy was violated. See 
PolicyViolationDetails for more 
detail.\032\f*\nrevolution\"V\022\027\n\021mutate_operations\022\002\b\005\022\036\n\034ad_group_criterion_operation\022\b\n\006create\022\t\n\akeyword\022\006\n\004text"
}


Thanks,
Kostas



-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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 
"AdWords API and Google Ads 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/57649128-ec2f-49af-aa43-2102135b634cn%40googlegroups.com.


Re: Automic Endpoint Service rpc GET raise InternalServerError

2020-08-26 Thread 'Kostas Kougios' via AdWords API and Google Ads API Forum
Same issue here using the java beta api v8.0.0

On Wednesday, 26 August 2020 at 11:22:57 UTC+1 ja...@leandigitalmedia.com 
wrote:

> We are using v4, via REST calls from PHP.
>
> Still out for us at the moment. We are making reporting calls to 
> */v4/customers/{{customer_id}}/googleAds:search* absolutely fine, but the 
> account call to */v4/customers/{{customer_id}}* is throwing this error 
> 100% of the time.
>
> On Wednesday, August 26, 2020 at 11:10:49 AM UTC+1 JP Boily wrote:
>
>> Same here, for the last 10 hours or so I would say.
>>
>> Everything else (that we use) seems to be working perfectly.
>>
>> I tried upgrading the Ruby gem, didn't change anything. I looked at the 
>> sunset dates, thinking maybe something stopped working and it could have 
>> been planned, but nope, doesn't seem like it (using v2 of the API still 
>> here).
>>
>> What are you all using in terms of API version and language/library? Just 
>> to see if it is across the board (it looks like it).
>> On Wednesday, August 26, 2020 at 3:55:30 a.m. UTC-4 hishid...@gmail.com 
>> wrote:
>>
>>>
>>> We are experiencing the same error in CustomerService calls, too.
>>>
>>>
>>> https://googleads.googleapis.com/v3/customers/{ourId}?resourceName=customers%2F{ourId}
>>>  
>>> 
>>> ”
>>>
>>> request body: (empty)
>>> response body: { "message": "Internal error encountered.", "code": 13, 
>>> "status": "INTERNAL", "details": [] }
>>>
>>> We noticed this error about 1 hour ago.
>>>
>>> Is GoogleAds API in trouble?
>>> 2020年8月26日水曜日 16:04:54 UTC+9 travis...@gmail.com:
>>>
 Hi, I found this issue today while using google-ads-python SDK:

 Try to invoke get operation on automic endpoints:
 1. CustomerService.get_customer
 2. ConversionActionService.get_conversion_action
 3. UserListService.get_user_list

 All of them raise an internal server error, e.g.

 ```
 WARNING Request made: ClientCustomerId: None, Host: 
 googleads.googleapis.com:443, Method: 
 /google.ads.googleads.v3.services.UserListService/GetUserList, RequestId: 
 None, IsFault: True, FaultMessage: Internal error encountered.
 Traceback (most recent call last):
   File 
 "/usr/local/lib/python3.7/site-packages/google/api_core/grpc_helpers.py", 
 line 57, in error_remapped_callable
 return callable_(*args, **kwargs)
   File "/usr/local/lib/python3.7/site-packages/grpc/_interceptor.py", 
 line 221, in __call__
 compression=compression)
   File "/usr/local/lib/python3.7/site-packages/grpc/_interceptor.py", 
 line 257, in _with_call
 return call.result(), call
   File "/usr/local/lib/python3.7/site-packages/grpc/_channel.py", line 
 333, in result
 raise self
   File "/usr/local/lib/python3.7/site-packages/grpc/_interceptor.py", 
 line 247, in continuation
 compression=new_compression)
   File "/usr/local/lib/python3.7/site-packages/grpc/_interceptor.py", 
 line 271, in with_call
 compression=compression)
   File "/usr/local/lib/python3.7/site-packages/grpc/_interceptor.py", 
 line 257, in _with_call
 return call.result(), call
   File "/usr/local/lib/python3.7/site-packages/grpc/_channel.py", line 
 333, in result
 raise self
   File "/usr/local/lib/python3.7/site-packages/grpc/_interceptor.py", 
 line 247, in continuation
 compression=new_compression)
   File "/usr/local/lib/python3.7/site-packages/grpc/_interceptor.py", 
 line 271, in with_call
 compression=compression)
   File "/usr/local/lib/python3.7/site-packages/grpc/_interceptor.py", 
 line 256, in _with_call
 request)
   File 
 "/usr/local/lib/python3.7/site-packages/google/ads/google_ads/interceptors/exception_interceptor.py",
  
 line 168, in intercept_unary_unary
 self._handle_grpc_failure(response)
   File 
 "/usr/local/lib/python3.7/site-packages/google/ads/google_ads/interceptors/exception_interceptor.py",
  
 line 140, in _handle_grpc_failure
 raise self._get_error_from_response(response)
   File "/usr/local/lib/python3.7/site-packages/grpc/_interceptor.py", 
 line 247, in continuation
 compression=new_compression)
   File "/usr/local/lib/python3.7/site-packages/grpc/_channel.py", line 
 837, in with_call
 return _end_unary_response_blocking(state, call, True, None)
   File "/usr/local/lib/python3.7/site-packages/grpc/_channel.py", line 
 729, in _end_unary_response_blocking
 raise _InactiveRpcError(state)
 grpc._channel._InactiveRpcError: <_InactiveRpcError of RPC that 
 terminated with:
 status = StatusCode.INTERNAL
 details = "Internal error encountered."
 debug_error_string = 
 "{"created":"@1598424644.646624727","description":"Error received from 
 peer 
 ipv4:

Re: Only fails at AddCompleteCampaignsUsingBatchJob : User doesn't have permissions to access customer

2020-08-18 Thread &#x27;Kostas Kougios&#x27; via AdWords API and Google Ads API Forum
Oh thats a shame as we based our whole architecture on the negative ids! 
Any hint on when (about) is it going to be available?

On Tuesday, 18 August 2020 at 13:03:32 UTC+1 adsapiforumadvisor wrote:

> Hello,
>
> This feature is not yet widely available. I believe that the access you're 
> missing is actually access to the batch jobs feature, *not* access to the 
> customer. Unfortunately, we are not accepting new users into this feature 
> at the current time.
>
> Please follow our blog  where we 
> announce new features to keep up to date for when this becomes more widely 
> available.
>
> Regards,
> Mike, Google Ads API Team
>
> ref:_00D1U1174p._5004Q23Jwor:ref
>

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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 
"AdWords API and Google Ads 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/024f6c7d-3a75-4549-a41e-2c341dd10686n%40googlegroups.com.


Re: Only fails at AddCompleteCampaignsUsingBatchJob : User doesn't have permissions to access customer

2020-08-17 Thread &#x27;Kostas Kougios&#x27; via AdWords API and Google Ads API Forum
Hi Brian, thanks for the reply. If the credentials didn't have access, then 
AddCampaigns example wouldn't work either right?

Btw, I am using these credentials on our codebase as well, and normal 
google beta api works fine apart from the batch job service. That's why I 
tried the google provided example of AddCompleteCampaignsUsingBatchJob 
which doesn't work either. But the AddCampaigns works. I couldn't find any 
special credentials settings for batch jobs in the UI so I assume it's the 
same credentials and the batch job api should work.
*So what I want to ask is, is there a way that AddCampaigns.java works fine 
but AddCompleteCampaignsUsingBatch*
*Job.java gets this perm issue with the same login/customer/credentials? I 
am refering to the java classes in 
https://github.com/googleads/google-ads-java 
*


On Monday, 17 August 2020 20:16:58 UTC+1, adsapiforumadvisor wrote:
>
> Hi Kostas,
>
> This error might be because your Client ID and Client Secret (user 
> credentials) don't have the correct access/permission to those accounts. 
> Could you log into the accounts for which you encounter this error and 
> click "Tools and Settings" > "Setup" > "Account Access" and check that your 
> email address that's associated with your user credentials have been given 
> correct access? If not, could you follow these steps 
>  to grant 
> yourself the correct access?
>
> Thank you,
> Bryan, Google Ads API Team
>
> ref:_00D1U1174p._5004Q23Jwor:ref
>

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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 
"AdWords API and Google Ads 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/480eaf43-2e4f-43d9-8f30-34468f93e556o%40googlegroups.com.


Re: Only fails at AddCompleteCampaignsUsingBatchJob : User doesn't have permissions to access customer

2020-08-17 Thread &#x27;Kostas Kougios&#x27; via AdWords API and Google Ads API Forum
Hi Brian, thanks for the reply. If the credentials didn't have access, then 
AddCampaigns example wouldn't work either right?

Btw, I am using these credentials on our codebase as well, and normal 
google beta api works fine apart from the batch job service. That's why I 
tried the google provided example of AddCompleteCampaignsUsingBatchJob 
which doesn't work either. But the AddCampaigns works. I couldn't find any 
special credentials settings for batch jobs in the UI so I assume it's the 
same credentials and the batch job api should work.
So what I want to ask is, is there a way that AddCampaigns.java works fine 
but AddCompleteCampaignsUsingBatchJob.java gets this perm issue with the 
sale login/customer/credentials? I am refering to the java classes in 
https://github.com/googleads/google-ads-java


On Monday, 17 August 2020 20:16:58 UTC+1, adsapiforumadvisor wrote:
>
> Hi Kostas,
>
> This error might be because your Client ID and Client Secret (user 
> credentials) don't have the correct access/permission to those accounts. 
> Could you log into the accounts for which you encounter this error and 
> click "Tools and Settings" > "Setup" > "Account Access" and check that your 
> email address that's associated with your user credentials have been given 
> correct access? If not, could you follow these steps 
>  to grant 
> yourself the correct access?
>
> Thank you,
> Bryan, Google Ads API Team
>
> ref:_00D1U1174p._5004Q23Jwor:ref
>

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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 
"AdWords API and Google Ads 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/183cd8da-eacf-4bf5-b59c-c4d682facfa9o%40googlegroups.com.


Re: Only fails at AddCompleteCampaignsUsingBatchJob : User doesn't have permissions to access customer

2020-08-17 Thread &#x27;Kostas Kougios&#x27; via AdWords API and Google Ads API Forum
Hi,

So the error I am getting from AddCompleteCampaignsUsingBatchJob is the one 
you mention: 

"Mutate job #0 has a status 'User doesn't have permission to access 
customer. Note: If you're accessing a client customer, the manager's 
customer id must be set in the 'login-customer-id' header. See 
https://developers.google.com/google-ads/api/docs/concepts/call-structure#login-customer-id'
 
and response of type 'N/A'."

This comes after the batch job completes and no data are added because it 
didn't have perms. As said AddCampaigns with the same login id/customer id 
works fine. And all these come from the google beta api usage examples at 
https://github.com/googleads/google-ads-java so it is not my code. I think 
either the example AddCompleteCampaignsUsingBatchJob class has a bug or the 
google api beta itself. Can you please advice?

On Monday, 17 August 2020 at 16:28:21 UTC+1 adsapiforumadvisor wrote:

> Hi Kostas,
>
> Thank you for the update. I see that you're running the AddCampaigns class 
> from the same project with the same login-customer-id and customer id and 
> it looks to be running okay. Could you elaborate on your error? Do you 
> encounter an error message? Can you confirm if the error message you're 
> encountering is the following:
>
>
> "Mutate job #0 has a status 'User doesn't have permission to access 
> customer. Note: If you're accessing a client customer, the manager's 
> customer id must be set in the 'login-customer-id' header. See 
> https://developers.google.com/google-ads/api/docs/concepts/call-structure#login-customer-id'
>  
> and response of type 'N/A'."
>
> If you want to send logs, could you use the "Reply privately to author" 
> for privacy?
>
>
> Thank you,
> Bryan, Google Ads API Team
>
> ref:_00D1U1174p._5004Q23Jwor:ref
>

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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 
"AdWords API and Google Ads 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/e4d7e138-dfe6-48af-8a96-30e3569a78c6n%40googlegroups.com.


Re: Only fails at AddCompleteCampaignsUsingBatchJob : User doesn't have permissions to access customer

2020-08-14 Thread &#x27;Kostas Kougios&#x27; via AdWords API and Google Ads API Forum
Hi,

In the logs I've send, the login-customer-id header is present with the 
manager id. Here it is again (replaced some digits with ). Also please 
note I am running the example code that google provides, so this is not my 
code. Are you part of the google dev team? Do you have the ability to run 
the class AddCompleteCampaignsUsingBatchJob from 
https://github.com/googleads/google-ads-java and does it work for you? Note 
that I run the AddCampaigns class from the same project with the same 
login-customer-id and customer id and it runs fine.


MethodName: 
google.ads.googleads.v4.services.BatchJobService/AddBatchJobOperations
Endpoint: googleads.googleapis.com:443
Headers: {developer-token=REDACTED, *login-customer-id=99**476,* 
x-goog-api-client=gl-java/1.8.0_265 gapic/ gax/1.57.0 grpc/1.30.0}
Body: resource_name: "customers/79976XX/batchJobs/3237X"
mutate_operations {
  campaign_budget_operation {
create {
  resource_name: "customers/7997693211/campaignBudgets/-1"
  name {
value: "Interplanetary Cruise Budget #1597437406461"
  }
  amount_micros {
value: 500
  }
  delivery_method: STANDARD
}
  }
}
mutate_operations {
  campaign_operation {
create {
  resource_name: "customers/7997693211/campaigns/-2"
  name {
value: "Mutate job campaign #1597437406577.-2"
  }
  status: PAUSED
  campaign_budget {
value: "customers/7997693211/campaignBudgets/-1"
  }
  advertising_channel_type: SEARCH
  manual_cpc {
  }
}
  }
}






On Friday, 14 August 2020 19:59:09 UTC+1, adsapiforumadvisor wrote:
>
> Hi Kostas,
>
> Thank you for the logs. I took a closer look at the full logs that you've 
> provided, but it doesn't seem to have the error from before. It looks like 
> you're encountering the error "User doesn't have permission to access 
> customer. Note: If you're accessing a client customer, the manager's 
> customer id must be set in the 'login-customer-id' header. See 
> https://developers.google.com/google-ads/api/docs/concepts/call-structure#login-customer-id";.
>  
> Could you check that for the mutate requests that failed in your batchjob 
> that you've set your manager customer ID in the login-customer-id field in 
> the header? I see you've set your customerID but not the login-customer-id. 
> Could you fill that in and give it a try?
>
> Thank you,
> Bryan, Google Ads API Team
>
>
> ref:_00D1U1174p._5004Q23Jwor:ref
>

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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 
"AdWords API and Google Ads 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/e7b2674d-35a4-4fa1-bf90-578d04d6648fo%40googlegroups.com.


Re: Only fails at AddCompleteCampaignsUsingBatchJob : User doesn't have permissions to access customer

2020-08-14 Thread &#x27;Kostas Kougios&#x27; via AdWords API and Google Ads API Forum
So I am using the class AddCompleteCampaignsUsingBatchJob from 
https://github.com/googleads/google-ads-java.git

Here is the full debug log output:


2020-08-14 01:18:36,427 INFO  [Gax-2] logging.RequestLogger 
(RequestLogger.java:157) - SUCCESS REQUEST SUMMARY. Method: 
google.ads.googleads.v4.services.BatchJobService/MutateBatchJob, Endpoint: 
googleads.googleapis.com:443, CustomerID: 7997693211, RequestID: 
3-m53T6PckaCQ33n1DOZxw, ResponseCode: OK, Fault: null.
2020-08-14 01:18:36,866 DEBUG [Gax-2] logging.RequestLogger 
(RequestLogger.java:161) - SUCCESS REQUEST DETAIL.
Request
---
MethodName: google.ads.googleads.v4.services.BatchJobService/MutateBatchJob
Endpoint: googleads.googleapis.com:443
Headers: {developer-token=REDACTED, login-customer-id=9914136476, 
x-goog-api-client=gl-java/1.8.0_265 gapic/ gax/1.57.0 grpc/1.30.0}
Body: customer_id: "7997693211"
operation {
  create {
  }
}


Response

Headers: 
Metadata(content-disposition=attachment,content-type=application/grpc,request-id=3-m53T6PckaCQ33n1DOZxw,date=Fri,
 
14 Aug 2020 08:18:36 GMT,alt-svc=h3-29=":443"; ma=2592000,h3-27=":443"; 
ma=2592000,h3-T050=":443"; ma=2592000,h3-Q050=":443"; 
ma=2592000,h3-Q046=":443"; ma=2592000,h3-Q043=":443"; 
ma=2592000,quic=":443"; ma=2592000; v="46,43")
Body: result {
  resource_name: "customers/7997693211/batchJobs/3235909511"
}

Failure message: null
Status: Status{code=OK, description=null, cause=null}.
Created a mutate job with resource name: 
'customers/7997693211/batchJobs/3235909511'.
2020-08-14 01:18:39,730 INFO  [Gax-1] logging.RequestLogger 
(RequestLogger.java:157) - SUCCESS REQUEST SUMMARY. Method: 
google.ads.googleads.v4.services.BatchJobService/AddBatchJobOperations, 
Endpoint: googleads.googleapis.com:443, CustomerID: 
customers/7997693211/batchJobs/3235909511, RequestID: 
-xXoNneTVTmkNA1k3XgY4Q, ResponseCode: OK, Fault: null.
2020-08-14 01:18:39,984 DEBUG [Gax-1] logging.RequestLogger 
(RequestLogger.java:161) - SUCCESS REQUEST DETAIL.
Request
---
MethodName: 
google.ads.googleads.v4.services.BatchJobService/AddBatchJobOperations
Endpoint: googleads.googleapis.com:443
Headers: {developer-token=REDACTED, login-customer-id=9914136476, 
x-goog-api-client=gl-java/1.8.0_265 gapic/ gax/1.57.0 grpc/1.30.0}
Body: resource_name: "customers/7997693211/batchJobs/3235909511"
mutate_operations {
  campaign_budget_operation {
create {
  resource_name: "customers/7997693211/campaignBudgets/-1"
  name {
value: "Interplanetary Cruise Budget #1597393116881"
  }
  amount_micros {
value: 500
  }
  delivery_method: STANDARD
}
  }
}
mutate_operations {
  campaign_operation {
create {
  resource_name: "customers/7997693211/campaigns/-2"
  name {
value: "Mutate job campaign #1597393116940.-2"
  }
  status: PAUSED
  campaign_budget {
value: "customers/7997693211/campaignBudgets/-1"
  }
  advertising_channel_type: SEARCH
  manual_cpc {
  }
}
  }
}
mutate_operations {
  campaign_operation {
create {
  resource_name: "customers/7997693211/campaigns/-3"
  name {
value: "Mutate job campaign #1597393116943.-3"
  }
  status: PAUSED
  campaign_budget {
value: "customers/7997693211/campaignBudgets/-1"
  }
  advertising_channel_type: SEARCH
  manual_cpc {
  }
}
  }
}
mutate_operations {
  campaign_criterion_operation {
create {
  campaign {
value: "customers/7997693211/campaigns/-2"
  }
  negative {
value: true
  }
  keyword {
text {
  value: "venus"
}
match_type: BROAD
  }
}
  }
}
mutate_operations {
  campaign_criterion_operation {
create {
  campaign {
value: "customers/7997693211/campaigns/-3"
  }
  negative {
value: true
  }
  keyword {
text {
  value: "venus"
}
match_type: BROAD
  }
}
  }
}
mutate_operations {
  ad_group_operation {
create {
  resource_name: "customers/7997693211/adGroups/-4"
  name {
value: "Mutate job ad group #1597393116970.-4"
  }
  campaign {
value: "customers/7997693211/campaigns/-2"
  }
  type: SEARCH_STANDARD
  cpc_bid_micros {
value: 1000
  }
}
  }
}
mutate_operations {
  ad_group_operation {
create {
  resource_name: "customers/7997693211/adGroups/-5"
  name {
value: "Mutate job ad group #1597393116972.-5"
  }
  campaign {
value: "customers/7997693211/campaigns/-2"
  }
  type: SEARCH_STANDARD
  cpc_bid_micros {
value: 1000
  }
}
  }
}
mutate_operations {
  ad_group_operation {
create {
  resource_name: "customers/7997693211/adGroups/-6"
  name {
value: "Mutate job ad group #1597393116972.-6"
  }
  campaign {
value: "customers/7997693211/campaigns/-3"
  }
  type: SEARCH_STANDA

Only fails at AddCompleteCampaignsUsingBatchJob : User doesn't have permissions to access customer

2020-08-13 Thread &#x27;Kostas Kougios&#x27; via AdWords API and Google Ads API Forum
Hi, I am running the AddCompleteCampaignsUsingBatchJob from the example 
java project and it prints the results:


2020-08-13 07:36:23,238 INFO  [Gax-6] logging.RequestLogger 
(RequestLogger.java:157) - SUCCESS REQUEST SUMMARY. Method: 
google.ads.googleads.v4.services.BatchJobService/ListBatchJobResults, 
Endpoint: googleads.googleapis.com:443, CustomerID: 
customers//batchJobs/3232377614, RequestID: 7_LjA7TWoDdKRXzlDwH5aA, 
ResponseCode: OK, Fault: null.
Mutate job #0 has a status 'User doesn't have permission to access 
customer. Note: If you're accessing a client customer, the manager's 
customer id must be set in the 'login-customer-id' header. See 
https://developers.google.com/google-ads/api/docs/concepts/call-structure#login-customer-id'
 
and response of type 'N/A'.
Mutate job #1 has a status 'User doesn't have permission to access 
customer. Note: If you're accessing a client customer, the manager's 
customer id must be set in the 'login-customer-id' header. See 
https://developers.google.com/google-ads/api/docs/concepts/call-structure#login-customer-id'
 
and response of type 'N/A'.
Mutate job #2 has a status 'User doesn't have permission to access 
customer. Note: If you're accessing a client customer, the manager's 
customer id must be set in the 'login-customer-id' header. See 
https://developers.google.com/google-ads/api/docs/concepts/call-structure#login-customer-id'
 
and response of type 'N/A'.


So as you can see all mutate jobs got "User doesn't have permission to 
access customer." . My login-customer-id and customer-id are set correctly 
and I know that because I run AddCampaigns and GetAccountInformation with 
the same GoogleAdsClient initialization (same credentials and 
setLoginCustomerId). 
So the AddCompleteCampaignsUsingBatchJob class should run correctly but it 
doesn't. I just pulled today the examples, so I should have the latest.

Any idea what may be wrong?

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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 
"AdWords API and Google Ads 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/c6e3c7c0-c4db-4310-9db3-bc4ddc8ec7b0n%40googlegroups.com.