Google Ads API MCC all account queries

2019-10-06 Thread AVB Analytics
Hello everyone,

I am trying to build an auditing tool for our MCC account. We have 
approximately 600 accounts under MCC. And to get the data about campaigns I 
have to send a request for every single account as follows 
https://googleads.googleapis.com/v2/customers/' 
. $customerClientId . '/googleAds:search. Also I have to include JSON 
encoded query. That looks like following :

{
"query":"
SELECT

customer.id,
campaign.id, 
campaign.name, 
campaign.status, 
campaign.serving_status,  
campaign.bidding_strategy_type, 
campaign_budget.amount_micros,
campaign.start_date,
campaign.end_date
FROM 
campaign
WHERE 
campaign.status=ENABLED 
AND 
campaign.serving_status!=ENDED
ORDER BY 

campaign.id ASC"
}

Is there a way for me in one query response receive campaigns data for 
multiple accounts not just one ?

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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/c1772693-ed17-48e5-9bdd-4d52edb832e5%40googlegroups.com.


Upload HTML5 via Ads API to an App Campaign

2019-10-06 Thread Renan Duarte Ribeiro dos Santos
Hi all,

I have been trying to upload an HTLM5 file using the Google Ads API.
Here is part of the code I am using:

# Create Media
media_file = media_file_operation.create
media_file.id.value = 123435
media_file.type = client.get_type('MediaTypeEnum', 
version='v2').MEDIA_BUNDLE
media_file.mime_type = client.get_type('MimeTypeEnum', 
version='v2').HTML5_AD_ZIP

  
zf = open('/teste/teste.html.zip', 'rb').read()


media_file.media_bundle.data.value=zf

# Add media

try:
media_file_response = 
media_file_service.mutate_media_files(customer_id, [media_file_operation])

 except google.ads.google_ads.errors.GoogleAdsException as ex:
 print('Request with ID "%s" failed with status "%s" and includes 
the '
   'following errors:' % (ex.request_id, ex.error.code().name))
 for error in ex.failure.errors:
 print('\tError with message "%s".' % error.message)
 if error.location:
 for field_path_element in 
error.location.field_path_elements:
 print('\t\tOn field: %s' % 
field_path_element.field_name)


media_file_resource_name=media_file_response.results[0].resource_name

return media_file_resource_name


However I am facing the following error:

Request made: ClientCustomerId: 6365753748, Host: googleads.googleapis.com:443, 
Method: /google.ads.googleads.v2.services.MediaFileService/MutateMediaFiles, 
RequestId: mnNVhyrI6CkRofYeJ4VsXA, IsFault: True, FaultMessage: Custom exits 
not allowed in HTML5 entry.

Request with ID "mnNVhyrI6CkRofYeJ4VsXA" failed with status "INVALID_ARGUMENT" 
and includes the following errors:
Error with message "Custom exits not allowed in HTML5 entry."


Does anybody know what part am I doing incorrectly or even if it's possible to 
add an HTML5 via API to an App Campaign?

Kind regards,

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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/a021abc8-2c22-4a2a-ab55-abd0a1a1e299%40googlegroups.com.


ad_group_ad.ad.expanded_dynamic_search_ad.description2 UNRECOGNIZED_FIELD

2019-10-06 Thread Сергей Старовойтов
Hello!

I have an error UNRECOGNIZED_FIELD, then i try to 
get ad_group_ad.ad.expanded_dynamic_search_ad.description2

Request query:
SELECT
ad_group_ad.ad.id
, ad_group_ad.ad.type
, ad_group_ad.status
, ad_group_ad.ad.expanded_dynamic_search_ad.description
, ad_group_ad.ad.expanded_dynamic_search_ad.description2
, ad_group.id

FROM" +
ad_group_ad

Response:

{
  "error": {
"code": 400,
"message": "Request contains an invalid argument.",
"status": "INVALID_ARGUMENT",
"details": [
  {
"@type": 
"type.googleapis.com/google.ads.googleads.v1.errors.GoogleAdsFailure",
"errors": [
  {
"errorCode": {
  "queryError": "UNRECOGNIZED_FIELD"
},
"message": "Unrecognized field in the query: 
'ad_group_ad.ad.expanded_dynamic_search_ad.description2'."
  }
]
  }
]
  }
}

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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/ebc0d1ee-7f42-4bed-8c60-4404454a9d2a%40googlegroups.com.


How to get UAC data from Google Ads API v2 ?

2019-10-06 Thread 游涵杰
Hello

I tried to get UAC asset data from asset 
 , but it 
can't get actions data like impression、clicks、conversions.

I also tried to get data from ad_group_ad 
 and 
ad_group_ad_asset_view 
 
, 
but in my case there is no ad group in UAC.

Is there any way to get UAC data from Google Ads API v2 ? Thanks!


campain id  | asset id  | asset image url   | youtube id | date   | 
impression | clicks | conversions--- | - | 
- | -- | -- | -- | -- | 
---
1234567890  | 987654321 | https://tpc.google... | df8ExcTH7X | 2019/10/07 | 
1000   | 100| 10

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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/b94b28fb-120b-4fc8-9727-2a1e1e9f5c35%40googlegroups.com.


Need an example String of ConversionTracker.mostRecentConversionDate to work with.

2019-10-06 Thread Thanh Nguyen
Quick question/request:
I currently working with ConversionTracker via ConversionTrackerService and 
need to use it's mostRecentConversionDate to work with.
The problem is that I'm working with a Test Account (and restricted to it 
only) thus any conversion I get() have 
...
"mostRecentConversionDate": null,
"lastReceivedRequestTime": null,
...
in return (I do have those Field in selector). 
I just need an example String for each of those 2 param to work with.
Sorry for the trouble.

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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/e2226c95-7f64-4732-989c-73b3a632ff55%40googlegroups.com.


RE: Why GetKeywords.php showing same keywords in result as i mention in search query?

2019-10-06 Thread Google Ads API Forum Advisor Prod
Hi Vishal,

Thank you for reaching out.

If you are using test accounts, it usually returns dummy data. The keywords in 
the screenshot you provided are also dummy data and not because of an error.

Please let me know if you have further clarifications.

Regards,
Hiroyuki
Google Ads API Team
ref:_00D1U1174p._5001UKMHfU: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/WWeUO0PYZP7600Rd-acg_QTo2oTNiiPuIIow%40sfdc.net.


RE: Need an example String of ConversionTracker.mostRecentConversionDate to work with.

2019-10-06 Thread Google Ads API Forum Advisor Prod
Hi Thanh,

My apologies as we currently do not have an actual example that you can use for 
the said fields. You may, however, refer to our date and time formats guide to 
help you create the input you are looking for.

I hope this helps.

Thanks and regards,
Peter
Google Ads API Team
ref:_00D1U1174p._5001UKMLcB: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/UbWTw0PYZPCQ001xjdjG_UQGCaOVdrOB66pg%40sfdc.net.