Find the original asset when getting error: CANNOT_MODIFY_ASSET_NAME when uploading duplicate image

2021-05-29 Thread Антон Бендриков
Hello,

when trying to create a new image asset, if the image with the same hash 
already exists, the following error is returned:

error_code: "CANNOT_MODIFY_ASSET_NAME"
message: "The asset has a name which is different from an existing 
duplicate that represents the same content".

Is there any way to find out the resource_name of the asset that is already 
uploaded?
assets.image_data.data is not available to be SELECTed via reporting and 
querying assets using "WHERE assets.image_data.data = " 
seems to return an empty result.

Is there another way I can find out what is the resource_name of the asset 
that is already uploaded (and is conflicting with the new upload)?

For reference, example request payload I am using to upload an image asset:
{
  image_asset: {
data: "",
mime_type: "IMAGE_PNG"
  },
  name: "Image qPCcjU56Ae",
  type: "IMAGE"
}

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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/3f5a444a-2016-4b0e-83ea-4a789abef3d8n%40googlegroups.com.


Re: Error when creating Display Campaign - CANNOT_ATTACH_BIDDING_STRATEGY_TO_CAMPAIGN: Cannot attach bidding strategy to campaign.

2021-05-26 Thread Антон Бендриков
Apologies, I thought I had checked that before posting...

Switching to bidding strategy:
{
  name: "Bidding Strategy (GJkF)",
  target_spend: {}
}

Worked.

Thank you!

On Wednesday, 26 May 2021 at 15:51:43 UTC+1 adsapiforumadvisor wrote:

> Hello,
>
> It appears that the bid strategy that you are trying to apply to your 
> display campaign is MAXIMIZE_CONVERSIONS. As you can see in this reference 
> page 
> ,
>  
> MAXIMIZE_CONVERSIONS works only with Search campaigns. You will need to use 
> a strategy that is compatible with display campaigns.
>
> Regards,
> Anthony
>
> [image: Google Logo] 
> Anthony 
> Google Ads API Team 
>   
>
> ref:_00D1U1174p._5004Q2HxvUa: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/1d79c2bf-7898-41ba-b1b7-d803b0081e7an%40googlegroups.com.


Error when creating Display Campaign - CANNOT_ATTACH_BIDDING_STRATEGY_TO_CAMPAIGN: Cannot attach bidding strategy to campaign.

2021-05-26 Thread Антон Бендриков
Hello,

when attempting to create a Display Campaign with advertising_channel_type 
"DISPLAY", I get the following error:

error_code: {bidding_error: "CANNOT_ATTACH_BIDDING_STRATEGY_TO_CAMPAIGN"}
message: "Cannot attach bidding strategy to campaign."
trigger: {string_value: ""}

Campaign parameters:
{
  advertising_channel_type: "DISPLAY",
  bidding_strategy: "customers/1275322088/biddingStrategies/7743946871",
  campaign_budget: "customers/1275322088/campaignBudgets/8782279878",
  name: "Test Campaign",
  start_date: "2021-05-26"
}

The Bidding Strategy is created before that successfully:
{
  maximize_conversions: {},
  name: "Test Campaign Bidding Strategy (f4eX)"
}

Campaign Budget:
{
  amount_micros: 2300,
  name: "Test Campaign Campaign Budget (9Yk7)"
}

---

This works if I use advertising_channel_type "SEARCH", for example.

Am I using the wrong type bidding strategy? I tried different ones but 
couldn't find one that seems to work.

Or is the issue elsewhere?

Thank you!

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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/37517432-bac5-4bc1-9fab-d15a6ae339e9n%40googlegroups.com.


Re: Querying aggregated metrics for custom intervals

2020-11-20 Thread Антон Бендриков
I realised I don't actually have data to test this with (don't think test 
ads accounts can have any data on them and my app is not yet allowed to 
work with live accouts).

So I will just assume that this works as expected (the docs seem pretty 
convincing) and close this.

tl;dr
If you want to have functionality similar to what you would normally have 
with a 'GROUP BY' in a typical sql-like query -- add the segment that you 
want to 'group by' as part of your SELECT condition.

On Thursday, 19 November 2020 at 20:56:12 UTC adsapiforumadvisor wrote:

> Hi Антон,
>
> Thank you for reaching out. Yes, this is correct. Please let us know if 
> you have any further concerns.
>
>
>
> Thanks and regards,
> Xiaoming, Google Ads API Team
>
> [image: Google Logo] 
> Xiaoming 
> Google Ads API Team 
>   
>
> ref:_00D1U1174p._5004Q27ulap: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/c356e33e-e13f-4944-8a1a-ae1ce1055b8bn%40googlegroups.com.


Re: Querying aggregated metrics for custom intervals

2020-11-19 Thread Антон Бендриков
Hello,

thank you for the answer! Ah so this looks to me like I can effectively do 
`SELECT segments.date` to achieve the `GROUP BY` functionality I want.

Will test later and post if this helped.
On Wednesday, 18 November 2020 at 20:39:21 UTC adsapiforumadvisor wrote:

> Hi Антон,
>
> Thank you for reaching out. You could actually fetch data for a date range 
> in one query via the Google Ads API. You could use date-related segment 
> fields 
> 
>  
> to implement the query.
>
> Thanks and regards,
> Xiaoming, Google Ads API Team
>
>  
> [image: Google Logo] 
> Xiaoming 
> Google Ads API Team 
>   
>
> ref:_00D1U1174p._5004Q27ulap: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/ea1895fc-ddee-4bdb-b13a-82ca04aac1c2n%40googlegroups.com.


Querying aggregated metrics for custom intervals

2020-11-18 Thread Антон Бендриков
Description:
for the purposes of an example, lets say I have an Ad Group. I want to know 
how many impressions/clicks/other metrics I received on this Ad Group in 
the last 7 days (or any other from X to Y interval) daily (or hourly, or 
any other aggregate criteria).

Problem:
as far as I can tell, to satisfy the request above, I need to make X 
requests to the google ads api (where X is the number of days in my 
interval). There is no way to receive all of the data I want in a single 
query.

If it is possible, could someone point me in the direction of how to do 
that?

If it is not possible, I think this sort of query is reasonable and the API 
should provide a better way of getting this information.

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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/56f69b9d-7bdc-4c9f-b6bf-64e191634c38n%40googlegroups.com.