Re: Retrieving Draft/Experiment Ad Groups

2021-12-10 Thread 'Google Ads API Forum Advisor' via AdWords API and Google Ads API Forum
Hey Will,

Yes, the field mask helper is actually pretty simple. You can also pass None as 
one of the paramters, and it will compare the other object to a blank version 
of the same type. I just did some simple experimentation and it doesn't seem as 
though it handles oneof fields (like bidding strategy) very well. For example, 
if I compare a campaign with manual_cpc.enhanced_cpc_enabled = True to another 
campaign with manual_cpm set to {} it doesn't acknowledge the change in field, 
it just seems to think that manual_cpc has been unset.

In general the way to unset any field (in your case, to remove the resource 
name for a portfolio bidding strategy) is to leave the field blank and manually 
add the field to the update_mask. The API will see that you intend to update 
that field, see that it's blank, and assume you meant to return it to it's 
default value, in this case an empty string. At some point in the distant 
future I'd like for the update_mask logic to be more implicit and require no 
manual intervention, but that's unlikely to happen any time soon.

If you have any more questions or issues related to this, please feel free to 
add another issue to the GitHub repo.

Thanks,
Ben, Google Ads API Team
ref:_00D1U1174p._5004Q2Rw2hc: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/t9GV80R3WWV000Ygi-4JKzQzSC_ZG5b5S32Q%40sfdc.net.


Re: Retrieving Draft/Experiment Ad Groups

2021-12-10 Thread Will Schymik
Thanks Ben!

Adding the field mask appending to the documentation would be awesome.

It also seems odd to me that using the old campaign as the base object in 
the field mask helper caused issues. I would expect this is the intended 
way of creating a field mask (comparing the new values to old values), 
however in this case the API was resistant to the explicit removal of the 
bidding_strategy field even though another one of the unioned fields was 
added. I would expect this might be more of an issue with the API that 
isn't worth addressing explicitly in the SDK?

Will

On Friday, December 10, 2021 at 11:34:19 AM UTC-5 adsapi wrote:

> Hi Will,
>
> Thanks for letting us know. Nadine passed this issue along to me as I'm 
> the maintainer of the Python client library. I see you also posted a 
> related issue to that repo, which is great, I'll respond there as well. 
> Meanwhile will let you know that this is a known behavior of the field mask 
> helper. When comparing two protobuf messages to generate field mask, the 
> field mask helper can't tell the difference between a field that is not 
> set, and a field is set to its default value (i.e. 0 is the default for 
> most numeric fields). So in such a case, you would need to manually append 
> this field to the field mask. 
>
> I noticed that our documentation 
> 
>  
> doesn't specify this, so I'll get this updated ASAP.
>
> Thanks!
> Ben, Google Ads API Team
>
>
> ref:_00D1U1174p._5004Q2Rw2hc: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/dae27310-f5e3-4b35-a00d-59205d6ed4a8n%40googlegroups.com.


Re: Retrieving Draft/Experiment Ad Groups

2021-12-10 Thread 'Google Ads API Forum Advisor' via AdWords API and Google Ads API Forum
Hi Will,

Thanks for letting us know. Nadine passed this issue along to me as I'm the 
maintainer of the Python client library. I see you also posted a related issue 
to that repo, which is great, I'll respond there as well. Meanwhile will let 
you know that this is a known behavior of the field mask helper. When comparing 
two protobuf messages to generate field mask, the field mask helper can't tell 
the difference between a field that is not set, and a field is set to its 
default value (i.e. 0 is the default for most numeric fields). So in such a 
case, you would need to manually append this field to the field mask.

I noticed that our documentation doesn't specify this, so I'll get this updated 
ASAP.

Thanks!
Ben, Google Ads API Team
ref:_00D1U1174p._5004Q2Rw2hc: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/0ZRKg0R3WRCS002byNRfACQ968a9i6gt7Qfg%40sfdc.net.


Re: Retrieving Draft/Experiment Ad Groups

2021-12-07 Thread Will Schymik
I finally figured this out! The key is to not have "bidding_strategy" in 
the update mask and only "manual_cpc.enhanced_cpc_enabled". This seems to 
work.

For the python library I had to update the protobuf_helper.field_mask 
helper method to compare against None instead of the original object and 
then add "manual_cpc.enhanced_cpc_enabled" manually to the field mask using 
field_mask.paths.append as it does not appear there when 
"enhanced_cpc_enabled" is set to false or is not present.

The issue with "manual_cpc.enhanced_cpc_enabled" not appearing in the field 
mask should definitely be addressed. 

Cheers!

On Tuesday, December 7, 2021 at 9:19:20 AM UTC-5 Will Schymik wrote:

> Thank you!
>
> On Monday, December 6, 2021 at 7:50:45 PM UTC-5 adsapi wrote:
>
>> Hello Will,
>>
>> I'm checking with someone on the team to see if they know more about this.
>>
>> Cheers,
>>   
>> [image: Google Logo] 
>> Nadine Wang 
>> Google Ads API Team 
>> Reminder: Share your feedback about the Google Ads (AdWords) API! Take 
>> the 2021 Google Ads API and AdWords API Annual Survey 
>>  
>>
>>
>> ref:_00D1U1174p._5004Q2Rw2hc: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/4fc01c7c-749e-434e-92d9-7407284b172dn%40googlegroups.com.


Re: Retrieving Draft/Experiment Ad Groups

2021-12-07 Thread Will Schymik
Thank you!

On Monday, December 6, 2021 at 7:50:45 PM UTC-5 adsapi wrote:

> Hello Will,
>
> I'm checking with someone on the team to see if they know more about this.
>
> Cheers,
>   
> [image: Google Logo] 
> Nadine Wang 
> Google Ads API Team 
> Reminder: Share your feedback about the Google Ads (AdWords) API! Take the 
> 2021 
> Google Ads API and AdWords API Annual Survey 
>  
>
>
> ref:_00D1U1174p._5004Q2Rw2hc: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/1fc55624-32c9-4fbd-9ee9-76fb2b4ea5bbn%40googlegroups.com.


Re: Retrieving Draft/Experiment Ad Groups

2021-12-06 Thread 'Google Ads API Forum Advisor' via AdWords API and Google Ads API Forum
Hello Will,

I'm checking with someone on the team to see if they know more about this.

Cheers,

Nadine Wang
Google Ads API Team

Reminder: Share your feedback about the Google Ads (AdWords) API! Take the 2021 
Google Ads API and AdWords API Annual Survey
ref:_00D1U1174p._5004Q2Rw2hc: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/7lBa10R3PRZ800IbDjy6QsTC2PbDAzebWZIw%40sfdc.net.


Re: Retrieving Draft/Experiment Ad Groups

2021-12-03 Thread Will Schymik
Thanks for the response!

Setting "enhanced_cpc_enabled = True" does seem to add it to the field 
mask, however I was able to figure out how to do this manually. Even with 
it added to the field mask I am getting the issue with removing the 
bidding_strategy field as noted above.

In regards to "That field can only be deleted by replacement with another 
of the union fields." - the documentation shows that manual_cpc is another 
one of the union fields. Shouldn't I be able to remove bidding_strategy 
while I am setting manual_cpc?

My current request body that is getting the FIELD_CANNOT_BE_CLEARED 
response is:

  update {

resource_name: "customers/REDACTED/campaigns/REDACTED"

status: PAUSED

manual_cpc {

  enhanced_cpc_enabled: true

}

dynamic_search_ads_setting {

}

name: "Test Campaign1638572728"

campaign_budget: "customers/REDACTED/campaignBudgets/REDACTED"

  }

  update_mask {

paths: "bidding_strategy"

paths: "manual_cpc.enhanced_cpc_enabled"

  }

On Friday, December 3, 2021 at 12:46:56 PM UTC-5 adsapi wrote:

> Hi Will, 
>
> The 'bidding strategy 
> '
>  
> field is one of the possible union fields of campaign_bidding_strategy 
> .
>  
> That field can only be deleted by replacement with another of the union 
> fields.
>
>
> Regards,
>
> [image: Google Logo] 
> Aryeh Baker 
> Google Ads API Team 
>   
>
> ref:_00D1U1174p._5004Q2Rw2hc: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/73a4cb2e-5462-4795-8bcc-848c1b579005n%40googlegroups.com.


Re: Retrieving Draft/Experiment Ad Groups

2021-12-03 Thread 'Google Ads API Forum Advisor' via AdWords API and Google Ads API Forum
Hi Will,

The 'bidding strategy' field is one of the possible union fields of 
campaign_bidding_strategy. That field can only be deleted by replacement with 
another of the union fields.

Regards,

Aryeh Baker
Google Ads API Team
ref:_00D1U1174p._5004Q2Rw2hc: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/Ng5Dp0R3JW1U00_cMpSrSPQASmO1HXtI1etw%40sfdc.net.


Re: Retrieving Draft/Experiment Ad Groups

2021-12-03 Thread 'Google Ads API Forum Advisor' via AdWords API and Google Ads API Forum
Hi Will,

Thank you for sharing your log privately. I replicated your issue using 
update_campaign.py. We have a guide to Setting Empty Message Objects as Fields 
that shows how to create a manual_cpc strategy without enabling enhanced cpc. 
The modification I did based on that guide was I added underneath the line:

campaign.status = client.enums.CampaignStatusEnum.PAUSED

the lines:

manual_cpc = client.get_type('ManualCpc')
client.copy_from(campaign.manual_cpc,manual_cpc)

When I ran this the bidding strategy didn't change to a manual cpc and the 
update mask didn't register manual_cpc. When I used the following line unstead:

campaign.manual_cpc.enhanced_cpc_enabled = True

​​​The update mask had "manual_cpc.enhanced_cpc_enabled" in it.

Let me bring this up with my team. We will get back to you a soon as possible.


Regards,

Aryeh Baker
Google Ads API Team
ref:_00D1U1174p._5004Q2Rw2hc: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/qDUOe0R3JVSB00Ny_sRlu8TdCYTkN4S3q97g%40sfdc.net.


Re: Retrieving Draft/Experiment Ad Groups

2021-12-03 Thread Will Schymik
Was able to update the field mask manually. Am running into issues clearing 
the bidding_strategy from the campaign. I had thought getting manual_cpc in 
the field mask might resolve this and is has not. I am getting the 
following response:

error_code {

field_error: FIELD_CANNOT_BE_CLEARED

  }

  message: "The field cannot be cleared."

  location {

field_path_elements {

  field_name: "operations"

  index: 0

}

field_path_elements {

  field_name: "update"

}

field_path_elements {

  field_name: "bidding_strategy"

}

  }

On Thursday, December 2, 2021 at 3:48:21 PM UTC-5 Will Schymik wrote:

> Seems as if the issue I am running into is the same one discussed in this 
> post but for the python library: 
> https://groups.google.com/g/adwords-api/c/GB4sReLzky4/m/_gk6ifgvBwAJ
>
> Currently trying to figure out how to manually update the field mask to 
> add these values. If anyone has any pointers as to how to do this in python 
> I would appreciate it.
>
> On Thursday, December 2, 2021 at 2:37:56 PM UTC-5 Will Schymik wrote:
>
>> I am using the python SDK, and it seems as if when I specify manual_cpc 
>> on the campaign it does not appear on the field mask when I use the 
>> suggested protobuf_helpers.field_mask to construct it:
>>
>> protobuf_helpers.field_mask(None, campaign._pb)
>>
>> It does however appear in the resulting campaign_operation when I copy 
>> the update_mask into it. For example here is what the resulting operation 
>> looks like:
>>
>> update {
>>
>>   resource_name: "customers/REDACTED/campaigns/REDACTED"
>>
>>   status: PAUSED
>>
>>   manual_cpc {
>>
>> enhanced_cpc_enabled: false
>>
>>   }
>>
>>   dynamic_search_ads_setting {
>>
>>   }
>>
>>   name: "Test Campaign1638491806"
>>
>>   campaign_budget: "customers/REDACTED/campaignBudgets/REDACTED"
>>
>> }
>>
>> update_mask {
>>
>>   paths: "resource_name"
>>
>>   paths: "name"
>>
>>   paths: "status"
>>
>>   paths: "campaign_budget"
>>
>> }
>>
>>
>> On Thursday, December 2, 2021 at 11:45:56 AM UTC-5 Will Schymik wrote:
>>
>>> Sent a "reply to author" with the requests for creating and updating the 
>>> campaign. Let me know if you did not receive it as I cannot seem to figure 
>>> out where the message is viewed.
>>>
>>> On Thursday, December 2, 2021 at 10:29:26 AM UTC-5 adsapi wrote:
>>>
 Hi Will,

 I was able to change from portfolio bidding to standard bidding by just 
 entering a standard bid and update mask of the standard bid to the new bid 
 strategy. To address your use case, could you privately send us a request 
 and response log of API communication that returns this error? 

 The request and response appears similar to the JSON Mappings in our 
 REST documentation 
 .
  
 Our client libraries have loggers with logging instructions, to see these 
 instructions you can click on the client library you use in the sidebar of 
 our client library guide 
  and 
 click on "Logging". Setting the logger to 'DEBUG' will get the desired log.


 Regards,

 [image: Google Logo] 
 Aryeh Baker 
 Google Ads API Team 
   

 ref:_00D1U1174p._5004Q2Rw2hc: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/c9709a90-17d2-4739-9dff-e02163c57d2cn%40googlegroups.com.


Re: Retrieving Draft/Experiment Ad Groups

2021-12-02 Thread Will Schymik
Seems as if the issue I am running into is the same one discussed in this 
post but for the python 
library: https://groups.google.com/g/adwords-api/c/GB4sReLzky4/m/_gk6ifgvBwAJ

Currently trying to figure out how to manually update the field mask to add 
these values. If anyone has any pointers as to how to do this in python I 
would appreciate it.

On Thursday, December 2, 2021 at 2:37:56 PM UTC-5 Will Schymik wrote:

> I am using the python SDK, and it seems as if when I specify manual_cpc on 
> the campaign it does not appear on the field mask when I use the suggested 
> protobuf_helpers.field_mask to construct it:
>
> protobuf_helpers.field_mask(None, campaign._pb)
>
> It does however appear in the resulting campaign_operation when I copy the 
> update_mask into it. For example here is what the resulting operation looks 
> like:
>
> update {
>
>   resource_name: "customers/REDACTED/campaigns/REDACTED"
>
>   status: PAUSED
>
>   manual_cpc {
>
> enhanced_cpc_enabled: false
>
>   }
>
>   dynamic_search_ads_setting {
>
>   }
>
>   name: "Test Campaign1638491806"
>
>   campaign_budget: "customers/REDACTED/campaignBudgets/REDACTED"
>
> }
>
> update_mask {
>
>   paths: "resource_name"
>
>   paths: "name"
>
>   paths: "status"
>
>   paths: "campaign_budget"
>
> }
>
>
> On Thursday, December 2, 2021 at 11:45:56 AM UTC-5 Will Schymik wrote:
>
>> Sent a "reply to author" with the requests for creating and updating the 
>> campaign. Let me know if you did not receive it as I cannot seem to figure 
>> out where the message is viewed.
>>
>> On Thursday, December 2, 2021 at 10:29:26 AM UTC-5 adsapi wrote:
>>
>>> Hi Will,
>>>
>>> I was able to change from portfolio bidding to standard bidding by just 
>>> entering a standard bid and update mask of the standard bid to the new bid 
>>> strategy. To address your use case, could you privately send us a request 
>>> and response log of API communication that returns this error? 
>>>
>>> The request and response appears similar to the JSON Mappings in our 
>>> REST documentation 
>>> .
>>>  
>>> Our client libraries have loggers with logging instructions, to see these 
>>> instructions you can click on the client library you use in the sidebar of 
>>> our client library guide 
>>>  and 
>>> click on "Logging". Setting the logger to 'DEBUG' will get the desired log.
>>>
>>>
>>> Regards,
>>>
>>> [image: Google Logo] 
>>> Aryeh Baker 
>>> Google Ads API Team 
>>>   
>>>
>>> ref:_00D1U1174p._5004Q2Rw2hc: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/74963ea4-c77b-47ed-9630-9158538aa6a8n%40googlegroups.com.


Re: Retrieving Draft/Experiment Ad Groups

2021-12-02 Thread Will Schymik
I am using the python SDK, and it seems as if when I specify manual_cpc on 
the campaign it does not appear on the field mask when I use the suggested 
protobuf_helpers.field_mask to construct it:

protobuf_helpers.field_mask(None, campaign._pb)

It does however appear in the resulting campaign_operation when I copy the 
update_mask into it. For example here is what the resulting operation looks 
like:

update {

  resource_name: "customers/REDACTED/campaigns/REDACTED"

  status: PAUSED

  manual_cpc {

enhanced_cpc_enabled: false

  }

  dynamic_search_ads_setting {

  }

  name: "Test Campaign1638491806"

  campaign_budget: "customers/REDACTED/campaignBudgets/REDACTED"

}

update_mask {

  paths: "resource_name"

  paths: "name"

  paths: "status"

  paths: "campaign_budget"

}


On Thursday, December 2, 2021 at 11:45:56 AM UTC-5 Will Schymik wrote:

> Sent a "reply to author" with the requests for creating and updating the 
> campaign. Let me know if you did not receive it as I cannot seem to figure 
> out where the message is viewed.
>
> On Thursday, December 2, 2021 at 10:29:26 AM UTC-5 adsapi wrote:
>
>> Hi Will,
>>
>> I was able to change from portfolio bidding to standard bidding by just 
>> entering a standard bid and update mask of the standard bid to the new bid 
>> strategy. To address your use case, could you privately send us a request 
>> and response log of API communication that returns this error? 
>>
>> The request and response appears similar to the JSON Mappings in our 
>> REST documentation 
>> .
>>  
>> Our client libraries have loggers with logging instructions, to see these 
>> instructions you can click on the client library you use in the sidebar of 
>> our client library guide 
>>  and 
>> click on "Logging". Setting the logger to 'DEBUG' will get the desired log.
>>
>>
>> Regards,
>>
>> [image: Google Logo] 
>> Aryeh Baker 
>> Google Ads API Team 
>>   
>>
>> ref:_00D1U1174p._5004Q2Rw2hc: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/c055c2ef-51ef-4163-9471-5d5d3fd1e019n%40googlegroups.com.


Re: Retrieving Draft/Experiment Ad Groups

2021-12-02 Thread Will Schymik
Sent a "reply to author" with the requests for creating and updating the 
campaign. Let me know if you did not receive it as I cannot seem to figure 
out where the message is viewed.

On Thursday, December 2, 2021 at 10:29:26 AM UTC-5 adsapi wrote:

> Hi Will,
>
> I was able to change from portfolio bidding to standard bidding by just 
> entering a standard bid and update mask of the standard bid to the new bid 
> strategy. To address your use case, could you privately send us a request 
> and response log of API communication that returns this error? 
>
> The request and response appears similar to the JSON Mappings in our REST 
> documentation 
> .
>  
> Our client libraries have loggers with logging instructions, to see these 
> instructions you can click on the client library you use in the sidebar of 
> our client library guide 
>  and 
> click on "Logging". Setting the logger to 'DEBUG' will get the desired log.
>
>
> Regards,
>
> [image: Google Logo] 
> Aryeh Baker 
> Google Ads API Team 
>   
>
> ref:_00D1U1174p._5004Q2Rw2hc: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/44ccd51a-8571-4dd3-bd0e-8ff09466bdf7n%40googlegroups.com.


Re: Retrieving Draft/Experiment Ad Groups

2021-12-02 Thread 'Google Ads API Forum Advisor' via AdWords API and Google Ads API Forum
Hi Will,

I was able to change from portfolio bidding to standard bidding by just 
entering a standard bid and update mask of the standard bid to the new bid 
strategy. To address your use case, could you privately send us a request and 
response log of API communication that returns this error?

The request and response appears similar to the JSON Mappings in our REST 
documentation. Our client libraries have loggers with logging instructions, to 
see these instructions you can click on the client library you use in the 
sidebar of our client library guide and click on "Logging". Setting the logger 
to 'DEBUG' will get the desired log.

Regards,

Aryeh Baker
Google Ads API Team
ref:_00D1U1174p._5004Q2Rw2hc: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/XuZ4E0R3HV0K00a4spMVe8Sa2SPG7nUVwTfg%40sfdc.net.


Re: Retrieving Draft/Experiment Ad Groups

2021-12-01 Thread Will Schymik
For reference I am using the 
following: 
https://developers.google.com/google-ads/api/reference/rpc/v9/CampaignOperation#update

On Wednesday, December 1, 2021 at 3:35:14 PM UTC-5 Will Schymik wrote:

> Sure, the issue I am currently having trouble with is transitioning a 
> campaign from a Portfolio Bidding Strategy to a Standard Bidding Strategy. 
> I am performing an update on the campaign, setting the correct fields for 
> the standard bidding strategy, and trying various methods of setting the 
> bidding strategy to empty (null, empty string). The campaign always stays 
> associated with the old portfolio strategy. 
>
> Ultimately what I am asking is how do you disassociate a portfolio bidding 
> strategy from a campaign without reassociating it with a new one?
>
> Thanks,
> Will
>
> On Wednesday, December 1, 2021 at 12:40:07 PM UTC-5 adsapi wrote:
>
>> Hi Will,
>>
>> Is there anything else you need support for in Ads API?
>>
>>
>> Reminder: Share your feedback about the Google Ads (AdWords) API! Take 
>> the 2021 Google Ads API and AdWords API Annual Survey 
>> 
>>  
>> Regards, 
>> [image: Google Logo] 
>> Aryeh Baker 
>> Google Ads API Team 
>>   
>>
>> ref:_00D1U1174p._5004Q2Rw2hc: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/d71df306-b6db-4955-b02d-92ec12a72616n%40googlegroups.com.


Re: Retrieving Draft/Experiment Ad Groups

2021-12-01 Thread Will Schymik
Sure, the issue I am currently having trouble with is transitioning a 
campaign from a Portfolio Bidding Strategy to a Standard Bidding Strategy. 
I am performing an update on the campaign, setting the correct fields for 
the standard bidding strategy, and trying various methods of setting the 
bidding strategy to empty (null, empty string). The campaign always stays 
associated with the old portfolio strategy. 

Ultimately what I am asking is how do you disassociate a portfolio bidding 
strategy from a campaign without reassociating it with a new one?

Thanks,
Will

On Wednesday, December 1, 2021 at 12:40:07 PM UTC-5 adsapi wrote:

> Hi Will,
>
> Is there anything else you need support for in Ads API?
>
>
> Reminder: Share your feedback about the Google Ads (AdWords) API! Take the 
> 2021 
> Google Ads API and AdWords API Annual Survey 
> 
>  
> Regards, 
> [image: Google Logo] 
> Aryeh Baker 
> Google Ads API Team 
>   
>
> ref:_00D1U1174p._5004Q2Rw2hc: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/82fbdb3a-03b8-4585-b2a9-07d68b9f16fcn%40googlegroups.com.


Re: Retrieving Draft/Experiment Ad Groups

2021-12-01 Thread 'Google Ads API Forum Advisor' via AdWords API and Google Ads API Forum
Hi Will,

Is there anything else you need support for in Ads API?

Reminder: Share your feedback about the Google Ads (AdWords) API! Take the 2021 
Google Ads API and AdWords API Annual Survey

Regards,

Aryeh Baker
Google Ads API Team
ref:_00D1U1174p._5004Q2Rw2hc: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/IHaFQ0R3G6EF00IO-6nDvKSw-egW_1b48UzQ%40sfdc.net.


Re: Retrieving Draft/Experiment Ad Groups

2021-11-30 Thread Will Schymik
If anyone runs into this you need to add the following to your query after 
the WHERE clause:

PARAMETERS include_drafts=true

On Thursday, November 25, 2021 at 3:32:25 AM UTC-5 adsapi wrote:

> Hi Will,
>
> Thanks for reaching out to us.
>
> Kindly note that you may need to differentiate an experiment campaign and 
> a base campaign in your search query by selecting campaign.experiment_type, 
> which will be BASE, DRAFT, or EXPERIMENT to differentiate the type of 
> campaign. You may refer to this *guide* 
>  
> in order to retrieve the identifiers of child objects of a draft campaign 
> for reporting on experiments.
>
> Also, note that we are currently working on a replacement for the 
> experiments feature, which will require you to update your code once it is 
> ready. We estimate that the feature will be released around February of 
> 2022. If you are considering migrating to or implementing experiments, keep 
> in mind that there will be upcoming work in order to continue using the 
> feature once the replacement is ready. There will be a window of 
> approximately three months where both approaches are supported during which 
> you can migrate. If you only use or plan to use drafts, your workflow will 
> be unaffected.
>
> Let us know if you have any further questions.
>
> Regards,
> Reminder: Share your feedback about the Google Ads (AdWords) API! Take the 
> 2021 
> Google Ads API and AdWords API Annual Survey 
> 
>  
> [image: Google Logo] 
> Yasar 
> Google Ads API Team 
>   
>
> ref:_00D1U1174p._5004Q2Rw2hc: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/a4172638-95f3-4743-a8a9-d73999bc07c3n%40googlegroups.com.


RE: Retrieving Draft/Experiment Ad Groups

2021-11-25 Thread 'Google Ads API Forum Advisor' via AdWords API and Google Ads API Forum
Hi Will,

Thanks for reaching out to us.

Kindly note that you may need to differentiate an experiment campaign and a 
base campaign in your search query by selecting campaign.experiment_type, which 
will be BASE, DRAFT, or EXPERIMENT to differentiate the type of campaign. You 
may refer to this guide in order to retrieve the identifiers of child objects 
of a draft campaign for reporting on experiments.

Also, note that we are currently working on a replacement for the experiments 
feature, which will require you to update your code once it is ready. We 
estimate that the feature will be released around February of 2022. If you are 
considering migrating to or implementing experiments, keep in mind that there 
will be upcoming work in order to continue using the feature once the 
replacement is ready. There will be a window of approximately three months 
where both approaches are supported during which you can migrate. If you only 
use or plan to use drafts, your workflow will be unaffected.

Let us know if you have any further questions.

Regards,
Reminder: Share your feedback about the Google Ads (AdWords) API! Take the 2021 
Google Ads API and AdWords API Annual Survey

Yasar
Google Ads API Team
ref:_00D1U1174p._5004Q2Rw2hc: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/4SKSF0R34D1I00arpPK2kvQzOMwvIVGqwZWA%40sfdc.net.


Retrieving Draft/Experiment Ad Groups

2021-11-24 Thread Will Schymik
Hello,

I am currently using the API to create and update Campaign Experiments. I 
would like to update draft content in the Ad Group and Ad, however am 
running into trouble programmatically retrieving the identifiers of the 
draft Ad Group to perform modifications. When I create a new draft Campaign 
I am able to see that a new Ad Group is created from looking in the 
console, however when I query the ad_group view I only see the original Ad 
Group and not the draft. The same issue happens when I create an experiment 
as the experiment's Ad Groups do not show up in the ad_group view either. I 
am performing the below query that includes no filters:

SELECT
ad_group.id,
ad_group.resource_name,
ad_group.name,
ad_group.status,
ad_group.tracking_url_template,
ad_group.final_url_suffix,
ad_group.type,
campaign.id
FROM ad_group

Is there another way that I am supposed to be able to programmatically 
retrieve the identifiers of child objects of a draft campaign?

Thanks,
Will

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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/5107482a-c972-4093-bdd2-f4ad74ff5916n%40googlegroups.com.