Re: Get list of Affinity Categories and In-market categories

2020-01-17 Thread Harry
With AdWords API I can get the complete list of in-market audience 
categories with this 
code: 
ConstantDataService.getUserInterestCriterion(ConstantDataServiceUserInterestTaxonomyType.IN_MARKET);
Is there a similar way to get the full list of affinity categories using 
AdWords API?



On Friday, January 17, 2020 at 1:16:53 PM UTC-8, adsapiforumadvisor wrote:
>
> Hello Pietro,
>
> Thank you for reaching out. If you are looking to retrieve the affinity 
> categories, 'CUSTOM_INTENT' and 'CUSTOM_AFFINITY' via Google Ads API Beta, 
> you could use the custom_interest 
>  
> resource to retrieve this data. Let us know if you have any additional 
> concerns.
>
> Regards,
> Nikisha Patel, Google Ads API Team
>
>
> ref:_00D1U1174p._5001USwkIB: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/cb7d2581-3d81-413c-9938-cbffc15fb94e%40googlegroups.com.


RE: Convert Google-Ads API GoogleAdsRow object to a dictionary or something useful to end up in a .CSV?

2020-01-17 Thread Google Ads API Forum Advisor Prod
Hello James,

With regards to your concern, if you are using our client libraries, it is not 
possible to retrieve the data in .csv format. However, as an alternative you 
could use the cURL operation to get the output in JSON format which can be 
further converted to csv by implementing the logic on your end. Please refer to 
this guide for more details on how to interact with Google Ads API using cURL. 
Please give this a try and let me know if you have any further questions.

Regards,
Nikisha Patel, Google Ads API Team
ref:_00D1U1174p._5001USwkbX: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/5_WEQ0Q49SIL00xLFTwf30RL-C7qT4PigHBQ%40sfdc.net.


RE: Get list of Affinity Categories and In-market categories

2020-01-17 Thread Google Ads API Forum Advisor Prod
Hello Pietro,

Thank you for reaching out. If you are looking to retrieve the affinity 
categories, 'CUSTOM_INTENT' and 'CUSTOM_AFFINITY' via Google Ads API Beta, you 
could use the custom_interest resource to retrieve this data. Let us know if 
you have any additional concerns.

Regards,
Nikisha Patel, Google Ads API Team
ref:_00D1U1174p._5001USwkIB: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/u6z9c0Q49SFG00jNaDR59ITfWazHEjVFOCNA%40sfdc.net.


Re: Traffic Estimation Service Data for Search campaign

2020-01-17 Thread Pradeep Datla

As i dont have maxCPC from the user , Can i average the avgCPC of the 
keywords user selected from "TargetingIdeaService" and send it as maxCPC.* 
Is this the right way to guess maxCPC value? *
also *please suggest* if there is any alternative to comeup with a maxCPC 
value to get the traffic estimation

-Pradeep Datla.

On Friday, January 17, 2020 at 10:17:06 AM UTC-8, adsapiforumadvisor wrote:
>
> Hi Pradeep,
>
> Thank you for reaching out. As explained here 
> ,
>  
> the TrafficEstimatorService is meant to mimic the keyword planner in the UI 
> so the values you are getting are the expected values. Unfortunately, there 
> is no way to retrieve the daily estimates from the screenshot you provided.
>
> Regards,
> Mitchell
> Google Ads API Team
>
> ref:_00D1U1174p._5001USwhyO: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/4821755f-a7b1-4450-baed-8a579e4f1f87%40googlegroups.com.


RE: How to get google ads account credit or balance?

2020-01-17 Thread Google Ads API Forum Advisor Prod
Hi Akav,

Thank you for the clarification. Through the API the remaining credit field is 
not directly accessible via API. However, you can compute the remaining balance 
by subtracting the total Cost of the Account Performance Report from your known 
budget. This should give you the remaining balance. Please let me know if you 
have further questions or concerns.

Thank you,
Bryan, Google Ads API Team
ref:_00D1U1174p._5001USwdAo: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/cUUYw0Q49QI000nnzil-G4RSGis_hlzUeiTQ%40sfdc.net.


RE: How to get Search Query Performance Report from Google Ads API in python

2020-01-17 Thread Google Ads API Forum Advisor Prod
Hi Pere,

Thanks for reaching out. This is a code example you could use to download the 
Search Query Performance Report. You could modify the file with the Search 
Query Performance Report query. Please let me know if you have any other 
questions.

Thanks and regards,
Xiaoming, Google Ads API Team
ref:_00D1U1174p._5001USwj4q: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/P7A2m0Q49Q9R007tH-UvweRoqreRC0Sn0AGQ%40sfdc.net.


RE: AdWords API: how to get the list of audience of an ad group?

2020-01-17 Thread Google Ads API Forum Advisor Prod
Hi Harry,

Thank you for reaching out. You can use the AdGroupCriterionService.get() 
method and select the CriterionCustomAffinity type to get these specific 
audiences.

Regards,
Mitchell
Google Ads API Team
ref:_00D1U1174p._5001USwl4V: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/DjtPj0Q49PXO00ERAdxGi1Q6GfGHUbNqebGA%40sfdc.net.


RE: High rates of connection failures and report errors

2020-01-17 Thread Google Ads API Forum Advisor Prod
Hello Nick,

Thank you for reaching out. Could you please share the complete request and 
response logs along with the client customer ids against which you are 
observing these errors for me to take a look into this further and assist you 
better? Also, if you are encountering timeouts when generating reports, it 
could mean that you maybe downloading a huge amount of data all at once. To 
avoid these timeouts, could you please try to break down your reports by adding 
filters or by narrowing down the date range as specified in the shared guide?

P.S. Please use Reply privately to author option while sharing the details.

Regards,
Nikisha Patel, Google Ads API Team
ref:_00D1U1174p._5001USwglx: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/6nAGj0Q49NNM00lMM6xaICQi2nMU-4eyf3Pg%40sfdc.net.


Re: Got "DUPLICATE_SYSTEM_FEED" error when called FeedService

2020-01-17 Thread enammino
Ok, thank you.

Il giorno ven 17 gen 2020 alle ore 19:49 Google Ads API Forum Advisor Prod <
adsapiforumadvi...@gmail.com> ha scritto:

> Hi Enam,
>
> I see you have already sent your details regarding this issue on another
> thread, so you can continue the discussion on there.
>
> Regards,
> Anthony
> Google Ads API Team
>
> ref:_00D1U1174p._5001UKOWYb: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/CAGHeNC5AKR4Yp6PJRpA4TBXQeSEr-H0Mog1oiDCHBzQra_Um4Q%40mail.gmail.com.


Re: Got "DUPLICATE_SYSTEM_FEED" error when called FeedService

2020-01-17 Thread Google Ads API Forum Advisor Prod
Hi Enam,

I see you have already sent your details regarding this issue on another 
thread, so you can continue the discussion on there.

Regards,
Anthony
Google Ads API Team
ref:_00D1U1174p._5001UKOWYb: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/t7SCy0Q49LN500sXQnCtMgTO28evvvejbKUQ%40sfdc.net.


RE: Traffic Estimation Service Data for Search campaign

2020-01-17 Thread Google Ads API Forum Advisor Prod
Hi Pradeep,

Thank you for reaching out. As explained here, the TrafficEstimatorService is 
meant to mimic the keyword planner in the UI so the values you are getting are 
the expected values. Unfortunately, there is no way to retrieve the daily 
estimates from the screenshot you provided.

Regards,
Mitchell
Google Ads API Team
ref:_00D1U1174p._5001USwhyO: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/5VC2-0Q49K3U00sgf-AcbzRrKQLNprjSiG_A%40sfdc.net.


RE: Universal App Campaign can not create ad images and html5

2020-01-17 Thread Google Ads API Forum Advisor Prod
Hello Esteban,

Could you please share the complete request and response by enabling Python 
logging from here as requested earlier for us to investigate this on our end 
and assist you better?

P.S: Please use Reply privately to author option while sharing the details for 
investigation.

Regards,
Nikisha Patel, Google Ads API Team
ref:_00D1U1174p._5001UOF7NS: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/QKnAI0Q49HPX00_YzCWwfYQiiDTBYnZUok9w%40sfdc.net.


Convert Google-Ads API GoogleAdsRow object to a dictionary or something useful to end up in a .CSV?

2020-01-17 Thread James Nixon


Google Ads API, Their new version of the Google Adwords API returns data in 
an object called "GoogleAdsRow". I have not found any use at all for the 
native object. The information presented in this format is not usable and 
it is quite confusing. I want to print my file to a basic .csv format, but 
there is not any type of delimiter or iterable as far as i can tell. So far 
I have only been able to print each entire row as a single cell. Not 
Helpful :-).



My main function looks like this following. I have provided two examples of 
what I have tried with a comment block identifying both attempts:

def main(client, customer_id, page_size):
ga_service = client.get_service('GoogleAdsService', version='v2')

query = ('SELECT ad_group.id, ad_group_criterion.type, '
 'ad_group_criterion.criterion_id, '
 'ad_group_criterion.keyword.text, '
 'ad_group_criterion.keyword.match_type FROM ad_group_criterion '
 'WHERE ad_group_criterion.type = KEYWORD')

results = ga_service.search(customer_id, query=query, page_size=page_size)

try:
with open(path, "w", encoding = "utf-8", newline = "") as f:
#with open(path, "w") as csv:
csv_writer = csv.writer(f, delimiter=',')
for row in results:
campaign = row.campaign   
csv_writer.writerow([row]) #Prints entire returned row as a 
single cell
csv_writer.writerow(row) #Tells me there is no delimiter


The iterable error is as follows


 in main(client, customer_id, page_size)
 17 campaign = row.campaign
 18 #csv_writer.writerow([row]) #Prints entire returned row 
as a single cell
---> 19 csv_writer.writerow(row) #Tells me there is no delimiter
 20 
 21 

Error: iterable expected, not GoogleAdsRow

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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/cef0f13c-bdab-4723-9835-87548193f8b9%40googlegroups.com.


Get list of Affinity Categories and In-market categories

2020-01-17 Thread Pietro Galassi
Hi all,

how is possible to get list of Affinity Categories using rest Apis ?

Regads,
Pietro Galassi

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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/08bb0f2c-c7f0-470c-96eb-fef9bd0da7e3%40googlegroups.com.


API would need to be connected with all individual Google Ads accounts for which we have a % agreement in place. For clients we don't have a % Ad spend agreement, the data has to be added manually.

2020-01-17 Thread Ishita Ghosh











*For our own Google Ads clients we would need a certain  API which shows 
24/24 status of the result for - 15% (this % to be manually added by us) x 
Google Ad spend client 1- 15% (this % to be manually added by us) x Google 
Ad spend client 2- 15% (this % to be manually added by us) x Google Ad 
spend client 3etcSo the API would need to be connected with all individual 
Google Ads accounts for which we have a % agreement in place. For clients 
we don't have a % Ad spend agreement, the data has to be added 
manually.What do you think of the option to build such an API in order to 
get us a nice (live) dashboard in place?*

 

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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/901d4bae-866a-4c86-8607-d8f8fec61829%40googlegroups.com.


How to get Search Query Performance Report from Google Ads API in python

2020-01-17 Thread Pere Munar
Hi! 

I am new in the world of the GA API and I feel a bit lost.

I want to, at least, download the Search Query Performance Report. I am 
using python to try to do that, but I do not know how exactly I should 
proceed. I have looked into the examples of the python library, but there 
is none specific to my problem. For downloading all keywords in an adgroup, 
there is an example and there they use:

ad_group_criterion_service = client.GetService('AdGroupCriterionService', 
version='v201809')

to iniciate the search (then define the fields, etc.).

But for the Search Query Performance Report I do not know how to proceed. I 
guess I have to use adwords_client.GetReportDownloader() instance ...

Can you point me to some example? I could not find anything

Thank you very much.

Cheers,

Pere

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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/5d0f5a4c-f1b0-4e35-a4a4-9bd0da428b29%40googlegroups.com.


Re: How to get google ads account credit or balance?

2020-01-17 Thread hari nareshit
*Hi* Akav Zhen 

If you're on the manual payment setting, you'll make a payment for your 
Google Ads costs before your ads run, and that payment will be used to pay 
for your advertising costs once your ads start running.

You'll do this each time you want to add money to your Google Ads account, 
and whenever the money in your account starts getting low, we'll send you 
an email reminding you to make another payment. 

Here's what to keep in mind as you make payments on this setting: 


   - Pay whatever amount you like: The amount you pay is up to you, as long 
   as it's above the minimum transaction amount for your location and 
   currency. You'll see what that minimum is when you make payment.
   - Store your favorite payment methods in your account: You can make 
   payments more quickly by storing multiple payment methods in your account.

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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/381b04d6-45d7-4319-a064-4bbb09626537%40googlegroups.com.


[InternalApiError.UNEXPECTED_INTERNAL_API_ERROR @ com.google.ads.api.services.common.error.InternalApiError

2020-01-17 Thread Bonge LaBwana


Hi 

I am creating display ad with video using google adwords api using PHP,

I amable to upload images , text, logo now I want to be able to upload 
youtube video via google adwords api .


Here is my php script 



http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */

namespace Google\AdsApi\Examples\AdWords\v201809\AdvancedOperations;

require __DIR__ . '/../../../../vendor/autoload.php';

use Google\AdsApi\AdWords\AdWordsServices;
use Google\AdsApi\AdWords\AdWordsSession;
use Google\AdsApi\AdWords\AdWordsSessionBuilder;
use Google\AdsApi\AdWords\v201809\cm\AdGroupAd;
use Google\AdsApi\AdWords\v201809\cm\AdGroupAdOperation;
use Google\AdsApi\AdWords\v201809\cm\AdGroupAdService;
use Google\AdsApi\AdWords\v201809\cm\AssetLink;
use Google\AdsApi\AdWords\v201809\cm\AssetOperation;
use Google\AdsApi\AdWords\v201809\cm\AssetService;
use Google\AdsApi\AdWords\v201809\cm\Video;
use Google\AdsApi\AdWords\v201809\cm\DisplayAdFormatSetting;
use Google\AdsApi\AdWords\v201809\cm\ImageAsset;
use Google\AdsApi\AdWords\v201809\cm\MultiAssetResponsiveDisplayAd;
use Google\AdsApi\AdWords\v201809\cm\Operator;
use Google\AdsApi\AdWords\v201809\cm\TextAsset;
use Google\AdsApi\Common\OAuth2TokenBuilder;
use Google\AdsApi\AdWords\v201809\cm\YouTubeVideo;
use Google\AdsApi\AdWords\v201809\cm\YouTubeVideoAsset;

/**
 * This code example adds a multi-asset responsive display ad
 * (MultiAssetResponsiveDisplayAd) to an ad group. Image assets are uploaded
 * using AssetService. To get ad groups, run GetAdGroups.php.
 */
class AddMultiAssetResponsiveDisplayAd
{

const AD_GROUP_ID = '92385624652';

public static function runExample(
AdWordsServices $adWordsServices,
AdWordsSession $session,
$adGroupId
) {

$assetService = $adWordsServices->get($session, AssetService::class
);
$adGroupAdService =
$adWordsServices->get($session, AdGroupAdService::class);

// Create a multi-asset responsive display ad.
$multiAssetResponsiveDisplayAd = new MultiAssetResponsiveDisplayAd
();
$headlineTextAsset1 = new TextAsset();
$headlineTextAsset1->setAssetText('Travel to Africa');
$headlineTextAsset2 = new TextAsset();
$headlineTextAsset2->setAssetText('Travel to Tanzania');
$headlineTextAsset3 = new TextAsset();
$headlineTextAsset3->setAssetText('Travel to Poland');
// Text assets can be specified directly in the asset field when
// creating the ad.
$multiAssetResponsiveDisplayAd->setHeadlines([
new AssetLink($headlineTextAsset1),
new AssetLink($headlineTextAsset2),
new AssetLink($headlineTextAsset3)
]);

// Set business name and long headline.
$multiAssetResponsiveDisplayAd->setBusinessName(
'VideommerceLuxury Cruises'
);
$longHeadlineTextAsset = new TextAsset();
$longHeadlineTextAsset->setAssetText(
'Visit the AFrica in a luxury spaceship.'
);
$multiAssetResponsiveDisplayAd->setLongHeadline(
new AssetLink($longHeadlineTextAsset)
);

// Set description.
$descriptionTextAsset1 = new TextAsset();
$descriptionTextAsset1->setAssetText(
'Visit the planet in a luxury spaceship.'
);
$descriptionTextAsset2 = new TextAsset();
$descriptionTextAsset2->setAssetText('See the AFRICA in style.');
$multiAssetResponsiveDisplayAd->setDescriptions([
new AssetLink($descriptionTextAsset1),
new AssetLink($descriptionTextAsset2)
]);

// Set a marketing image.
$marketingImageAsset = new ImageAsset();
// This ad format does not allow the creation of an image asset by
// setting the Asset.imageData field. An image asset must first be

// created using the AssetService, and Asset.assetId must be populated
// when creating the ad.
$marketingImageAsset->setAssetId(
self::uploadImageAsset($assetService, 
'http://wp-iframe.videomill.co/travel.jpg')
);
$multiAssetResponsiveDisplayAd->setMarketingImages([
new AssetLink(
$marketingImageAsset
)
]);

// Set a square image.
$squareImageAsset = new ImageAsset();
$squareImageAsset->setAssetId(
self::uploadImageAsset($assetService, 
'https://wp-iframe.videomill.co/square.png')
);
$multiAssetResponsiveDisplayAd->setSquareMarketingImages([
new AssetLink(
$squareImageAsset
)
]);


Re: [Google Ads API] Target partner search network in campaign NetworkSetting

2020-01-17 Thread alok
Thanks Xiaoming.

Can you please guide me on how to get this whitelisted?

Regards,
Alok

On Wednesday, January 15, 2020 at 1:49:27 AM UTC+5:30, adsapiforumadvisor 
wrote:
>
> Hi,
>
> Thanks for reaching out. The targetPartnerSearchNetwork is available only 
> to select partners which means it's on a whitelist basis. For everyone else 
> it should be set to "false" or "null". 
>
> Thanks and regards,
> Xiaoming, Google Ads API Team
>
>  
>
> ref:_00D1U1174p._5001USwOyl: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/af14af23-2115-4ae5-9203-3d8d1bab3ad2%40googlegroups.com.