Re: creating an audience and link it to an existing ad group of type video using the api

2024-07-26 Thread chaima braiek
Hi again,

Is it possible to use this service in the case of a campaign of type Video? 
And is there any example using the API to have it as a reference?

Thank you.

On Thursday, July 25, 2024 at 5:38:16 PM UTC+2 Google Ads API Forum Advisor 
wrote:

> Hi,
>
> Thank you for reaching out to the Google Ads API support team.
>
> I would recommend that you refer to this guide 
> 
>  
> where AdGroupCriterionService 
> 
>  
> lets you specify targeting at the ad group level using 
> CombinedAudienceInfo 
> 
> . 
>
> Hope this helps. If you have any more queries, please feel free to get 
> back to us.
>   
>
>
> *This message is in relation to case "ref:!00D1U01174p.!5004Q02vE8W0:ref" 
> (ADR-00259582) Thanks,*
>   
> [image: Google Logo] *Google Ads API Team* 
> *Register 
>  for 
> the upcoming workshop: Performance Max and the Google Ads API!*
>  
>
>
>

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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/1b356226-e3bc-4922-bc84-210f645d6e5dn%40googlegroups.com.


Getting FaultMessage: Too Many

2024-07-26 Thread Pratham Chauhan
Hey there I am getting FaultMessage: Too Many when adding more than 4 ads 
in the ad group using google sdk python  and FaultMessage: Too few when 
adding less than 3 ads in the ad group using google sdk python.
code :
import argparse
import sys
import uuid
import pandas as pd
from google.ads.googleads.client import GoogleAdsClient
from google.ads.googleads.errors import GoogleAdsException

def main(client, customer_id, df):
"""Creates ad group ads from a dataframe.

Args:
client: an initialized GoogleAdsClient instance.
customer_id: a client customer ID.
df: a dataframe containing ad group names, headlines, and descriptions.
"""
ad_group_ad_service = client.get_service("AdGroupAdService")

# Group the rows by ad group
grouped = df.groupby('Ad Group')

for ad_group_name, group in grouped:
print(f"Creating ads for ad group: {ad_group_name}")
ad_group_ad_operation = client.get_type("AdGroupAdOperation")
ad_group_ad = ad_group_ad_operation.create
ad_group_ad.status = client.enums.AdGroupAdStatusEnum.ENABLED
ad_group_ad.ad_group = ad_group_name

# Set responsive search ad info
ad_group_ad.ad.final_urls.append("https://www.example.com/";)

# Collect headlines and descriptions
headlines = []
descriptions = []
for _, row in group.iterrows():
headline = row['Headline']
description = row['Description']
headlines.append(create_ad_text_asset(client, headline))
descriptions.append(create_ad_text_asset(client, description))
# Ensure there are at least 3 headlines and 2 descriptions
while len(headlines) < 3:
headlines.append(create_ad_text_asset(client, "Default Headline"))
while len(descriptions) < 2:
descriptions.append(create_ad_text_asset(client, "Default Description"))

# Add headlines and descriptions to the ad
ad_group_ad.ad.responsive_search_ad.headlines.extend(headlines)
ad_group_ad.ad.responsive_search_ad.descriptions.extend(descriptions)

# Send a request to the server to add a responsive search ad
ad_group_ad_response = ad_group_ad_service.mutate_ad_group_ads(
customer_id=customer_id, operations=[ad_group_ad_operation]
)

for result in ad_group_ad_response.results:
print(
f"Created responsive search ad with resource name "
f'"{result.resource_name}".'
)


def create_ad_text_asset(client, text, pinned_field=None):
"""Create an AdTextAsset.

Args:
client: an initialized GoogleAdsClient instance.
text: text for headlines and descriptions.
pinned_field: to pin a text asset so it always shows in the ad.

Returns:
An AdTextAsset.
"""
ad_text_asset = client.get_type("AdTextAsset")
ad_text_asset.text = text
if pinned_field:
ad_text_asset.pinned_field = pinned_field
return ad_text_asset

if __name__ == "__main__":
parser = argparse.ArgumentParser(
description=("Creates Responsive Search Ads for specified customer.")
)
# The following argument(s) should be provided to run the example.
parser.add_argument(
"-c",
"--customer_id",
type=str,
required=True,
help="The Google Ads customer ID.",
)
args = parser.parse_args()

# GoogleAdsClient will read the google-ads.yaml configuration file in the
# home directory if none is specified.
googleads_client = GoogleAdsClient.load_from_storage(version="v17", path=
"./google-ads.yaml")

try:
# Load the dataframe from the provided CSV file
df = pd.read_csv("ads_df.csv")

main(
googleads_client,
args.customer_id,
df,
)
except GoogleAdsException as ex:
print(
f'Request with ID "{ex.request_id}" failed with status '
f'"{ex.error.code().name}" and includes the following errors:'
)
for error in ex.failure.errors:
print(f'Error with message "{error.message}".')
if error.location:
for field_path_element in error.location.field_path_elements:
print(f"\t\tOn field: {field_path_element.field_name}")
sys.exit(1)


-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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/d2e7bfce-0f01-41b3-b924-bd8024eb5c71n%40googlegroups.com.


RE: how can i obtain 'ad asset status and reason?

2024-07-26 Thread 'Google Ads API Forum Advisor' via Google Ads API and AdWords API Forum
Hi,

Thank you for reaching out to the Google Ads API support team.

I would suggest you try the below query to retrieve the status of the asset 
using the ad_group_ad_asset_view report. The AdGroupAdAssetView currently 
supports AppAds and Responsive Search Ads.

SELECT asset.id, asset.name, asset.policy_summary.approval_status, 
asset.policy_summary.review_status FROM ad_group_ad_asset_view

Additionally, you can utilize the Google Ads Query Builder and Query Validator 
to build and validate the queries for retrieving the data.

If this is not what you are looking for, kindly share us with the uncropped 
screenshot of the Google Ads account with visible customer ID by highlighting 
the fields you would like to retrieve it via the Google Ads API.
This message is in relation to case "ref:!00D1U01174p.!5004Q02vE9mI:ref" 
(ADR-00259656)

Thanks,

Google Ads API Team

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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/LNkXB0SH8CKW00qDdXfjPVSGqOZeuENgPMJQ%40sfdc.net.


RE: creating search campaign with target cpa - operation_not_permitted_for_context error

2024-07-26 Thread 'Google Ads API Forum Advisor' via Google Ads API and AdWords API Forum
Hi,

Thank you for contacting the Google Ads API support team.

I understand that you are getting OPERATION_NOT_PERMITTED_FOR_CONTEXT error, to 
assist you further please provide us with complete API request and response 
logs with request-id and request header generated at your end.

If you are using a client library and haven't enabled the logging yet, I would 
request you to enable logging for the specific client library that you are 
using. You can refer to the guides Java, .Net, PHP, Python, Ruby or Perl to 
enable logging at your end. For REST interface requests, you can enable logging 
via the curl command by using the -i flag.

You can send the details via Reply privately to the author option, or direct 
private reply to this email.

This message is in relation to case "ref:!00D1U01174p.!5004Q02tJPSL:ref" 
(ADR-00242811)

Thanks,

Google Ads API Team

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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/izCJJ0SH8HOO00hMV3hl7BSPKdVy7ros0mpQ%40sfdc.net.


E.164 Format for Enhanced Leads

2024-07-26 Thread Amc oudomthin
Hello,

We're working on sending enhanced leads via the API. We're using NodeJS, so 
we're using the rest API - not an existing library.

We wanted to validate that we are formatting our phone numbers correctly.

Specially, the library we've been using to parse a phone number and return 
it as E.164 returns zero spaces.  I.e. the format for a US phone number is: 
"+1551234".

The "no spaces rule" does not seem to be required by Google, however.  If 
you look at the python example of normalizing and hashing a phone number 
,
 
you'll see the number has spaces: "+1 800 5550102".

This obviously hashes to a different value:

"+1 800 5550102" => 
"5b0ab2d6e32d4073681bf36498ad2d32f7a1289629710fe0052f300af19646dc"

"+1800550102" => 
"c5383c2eeada28210d27f011bc127d4f9562cf38ff0c9bba33dd45ae79b9fe7c"

*What is the correct way to normalize a phone number for enhanced leads?*

Thank you,
Amc

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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/e6436104-b67a-43bb-b9b5-f992f6ab46edn%40googlegroups.com.


Re: creating an audience and link it to an existing ad group of type video using the api

2024-07-26 Thread 'Google Ads API Forum Advisor' via Google Ads API and AdWords API Forum
Hi,

You may try to use the CampaignCriterionService for your use case. By default, 
a new campaign won't include YouTube video or channel criteria; only negative 
criteria are supported at the campaign level.

I hope it helps.

This message is in relation to case "ref:!00D1U01174p.!5004Q02vE8W0:ref" 
(ADR-00259582)

Thanks,

Google Ads API Team


Register for the upcoming workshop: Performance Max and the Google Ads API!

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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/-lrH90SH8KQ900S9ufFVlaSpirh99qYpk5yQ%40sfdc.net.


RE: getting faultmessage: too many

2024-07-26 Thread 'Google Ads API Forum Advisor' via Google Ads API and AdWords API Forum
Hi,

Thank you for contacting the Google Ads API team.

Kindly note that the provided code snippet will not be sufficient to address 
your issue. So to assist you further on fault message issues, kindly provide 
the complete API logs (request and response with request-id and request header) 
generated at your end where you are observing the said fault messages so that 
we can assist you accordingly.

Kindly note that you have to enable logging if you are using a client library. 
You can refer to the Python guides to enable logging on your end. For REST 
interface requests, you can enable logging via the curl command by using the -i 
flag.

You can send the details via the Reply privately to the author option or a 
direct private reply to this email.

This message is in relation to case "ref:!00D1U01174p.!5004Q02vEADT:ref" 
(ADR-00259700)

Thanks,

Google Ads API Team


Register for the upcoming workshop: Performance Max and the Google Ads API!

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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/hLVCG0SH8L4300n0FKw-YdTeS-SD8bQkTSkA%40sfdc.net.


Acquiring Developer Token without active Manager account

2024-07-26 Thread koy nithida
Dear Google Ads API team, 

In order to interact with the Google Ads API KeywordPlanService to get 
historical keywords, a developer token is required. There are quite some 
prerequisites for obtaining such token as can be read from the docs (link 

).

Would it be possible to receive a Developer token without an active Google 
Ads manager account, given the following use case? 

We believe that there's a lot of value in providing historical keywords 
data to companies/brands, in which they can find insights on how they 
compare with competition split by geography. This could potentially lead to 
an optimisation in google ads spend. 

To sum up, we have two questions:
1. Is there a way to recieve a developer token to consult companies on 
their competiveness per region?
2. How can we make sure this use case does not violate the 'permissible 
use' policy (link 

)

I look forward to hearing from you,
Koy.

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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/7bca2ef0-642e-43a6-97dc-d5da2343055dn%40googlegroups.com.


The Standard Access request urgent

2024-07-26 Thread ougus chittavong
Hello. We have our application stopped for sales as we do not have standard 
access as we have received many customers in the last few days. Could you 
please prioritize? My MCC is 573-769-7662

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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/4c87be88-3330-4e08-83fe-40c1c64a5fdbn%40googlegroups.com.


RE: the standard access request urgent

2024-07-26 Thread 'Google Ads API Forum Advisor' via Google Ads API and AdWords API Forum
Hi,

Thank you for reaching out to the Google Ads API support team.

Could you confirm if you have applied for the standard access to your developer 
token? If not, I would suggest you apply using this form link. If you have 
already applied, then kindly note that this support channel specializes in 
Google Ads API related concerns and technical implementations only. However, as 
it appears that your issue is related to standard access with the Google Ads 
API developer token, I would suggest you to reach out to the Google Ads 
Compliance team as they are better equipped to assist you on this.

This message is in relation to case "ref:!00D1U01174p.!5004Q02vEB2l:ref" 
(ADR-00259768)

Thanks,

Google Ads API Team

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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/ilQ9V0SH8Q2600JLfoozWyTpyKLEOoHPJeZA%40sfdc.net.


Limit on Account Level Exclusion List

2024-07-26 Thread manivong innirat
The resource for Google Ads IP exclusions(
https://support.google.com/google-ads/answer/2456098?hl=en) mentions a 
limit in Campaign Level to 500 IPs to the exclusion list, Is there any 
limit present like this in the Account Level view for a domain in Google 
Ads?

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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/2a3575f1-110f-4779-bf6b-d4f66f117592n%40googlegroups.com.


Manual Payments from API?

2024-07-26 Thread Kyle
Hi Team,

Is it possible to use the API to make manual payments to our client's add 
accounts with the funds coming from our agency bank account?

I would like to manual payments to appear in the client accounts 
essentially as ad credit.

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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/75837bc8-12f4-4d79-bdfc-6153d4e5815bn%40googlegroups.com.