RE: Change Campaigns Target-ROAS

2019-04-09 Thread googleadsapi-forumadvisor via AdWords API and Google Ads API Forum
Hello Michael, That's right. Please refer to this code sample to update an Ad group. Thanks, Bharani, Google Ads API Team =~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~ Also f

Re: Change Campaigns Target-ROAS

2019-04-09 Thread Michael Ladewig
Hello Bharani, thank you very much. That worked fine. To understand the point of field mask, to i only have to reference the resource, i want to mutate? In my case, it was "campaign". If i want to update an AdGroup, the field mask is fm = protobuf_helpers.field_mask(None, ad_group) ? Thanks Mi

RE: Change Campaigns Target-ROAS

2019-04-05 Thread googleadsapi-forumadvisor via AdWords API and Google Ads API Forum
Hello Michael, Regret the delay. I was checking with the team regarding this. The FIELD_NOT_FOUND error is because the field mask is incorrect. You can also calculate this using fm = protobuf_helpers.field_mask(None, campaign) Please refer to our code sample

Re: Change Campaigns Target-ROAS

2019-04-04 Thread Michael Ladewig
As a additional information, i can read the campaigns target-ROAS via GoogleAdsService. the requested field is campaign.target_roas.target_roas and ist returns 4.0 as a valid Value, as the campaign has a target-ROAS of 400%. I think, my API-Call isn't correct, but the best example, i found, was

Re: Change Campaigns Target-ROAS

2019-04-04 Thread Michael Ladewig
Hello Bharani, Conversion is configured and this campaign has 46 Conversions during the last 30 days. Are there any other Parameter, that have to match? I changed the error-throwing command to: campaign.target_roas.target_roas.value = 3.7 and the error changed to: google.ads.google_ads.error

RE: Change Campaigns Target-ROAS

2019-04-03 Thread googleadsapi-forumadvisor via AdWords API and Google Ads API Forum
Hello Michael, Can you make sure that your campaign is meeting the eligibility requirements as mentioned in this help center article ? It could be one of the reasons as to why the error is being triggered. Thanks, Bharani, Google Ads API Tea

Change Campaigns Target-ROAS

2019-04-03 Thread Michael Ladewig
Hey guys, I'm trying to change the target-ROAS of a specific campaign with the following Python snippet: campaign_service = google_ads_client.get_service('CampaignService', version='v1') campaign_operation = google_ads_client.get_type('CampaignOperation', version='v1') campaign = campaign_oper