Iterate all Data out of Google/Protobuf Objects [PHP]

2021-01-20 Thread Floyd van der weij
This is my last Message For this topic. (and will create a new one for a 
new question)
But i wanted to clarify for people who have/had the same issue as me and 
are searching for a answer.

For PHP :
When Calling Elements from a Stream Aka : $Stream = 
$Connection->searchStream($CustomerID, $Query);

When you Foreach The Data you usually have something like this :
foreach ($Stream->iterateAllElements() as $Element) {

  // ALL Data out of the Object Campaign.
  $campaign = $Element->GetCampaign('GetCampaignRequest');
  // Name.
  $name = $Element->GetName();
  // Status.
  $status = $Element->?();

}

Status is unknown but, you can find that at :
(Depending on libary, But in V6 its usually) :
google-ads-php/src/Google/Ads/GoogleAds/V6/Recources/Campaign.php
Or if you have something like AdGroups
google-ads-php/src/Google/Ads/GoogleAds/V6/Recources/AdGroup.php


But i wanted to say thank you for your help.


-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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/6884b167-b1e0-4cf5-b8f1-473c5bb9e31cn%40googlegroups.com.


Re: Iterate all Data out of Google/Protobuf Objects [PHP]

2021-01-20 Thread Floyd van der weij
EDIT:   $campaign = $Element->GetCampaign('GetCampaignRequest');  is 
suppose to be   $campaign = $Element->GetCampaign('"');  


Op woensdag 20 januari 2021 om 09:14:49 UTC+1 schreef Floyd van der weij:

> This is my last Message For this topic. (and will create a new one for a 
> new question)
> But i wanted to clarify for people who have/had the same issue as me and 
> are searching for a answer.
>
> For PHP :
> When Calling Elements from a Stream Aka : $Stream = 
> $Connection->searchStream($CustomerID, $Query);
>
> When you Foreach The Data you usually have something like this :
> foreach ($Stream->iterateAllElements() as $Element) {
>
>   // ALL Data out of the Object Campaign.
>   $campaign = $Element->GetCampaign('GetCampaignRequest');
>   // Name.
>   $name = $Element->GetName();
>   // Status.
>   $status = $Element->?();
>
> }
>
> Status is unknown but, you can find that at :
> (Depending on libary, But in V6 its usually) :
> google-ads-php/src/Google/Ads/GoogleAds/V6/Recources/Campaign.php
> Or if you have something like AdGroups
> google-ads-php/src/Google/Ads/GoogleAds/V6/Recources/AdGroup.php
>
>
> But i wanted to say thank you for your help.
>
>
>

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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/f08feaba-644d-4d93-9abe-30a50cce05f7n%40googlegroups.com.


CAMPAIGN_LOCATION_TARGET_REPORT in GoogleAds API

2021-01-20 Thread integr...@bidalgo.ai
Hi all,

I’m currently working on migrating to GoogleAds API some reports we used to 
run in Adwords API.
Is there a way to perform campaign location-based performance report with 
segmentation by location (like CAMPAIGN_LOCATION_TARGET_REPORT in Adwords). 
I tried to select from ‘campaign_criterion’ object but seems like no 
segmentation by location is available and also some metrics (like 
“metrics.cost_micros”) are not available.
Please advise.

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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/8c0df1ef-880c-4fd8-a760-cbd6999c0ca7n%40googlegroups.com.


Re: Missing Conversion Action of download

2021-01-20 Thread Google Ads API Forum Advisor Prod
Hi Spencer,

Thank you for sharing these details.

It appears that a similar issue was also already raised by Edison on a separate 
private thread. Could you confirm if you are colleagues?

If yes, let us know so we can continue the discussion from there instead. In 
the meantime, I have already discussed the issue on the previous thread, with 
the rest of our team and will now be continuing our investigation.

Best regards,

Peter Laurence Napa Oliquino
Google Ads API Team
ref:_00D1U1174p._5004Q2B1AYF: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/op2hE0QN89B800Bqm6lj2IRjSQlGoiHRykHQ%40sfdc.net.


Re: Missing Conversion Action of download

2021-01-20 Thread Spencer Fung
Yes, Edison is my colleagues

在2021年1月20日星期三 UTC+8 下午6:04:37 写道:

> Hi Spencer,
>
> Thank you for sharing these details.
>
> It appears that a similar issue was also already raised by Edison on a 
> separate private thread. Could you confirm if you are colleagues?
>
> If yes, let us know so we can continue the discussion from there instead. 
> In the meantime, I have already discussed the issue on the previous thread, 
> with the rest of our team and will now be continuing our investigation.
>
>
> Best regards,
>
> [image: Google Logo] 
> Peter Laurence Napa Oliquino 
> Google Ads API Team 
>   
>
> ref:_00D1U1174p._5004Q2B1AYF: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/3d428b1e-6c43-4268-947f-e725caa4a467n%40googlegroups.com.


Re: ChangeStatusResourceType map to UI

2021-01-20 Thread cv
Hi Peter,

I have few queries

1)
I can see that doc suggest here 

.

The returned resource_type 

 is 
the field that changed. Any parent fields are also populated. For example, 
if the ad_group_criterion 

 changed, 
then the ad_group 

 field 
will also be populated.
-> Does this means, I can see 2 row for very same change? one ad AdGroup 
Change and One as criterion change?

How I can identify the same?

2) You said I need to perform another query to get what criterion exactly 
changed. Does this mean If I need to get criterion what criterion changes I 
need to perform criterion type query? and if i wanted to get if any bid 
changed how I can get?

 
Thanks,

On Tuesday, 5 January 2021 at 15:35:00 UTC+5:30 adsapiforumadvisor wrote:

> Hi,
>
> Unfortunately, there is currently no direct mapping that can be used 
> between API change status against the Change History of the UI.
>
> Regarding Feed or Criterion changes, these should already be available via 
> the API. Their details should then be included in the ChangeStatus 
>  
> resource or by querying as discussed here 
> 
> .
>
> If you then wish to retrieve more information regarding the returned 
> resources, you can perform separate get requests using the corresponding 
> services which should support them.
>
> 'AD_GROUP_CRITERION', - AdGroupCriterionService 
> 
> 'CAMPAIGN_CRITERION', -  CampaignCriterionService 
> 
> 'FEED', - FeedService 
>  
>  
> 'FEED_ITEM', - FeedItemService 
> 
> 'AD_GROUP_FEED', - AdGroupFeedService 
> 
> 'CAMPAIGN_FEED', - CampaignFeedService 
> 
>
> As for the other types, you may for now follow our blog 
>  for any 
> updates or announcements regarding this feature.
>
> Best regards,
>
> [image: Google Logo] 
> Peter Laurence Napa Oliquino 
> Google Ads API Team 
>   
>
> ref:_00D1U1174p._5004Q2AGQkb: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/af84f2ed-3aaa-47f7-be1b-4c37a0d75689n%40googlegroups.com.


Re: Auto-Update Page Feed for Dynamic Search Ads

2021-01-20 Thread Shivangi vyas
Hey thanks, Peter!

I'm using Google Ads API. Can  Google Ads API DSA Page Feeds 

 & 
the second link I shared in my earlier post be used to automatically update 
the page feed as new links are added/old ones are removed? 

On Wednesday, January 20, 2021 at 12:55:19 AM UTC-5 adsapiforumadvisor 
wrote:

> Hi Shivangi,
>
> Could you confirm which API it is you wish to use, is the AdWords API 
>  or the Google 
> Ads API ?
>
> If AdWords, you can refer below for the guide and example code :
>
> DSA Page Feeds 
> 
> Code example 
> 
>  (the 
> 1st Python sample you provided is the more complete example that you can 
> refer to when using the AdWords API)
>
> If you will be using the Google Ads API, you can refer to the below 
> documentation instead :
>
> Google Ads API DSA Page Feeds 
> 
>
> The 2nd Python sample you provided is the example code that you can use if 
> you will be using the Google Ads API.
>
> Best regards,
>
> [image: Google Logo] 
> Peter Laurence Napa Oliquino 
> Google Ads API Team 
>   
>
> ref:_00D1U1174p._5004Q2B1iX2: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/7d7fd12a-f55b-4608-bf31-9d31a66d6cfcn%40googlegroups.com.


Create Discovery Campaign Type in Ads or Adwords APIs

2021-01-20 Thread Gabriel Queiroz
Hello.
I hope everybody is well and safe.

Please, I have read a few threads here and in other sites regarding the 
Discovery campaign type, where I found that this function is not support by 
the API (both Ads and Adwords) yet (it was in 2020 threads and articles).

Since there has been no new comments about it for some time, someone would 
know if the functionality already exists? 

If yes, what the advertisingChannelType and advertisingChannelSubType 
fields would be for creating Discovery campaigns using the API? 

If no, there are some predictions when will the feature be released?

Thank you in advance,
Best Regards,
Gabriel

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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/d7803217-1b5d-433c-9ded-115546ff57e7n%40googlegroups.com.


Re: How to create a test account: UI or API?

2021-01-20 Thread Peter Koning
Hi Peter - thanks for the thorough answer. This helps. 

Re the multiple account warning I'm referring to answers to "how to create 
a test account" questions and answers in the adwords help from API users 
such as this one:  
https://www.google.com/tools/feedback/content_frame?type=IN_APP&locale=en&authuser=0&msgid=46366139
   


On Tuesday, January 19, 2021 at 10:06:01 PM UTC-8 adsapiforumadvisor wrote:

> Hi Peter,
>
> Thank you for your questions. 
>
> For item #1, this section 
> 
>  
> provides the specific link  you 
> can use to create your test MCC account. The link for creating production 
> accounts is a separate link as well. Now, after clicking on the link and 
> when redirected, you can click on the *+ NEW GOOGLE ADS ACCOUNT*. This 
> should then allow you to create the test MCC account. Certain details maybe 
> required for you to supply to complete the process.
>
> For the item #2, the information provided was for the UI direction to 
> create the test client accounts as it was also considered that at this 
> point in the documentation, the API setup may not be complete yet and 
> creating client accounts via the API may still not be possible. For the 
> steps to create accounts using the UI, you can refer to this guide 
> . Accounts 
> created under a test MCC account is automatically a test client account.
>
> As for creating test client accounts under a test MCC using the Google Ads 
> API, you can refer to this guide 
> 
>  
> instead. You will need to specify a test MCC account as the customer-id. 
> Also, when creating test accounts, billing information is not required.
>
> Moving forward to the suspension about creating multiple accounts, could 
> you provide more information regarding this?
>
> Best regards,
>
> [image: Google Logo] 
> Peter Laurence Napa Oliquino 
> Google Ads API Team 
>   
>
> ref:_00D1U1174p._5004Q2B1ieD: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/5fd3853b-c728-4ccc-aeea-f02641d5745bn%40googlegroups.com.


Re: Query to get All visits from an Ad, and orders made through an Ad.

2021-01-20 Thread market test
Hi, sorry for the delay,

I wans't sure to answer, since the Reply privately to author option appears 
disabled to me, menaing i will be showing private info, but i need an 
answer, so it seems that i need to answer to all. The customer ID i'm using 
is: 9117658864, and i'm not sure how to check the request ID, the full Log 
is:

[2021-01-20 10:12:36,553 - INFO] Request
---
Method: /google.ads.googleads.v6.services.GoogleAdsService/SearchStream
Host: googleads.googleapis.com:443
Headers: {
  "developer-token": "REDACTED",
  "login-customer-id": "2302183531",
  "x-goog-api-client": "gl-python/3.8.5 grpc/1.33.2 gax/1.23.0 gapic/8.0.0",
  "x-goog-request-params": "customer_id=9117658864"
}
Request: customer_id: "9117658864"
query: "\nSELECT\n  campaign.id,\n  
campaign.name,\n  
customer.conversion_tracking_setting.conversion_tracking_id,\n  
metrics.interactions,\n  metrics.clicks,\n  
metrics.conversions,\n  metrics.impressions,\n  
metrics.average_cpc,\n  metrics.all_conversions,\n  
metrics.all_conversions_from_order,\n  
metrics.all_conversions_from_store_visit\nFROM campaign\n
WHERE campaign.resource_name = 
\"customers/9117658864/campaigns/11898883393\"\n"


Response
---
Headers: {
  "google.ads.googleads.v6.errors.googleadsfailure-bin": 
"\n\u0002\n\u0002(1\u0012\u0002Cannot select or filter on the following 
metrics: 'all_conversions_from_order'(could not support requested 
resources: 'CAMPAIGN'), 'all_conversions_from_store_visit'(could not 
support requested resources: 'CAMPAIGN'), since metric is incompatible with 
the resource in the FROM clause or other selected segmenting resources.",
  "grpc-status-details-bin": "\b\u0003\u0012%Request contains an invalid 
argument.\u001a\u0003\nCtype.googleapis.com/google.ads.googleads.v6.errors.GoogleAdsFailure\u0012\u0002\n\u0002\n\u0002(1\u0012\u0002Cannot
 
select or filter on the following metrics: 
'all_conversions_from_order'(could not support requested resources: 
'CAMPAIGN'), 'all_conversions_from_store_visit'(could not support requested 
resources: 'CAMPAIGN'), since metric is incompatible with the resource in 
the FROM clause or other selected segmenting resources.",
  "request-id": "kBglceyXnXkc7aLfXB6CFQ"
}
Fault: errors {
  error_code {
query_error: PROHIBITED_METRIC_IN_SELECT_OR_WHERE_CLAUSE
  }
  message: "Cannot select or filter on the following metrics: 
\'all_conversions_from_order\'(could not support requested resources: 
\'CAMPAIGN\'), \'all_conversions_from_store_visit\'(could not support 
requested resources: \'CAMPAIGN\'), since metric is incompatible with the 
resource in the FROM clause or other selected segmenting resources."
}


[2021-01-20 10:12:36,553 - WARNING] Request made: ClientCustomerId: 
9117658864, Host: googleads.googleapis.com:443, Method: 
/google.ads.googleads.v6.services.GoogleAdsService/SearchStream, RequestId: 
kBglceyXnXkc7aLfXB6CFQ, IsFault: True, FaultMessage: Cannot select or 
filter on the following metrics: 'all_conversions_from_order'(could not 
support requested resources: 'CAMPAIGN'), 
'all_conversions_from_store_visit'(could not support requested resources: 
'CAMPAIGN'), since metric is incompatible with the resource in the FROM 
clause or other selected segmenting resources.
Traceback (most recent call last):
  File 
"C:\Users\papuc\Documents\Dev\environments\GServices\lib\site-packages\google\ads\google_ads\interceptors\exception_interceptor.py",
 
line 92, in __next__
return next(self._underlay_call)
  File 
"C:\Users\papuc\Documents\Dev\environments\GServices\lib\site-packages\grpc\_channel.py",
 
line 416, in __next__
return self._next()
  File 
"C:\Users\papuc\Documents\Dev\environments\GServices\lib\site-packages\grpc\_channel.py",
 
line 620, in _next
return self._next_response()
  File 
"C:\Users\papuc\Documents\Dev\environments\GServices\lib\site-packages\grpc\_channel.py",
 
line 607, in _next_response
raise self
grpc._channel._SingleThreadedRendezvous: <_SingleThreadedRendezvous of RPC 
that terminated with:
status = StatusCode.INVALID_ARGUMENT
details = "Request contains an invalid argument."
debug_error_string = 
"{"created":"@1611159156.31500","description":"Error received from peer 
ipv6:[2607:f8b0:4012:801::200a]:443","file":"src/core/lib/surface/call.cc","file_line":1062,"grpc_message":"Request
 
contains an invalid argument.","grpc_status":3}"
>

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Program Files\Python38\lib\runpy.py", line 194, in 
_run_module_as_main
return _run_code(code, main_globals, None,
  File "C:\Program Files\Python38\lib\runpy.py", line 87, in _run_code
exec(code, run_globals)
  File 
"C:\Users\papuc\Documents\Dev\CanastaServerless\Develop\GetCampaign\get_campaign.py",
 
line 98, in 
main(google_ads_client, args.c

Re: Account Link

2021-01-20 Thread Adrian Misak
Hi,

Any updates on this?

Thanks,
Adrian

On Tuesday, November 24, 2020 at 3:31:39 PM UTC+1 adsapiforumadvisor wrote:

> Hi Adrian,
>
> Apologies for the delay - unfortunately we're still waiting on an 
> investigation by the engineering team. I'm hoping for more information 
> soon, but since this is a Holiday week in the U.S. it may take a little 
> longer than normal.
>
> I'll let you know as soon as I have more information.
>
>
> Best,
> Ben, Google Ads API Team
>
> ref:_00D1U1174p._5004Q278FHs: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/3efdf7d8-765a-45dd-bd86-d13eedf04535n%40googlegroups.com.


RE: Create Discovery Campaign Type in Ads or Adwords APIs

2021-01-20 Thread Google Ads API Forum Advisor Prod
Hi Gabriel,

Discovery campaigns are still not supported through the API. However, there is 
a feature request to have them added. I cannot give any timelines but you can 
follow our blog for any announcements.

Regards,
Anthony

Anthony
Google Ads API Team
ref:_00D1U1174p._5004Q2B1pkt: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/G2AeD0QN8T3M00yqJqrm-5RGiV5qOgyWoxNQ%40sfdc.net.


RE: ApiException was thrown even after response

2021-01-20 Thread Google Ads API Forum Advisor Prod
Hello,

Looking at the thread you referenced, it looks like the developer advocate 
reported the issue internally. Please allow me to check internally to see if 
there is any update on the issue.

Thanks,
Matt
Google Ads API Team

Matt
Google Ads API Team
ref:_00D1U1174p._5004Q2B1ksn: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/e5EAm0QN8U0E00hlJHIu0sR9SF_I7ggeWr_w%40sfdc.net.


Re: refresh token issue

2021-01-20 Thread INI GlobalOps
Thank you the link to get support went to a list of stack overflow 
questions - is that correct?

On Tuesday, January 19, 2021 at 10:39:55 PM UTC-5 adsapiforumadvisor wrote:

> Hi,
>
> Thanks for posting your concern.
>
> Based on this document 
> , 
> a refresh token will indeed expired in 7 days if issued by a Google Cloud 
> Platform project with an OAuth consent screen configured for an external 
> user type and a publishing status of "Testing".
>
> However, I am afraid that refresh token related concerns are outside of 
> our expertise already. With this, I would suggest posting your question 
> here  to get 
> support from the team that is more equipped to provide support to this 
> question.
>
> Regards,
> [image: Google Logo] 
> Ernie John Blanca Tacata 
> Google Ads API Team 
>   
>
> ref:_00D1U1174p._5004Q2B1YT5: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/bc6cc045-a7c3-4527-9ee7-543f2abbc8b8n%40googlegroups.com.


Store Conversion Data Upload

2021-01-20 Thread Milad Shaddelan
Hi,

I used the source code in this webpage:
https://developers.google.com/google-ads/api/docs/conversions/upload-store-sales-transactions?hl=en
 

 It requires a conversion_action_id as an int object. In google ads I 
couldn't find the id and there is just a name for the conversion. Would you 
please help me to find the id?

Thanks a lot for your time.

Sincerely,
Milad

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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/9759a7a8-cca2-46d7-8a23-32c339d46e81n%40googlegroups.com.


Re: KeywordsStates using Google Ads API

2021-01-20 Thread Google Ads API Forum Advisor Prod
Hello,

The "www" is not required for the Url Seed.

Regards,
Anthony

Anthony
Google Ads API Team
ref:_00D1U1174p._5004Q2AIbEY: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/HP3mP0QN8WPT00ZER4ipTGS6GoChqttcg2dQ%40sfdc.net.


Re: Create Discovery Campaign Type in Ads or Adwords APIs

2021-01-20 Thread Gabriel Queiroz
Hi Anthony,
Thank you very much for your reply.
Best Regards,
Gabriel
 

Em quarta-feira, 20 de janeiro de 2021 às 17:12:04 UTC, adsapiforumadvisor 
escreveu:

> Hi Gabriel,
>
> Discovery campaigns are still not supported through the API. However, 
> there is a feature request to have them added. I cannot give any timelines 
> but you can follow our blog  for 
> any announcements.
>
> Regards,
> Anthony
>
> [image: Google Logo] 
> Anthony 
> Google Ads API Team 
>   
>
> ref:_00D1U1174p._5004Q2B1pkt: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/0892a245-3fe2-4b06-998e-157efd1d96bdn%40googlegroups.com.


RE: Iterate all Data out of Google/Protobuf Objects [PHP]

2021-01-20 Thread Google Ads API Forum Advisor Prod
Hi Floyd,

Thank you for reaching out. You would be able to use the getStatus() from the 
campaign resource. Please follow the naming conventions from this code snippet 
to avoid errors.

Thanks and regards,
Xiaoming, Google Ads API Team

Xiaoming
Google Ads API Team
ref:_00D1U1174p._5004Q2B1m4Q: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/HWwa00QN90A000C3yLl0CsR-6txPdh89XJaw%40sfdc.net.


Re: Calls failing to "change_event" report

2021-01-20 Thread Google Ads API Explorer
Hi,

I am also facing same.

 SELECT change_event.resource_name, change_event.change_date_time, 
change_event.change_resource_name, change_event.user_email, 
change_event.client_type, change_event.change_resource_type, 
change_event.old_resource, change_event.new_resource, 
change_event.resource_change_operation, change_event.changed_fields FROM 
change_event WHERE change_event.change_date_time >= 20210108 AND 
change_event.change_date_time < 20210115 ORDER BY 
change_event.change_date_time DESC LIMIT 1

ApiException was thrown with message '{ "message": "Stream removed", 
"code": 2, "status": "UNKNOWN", "details": [] }'.   



On Tuesday, January 19, 2021 at 10:43:42 AM UTC+5:30 duca...@gmail.com 
wrote:

> Hi Anash,
>
> Can you please take a look and let me know if you have any findings?
>
> To me this is a P0 bug that the status predict does not support NOT_IN 
> syntax. 
>
>
> On Tue, Jan 12, 2021 at 10:32 PM Caihua Du  wrote:
>
>> Hi Anash,
>>
>> Unfortunately, this is still not working. Here is the latest request id 
>> from my client. Please take a look. Thanks a lot!
>>
>> [2021-01-13 06:30:29Z] - Request made: Host: 
>> https://googleads.googleapis.com, Method: 
>> /google.ads.googleads.v6.services.GoogleAdsService/Search, 
>> ClientCustomerID: 6773506668,  RequestID: f05raAO6jxD3qggf1h5p4w, IsFault: 
>> True, FaultMessage: Status(StatusCode=""InvalidArgument"", Detail=""Request 
>> contains an invalid argument."", 
>> DebugException=""Grpc.Core.Internal.CoreErrorDetailException: 
>> {""created"":""@1610519429.86300"",""description"":""Error received 
>> from peer 
>> ipv6:[2607:f8b0:400a:804::200a]:443"",""file"":""T:\src\github\grpc\workspace_csharp_ext_windows_x64\src\core\lib\surface\call.cc"",""file_line"":1062,""grpc_message"":""Request
>>  
>> contains an invalid argument."",""grpc_status"":3}"")
>>
>> On Wed, Dec 9, 2020 at 7:58 AM Google Ads API Forum Advisor Prod <
>> adsapifor...@gmail.com> wrote:
>>
>>> Hi Caihua,
>>>
>>> We pushed a fix to our servers, so could you please confirm if the issue 
>>> is addressed? If it persists, please respond with a fresh log and I'll 
>>> follow up with the relevant teams again.
>>>
>>> Cheers
>>> Anash
>>>
>>>  
>>>
>>> ref:_00D1U1174p._5004Q27uEVS: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/c5f71c7a-17d2-4721-a6da-f0deb414858dn%40googlegroups.com.


RE: CAMPAIGN_LOCATION_TARGET_REPORT in GoogleAds API

2021-01-20 Thread Google Ads API Forum Advisor Prod
Hi,

Thank you for reaching out. With the location_view resource, you would be able 
to query the performance of campaigns by location criteria. That means the 
stats would be aggregated on the location criterion level. metrics.cost_micros 
is available in this resource.

Thanks and regards,
Xiaoming, Google Ads API Team

Xiaoming
Google Ads API Team
ref:_00D1U1174p._5004Q2B1mk3: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/3XF-l0QN939W00waHMJyR8SRmRq-2AYXuSjA%40sfdc.net.


RE: ApiException was thrown even after response

2021-01-20 Thread Google Ads API Forum Advisor Prod
Hi Cv,

This seems like an issue on our side, so I have pulled the relevant logs and 
asked the team to investigate further. I'll keep you posted as I hear from them.

Cheers
Anash
ref:_00D1U1174p._5004Q2B1ksn: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/_pPFl0QN956R00GRvrbgVyRi2QBvW4N__fsw%40sfdc.net.


Re: How to create a test account: UI or API?

2021-01-20 Thread Google Ads API Forum Advisor Prod
Hi Peter,

Thank you for reaching out. The link you shared could not be opened. Could you 
please provide a working link or share details of the issue you are referring 
to?

Thanks and regards,
Xiaoming, Google Ads API Team

Xiaoming
Google Ads API Team
ref:_00D1U1174p._5004Q2B1ieD: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/zk4yn0QN95NK00OpZQGhniSGil_yMZZJELMQ%40sfdc.net.


Re: Calls failing to "change_event" report

2021-01-20 Thread Google Ads API Forum Advisor Prod
Hi,

The "stream removed" issue is most likely unrelated to this issue. Could you 
kindly open an issue with the client library that you are using if this issue 
is consistently replicable?

Cheers
Anash
ref:_00D1U1174p._5004Q27uEVS: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/OzBXA0QN98YF00UM2r8Dd2T1yfXeR_aRPagg%40sfdc.net.


Error summary: {'faultMessage': '[OperationAccessDenied.ADD_OPERATION_NOT_PERMITTED @ operations[0]]', 'requestId': '0005b95d4c0c95180aa78f3584032c96', 'serviceName': 'BudgetService', 'methodName': 'm

2021-01-20 Thread Monty808
Hi google Below is your code for the examples.  It does not work out of the 
box.  Why?

I am on a test account.  

Error summary: {'faultMessage': 
'[OperationAccessDenied.ADD_OPERATION_NOT_PERMITTED @ operations[0]]', 
'requestId': '0005b95d4c0c95180aa78f3584032c96', 'serviceName': 
'BudgetService', 'methodName': 'mutate', 'operations': '1', 'responseTime': 
'121'}

import datetime

import datetime

import uuid

from googleads import adwords



def *main*(client):

  # Initialize appropriate services.

  campaign_service = client.GetService(*'CampaignService'*, version=
*'v201809'*)

  budget_service = client.GetService(*'BudgetService'*, version=*'v201809'*)


  # Create a budget, which can be shared by multiple campaigns.

  budget = {

  *'name'*: *'Interplanetary budget #%s'* % uuid.uuid4(),

  *'amount'*: {

  *'microAmount'*: *'5000'*

  },

  *'deliveryMethod'*: *'STANDARD'*

  }


  budget_operations = [{

  *'operator'*: *'ADD'*,

  *'operand'*: budget

  }]


  # Add the budget.

  budget_id = budget_service.mutate(budget_operations)[*'value'*][0][

  *'budgetId'*]


  # Construct operations and add campaigns.

  operations = [{

  *'operator'*: *'ADD'*,

  *'operand'*: {

  *'name'*: *'Interplanetary Cruise #%s'* % uuid.uuid4(),

  # Recommendation: Set the campaign to PAUSED when creating it to

  # stop the ads from immediately serving. Set to ENABLED once 
you've

  # added targeting and the ads are ready to serve.

  *'status'*: *'PAUSED'*,

  *'advertisingChannelType'*: *'SEARCH'*,

  *'biddingStrategyConfiguration'*: {

  *'biddingStrategyType'*: *'MANUAL_CPC'*,

  },

  *'endDate'*: (datetime.datetime.now() +

  datetime.timedelta(365)).strftime(*'%Y%m%d'*),

  # Note that only the budgetId is required

  *'budget'*: {

  *'budgetId'*: budget_id

  },

  *'networkSetting'*: {

  *'targetGoogleSearch'*: *'true'*,

  *'targetSearchNetwork'*: *'true'*,

  *'targetContentNetwork'*: *'false'*,

  *'targetPartnerSearchNetwork'*: *'false'*

  },

  # Optional fields

  *'startDate'*: (datetime.datetime.now() +

datetime.timedelta(1)).strftime(*'%Y%m%d'*),

  *'frequencyCap'*: {

  *'impressions'*: *'5'*,

  *'timeUnit'*: *'DAY'*,

  *'level'*: *'ADGROUP'*

  },

  *'settings'*: [

  {

  *'xsi_type'*: *'GeoTargetTypeSetting'*,

  *'positiveGeoTargetType'*: *'DONT_CARE'*,

  *'negativeGeoTargetType'*: *'DONT_CARE'*

  }

  ]

  }

  }, {

  *'operator'*: *'ADD'*,

  *'operand'*: {

  *'name'*: *'Interplanetary Cruise banner #%s'* % uuid.uuid4(),

  *'status'*: *'PAUSED'*,

  *'biddingStrategyConfiguration'*: {

  *'biddingStrategyType'*: *'MANUAL_CPC'*

  },

  *'endDate'*: (datetime.datetime.now() +

  datetime.timedelta(365)).strftime(*'%Y%m%d'*),

  # Note that only the budgetId is required

  *'budget'*: {

  *'budgetId'*: budget_id

  },

  *'advertisingChannelType'*: *'DISPLAY'*

  }

  }]

  campaigns = campaign_service.mutate(operations)


  # Display results.

  for campaign in campaigns[*'value'*]:

print(*'Campaign with name "%s" and id "%s" was added.'*

  % (campaign[*'name'*], campaign[*'id'*]))



if __name__ == *'__main__'*:

  # Initialize client object.

  adwords_client = adwords.AdWordsClient.LoadFromStorage(*'googleads.yaml'*)


  main(adwords_client)import uuid

from googleads import adwords



def *main*(client):

  # Initialize appropriate services.

  campaign_service = client.GetService(*'CampaignService'*, version=
*'v201809'*)

  budget_service = client.GetService(*'BudgetService'*, version=*'v201809'*)


  # Create a budget, which can be shared by multiple campaigns.

  budget = {

  *'name'*: *'Interplanetary budget #%s'* % uuid.uuid4(),

  *'amount'*: {

  *'microAmount'*: *'5000'*

  },

  *'deliveryMethod'*: *'STANDARD'*

  }


  budget_operations = [{

  *'operator'*: *'ADD'*,

  *'operand'*: budget

  }]


  # Add the budget.

  budget_id = budget_service.mutate(budget_operations)[*'value'*][0][

  *'budgetId'*]


  # Construct operations and add campaigns.

  operations = [{

  *'operator'*: *'ADD'*,

  *'operand'*: {

  *'name'*: *'Interplanetary Cruise #%s'* % uuid.uuid4(),

  # Recommendation: Set the campaign to PAUSED when creating it to

  # stop the ads from immediately serving. Set to ENABLED once 
you've

  # added targeting and the ads are ready to serve.

  *'status'*: *'PAUSED'*,

  *'adv

Re: Calls failing to "change_event" report

2021-01-20 Thread Caihua Du
Hi team,

Can you please let us know who can help with this? This issue is blocking
us to use Google Ads API and we have reported for more than 2 months.

Your help is highly appreciated, thank you!

Caihua.

On Mon, Jan 18, 2021 at 9:13 PM Caihua Du  wrote:

> Hi Anash,
>
> Can you please take a look and let me know if you have any findings?
>
> To me this is a P0 bug that the status predict does not support NOT_IN
> syntax.
>
>
> On Tue, Jan 12, 2021 at 10:32 PM Caihua Du  wrote:
>
>> Hi Anash,
>>
>> Unfortunately, this is still not working. Here is the latest request id
>> from my client. Please take a look. Thanks a lot!
>>
>> [2021-01-13 06:30:29Z] - Request made: Host:
>> https://googleads.googleapis.com, Method:
>> /google.ads.googleads.v6.services.GoogleAdsService/Search,
>> ClientCustomerID: 6773506668,  RequestID: f05raAO6jxD3qggf1h5p4w, IsFault:
>> True, FaultMessage: Status(StatusCode=""InvalidArgument"", Detail=""Request
>> contains an invalid argument."",
>> DebugException=""Grpc.Core.Internal.CoreErrorDetailException:
>> {""created"":""@1610519429.86300"",""description"":""Error received
>> from peer
>> ipv6:[2607:f8b0:400a:804::200a]:443"",""file"":""T:\src\github\grpc\workspace_csharp_ext_windows_x64\src\core\lib\surface\call.cc"",""file_line"":1062,""grpc_message"":""Request
>> contains an invalid argument."",""grpc_status"":3}"")
>>
>> On Wed, Dec 9, 2020 at 7:58 AM Google Ads API Forum Advisor Prod <
>> adsapiforumadvi...@gmail.com> wrote:
>>
>>> Hi Caihua,
>>>
>>> We pushed a fix to our servers, so could you please confirm if the issue
>>> is addressed? If it persists, please respond with a fresh log and I'll
>>> follow up with the relevant teams again.
>>>
>>> Cheers
>>> Anash
>>>
>>>
>>>
>>> ref:_00D1U1174p._5004Q27uEVS: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/CAF_LT6Bm9XspQ6a5Hh2u_2xamQ8JOBrZNtHkCe3aTgOZ5CSd3Q%40mail.gmail.com.


Test account get campaings will not get sub accounts

2021-01-20 Thread Monty808
Google Why cant I list campaigns in a test account?  

I get nothing when I run get_campaigns.  I am logged into my test manager 
account xxx-xxx-xxx

The campaign is under sub account yyy-yyy.yyy.  Google in the UI I see 
them!  One would think I would be able to get from the api.  One would 
think I would be able to specify which account id to list.  Google this is 
your code 

How do I select the account to get campaigns?

from googleads import adwords

PAGE_SIZE = 100



def *main*(client):

  # Initialize appropriate service.

  campaign_service = client.GetService(*'CampaignService'*, version=
*'v201809'*)


  # Construct selector and get all campaigns.

  offset = 0

  selector = {

  *'fields'*: [*'Id'*, *'Name'*, *'Status'*],

  *'paging'*: {

  *'startIndex'*: str(offset),

  *'numberResults'*: str(PAGE_SIZE)

  }

  }


  more_pages = True

  while more_pages:

page = campaign_service.get(selector)


# Display results.

if *'entries'* in page:

  for campaign in page[*'entries'*]:

print(*'Campaign with id "%s", name "%s", and status "%s" was '*

  *'found.'* % (campaign[*'id'*], campaign[*'name'*],

  campaign[*'status'*]))

else:

  print(*'No campaigns were found.'*)

offset += PAGE_SIZE

selector[*'paging'*][*'startIndex'*] = str(offset)

more_pages = offset < int(page[*'totalNumEntries'*])



if __name__ == *'__main__'*:

  adwords_client = adwords.AdWordsClient.LoadFromStorage()

  main(adwords_client)


-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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/9a96ba9d-adfb-4e9d-be1d-fe6cf0502e34n%40googlegroups.com.


Re: How could I update campaign bidding strategy with standard bidding strategies

2021-01-20 Thread Rukeith Tseng
Hi Anthony,
 I know this doc. But I want to set MAXIMIZE_CONVERSION_VALUE without 
the setting target_roas. What is like Google Ads UI.

On Tuesday, January 19, 2021 at 10:34:40 PM UTC+8 adsapiforumadvisor wrote:

> Hello,
>
> You will need to update the campaign_bidding_strategy 
> 
>  
> union field as described from the link you shared. This Python example 
> 
>  
> shows how to create a local campaign with a standard 
> MAXIMIZE_CONVERSION_VALUE bidding strategy. As you can see, it is setting 
> the target_roas 
> 
>  
> of this bid strategy. 
>
> Cheers,
> Anthony
>
> [image: Google Logo] 
> Anthony 
> Google Ads API Team 
>   
>  
>
> ref:_00D1U1174p._5004Q2B1PpN: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/6675c8a7-f4cc-43e8-885a-beaa4f8d70adn%40googlegroups.com.


Re: Auto-Update Page Feed for Dynamic Search Ads

2021-01-20 Thread Google Ads API Forum Advisor Prod
Hi Shivangi,

Thank you for your follow up.

There is currently no automatic update feature in the Google Ads API. You will 
need to implement your own scheduler or something similar on your end for it to 
trigger the calls to the API's services.

As for updating, you can use the update operation instead of create.

Best regards,

Peter Laurence Napa Oliquino
Google Ads API Team
ref:_00D1U1174p._5004Q2B1iX2: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/9XnSy0QN9JTV00dLIjklOQSOGJMVQ3zekDgw%40sfdc.net.


Re: Query to get All visits from an Ad, and orders made through an Ad.

2021-01-20 Thread Google Ads API Forum Advisor Prod
Hi,

Thank you for sharing these details.

Allow me to reach out to the rest of our team so we can discuss and investigate 
further. We'll reach out to you once we have gathered our findings.

Best regards,

Peter Laurence Napa Oliquino
Google Ads API Team
ref:_00D1U1174p._5004Q2B1eb1: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/Q2ZFz0QN9MEB00IfzTWDvtTQGvyR98BVWKhA%40sfdc.net.


Cannot setup billing for ad account via API

2021-01-20 Thread san...@knorex.com
I am having this error when I link existing payment profile ID to my ad 
account:

"The customer does not have permission to signup for billing or does not 
have permission to use a given payments profile ID."

Payment profile ID status is APPROVED.

I dont know where is my Google representative.

Martin

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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/a6c3ebd3-7ace-438a-a1b8-961ba973c8f4n%40googlegroups.com.


Re: refresh token issue

2021-01-20 Thread Google Ads API Forum Advisor Prod
Hi,

Yes, the navigation to the API console support should start here, you should 
then find the Stack Overflow google-api tag link which you can also use to 
reach out to the community.

Best regards,

Peter Laurence Napa Oliquino
Google Ads API Team
ref:_00D1U1174p._5004Q2B1YT5: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/__okh0QN9RSY00akdfdcbhRQSXUOILCLyX7A%40sfdc.net.


Re: ChangeStatusResourceType map to UI

2021-01-20 Thread Google Ads API Forum Advisor Prod
Hi,

Thank you for your follow up.

For your #1 question, it should be included in the same row. For that row, the 
change_status.ad_group will be populated as indicator of which ad group the ad 
group criterion belongs to.

For your #2 question, the services I recommended earlier was for you to be able 
to retrieve further information of the entities that were changed. However, 
please note that those services will not return information related to changes, 
instead, calls to those services should return all available and current 
fields/values related to the entity.

Best regards,

Peter Laurence Napa Oliquino
Google Ads API Team
ref:_00D1U1174p._5004Q2AGQkb: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/0e6gH0QN9VD400Kl4fSR1PQ6ufqcuEZCkYUQ%40sfdc.net.