How to deal with CONCURRENT_MODIFICATION

2019-04-26 Thread F B
I am creating Responsive Text Ads in parallel (multithreaded python 
application), where all of them are distinct and only one per AdGroup. 

However, oftentimes I get an Error that states that two requests were 
trying to modify the same Ressource concurrently. This - on the first look 
- makes no sense to me, could it be that this is triggered, because the Ads 
are in the same campaign and are therefore indirectly modifying the same 
resource (i.e. campaign)?

Also how would the problem be solved?

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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.
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/1e43317f-9659-4925-aced-c32afda48df2%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


RE: How to deal with CONCURRENT_MODIFICATION

2019-04-26 Thread googleadsapi-forumadvisor via AdWords API and Google Ads API Forum


Hi,

The DatabaseError.CONCURRENT_MODIFICATION
  
error

that you are encountering could occur due to multiple processes are trying
to update the same entity at the same time. This said, the reason why you
are seeing the error is because multiple processes are trying to update an
ad, and the campaign of the ad (*Ads are in the same campaign*) should not
be the cause of this error. With this, you may try to investigate if
there's multiple processes that are trying to update an ad.

Please let me know if you have further clarifications.

Regards,
Hiroyuki
Google Ads API Team

On 04/26/19 17:03:59 fbos...@gmail.com wrote:

I am creating Responsive Text Ads in parallel (multithreaded python
application), where all of them are distinct and only one per AdGroup.

However, oftentimes I get an Error that states that two requests were
trying to modify the same Ressource concurrently. This - on the first look
- makes no sense to me, could it be that this is triggered, because the Ads
are in the same campaign and are therefore indirectly modifying the same
resource (i.e. campaign)?

Also how would the problem be solved?

--
--
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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.
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/1e43317f-9659-4925-aced-c32afda48df2%40googlegroups.com

.
For more options, visit https://groups.google.com/d/optout.

--
--
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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.
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/12f0gccabg008l5ar60026sinuw6omj4dho60o30c1g68r30dpl%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.