Do ads ever get automatically paused?

2022-12-01 Thread Harsha Nandiwada
Just a general question - for any reason, would Google ever automatically 
pause an ad? i.e. move the ad_group_ad status into the paused state? Just 
wanted to double check.

Thanks,
Harsha

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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 
"Google Ads API and AdWords 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/9e75a4f0-3e5c-470f-8601-685bb130f920n%40googlegroups.com.


Re: ocid in https://adwords.google.com URL's

2022-07-21 Thread Harsha Nandiwada
+1 We need this feature as well, whether it's OCID or some other way to 
link to this page
https://ads.google.com/aw/overview?ocid=xxx=xxx&__u=xxx=xxx&__c=xxx=0=xxx
The closest I can get is 
https://ads.google.com/aw/overview?ocid==0=xxx
but that still relies on OCID.

On Tuesday, May 24, 2022 at 6:03:21 AM UTC-5 rajkow...@gmail.com wrote:

> I made better workaround, than I posted above with PHP.
>
> You can do it faster by JS:
>
> 
> // Open settings/sub-account settings 
> https://ads.google.com/aw/settings/subaccounts
> // SET: Show rows:500
> // Scroll to the bottom of page to get all stuff loaded to the memory
> // Open developer tools (CTRL + SHIFT + J)
> // Paste code into developer console:
>
> // START
> var ocid = document.querySelector('html').innerHTML;
> var matches = 
> Array.from(ocid.matchAll(/]+>([^<]+)<\/a><\/div>
> class="[^"]+">([^<]+)/g)); > var output = []; > matches.forEach(element => { > var customer_id = element[3].replaceAll('-',''); > var ocid = element[1]; > var name = element[2]; > output.push(customer_id + ';' + ocid + ';' + name); > }); > output = output.join("\n"); > copy(output); > // END > > // now, you have first 500 accounts copied to clipboard in following > format: customer_id ; ocid ; name > // by Kamil Rajkowski > > > On Monday, March 28, 2022 at 8:47:54 PM UTC+2 adsapi wrote: > >> Hello, >> >> The UI is subject to change at any time, so there's no guarantee a deep >> link from today would work tomorrow. Therefore, we don't recommend scraping >> to construct deep links. The ocid also isn't relevant in any API context, >> so we don't expose it in the API. We have had a few feature requests for >> deep linking again recently, and the team is considering it. However, I >> cannot comment on our future plans with any certainty. >> >> Regards, >> Mike, Google Ads API Team >> >> ref:_00D1U1174p._5001UHEIuy: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 "Google Ads API and AdWords 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/eef10c53-bdda-41d2-97c4-b35d26e028c1n%40googlegroups.com.

Same ad ID in different campaigns

2022-07-13 Thread Harsha Nandiwada
Hi,
I am querying a customer's ad data and I'm seeing the same ad ID showing up 
in different campaigns + ad groups. I'm wondering how this is possible and 
what the unique identifier for an ad is. I'm failing to recreate the same 
behavior with ad variations. Why is this happening, and how do I 
differentiate between the two ad instances?
My query is below.
SELECT
ad_group_ad.ad.id,
ad_group_ad.ad.name,
ad_group_ad.ad.type,
ad_group_ad.status,
ad_group_ad.ad.final_urls,
ad_group_ad.policy_summary.approval_status,
ad_group_ad.policy_summary.policy_topic_entries,
ad_group.id,
campaign.id,
ad_group_ad.ad.legacy_responsive_display_ad.short_headline,
ad_group_ad.ad.text_ad.headline,
ad_group_ad.ad.expanded_text_ad.headline_part1,
ad_group_ad.ad.expanded_text_ad.headline_part2,
ad_group_ad.ad.expanded_text_ad.headline_part3
FROM ad_group_ad

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 
"Google Ads API and AdWords 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/9aea624c-5fb9-4f91-9c20-4cb658bc2e89n%40googlegroups.com.


Re: Campign Status

2022-07-06 Thread Harsha Nandiwada
Hi,
I would also like to get Eligible, etc from the API. Has there been any 
progress on this front, or in the newest version? I don't see anything like 
"Limited by budget" in the API docs.
Thanks!

On Thursday, September 3, 2020 at 3:06:10 PM UTC-4 Google Ads API Forum 
Advisor Prod wrote:

> Hi Deepak,
>
> Thanks for reaching out. With regards to your concern, you can use 
> campaign.serving_status 
> 
>  to 
> get pending and ended status.
>
> Unfortunately, there is no field in the API that will show you whether a 
> campaign is Limited by budget or not. You will need to gather this data 
> from the Google Ads UI.
>
> Thanks,
> [image: Google Logo] 
> Nirmitabahen Gaurav Patel 
> Google Ads API Team 
>   
>
> ref:_00D1U1174p._5004Q23wt31: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 
"Google Ads API and AdWords 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/9d720d2a-b6d2-43db-a8ac-058b6abd9cdan%40googlegroups.com.


Re: keyword.ad_group_criterion wrongly being included

2022-05-06 Thread Harsha Nandiwada
Update: upgraded to v10! I added the parameter and it passes validation, 
but the criterion is still showing up.

On Friday, May 6, 2022 at 10:14:46 AM UTC-7 Harsha Nandiwada wrote:

> Hi,
> I'm making a query for ad_group_ad and for some reason, the segmentation 
> is including fields I did not query for. Specifically, I'm getting back 
> keyword.ad_group_criterion. 
> This is my query:
> SELECT
>   ad_group_ad.ad.id,
>   ad_group_ad.ad.name,
>   ad_group_ad.ad.type,
>   ad_group.id,
>   ad_group.name,
>   ad_group.status,
>   ad_group.type,
>   campaign.id,
>   campaign.name,
>   segments.date,
>   segments.keyword.info.text,
>   metrics.impressions,
>   metrics.clicks,
>   metrics.conversions,
>   metrics.conversions_value,
>   metrics.interactions,
>   metrics.cost_micros
> FROM ad_group_ad
> WHERE segments.date DURING {'LAST_30_DAYS' if long_lookback else 
> 'TODAY'}
> AND ad_group.type != SHOPPING_SMART_ADS
> ORDER BY segments.date
>
> and this is the first row of my results:
> campaign {
>   resource_name: "customers/5484439197 <(548)%20443-9197>/campaigns/
> 14042339226 <(404)%20233-9226>"
>   name: "Leads-Search-1"
>   id: 14042339226 <(404)%20233-9226>
> }
> ad_group {
>   resource_name: "customers/5484439197 <(548)%20443-9197>
> /adGroups/127758315960"
>   status: ENABLED
>   type_: SEARCH_STANDARD
>   id: 127758315960
>   name: "Main_Ad_Group"
> }
> metrics {
>   clicks: 0
>   conversions_value: 0.0
>   conversions: 0.0
>   cost_micros: 0
>   impressions: 2
>   interactions: 0
> }
> ad_group_ad {
>   resource_name: "customers/5484439197 <(548)%20443-9197>
> /adGroupAds/127758315960~535905305969"
>   ad {
> type_: RESPONSIVE_SEARCH_AD
> resource_name: "customers/5484439197 <(548)%20443-9197>
> /ads/535905305969"
> id: 535905305969
>   }
> }
> segments {
>   keyword {
> info {
>   text: "ecommerce metrics"
> }
> ad_group_criterion: "customers/5484439197 <(548)%20443-9197>
> /adGroupCriteria/127758315960~91570650"
>   }
>   date: "2022-05-06"
> }
> Why am I getting this extra segment, and how do I stop getting it? I tried 
> adding the line 
> PARAMETERS omit_unselected_resource_names = true
> to the end of the query, but I got this error:
> WARNING:google.ads.googleads.client:Request made: ClientCustomerId: 
> 5484439197 <(548)%20443-9197>, Host: googleads.googleapis.com, Method: 
> /google.ads.googleads.v8.services.GoogleAdsService/SearchStream, RequestId: 
> EuINCwMyKDUUzT6xWCTTeA, IsFault: True, FaultMessage: Invalid parameter name 
> cannot be included in PARAMETERS clause: 'omit_unselected_resource_names'.
> ERROR:root:Exception: (<_SingleThreadedRendezvous of RPC that terminated 
> with:
> status = StatusCode.INVALID_ARGUMENT
> details = "Request contains an invalid argument."
> debug_error_string = 
> "{"created":"@1651855789.324534000","description":"Error received from peer 
> ipv4:142.250.72.202:443","file":"src/core/lib/surface/call.cc","file_line":1075,"grpc_message":"Request
>  
> contains an invalid argument.","grpc_status":3}"
> >, <_SingleThreadedRendezvous of RPC that terminated with:
> status = StatusCode.INVALID_ARGUMENT
> details = "Request contains an invalid argument."
> debug_error_string = 
> "{"created":"@1651855789.324534000","description":"Error received from peer 
> ipv4:142.250.72.202:443","file":"src/core/lib/surface/call.cc","file_line":1075,"grpc_message":"Request
>  
> contains an invalid argument.","grpc_status":3}"
> >, errors {
>   error_code {
> query_error: BAD_PARAMETER_NAME
>   }
>   message: "Invalid parameter name cannot be included in PARAMETERS 
> clause: \'omit_unselected_resource_names\'."
>

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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 
"Google Ads API and AdWords 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/b07c83a7-d3ed-4130-aff0-58986f151a5fn%40googlegroups.com.


keyword.ad_group_criterion wrongly being included

2022-05-06 Thread Harsha Nandiwada
Hi,
I'm making a query for ad_group_ad and for some reason, the segmentation is 
including fields I did not query for. Specifically, I'm getting back 
keyword.ad_group_criterion. 
This is my query:
SELECT
  ad_group_ad.ad.id,
  ad_group_ad.ad.name,
  ad_group_ad.ad.type,
  ad_group.id,
  ad_group.name,
  ad_group.status,
  ad_group.type,
  campaign.id,
  campaign.name,
  segments.date,
  segments.keyword.info.text,
  metrics.impressions,
  metrics.clicks,
  metrics.conversions,
  metrics.conversions_value,
  metrics.interactions,
  metrics.cost_micros
FROM ad_group_ad
WHERE segments.date DURING {'LAST_30_DAYS' if long_lookback else 
'TODAY'}
AND ad_group.type != SHOPPING_SMART_ADS
ORDER BY segments.date

and this is the first row of my results:
campaign {
  resource_name: "customers/5484439197/campaigns/14042339226"
  name: "Leads-Search-1"
  id: 14042339226
}
ad_group {
  resource_name: "customers/5484439197/adGroups/127758315960"
  status: ENABLED
  type_: SEARCH_STANDARD
  id: 127758315960
  name: "Main_Ad_Group"
}
metrics {
  clicks: 0
  conversions_value: 0.0
  conversions: 0.0
  cost_micros: 0
  impressions: 2
  interactions: 0
}
ad_group_ad {
  resource_name: "customers/5484439197/adGroupAds/127758315960~535905305969"
  ad {
type_: RESPONSIVE_SEARCH_AD
resource_name: "customers/5484439197/ads/535905305969"
id: 535905305969
  }
}
segments {
  keyword {
info {
  text: "ecommerce metrics"
}
ad_group_criterion: 
"customers/5484439197/adGroupCriteria/127758315960~91570650"
  }
  date: "2022-05-06"
}
Why am I getting this extra segment, and how do I stop getting it? I tried 
adding the line 
PARAMETERS omit_unselected_resource_names = true
to the end of the query, but I got this error:
WARNING:google.ads.googleads.client:Request made: ClientCustomerId: 
5484439197, Host: googleads.googleapis.com, Method: 
/google.ads.googleads.v8.services.GoogleAdsService/SearchStream, RequestId: 
EuINCwMyKDUUzT6xWCTTeA, IsFault: True, FaultMessage: Invalid parameter name 
cannot be included in PARAMETERS clause: 'omit_unselected_resource_names'.
ERROR:root:Exception: (<_SingleThreadedRendezvous of RPC that terminated 
with:
status = StatusCode.INVALID_ARGUMENT
details = "Request contains an invalid argument."
debug_error_string = 
"{"created":"@1651855789.324534000","description":"Error received from peer 
ipv4:142.250.72.202:443","file":"src/core/lib/surface/call.cc","file_line":1075,"grpc_message":"Request
 
contains an invalid argument.","grpc_status":3}"
>, <_SingleThreadedRendezvous of RPC that terminated with:
status = StatusCode.INVALID_ARGUMENT
details = "Request contains an invalid argument."
debug_error_string = 
"{"created":"@1651855789.324534000","description":"Error received from peer 
ipv4:142.250.72.202:443","file":"src/core/lib/surface/call.cc","file_line":1075,"grpc_message":"Request
 
contains an invalid argument.","grpc_status":3}"
>, errors {
  error_code {
query_error: BAD_PARAMETER_NAME
  }
  message: "Invalid parameter name cannot be included in PARAMETERS clause: 
\'omit_unselected_resource_names\'."

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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 
"Google Ads API and AdWords 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/aaeed803-a9c2-4b35-a11c-f6e7e91c5060n%40googlegroups.com.


Re: Keywords and Smart Shopping

2022-03-25 Thread Harsha Nandiwada
[Replied in an email but not sure if that's visible, so reposting here]
Hi,
This is the first time we've encountered Smart Shopping campaigns, so we 
haven't seen this work with other Smart Shopping campaigns. But, it would 
be great if the query didn't return empty because a queried field didn't 
exist; for example, if we got 
results {
  campaign {
resource_name: "customers/6638032144/campaigns/13575782069"
name: "Smart Campaign | Flyport USB Hubs"
  }
  ad_group {
resource_name: "customers/6638032144/adGroups/127398983241"
status: ENABLED
name: "Ad group"
  }
  metrics {
clicks: 26
conversions_value: 0.0
conversions: 0.0
cost_micros: 2739
impressions: 5471
interactions: 26
  }
  ad_group_ad {
resource_name: 
"customers/6638032144/adGroupAds/127398983241~528586995568"
ad {
  resource_name: "customers/6638032144/ads/528586995568"
  id: 528586995568
}
  }
 
  segments {
date: "2022-03-25"
 *keyword {*
*info {*
*   text: "" OR None, etc.*
*}*
* }*
  }
}
for an ad group without a keyword.
More generally - if a queried record (ad_group_ad) does not have a field 
that we asked for (like keyword.info.text), is there a way to fill it in 
with a default value rather than excluding it entirely? Or, is there a 
well-known workaround for this? Do you have a recommended path forward?
Thanks,
Harsha

On Friday, March 25, 2022 at 6:09:16 AM UTC-7 adsapi wrote:

> Hi Harsha,
>
> Thanks for reaching out. Smart shopping campaigns use product groups 
> instead of keywords, so using a keyword segment in your query will not 
> return any results in your report. Have other smart shopping campaigns 
> returned results using the keyword text segment?
>
> Thanks,
> Matt
> Google Ads API Team
>
> [image: Google Logo] 
> Matt 
> Google Ads API Team 
>   
>
> ref:_00D1U1174p._5004Q2YrFyb: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 
"Google Ads API and AdWords 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/dc383477-8523-4c2a-bd4e-9ac4ed9ac93an%40googlegroups.com.


Keywords and Smart Shopping

2022-03-24 Thread Harsha Nandiwada
Hi,
I'm trying to get metrics on the level of ad_group_ad. We use the below 
query:
query = """
SELECT
  ad_group_ad.ad.id,
  ad_group_ad.ad.name,
  ad_group.name,
  ad_group.status,
  campaign.name,
  segments.date,
  segments.keyword.info.text,
  metrics.impressions,
  metrics.clicks,
  metrics.conversions,
  metrics.conversions_value,
  metrics.interactions,
  metrics.cost_micros
FROM ad_group_ad
WHERE segments.date DURING TODAY
ORDER BY segments.date
"""
This works in general, but for one customer in particular, it returns an 
empty array. The query returns a full list when we move the 
segments.keyword.info.text 
section. The customer only uses Smart Shopping campaigns.
I'm wondering if there is a way to get the full list, WITHOUT removing the 
keyword query. Is there some way to get a default empty value if there are 
no keywords etc? Is there a solution to this sort of problem that you've 
seen before?

Thanks,
Harsha Nandiwada

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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 
"Google Ads API and AdWords 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/acdafe68-0ac7-448c-b1a7-2f5f20fc9bc8n%40googlegroups.com.