Failed to create ad group

2024-09-12 Thread Mike Fang
Hi, 
I am trying to create a ad group but got error "Resource was not found"
Below are the logs
W, [2024-09-12T08:06:40.189184 #2]  WARN -- : CID: 7167208872, Host: 
dns:///googleads.googleapis.com:443, Method: 
/google.ads.googleads.v16.services.AdGroupService/MutateAdGroups, IsFault: 
yes, Request ID: ynKJc7LtVWPVTfnVLCb8AA
I, [2024-09-12T08:06:40.189463 #2]  INFO -- : Outgoing request: Headers: 
{"developer-token":"REDACTED","login-customer-id":"6658944090","x-goog-api-client":"gl-ruby/3.2.4
 
gccl/27.0.0 gax/0.21.1 gapic/27.0.0 grpc/1.64.0 
pb/3.25.3","x-goog-request-params":"customer_id=7167208872"} Payload: 
{"customerId":"7167208872","operations":[{"create":{"name":"Google Ads Demo 
(1)","status":"ENABLED","adRotationMode":"OPTIMIZE","campaign":"customers/7167208872/campaigns/21510470106"}}]}
I, [2024-09-12T08:06:40.189545 #2]  INFO -- : Incoming response (errors):
  
Google::Ads::GoogleAds::Errors::GoogleAdsError(Google::Ads::GoogleAds::Errors::GoogleAdsError):
 
Resource was not found.
  called from: 
/app/vendor/bundle/ruby/3.2.0/gems/honeybadger-5.4.1/lib/honeybadger/breadcrumbs/logging.rb:21:in
 
`add'
/app/vendor/bundle/ruby/3.2.0/gems/google-ads-googleads-27.0.0/lib/google/ads/google_ads/interceptors/error_interceptor.rb:67:in
 
`rescue in request_response': 
Google::Ads::GoogleAds::Errors::GoogleAdsError 
(Google::Ads::GoogleAds::Errors::GoogleAdsError)
/app/vendor/bundle/ruby/3.2.0/gems/grpc-1.64.0-x86_64-linux/src/ruby/lib/grpc/generic/active_call.rb:29:in
 
`check_status': 3:Request contains an invalid argument.. 
debug_error_string:{UNKNOWN:Error received from peer 
ipv4:172.253.122.95:443 
{created_time:"2024-09-12T08:06:40.188612912+00:00", grpc_status:3, 
grpc_message:"Request contains an invalid argument."}} 
(GRPC::InvalidArgument)

Please help us
Thanks

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
Also find us on our blog:
https://googleadsdeveloper.blogspot.com/
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~

You received this message because you are subscribed to the Google
Groups "AdWords API and Google Ads API Forum" group.
To post to this group, send email to adwords-api@googlegroups.com
To unsubscribe from this group, send email to
adwords-api+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/adwords-api?hl=en
--- 
You received this message because you are subscribed to the Google Groups 
"Google Ads API and AdWords API Forum" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to adwords-api+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/adwords-api/eca2882e-53a2-468b-9e34-c44752a5996en%40googlegroups.com.


Error: Resource was not found

2024-08-07 Thread Mike Fang
Hi 
I got error `Resource was not found.` when trying to create a campaign
The log is below
I, [2024-08-07T17:07:01.776066 #91953]  INFO -- : CID: 8667304723, Host: 
dns:///googleads.googleapis.com:443, Method: 
/google.ads.googleads.v16.services.CampaignBudgetService/MutateCampaignBudgets, 
IsFault: no, Request ID: 194NJstmDAeado5tvRnN8Q
D, [2024-08-07T17:07:01.776717 #91953] DEBUG -- : Outgoing request: 
Headers: 
{"developer-token":"REDACTED","login-customer-id":"9677213623","x-goog-api-client":"gl-ruby/3.2.4
 
gccl/27.0.0 gax/0.21.1 gapic/27.0.0 grpc/1.64.0 
pb/3.25.3","x-goog-request-params":"customer_id=8667304723"} Payload: 
{"customerId":"8667304723","operations":[{"create":{"name":"Interplanetary 
Budget 
1723021621231","amountMicros":"12300","deliveryMethod":"STANDARD","explicitlyShared":false}}]}
D, [2024-08-07T17:07:01.776771 #91953] DEBUG -- : Incoming response: 
Payload: 
{"results":[{"resourceName":"customers/8667304723/campaignBudgets/13806851451"}]}
W, [2024-08-07T17:07:02.266391 #91953]  WARN -- : CID: 8667304723, Host: 
dns:///googleads.googleapis.com:443, Method: 
/google.ads.googleads.v16.services.CampaignService/MutateCampaigns, 
IsFault: yes, Request ID: 7QX2li7N61ZWb_xB1gjxLw
I, [2024-08-07T17:07:02.267143 #91953]  INFO -- : Outgoing request: 
Headers: 
{"developer-token":"REDACTED","login-customer-id":"9677213623","x-goog-api-client":"gl-ruby/3.2.4
 
gccl/27.0.0 gax/0.21.1 gapic/27.0.0 grpc/1.64.0 
pb/3.25.3","x-goog-request-params":"customer_id=8667304723"} Payload: 
{"customerId":"8667304723","operations":[{"create":{"name":"errr","status":"PAUSED","advertisingChannelType":"SHOPPING","shoppingSetting":{"merchantId":"688974403","campaignPriority":0,"enableLocal":true},"campaignBudget":"customers/8667304723/campaignBudgets/13806851451","startDate":"2024-08-07","endDate":"2024-08-09","manualCpc":{}}}]}
I, [2024-08-07T17:07:02.267427 #91953]  INFO -- : Incoming response 
(errors):
  
Google::Ads::GoogleAds::Errors::GoogleAdsError(Google::Ads::GoogleAds::Errors::GoogleAdsError):
 
Resource was not found.

Could you help me to investigate it? 

Thanks

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
Also find us on our blog:
https://googleadsdeveloper.blogspot.com/
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~

You received this message because you are subscribed to the Google
Groups "AdWords API and Google Ads API Forum" group.
To post to this group, send email to adwords-api@googlegroups.com
To unsubscribe from this group, send email to
adwords-api+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/adwords-api?hl=en
--- 
You received this message because you are subscribed to the Google Groups 
"Google Ads API and AdWords API Forum" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to adwords-api+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/adwords-api/4fdc41c1-ea53-45ae-9768-ed7433187784n%40googlegroups.com.


The campaign ID from ChangeEvent new resource is 0

2024-07-19 Thread Mike Fang
Hi 
I used to use ChangeEvent to query the changed campaign and use the 
campaign ID to query more details about the changed campaign
But now I noticed the ID in the ChangeEvent new resource campaign is 0
Could you help to check why it is?

Log is here
D, [2024-07-19T17:31:48.634249 #77225] DEBUG -- : Outgoing request: 
Headers: 
{"developer-token":"REDACTED","login-customer-id":"9677213623","x-goog-api-client":"gl-ruby/3.2.4
 
gccl/27.0.0 gax/0.21.1 gapic/27.0.0 grpc/1.64.0 
pb/3.25.3","x-goog-request-params":"customer_id=5359270827"} Payload: 
{"customerId":"5359270827","query":"SELECT\n 
change_event.change_date_time,\n change_event.change_resource_type,\n 
change_event.new_resource\nFROM\n change_event\nWHERE\n 
change_event.change_date_time <= '2024-07-20'\n AND\n 
change_event.change_date_time >= '2024-07-18'\nLIMIT 1\n"} 
D, [2024-07-19T17:31:48.634625 #77225] DEBUG -- : Incoming response: 
Payload: 
{"fieldMask":"changeEvent.changeDateTime,changeEvent.changeResourceType,changeEvent.newResource","queryResourceConsumption":"633"}
 
I, [2024-07-19T17:31:49.762310 #77225] INFO -- : CID: 9004440182, Host: 
dns:///googleads.googleapis.com:443, Method: 
/google.ads.googleads.v16.services.GoogleAdsService/Search, IsFault: no, 
Request ID: bQap5U8F3I3hUHPTR8PKqQ 
D, [2024-07-19T17:31:49.762945 #77225] DEBUG -- : Outgoing request: 
Headers: 
{"developer-token":"REDACTED","login-customer-id":"9677213623","x-goog-api-client":"gl-ruby/3.2.4
 
gccl/27.0.0 gax/0.21.1 gapic/27.0.0 grpc/1.64.0 
pb/3.25.3","x-goog-request-params":"customer_id=9004440182"} Payload: 
{"customerId":"9004440182","query":"SELECT\n 
change_event.change_date_time,\n change_event.change_resource_type,\n 
change_event.new_resource\nFROM\n change_event\nWHERE\n 
change_event.change_date_time <= '2024-07-20'\n AND\n 
change_event.change_date_time >= '2024-07-18'\nLIMIT 1\n"} D, 
[2024-07-19T17:31:49.767810 #77225] DEBUG -- : Incoming response: Payload: 
{"results":[{"changeEvent":{"resourceName":"customers/9004440182/changeEvents/1721286593053599~0~0","changeDateTime":"2024-07-18
 
00:09:53.053599","changeResourceType":"AD_GROUP","newResource":{"adGroup":{"name":"527949
 
| | 092820223 | | GA groups - Jul 3 2024_updated from GA 
|07-19-2024",{"changeEvent":{"resourceName":"customers/9004440182/changeEvents/1721286594786991~0~0","changeDateTime":"2024-07-18
 
00:09:54.786991","changeResourceType":"AD_GROUP","newResource":{"adGroup":{"name":"527950
 
| loquats | 092820223 | GA 0 product dynamic cost - 05092024 | GA groups - 
Jul 3 2024_updated from GA 
|07-19-2024",{"changeEvent":{"resourceName":"customers/9004440182/changeEvents/1721286685102459~0~0","changeDateTime":"2024-07-18
 
00:11:25.102459","changeResourceType":"CAMPAIGN_BUDGET","newResource":{"campaignBudget":{"resourceName":"customers/9004440182/campaignBudgets/13752413511","id":"13752413511","name":"Interplanetary
 
Budget 
1721286684805","amountMicros":"250","deliveryMethod":"STANDARD","explicitlyShared":false,{"changeEvent":{"resourceName":"customers/9004440182/changeEvents/1721286685499582~0~0","changeDateTime":"2024-07-18
 
00:11:25.499582","changeResourceType":"CAMPAIGN","newResource":{"campaign":{"name":"GA
 
groups - Jul 3 2024_updated from GA+update name agagin 
","campaignBudget":"customers/9004440182/campaignBudgets/13752413511",{"changeEvent":{"resourceName":"customers/9004440182/changeEvents/1721286689217263~0~0","changeDateTime":"2024-07-18
 
00:11:29.217263","changeResourceType":"AD_GROUP","newResource":{"adGroup":{"name":"527949
 
| | 092820223 | | GA groups - Jul 3 2024_updated from GA+update name agagin 
|07-19-2024",{"changeEvent":{"resourceName":"customers/9004440182/changeEvents/1721286690959503~0~0","changeDateTime":"2024-07-18
 
00:11:30.959503","changeResourceType":"AD_GROUP","newResource":{"adGroup":{"name":"527950
 
| loquats | 092820223 | GA 0 product dynamic cost - 05092024 | GA groups - 
Jul 3 2024_updated from GA+update name agagin 
|07-19-2024",{"changeEvent":{"resourceName":"customers/9004440182/changeEvents/1721287456956334~0~0","changeDateTime":"2024-07-18
 
00:24:16.956334","changeResourceType":"CAMPAIGN_BUDGET","newResource":{"campaignBudget":{"resourceName":"customers/9004440182/campaignBudgets/13752436788","id":"13752436788","name":"Interplanetary
 
Budget 
1721287456674","amountMicros":"300","deliveryMethod":"STANDARD","explicitlyShared":false,{"changeEvent":{"resourceName":"customers/9004440182/changeEvents/1721287457385150~0~0","changeDateTime":"2024-07-18
 
00:24:17.38515","changeResourceType":"CAMPAIGN","newResource":{"campaign":{"name":"GA
 
bug verify - may 30 2024_updated API update test 
","campaignBudget":"customers/9004440182/campaignBudgets/13752436788",{"changeEvent":{"resourceName":"customers/9004440182/changeEvents/1721295631384703~0~0","changeDateTime":"2024-07-18
 
02:40:31.384703","changeResourceType":"AD_GROUP","newResource":{"adGroup":{"name":"8265
 
| | Google Ads Account Test - M

ad_group_ad_asset_view missing clicks, conversions for responsive search ads?

2024-07-16 Thread Mike Sullivan
Is it just me? Querying ad_group_ad_asset_view, looking for impressions, 
cost, conversion, clicks and any responsive search ads seem to have only 
impressions returned. Demand gen ads return all metrics. The exact same 
query used to work for both ad types.

Is this a new behavior or a bug?

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
Also find us on our blog:
https://googleadsdeveloper.blogspot.com/
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~

You received this message because you are subscribed to the Google
Groups "AdWords API and Google Ads API Forum" group.
To post to this group, send email to adwords-api@googlegroups.com
To unsubscribe from this group, send email to
adwords-api+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/adwords-api?hl=en
--- 
You received this message because you are subscribed to the Google Groups 
"Google Ads API and AdWords API Forum" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to adwords-api+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/adwords-api/a130ea7c-0f0d-499b-8065-dba008f880b2n%40googlegroups.com.


Problem with new aggregate views in v17

2024-06-10 Thread Mike Sullivan
When I make a REST query to:
https://googleads.googleapis.com/v17/customers//googleAds:search

with content:
{"query":"SELECT asset.id,metrics.impressions FROM 
campaign_aggregate_asset_view WHERE segments.date DURING LAST_30_DAYS 
PARAMETERS omit_unselected_resource_names=true"}

It responds with 400 Bad Request with Content:
{
  "error": {
"code": 400,
"message": "Request contains an invalid argument.",
"status": "INVALID_ARGUMENT",
"details": [
  {
"@type": 
"type.googleapis.com/google.ads.googleads.v17.errors.GoogleAdsFailure",
"errors": [
  {
"errorCode": {
  "requestError": "UNKNOWN"
},
"message": "The error code is not in this version.",
"trigger": {
  "stringValue": "A___Asset.asset_id"
}
  }
],
"requestId": "hHwTN9-DTOaF1U7jf6Sgog"
  }
]
  }
}

I get this error for any query that uses a field from the 'asset' resource 
or the 'campaign' resource, both of which should be ok.

Mike

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
Also find us on our blog:
https://googleadsdeveloper.blogspot.com/
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~

You received this message because you are subscribed to the Google
Groups "AdWords API and Google Ads API Forum" group.
To post to this group, send email to adwords-api@googlegroups.com
To unsubscribe from this group, send email to
adwords-api+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/adwords-api?hl=en
--- 
You received this message because you are subscribed to the Google Groups 
"Google Ads API and AdWords API Forum" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to adwords-api+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/adwords-api/51f8fc3f-f3e7-4d84-9267-a08b1a718411n%40googlegroups.com.


Re: unknown keywords: :endpoint_template, :universe_domain

2024-05-28 Thread Mike Fang
Hi,
There are no logs.
I use Ruby library version 27.0.0
The error happened when I call below code

[12] pry(main)> google_ads_service = client.service.google_ads
ArgumentError: unknown keywords: :endpoint_template, :universe_domain
from 
/Users/mikefang/.rbenv/versions/3.1.3/lib/ruby/gems/3.1.0/gems/gapic-common-0.20.0/lib/gapic/grpc/service_stub.rb:61:in
 
`initialize'

Is this information enough?

On Monday, May 27, 2024 at 8:48:13 PM UTC+8 Google Ads API Forum Advisor 
wrote:

> Hi,
>
> Thank you for reaching out to the Google Ads API support team.
>
> I could see that you are encountering the unknown keywords error while 
> upgrading from v15 to v16. To analyse your issue further, kindly provide us 
> with the complete API logs (*request* 
> 
>  
> and 
> 
> *response* 
> 
>  
> with 
> 
> *request-id* 
> 
>  
> and 
> *request
>  
> header* 
> )
>  
> generated at your end.
>
> If you are using a client library and haven't enabled the logging yet, I 
> would request you to enable logging for the specific client library that 
> you are using. You can refer to the guides 
> 
> *Java* 
> 
> , 
> 
> *.Net* 
> 
> , 
> 
> *PHP* 
> 
> , 
> 
> *Python* 
> 
> , 
> 
> *Ruby* 
>  
> or 
> 
> *Perl* 
>  
> to enable logging at your end. For REST interface requests, you can enable 
> logging via the curl command by using the -i flag.
>   
> This message is in relation to case 
> "ref:!00D1U01174p.!5004Q02tJ66t:ref" (ADR-00236617)
>
> Thanks,
>   
> [image: Google Logo] Google Ads API Team 
>
>
>

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
Also find us on our blog:
https://googleadsdeveloper.blogspot.com/
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~

You received this message because you are subscribed to the Google
Groups "AdWords API and Google Ads API Forum" group.
To post to this group, send email to adwords-api@googlegroups.com
To unsubscribe from this group, send email to
adwords-api+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/adwords-api?hl=en
--- 
You received this message because you are subscribed to the Google Groups 
"Google Ads API and AdWords API Forum" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to adwords-api+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/adwords-api/6cb76492-4afa-46a0-a91a-0607b6b2118en%40googlegroups.com.


unknown keywords: :endpoint_template, :universe_domain

2024-05-26 Thread Mike Fang
Hi,
When I update my library from 15 to 16, I got below error mesage.
But I didn't find any keyword endpoint_template and universe_domain in our 
program

ERROR: error msg from google ads: unknown keywords: :endpoint_template, 
:universe_domain

Could you help to explain what the message means?

Thanks

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
Also find us on our blog:
https://googleadsdeveloper.blogspot.com/
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~

You received this message because you are subscribed to the Google
Groups "AdWords API and Google Ads API Forum" group.
To post to this group, send email to adwords-api@googlegroups.com
To unsubscribe from this group, send email to
adwords-api+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/adwords-api?hl=en
--- 
You received this message because you are subscribed to the Google Groups 
"Google Ads API and AdWords API Forum" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to adwords-api+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/adwords-api/f76829c4-414f-46df-a041-255bc1c0b9f6n%40googlegroups.com.


Re: can't create search campaign - "changes failed to save"

2024-05-02 Thread Mike Field (Drops_Mike)
Thanks for the response

Account is 194-827-7843

Thanks so much, I look forward to hearing back from you. I've been trying 
all week and still getting the same error.
Mike

On Monday 29 April 2024 at 19:03:44 UTC+12 Google Ads API Forum Advisor 
wrote:

> Hi,
>
> Thank you for reaching out to the Google Ads API support team.
>
> Kindly provide us with the Google Ads account customer ID so that we can 
> route you to the appropriate support team. 
>   
> This message is in relation to case 
> "ref:!00D1U01174p.!5004Q02tIosQ:ref" (ADR-00232961)
>
> Thanks,
>   
> [image: Google Logo] Google Ads API Team 
>
>
>

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
Also find us on our blog:
https://googleadsdeveloper.blogspot.com/
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~

You received this message because you are subscribed to the Google
Groups "AdWords API and Google Ads API Forum" group.
To post to this group, send email to adwords-api@googlegroups.com
To unsubscribe from this group, send email to
adwords-api+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/adwords-api?hl=en
--- 
You received this message because you are subscribed to the Google Groups 
"Google Ads API and AdWords API Forum" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to adwords-api+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/adwords-api/04951f47-cf05-41fa-8a81-cc9193597c61n%40googlegroups.com.


Google Ads PHP

2024-04-29 Thread Mike Scola
So I'm utilizing v23 of the googleads/google-ads-php.
I have all my credentials setup, and everything is working correctly.

I can confirm this by manually posting to the /token endpoint, and get an 
access token. However, utilizing the SDK I get "{ "message": "Request is 
missing required authentication credential. Expected OAuth 2 access token, 
login cookie or other valid authentication credential. See 
https:\/\/developers.google.com\/identity\/sign-in\/web\/devconsole-project.", 
"code": 16, "status": "UNAUTHENTICATED", "details": [ { "@type": 
"type.googleapis.com\/google.ads.googleads.v16.errors.GoogleAdsFailure", 
"errors": [ { "errorCode": { "authenticationError": 
"OAUTH_TOKEN_HEADER_INVALID" }, "message": "Oauth token HTTP header is 
malformed." } ], "requestId": "k4fKAZ34qnUykl_MdjuIWw" } ] }"

It appears as though the access token is not being automatically generated.

Here is my code for getting the GoogleAdsClient object:

public static function getGoogleAdsClient(): GoogleAdsClient
{

$oAuth2Credential = (new OAuth2TokenBuilder())
->withClientId(config('google-ads.client_id'))
->withClientSecret(config('google-ads.client_secret'))
->withRefreshToken(config('google-ads.refresh_token'))
->build();

return (new GoogleAdsClientBuilder())
->withOAuth2Credential($oAuth2Credential)
->withDeveloperToken(config('google-ads.developer_token'))
->usingGapicV2Source(true)
->build();
}

And then my quick test:

$client = App\Libraries\Google\Ads::getGoogleAdsClient();

$googleAdsServiceClient = $client->getGoogleAdsServiceClient();

$query = 'SELECT campaign.id, campaign.name FROM campaign ORDER BY 
campaign.id';

$stream = $googleAdsServiceClient->searchStream(

SearchGoogleAdsStreamRequest::build(config('google-ads.customer_id'), 
$query)
);

foreach ($stream->iterateAllElements() as $googleAdsRow) {
printf(
"Campaign with ID %d and name '%s' was found.%s",
$googleAdsRow->getCampaign()->getId(),
$googleAdsRow->getCampaign()->getName(),
PHP_EOL
);
}

Any help would be appreciated because I'm tearing my hair out trying to get 
this to work.

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
Also find us on our blog:
https://googleadsdeveloper.blogspot.com/
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~

You received this message because you are subscribed to the Google
Groups "AdWords API and Google Ads API Forum" group.
To post to this group, send email to adwords-api@googlegroups.com
To unsubscribe from this group, send email to
adwords-api+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/adwords-api?hl=en
--- 
You received this message because you are subscribed to the Google Groups 
"Google Ads API and AdWords API Forum" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to adwords-api+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/adwords-api/0f02c5b8-2f17-4043-9471-e4d015be32b8n%40googlegroups.com.


Can't create search campaign - "Changes Failed to Save"

2024-04-28 Thread Mike Field (Drops_Mike)
Hey all

I'm having a real frustrating time trying to create a new search campaign, 
and I've been at it for a few days now.

At the end of the process I get a "Changes Failed to Save" message in the 
bottom left of my screen.

There is no individual error message anywhere else in the other parts of 
the process, and I've tried removing and re-adding pics like I say in 
another message in this group.

I've tried refreshing the page, which ditched all the data from the 
campaign so I had to start again. This has happened 3 times now for 
different reasons - I saved all the details in a doc after the first time 
so less destructive!

>From what I can see in the group and on reddit this is a really old issue 
that still hasn't been addressed - frustrating!!

Thanks, I hope to hear back from support. If this is the wrong way to do 
that then please let me know lol

Mike

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
Also find us on our blog:
https://googleadsdeveloper.blogspot.com/
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~

You received this message because you are subscribed to the Google
Groups "AdWords API and Google Ads API Forum" group.
To post to this group, send email to adwords-api@googlegroups.com
To unsubscribe from this group, send email to
adwords-api+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/adwords-api?hl=en
--- 
You received this message because you are subscribed to the Google Groups 
"Google Ads API and AdWords API Forum" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to adwords-api+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/adwords-api/a460a6b8-54cd-47d9-aab0-8a7061cb48bbn%40googlegroups.com.


Re: developer token basic access requested 3 weeks ago with no reply

2024-03-25 Thread Mike Reese
Resolved --

Thank you so much for the assistance!

Thank you as well, Compliance Team!

On Friday, March 22, 2024 at 4:05:23 AM UTC-5 Google Ads API Forum Advisor 
wrote:

> Hi,
>
> I would like to inform you that the case Id will be present in the auto 
> generated email from the compliance team after submitting the application 
> form. 
>
> Kindly note that the concerns related to access requests are out of scope 
> for the Google Ads API support team, as our team specializes in Google 
> Ads API  related 
> concerns and technical implementations only. 
>
> @Compliance team, please confirm if you are able to assist in the below 
> access request and the user did not receive the Case Id.
>
> Summary: The user has applied for basic access with the below details. 
>
>
>
>- Google Ads Manager Account (MCC) ID: 815-741-3164 
>
> 
>  
>
>
>- Case ID: requested 
>
> Do reach out to the Google Ads API 
> support
>  
> team for any queries related to the API.
>
>   
> This message is in relation to case 
> "ref:!00D1U01174p.!5004Q02s06pn:ref" (ADR-00228068)
>
> Thanks,
>   
> [image: Google Logo] Google Ads API Team 
>
>
>

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
Also find us on our blog:
https://googleadsdeveloper.blogspot.com/
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~

You received this message because you are subscribed to the Google
Groups "AdWords API and Google Ads API Forum" group.
To post to this group, send email to adwords-api@googlegroups.com
To unsubscribe from this group, send email to
adwords-api+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/adwords-api?hl=en
--- 
You received this message because you are subscribed to the Google Groups 
"Google Ads API and AdWords API Forum" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to adwords-api+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/adwords-api/f4b36df3-17b0-4eef-9337-2783a5f10322n%40googlegroups.com.


Re: developer token basic access requested 3 weeks ago with no reply

2024-03-22 Thread Mike Reese
Thank you for bringing visibility to this. We still haven't seen any 
activity on the account - it's still showing as Test Account, not pending, 
and still no Case ID or outreach from the compliance team. For our own 
planning purposes, what's the timeline we can expect an update at?

On Wednesday, March 20, 2024 at 2:34:50 PM UTC-5 Google Ads API Forum 
Advisor wrote:

> Hi,
>
> Thank you for reaching out to the Google Ads API support team.
>
> After reviewing your concern, I understand that you have applied for 
> API access and you haven't received any updates on your application status.
>
> Since the access requests are handled by the Google Ads 
> API Compliance team, we are transferring the case to the Ads 
> API Compliance team.
>
> @Compliance team, please confirm if you are able to assist in the 
> below access request.
>
> Summary: The user has applied for API access with the below details. 
>
>- Google Ads Manager Account (MCC) ID: 815-741-3164 <(815)%20741-3164> 
>- Cases ID: Not Received 
>- Access type: Basic Access 
>
> Do reach out to the Google Ads API support team 
> , for any 
> queries related to the API.
>   
> This message is in relation to case 
> "ref:!00D1U01174p.!5004Q02s06pn:ref" (ADR-00228068)
>
> Thanks,
>   
> [image: Google Logo] Google Ads API Team 
>
>
>

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
Also find us on our blog:
https://googleadsdeveloper.blogspot.com/
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~

You received this message because you are subscribed to the Google
Groups "AdWords API and Google Ads API Forum" group.
To post to this group, send email to adwords-api@googlegroups.com
To unsubscribe from this group, send email to
adwords-api+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/adwords-api?hl=en
--- 
You received this message because you are subscribed to the Google Groups 
"Google Ads API and AdWords API Forum" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to adwords-api+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/adwords-api/21bd62e8-9862-4580-9189-12b136bcb75dn%40googlegroups.com.


Developer Token Basic Access requested 3 weeks ago with no reply

2024-03-20 Thread Mike Reese
Hi Google Ads team,

I submitted a Basic Access Request for my Developer Token ~3 weeks ago and 
have been awaiting a decision without any reply. My account is still 
showing as Test Account - it's not even marked as "pending" yet.

Google Ads Manager Account: 815-741-3164 

I don't have a Case ID from the compliance team because I haven't received 
any confirmation or information emails at all yet.

 Is there any chance you can provide me an update on the status of this? 
It's currently a blocker for our development.

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
Also find us on our blog:
https://googleadsdeveloper.blogspot.com/
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~

You received this message because you are subscribed to the Google
Groups "AdWords API and Google Ads API Forum" group.
To post to this group, send email to adwords-api@googlegroups.com
To unsubscribe from this group, send email to
adwords-api+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/adwords-api?hl=en
--- 
You received this message because you are subscribed to the Google Groups 
"Google Ads API and AdWords API Forum" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to adwords-api+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/adwords-api/85e63ad1-5ba3-4120-affb-5f99ffd48a7en%40googlegroups.com.


The error code is not in this version.

2023-10-23 Thread Mike Fang
Hi,
I got this error when I try to creating asset group under a PMax campaign
2023-10-23T08:16:19.645458+00:00 app[web.1]: W, [2023-10-23T08:16:19.645380 
#170]  WARN -- : CID: 3601885092, Host: googleads.googleapis.com:443, 
Method: 
/google.ads.googleads.v14.services.AssetGroupService/MutateAssetGroups, 
IsFault: yes, Request ID: Q_uxdVcvOQMtlsToihjK-w
2023-10-23T08:16:19.645687+00:00 app[web.1]: I, [2023-10-23T08:16:19.645658 
#170]  INFO -- : Outgoing request: Headers: 
{"developer-token":"REDACTED","login-customer-id":"9677213623","x-goog-api-client":"gl-ruby/3.1.3
 
gccl/23.0.0 gax/0.9.0 gapic/23.0.0 
grpc/1.53.2","x-goog-request-params":"customer_id=3601885092"} Payload: 
{"customerId":"3601885092","operations":[{"create":{"campaign":"customers/3601885092/campaigns/20701493713","name":"mike","status":"ENABLED"}}]}
2023-10-23T08:16:19.645790+00:00 app[web.1]: I, [2023-10-23T08:16:19.645768 
#170]  INFO -- : Incoming response (errors):
2023-10-23T08:16:19.645790+00:00 app[web.1]: 
Google::Ads::GoogleAds::Errors::GoogleAdsError(Google::Ads::GoogleAds::Errors::GoogleAdsError):
 
*The error code is not in this version.*

Could you help to check this error?

Thanks
Mike

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
Also find us on our blog:
https://googleadsdeveloper.blogspot.com/
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~

You received this message because you are subscribed to the Google
Groups "AdWords API and Google Ads API Forum" group.
To post to this group, send email to adwords-api@googlegroups.com
To unsubscribe from this group, send email to
adwords-api+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/adwords-api?hl=en
--- 
You received this message because you are subscribed to the Google Groups 
"Google Ads API and AdWords API Forum" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to adwords-api+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/adwords-api/502eb0d7-1e7b-4149-990b-5c05fb4079c5n%40googlegroups.com.


Re: ad groups in change events result has no id attribute

2023-10-23 Thread Mike Fang
Hi,
Is there any update from you?

Thanks

On Thursday, October 19, 2023 at 10:59:00 AM UTC+8 Mike Fang wrote:

> uncropped UI screenshot
> [image: Screenshot 2023-10-19 at 10.57.31 AM.png]
>
> On Thursday, October 19, 2023 at 10:43:08 AM UTC+8 Mike Fang wrote:
>
>> Hi,
>> I would like to know any campaigns, ad groups, assets change during a 
>> period of time. like if there are new campaigns, ad groups, assets 
>> added/updated/renamed...etc
>>
>> thanks
>>
>> [image: Screenshot 2023-10-19 at 10.41.40 AM.png]
>>
>>
>> On Wednesday, October 18, 2023 at 10:17:45 PM UTC+8 Google Ads API Forum 
>> Advisor wrote:
>>
>>> Hi,
>>>
>>> Thank you for reaching out to the Google Ads API support team.
>>>
>>> After reviewing your concern, I understand that, when you query the 
>>> change events for ad groups, few of the returned ad groups have no ID 
>>> attribute.
>>>
>>> Kindly note that the Google Ads API mirrors the Google Ads UI. With 
>>> that, please provide us with the uncropped UI screenshot of the report you 
>>> are trying to duplicate via the google Ads API.
>>>
>>>   
>>> This message is in relation to case "ref:!00D1U01174p.!5004Q02pUA3T:ref"
>>>
>>> Thanks,
>>>   
>>> [image: Google Logo] Google Ads API Team 
>>>
>>>
>>>

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
Also find us on our blog:
https://googleadsdeveloper.blogspot.com/
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~

You received this message because you are subscribed to the Google
Groups "AdWords API and Google Ads API Forum" group.
To post to this group, send email to adwords-api@googlegroups.com
To unsubscribe from this group, send email to
adwords-api+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/adwords-api?hl=en
--- 
You received this message because you are subscribed to the Google Groups 
"Google Ads API and AdWords API Forum" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to adwords-api+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/adwords-api/7e130516-a8cb-4073-abdc-5cc9a99f6ddcn%40googlegroups.com.


Re: ad groups in change events result has no id attribute

2023-10-18 Thread Mike Fang
Hi,
I would like to know any campaigns, ad groups, assets change during a 
period of time. like if there are new campaigns, ad groups, assets 
added/updated/renamed...etc

thanks

[image: Screenshot 2023-10-19 at 10.41.40 AM.png]


On Wednesday, October 18, 2023 at 10:17:45 PM UTC+8 Google Ads API Forum 
Advisor wrote:

> Hi,
>
> Thank you for reaching out to the Google Ads API support team.
>
> After reviewing your concern, I understand that, when you query the change 
> events for ad groups, few of the returned ad groups have no ID attribute.
>
> Kindly note that the Google Ads API mirrors the Google Ads UI. With that, 
> please provide us with the uncropped UI screenshot of the report you are 
> trying to duplicate via the google Ads API.
>
>   
> This message is in relation to case "ref:!00D1U01174p.!5004Q02pUA3T:ref"
>
> Thanks,
>   
> [image: Google Logo] Google Ads API Team 
>
>
>

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
Also find us on our blog:
https://googleadsdeveloper.blogspot.com/
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~

You received this message because you are subscribed to the Google
Groups "AdWords API and Google Ads API Forum" group.
To post to this group, send email to adwords-api@googlegroups.com
To unsubscribe from this group, send email to
adwords-api+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/adwords-api?hl=en
--- 
You received this message because you are subscribed to the Google Groups 
"Google Ads API and AdWords API Forum" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to adwords-api+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/adwords-api/c7c1164c-3931-4d2d-84e1-a2823db88fdfn%40googlegroups.com.


Re: querying for pmax asset_group reporting with metrics by api

2023-10-18 Thread Mike Fang
Thanks!

On Wednesday, October 18, 2023 at 5:10:01 PM UTC+8 Google Ads API Forum 
Advisor wrote:

> Hi Mike,
>
> Thank you for reaching out to the Google Ads API support team.
>
> After reviewing your concern, I understand that your query is regarding 
> the asset_group in the PMax campaign. However, there are some limitations 
> for Performance Max (PMax) asset group reporting with metrics by API. The 
> asset_group 
> <https://developers.google.com/google-ads/api/fields/v14/asset_group_query_builder>
>  resource 
> does not support metric selection or filtering. This is why you received 
> the error message when you tried to query for the clicks and impressions 
> metrics. 
>
> To get asset group performance metrics, you can use the 
> asset_group_product_group_view 
> <https://developers.google.com/google-ads/api/fields/v14/asset_group_product_group_view>
>  resource. 
> This resource allows you to segment your results by product group, but you 
> can also limit the results to a single asset group by adding an asset group 
> filtering condition to the WHERE clause.
>
> The following example demonstrates how to use the 
> asset_group_product_group_view resource to retrieve performance metrics by 
> asset group:
>
> SELECT
>   asset_group.name,
>   metrics.impressions,
>   metrics.clicks,
>   metrics.cost_micros
> FROM asset_group_product_group_view
> WHERE asset_group.id = '6479664517 <(647)%20966-4517>'
> AND segments.date DURING LAST_MONTH
> ORDER BY metrics.impressions DESC
> Also, you can utilize the *Google Ads Query Builder* 
> <https://developers.google.com/google-ads/api/fields/v14/overview_query_builder>
>  
> and *Query Validator* 
> <https://developers.google.com/google-ads/api/fields/v14/query_validator> 
> to build and validate the queries for retrieving the data from the Google 
> Ads API. If you have any concerns / queries related to *Google Ads API* 
> <https://developers.google.com/google-ads/api/docs/start>, please feel 
> free to get back to us. 
>
>   
> This message is in relation to case "ref:!00D1U01174p.!5004Q02pU79C:ref"
>
> Thanks,
>   
> [image: Google Logo] Google Ads API Team 
>
>  
>
>

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
Also find us on our blog:
https://googleadsdeveloper.blogspot.com/
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~

You received this message because you are subscribed to the Google
Groups "AdWords API and Google Ads API Forum" group.
To post to this group, send email to adwords-api@googlegroups.com
To unsubscribe from this group, send email to
adwords-api+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/adwords-api?hl=en
--- 
You received this message because you are subscribed to the Google Groups 
"Google Ads API and AdWords API Forum" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to adwords-api+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/adwords-api/9e5a9f82-56bb-4b3d-8161-60394ac8279dn%40googlegroups.com.


Ad groups in Change events result has no ID attribute

2023-10-18 Thread Mike Fang
Hi Team,
I query a change events and get three updated ad groups
I assume the returned ad groups should have *ID* attribute
But two of the three ad groups have no ID attribute which doesn't meet my 
expection
Could you help me check why there are ad groups without ID?

D, [2023-10-18T17:44:13.753971 #89715] DEBUG -- : Outgoing request: 
Headers: 
{"developer-token":"REDACTED","login-customer-id":"9677213623","x-goog-api-client":"gl-ruby/3.1.3
 
gccl/23.0.0 gax/0.9.0 gapic/23.0.0 
grpc/1.53.2","x-goog-request-params":"customer_id=3601885092"} Payload: 
{"customerId":"3601885092","query":"SELECT\n 
change_event.change_date_time,\n change_event.change_resource_type,\n 
change_event.new_resource\nFROM\n change_event\nWHERE\n 
change_event.change_date_time <= '2023-10-19'\n AND\n 
change_event.change_date_time >= '2023-10-17'\nLIMIT 1\n"} D, 
[2023-10-18T17:44:13.757015 #89715] DEBUG -- : Incoming response: Payload: 
{"results":[{"changeEvent":{"resourceName":"customers/3601885092/changeEvents/1697614646101424~0~0","changeDateTime":"2023-10-18
 
00:37:26.101424","changeResourceType":"AD_GROUP","newResource":{"adGroup":{"resourceName":"customers/3601885092/adGroups/154343920483","id":"154343920483","name":"NEW
 
LI (Google ADS - 101320023) 
#3","status":"PAUSED","type":"DISPLAY_STANDARD","adRotationMode":"OPTIMIZE","baseAdGroup":"customers/3601885092/adGroups/158265358207","campaign":"customers/3601885092/campaigns/20655540410","cpcBidMicros":"1","cpmBidMicros":"1","targetCpmMicros":"1","targetingSetting":{"targetRestrictions":[{"targetingDimension":"AGE_RANGE","bidOnly":true},{"targetingDimension":"GENDER","bidOnly":true},{"targetingDimension":"PARENTAL_STATUS","bidOnly":true},{"targetingDimension":"INCOME_RANGE","bidOnly":true}]},{"changeEvent":{"resourceName":"customers/3601885092/changeEvents/1697614661604879~0~0","changeDateTime":"2023-10-18
 
00:37:41.604879","changeResourceType":"AD_GROUP","newResource":{"adGroup":{"status":"ENABLED",{"changeEvent":{"resourceName":"customers/3601885092/changeEvents/1697621375678591~0~0","changeDateTime":"2023-10-18
 
02:29:35.678591","changeResourceType":"AD_GROUP","newResource":{"adGroup":{"name":"NEW
 
LI (Google ADS - 101320023) 
#21",{"changeEvent":{"resourceName":"customers/3601885092/changeEvents/1697621577280527~0~0","changeDateTime":"2023-10-18
 
02:32:57.280527","changeResourceType":"AD_GROUP","newResource":{"adGroup":{"name":"NEW
 
LI (Google ADS - 101320023) 
#211"],"fieldMask":"changeEvent.changeDateTime,changeEvent.changeResourceType,changeEvent.newResource"}

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
Also find us on our blog:
https://googleadsdeveloper.blogspot.com/
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~

You received this message because you are subscribed to the Google
Groups "AdWords API and Google Ads API Forum" group.
To post to this group, send email to adwords-api@googlegroups.com
To unsubscribe from this group, send email to
adwords-api+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/adwords-api?hl=en
--- 
You received this message because you are subscribed to the Google Groups 
"Google Ads API and AdWords API Forum" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to adwords-api+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/adwords-api/799d0334-d469-44da-833b-ad6ecbd4189bn%40googlegroups.com.


Querying for Pmax asset_group reporting with metrics by API

2023-10-17 Thread Mike Fang
Hi,
Based on this article 
<https://support.google.com/google-ads/answer/13872527?hl=en&ref_topic=10631992>,
 
I can get the metrics data from UI for asset_group in Pmax campaign
But can I get these data via API?
I try to send this query
SELECT
asset_group.id,
asset_group.name,
metrics.clicks,
metrics.impressions
FROM asset_group where asset_group.id = '6479664517' and segments.date 
DURING LAST_MONTH
ORDER BY metrics.impressions DESC
but I got an error 
"Cannot select or filter on the following metrics: 'clicks'(could not 
support requested resources: 'ASSET_GROUP'), 'impressions'(could not 
support requested resources: 'ASSET_GROUP'), since metric is incompatible 
with the resource in the FROM clause or other selected segmenting resources.
"

so my question is if we can query for pmax sset_group reporting with 
metrics by API?

Thanks
Mike

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
Also find us on our blog:
https://googleadsdeveloper.blogspot.com/
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~

You received this message because you are subscribed to the Google
Groups "AdWords API and Google Ads API Forum" group.
To post to this group, send email to adwords-api@googlegroups.com
To unsubscribe from this group, send email to
adwords-api+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/adwords-api?hl=en
--- 
You received this message because you are subscribed to the Google Groups 
"Google Ads API and AdWords API Forum" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to adwords-api+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/adwords-api/b41aec84-454d-4510-a9da-159dc62e376en%40googlegroups.com.


Get "Resource was not found" when creating SHOPPING campaign

2023-06-26 Thread Mike Fang
Hi 
I got error "Resource was not found" when creating SHOPPING campaign
Could you please help to check what the reason of it?

I, [2023-06-26T15:02:23.353200 #55021]  INFO -- : CID: 8667304723, Host: 
googleads.googleapis.com:443, Method: 
/google.ads.googleads.v12.services.CampaignBudgetService/MutateCampaignBudgets, 
IsFault: no, Request ID: f057ZEJ8Jdlou-hpFkr93g
D, [2023-06-26T15:02:23.354559 #55021] DEBUG -- : Outgoing request: 
Headers: 
{"developer-token":"REDACTED","login-customer-id":"9677213623","x-goog-api-client":"gl-ruby/3.1.3
 
gccl/20.0.0 gax/0.9.0 gapic/20.0.0 
grpc/1.47.0","x-goog-request-params":"customer_id=8667304723"} Payload: 
{"customerId":"8667304723","operations":[{"create":{"name":"Interplanetary 
Budget 
1687762942793","amountMicros":"11100","deliveryMethod":"STANDARD","explicitlyShared":false}}]}
D, [2023-06-26T15:02:23.354652 #55021] DEBUG -- : Incoming response: 
Payload: 
{"results":[{"resourceName":"customers/8667304723/campaignBudgets/12717849749"}]}
W, [2023-06-26T15:02:23.869043 #55021]  WARN -- : CID: 8667304723, Host: 
googleads.googleapis.com:443, Method: 
/google.ads.googleads.v12.services.CampaignService/MutateCampaigns, 
IsFault: yes, Request ID: 3s7NdIOvKt7-_-9yOfpbGw
I, [2023-06-26T15:02:23.869522 #55021]  INFO -- : Outgoing request: 
Headers: 
{"developer-token":"REDACTED","login-customer-id":"9677213623","x-goog-api-client":"gl-ruby/3.1.3
 
gccl/20.0.0 gax/0.9.0 gapic/20.0.0 
grpc/1.47.0","x-goog-request-params":"customer_id=8667304723"} Payload: 
{"customerId":"8667304723","operations":[{"create":{"name":"gg without 
enable","status":"PAUSED","advertisingChannelType":"SHOPPING","shoppingSetting":{"merchantId":"688974403","campaignPriority":0,"enableLocal":true},"campaignBudget":"customers/8667304723/campaignBudgets/12717849749","startDate":"2023-06-26","endDate":"2023-06-27","manualCpc":{}}}]}
I, [2023-06-26T15:02:23.869769 #55021]  INFO -- : Incoming response 
(errors):
 
Google::Ads::GoogleAds::Errors::GoogleAdsError(Google::Ads::GoogleAds::Errors::GoogleAdsError):
 
Resource was not found.

Thanks
Mike

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
Also find us on our blog:
https://googleadsdeveloper.blogspot.com/
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~

You received this message because you are subscribed to the Google
Groups "AdWords API and Google Ads API Forum" group.
To post to this group, send email to adwords-api@googlegroups.com
To unsubscribe from this group, send email to
adwords-api+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/adwords-api?hl=en
--- 
You received this message because you are subscribed to the Google Groups 
"Google Ads API and AdWords API Forum" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to adwords-api+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/adwords-api/17ed375a-e052-46f2-94a0-5ed1714b0c18n%40googlegroups.com.


Re: The error code is not in this version.

2023-02-07 Thread Mike Fang

So you mean we cannot create ad groups under a performance max campaign?
On Tuesday, February 7, 2023 at 9:57:36 PM UTC+8 Google Ads API Forum 
Advisor wrote:

> Hi Mike,
>
> Thanks for reaching out to the Google Ads API Fang.
>
> I’ve checked your API request payload and I found that you are using 
> *PERFORMANCE_MAX* campaign type to create an Ad group with below API 
> request. You may note that campaign ID 19646139075 is a PERFORMANCE_MAX and 
> it does not support the Ad group. 
>
>  
>
> {
>
>  "customerId": "***",
>
>  "operations": [
>
>   {
>
>"create": {
>
> "name": "Google Ads - Shopping Demo Product | 76155 | 499156 | | 
> Untitled Value1 |",
>
> "status": "ENABLED",
>
> "adRotationMode": "OPTIMIZE",
>
> "campaign": "customers/*/campaigns/19646139075"
>
>}
>
>   }
>
>  ]
>
> }
>
>  
>
> This is why you encountered said error on your end when you try to use Ad 
> group service. I hope this helps.
>
> Regards,
> [image: Google Logo] 
> Yasar 
> Google Ads API Team 
>   
>
> ref:_00D1U1174p._5004Q2iWn7l:ref
>

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
Also find us on our blog:
https://googleadsdeveloper.blogspot.com/
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~

You received this message because you are subscribed to the Google
Groups "AdWords API and Google Ads API Forum" group.
To post to this group, send email to adwords-api@googlegroups.com
To unsubscribe from this group, send email to
adwords-api+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/adwords-api?hl=en
--- 
You received this message because you are subscribed to the Google Groups 
"Google Ads API and AdWords API Forum" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to adwords-api+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/adwords-api/27969664-a71a-4893-8b96-5faeb2bdfd1an%40googlegroups.com.


The error code is not in this version.

2023-02-07 Thread Mike Fang
Hi,
I got below error message when I creating an ad group
"The error code is not in this version."
Could you help to explain what this error message mean?

The outgoing request log
[2023-02-07T08:45:26.927704 #116]  INFO -- : Outgoing request: Headers: 
{"developer-token":"REDACTED","login-customer-id":"9677213623","x-goog-api-client":"gl-ruby/3.0.4
 
gccl/20.0.0 gax/0.9.0 gapic/20.0.0 
grpc/1.47.0","x-goog-request-params":"customer_id=7605883623"} Payload: 
{"customerId":"7605883623","operations":[{"create":{"name":"Google Ads - 
Shopping Demo Product | 76155 | 499156 |  | Untitled Value1 
|","status":"ENABLED","adRotationMode":"OPTIMIZE","campaign":"customers/7605883623/campaigns/19646139075"}}]}

The incoming response log
[2023-02-07T08:45:26.927877 #116]  INFO -- : Incoming response (errors)
Google::Ads::GoogleAds::Errors::GoogleAdsError(Google::Ads::GoogleAds::Errors::GoogleAdsError):
 
The error code is not in this version

thanks

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
Also find us on our blog:
https://googleadsdeveloper.blogspot.com/
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~

You received this message because you are subscribed to the Google
Groups "AdWords API and Google Ads API Forum" group.
To post to this group, send email to adwords-api@googlegroups.com
To unsubscribe from this group, send email to
adwords-api+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/adwords-api?hl=en
--- 
You received this message because you are subscribed to the Google Groups 
"Google Ads API and AdWords API Forum" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to adwords-api+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/adwords-api/321a01a7-7e07-4686-a3c6-2d0d368feb31n%40googlegroups.com.


A date was used that is past the system "last" date.

2023-01-09 Thread Mike Fang
Hi, 
I got such error when creating a campaign 
"A date was used that is past the system "last" date."
May I know what date is the system last date?

thanks

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
Also find us on our blog:
https://googleadsdeveloper.blogspot.com/
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~

You received this message because you are subscribed to the Google
Groups "AdWords API and Google Ads API Forum" group.
To post to this group, send email to adwords-api@googlegroups.com
To unsubscribe from this group, send email to
adwords-api+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/adwords-api?hl=en
--- 
You received this message because you are subscribed to the Google Groups 
"Google Ads API and AdWords API Forum" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to adwords-api+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/adwords-api/5d4d1e95-e964-438c-814f-09c2b56cfbd7n%40googlegroups.com.


Re: Programme access via request from MCC

2022-12-08 Thread Mike
Thank you Carmela for your reply and guidance. The link with the 
description to the prolinked account helped us and the download now works 
through the MCC account as well.

 

On Wednesday, December 7, 2022 at 5:14:58 AM UTC+1 adsapi wrote:

> Hi Mike,
>
> Thank you for raising this concern to the Google Ads API support team.
>
> With regards to your concern, I understand that you have encountered 
> the USER_PERMISSION_DENIED error. This error means the authorized customer 
> does not have access to the operating customer. Its common cause is when 
> authenticating as a user with access to a manager account but not 
> specifying login-customer-id in the request. To prevent this kind of error, 
> I would suggest specifying the login-customer-id as the manager account ID 
> without hyphens (-). Client libraries have built in support for this, or 
> see our guide 
> <https://developers.google.com/google-ads/api/docs/concepts/call-structure#cid>.
>  
> Also, please make sure that the user / email address you used to generate 
> the credentials indeed has access to the account specified in your request.
>
> If the error persists, you may provide the complete *request* 
> <https://developers.google.com/google-ads/api/docs/concepts/field-service#request>
>  and *response* 
> <https://developers.google.com/google-ads/api/docs/concepts/field-service#response>
>  logs 
> with *request ID* 
> <https://developers.google.com/google-ads/api/docs/concepts/call-structure#request-id>
>  and *request header* 
> <https://developers.google.com/google-ads/api/docs/concepts/call-structure#request_headers>
>  generated 
> on your end and the user / email address you used in authentication for 
> further investigation. You can provide it via *Reply privately to author* 
> option. If this option is not available, then send it instead on this email 
> address googleadsa...@google.com.
>
> Regards,
> [image: Google Logo] 
> Carmela 
> Google Ads API Team 
>   
>
> ref:_00D1U1174p._5004Q2gjFTg:ref
>

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
Also find us on our blog:
https://googleadsdeveloper.blogspot.com/
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~

You received this message because you are subscribed to the Google
Groups "AdWords API and Google Ads API Forum" group.
To post to this group, send email to adwords-api@googlegroups.com
To unsubscribe from this group, send email to
adwords-api+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/adwords-api?hl=en
--- 
You received this message because you are subscribed to the Google Groups 
"Google Ads API and AdWords API Forum" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to adwords-api+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/adwords-api/b4d23d21-cd8d-4866-8da1-9ef54dfa41fen%40googlegroups.com.


Programme access via request from MCC

2022-12-06 Thread Mike
Hi All,

we use Ads API V11 and download campaign information by standard. If the 
customer sends us an invitation to access the account and we confirm this, 
everything works fine. 

The problem occurs if we request access via MMC and the customer confirms 
the request. We get access as administrators, we can set everything up via 
the web, but when we programmatically access it returns an error that we 
don't have access. In both cases we use the same account ID where we want 
to access.

I would be grateful for any advice on how to solve this problem.

{
  "StatusCode": 7,
  "Details": "The caller does not have permission",
  "RequestId": "64Kw0QNyzbkpfT37jGY0gQ",
  "Failure": {
"errors": [
  {
"errorCode": {
  "authorizationError": "USER_PERMISSION_DENIED"
},
"message": "User doesn't have permission to access customer. Note: 
If you're accessing a client customer, the manager's customer id must be 
set in the 'login-customer-id' header. See 
https://developers.google.com/google-ads/api/docs/concepts/call-structure#cid";
  }
],
"requestId": "64Kw0QNyzbkpfT37jGY0gQ"
  }
}

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
Also find us on our blog:
https://googleadsdeveloper.blogspot.com/
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~

You received this message because you are subscribed to the Google
Groups "AdWords API and Google Ads API Forum" group.
To post to this group, send email to adwords-api@googlegroups.com
To unsubscribe from this group, send email to
adwords-api+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/adwords-api?hl=en
--- 
You received this message because you are subscribed to the Google Groups 
"Google Ads API and AdWords API Forum" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to adwords-api+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/adwords-api/95be9156-6c2a-49fb-b0a7-6ad4c373fc08n%40googlegroups.com.


API Credentials for System User

2022-11-07 Thread Mike Stephens
Hello,

We are building an internal tool to create ads via the Google Ads API. 
Other services within our organization will be able to access this tool to 
perform the necessary actions.

Is there a concept of a "System User" in Google Ads? Or some other way to 
denote the caller is an automated/non-human process?

For example, this is the structure of the credentials that we are currently 
using:

{
   "developer_token": "foobar",
   "private_key_config": "json string",
   "impersonated_email": "u...@domain.com",
   "use_proto_plus": True,
   "login_customer_id": "1234567890"
}

However, it seems incorrect to have the "impersonated_email" be associated 
with the changes being made via the API since the changes are coming from a 
"System" or "Server" user, rather than a specific individual.

Hopefully my question makes sense. I can try to clarify further if anything 
is unclear.

Thank you

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
Also find us on our blog:
https://googleadsdeveloper.blogspot.com/
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~

You received this message because you are subscribed to the Google
Groups "AdWords API and Google Ads API Forum" group.
To post to this group, send email to adwords-api@googlegroups.com
To unsubscribe from this group, send email to
adwords-api+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/adwords-api?hl=en
--- 
You received this message because you are subscribed to the Google Groups 
"Google Ads API and AdWords API Forum" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to adwords-api+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/adwords-api/5fd8b286-59ab-48c0-82ac-a4561638059an%40googlegroups.com.


video_views metric not working in script - please help

2022-09-27 Thread Mike Rhodes
So I have this SELEVT query
works fine, but conv_value, video_views & cpv all come back as 'undefined' 
(in console.log) or blank when I output to a spreadsheet 

any ideas???

  let q = 'SELECT ' +
  'campaign.name, metrics.clicks, metrics.impressions, 
metrics.cost_micros, metrics.conversions, metrics.conversions_value, 
metrics.video_views, metrics.average_cpv ' +
  'FROM   campaign ' +
  'WHERE  metrics.impressions >= 1 ' +
  ' AND   segments.date DURING LAST_30_DAYS'; 
  'ORDER BY metrics.cost_micros DESC';


  const searchResults = AdsApp.search(q);
  
for (const row of searchResults) {
const name = row.campaign.name;
const clicks = row.metrics.clicks;
const impr = row.metrics.impressions;
const cost = row.metrics.costMicros / 100;
const conv = row.metrics.conversions;
const value = row.metrics.conversions_value;
const views = row.metrics.video_views;
const cpv = row.metrics.average_cpv;

console.log(`${name}, ${clicks}, ${impr}, ${cost}, ${conv}, ${views}, 
${cpv}`);

THANKS in advance!!


-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
Also find us on our blog:
https://googleadsdeveloper.blogspot.com/
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~

You received this message because you are subscribed to the Google
Groups "AdWords API and Google Ads API Forum" group.
To post to this group, send email to adwords-api@googlegroups.com
To unsubscribe from this group, send email to
adwords-api+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/adwords-api?hl=en
--- 
You received this message because you are subscribed to the Google Groups 
"Google Ads API and AdWords API Forum" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to adwords-api+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/adwords-api/15c20355-e025-46f3-9020-8fd974e407c1n%40googlegroups.com.


Re: How To Automate Refresh Tokens using REST API

2022-07-27 Thread Mike M
Thank you so much, guys, on the assistance here. This explains a lot. I'll 
work with the GCP Support process more out of curiosity than anything else. 
I mean, my code is now revised so that when I get an invalid_grant message 
in the JSON during the Access Token generation, I'll get an email alert and 
then know to go through the steps to create a new Refresh Token using the 
oAuth Playground, and I learned that this cannot be automated.




On Wednesday, July 27, 2022 at 4:00:21 PM UTC-4 adsapi wrote:

> Hi Mike,
>
> I work with Jinky. This support channel can only point you to 
> documentation on GCP's website and attempt to assist you. With that being 
> said, since only one user will use your GCP project you can publish it 
> without going through verification, and my team researched this. Moreover, 
> the screenshot you gave us shows an app marked Internal, so it appears that 
> you don't have to go through verification and here ius the following from 
> GCP support:
>   
>
> You do not need to submit your app for review 
> <https://support.google.com/cloud/answer/9110914?hl=en#verification-types&circumstances&skip&verification-time&mark-internal&submit-who&submit-howto&api-scopes&select-scopes&check-verification&how-smooth&in-app-testing-video&in-progress-addition&data&i-do-not-publish-for-review&rejected&why-seeing&verified-but-app-disabled&pending-app-disabled&definition&restricted-scope-apis&restricted-def&prep-for-next-year&when-restricted&enterprise&enterprise-security-assessment-notification&enterprise-imap-or-smtp&migrate-to-new-scopes-and-minimize-impact&key-dates&how-long&several-apps&combo-scopes&faster&verification-requirements&addl-scopes&how-often&guidelines&task-automation¬-type&restricted-not-allowed&explain-types&inconsistent&privacy-policy-language&multiple-types&compliance-with-limited-use-requirements&needed&how&user-data-not-restricted&assessment-includes&more-detailed-sec-reqts&why-fee&local-client&restricted-scopes-expansion&third-party&recently-completed-sec-assess&no-vulnerability-disclosure-program&security-assessment-not-required&how-long-sec-assess-valid&after-receive-loa&reassessment-prep&security-rewards-program-definition&security-rewards-program-criteria&security-rewards-program-process&security-rewards-program-sla-noncompliance&security-rewards-program-unfixed-bug&questions&check-user-cap&complete-test&deployment-access&zippy=%2Csteps-for-apps-requesting-sensitive-scopes%2Cwhat-are-sensitive-api-scopes%2Cwhat-are-the-different-types-of-verification-that-google-requires-for-accessing-user-data-via-oauth%2Cwhen-does-my-app-have-to-be-verified-by-google%2Chow-long-will-the-verification-process-take%2Chow-can-i-mark-my-app-as-internal-only-so-it-doesnt-require-verification%2Cwho-can-submit-a-project-for-verification%2Chow-do-i-submit-for-verification%2Cwhy-cant-i-see-the-api-scopes-in-the-scope-picker%2Ci-need-help-selecting-scopes-for-my-app-where-can-i-find-support-for-various-product-apis%2Chow-do-i-check-my-verification-status%2Chow-can-i-make-sure-the-verification-process-is-as-streamlined-as-possible%2Cwhat-information-should-i-include-in-the-in-app-testing-video%2Cwhat-happens-if-i-add-new-sensitive-or-restricted-scopes-to-my-app-while-my-sensitive-or-restricted-scope-verification-is-in-progress%2Chow-can-i-access-data-from-my-users-google-cloud-project-using-cloud-apis%2Cwhat-happens-if-i-dont-submit-my-app-for-review%2Chow-do-i-check-my-user-cap-status%2Cwhat-happens-if-my-app-gets-rejected-from-the-verification-process%2Cwhy-are-users-seeing-this%2Cwhy-are-users-of-verified-apps-seeing-the-unverified-app-screen-or-sign-in-disabled%2Cwhy-are-users-of-apps-that-are-currently-in-the-verification-process-seeing-the-unverified-app-screen-or-sign-in-disabled%2Cwhat-are-restricted-api-scopes%2Cwhat-is-the-restricted-scope-app-verification-and-how-is-it-different-from-the-sensitive-scope-app-verification%2Chow-can-i-prepare-for-a-restricted-scope-verification%2Chow-do-i-determine-if-i-need-to-submit-my-app-for-restricted-scope-verification%2Cmy-application-has-users-with-enterprise-accounts-from-another-google-workspace-domain-how-does-this-apply-to-my-google-workspace-or-cloud-identity-enterprise-accounts%2Cwhat-if-my-app-is-using-imap-or-smtp-do-i-need-to-submit-for-verification%2Chow-do-i-migrate-my-oauth-client-to-new-api-scopes-and-minimize-impact-to-users%2Cwhat-if-i-have-several-apps-requesting-restricted-scopes-will-they-all-need-to-be-verified%2Cif-my-app-uses-a-combination-of-restricted-and-non-restricted-apis-will-i-need-to-submit-for-verification%2Chow-do-i-get-my-verification-completed-faster%2Cwhat-are-the-requirements-for-ve

Re: How To Automate Refresh Tokens using REST API

2022-07-27 Thread Mike M
Jinky, you may want to update the online docs to indicate a few things. 
First, I don't see Publishing Status anywhere -- not on editing the oAuth 
Client (Web Application), or on the oAuth Consent Screen (view mode or when 
I click Edit). Second, on the page that the docs have about Refresh Token 
expirations, it needs to indicate that if one has not verified their oAuth 
Client, then the Refresh Token will expire after a few months and you'll 
get the invalid_grant error, because I believe what this Google Groups 
thread is indicating.

I'm also wondering why go through the Verified step? I mean, with all due 
respect to Google, what am I verifying? We're setting up a Refresh Token 
for not users, but a piece of code on a cron job that will upload offline 
Adwords click conversions to Google. I mean, this isn't like me building 
some kind of link between Google Docs spreadsheets or something that might 
need a user oAuth. This is an automated cron job.


On Wednesday, July 27, 2022 at 8:16:15 AM UTC-4 adsapi wrote:

> Hi Mike,
>
> Thank you for the reply. I work with Darwin and allow me to assist you 
> here.
>
> With regard to your concern regarding the "publishing status", you will 
> need to completely verify your app by following this guide 
> <https://support.google.com/cloud/answer/7454865> in order for you to 
> change the "publishing status".
>
> For the expiration of your refresh token this indeed because 
> your "publishing status" is currently in progress so you will need to 
> follow the provided document above to help you address this matter.
>
> Best regards,
> [image: Google Logo] 
> Jinky 
> Google Ads API Team 
>   
>
> ref:_00D1U1174p._5004Q2d1nfG:ref
>

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
Also find us on our blog:
https://googleadsdeveloper.blogspot.com/
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~

You received this message because you are subscribed to the Google
Groups "AdWords API and Google Ads API Forum" group.
To post to this group, send email to adwords-api@googlegroups.com
To unsubscribe from this group, send email to
adwords-api+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/adwords-api?hl=en
--- 
You received this message because you are subscribed to the Google Groups 
"Google Ads API and AdWords API Forum" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to adwords-api+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/adwords-api/5b195cd7-52c1-4609-8bd0-6c160830a7efn%40googlegroups.com.


Re: How To Automate Refresh Tokens using REST API

2022-07-27 Thread Mike M
You had stated: "The refresh token generated in the Google Oauth Playground 
lasts only for 1 hour then it expires." This appears incorrect. We 
generated one with our Client ID and Client Secret and it has lasted for 
several hours now.

We also read your doc...

https://developers.google.com/identity/protocols/oauth2#expiration

...about Refresh Token Expiration and none of those bullet items applied to 
our situation. It just expired on its own suddenly for no reason, no email 
to us, no alert in Google Adwords management dashboard.

We also looked at the oAuth Consent Screen. We see nothing about 
"publishing status". Screenshot: https://www.screencast.com/t/6YNeTt1U . 
Also, when we click Edit App, we also don't see anything about a publishing 
status either.

On Wednesday, July 27, 2022 at 3:02:11 AM UTC-4 adsapi wrote:

> Hi Mike,
>  
>
> Thanks for reaching out to the Google Ads API team. I hope you are doing 
> well today.
>  
>
> Please see my response to your question below.
>  
>
> 1.) can we automate this somehow? I can trap the invalid_grant JSON 
> response and then would like to do some series of REST API calls to 
> generate a new Refresh Token.
>
>  
>
>- The refresh token generated in the Google Oauth Playground lasts 
>only for 1 hour then it expires. Also, since you mentioned that you’re 
>getting error with access tokens and refresh tokens after few API calls, 
>you may refer to this document 
><https://developers.google.com/identity/protocols/oauth2#expiration> to 
>read more information about refresh token expiration. Also, if you set the 
>publishing status to "Testing" so the refresh token expires every 7 days 
>and receives an “invalid_grant” error. That being said, please go to the 
>Google API Console and navigate to the OAuth consent screen and then 
> change 
>the publishing status to “In production” to avoid the refresh* token 
>expiring in 7 days*. You may regenerate refresh tokens by referring to 
>this *guide* 
>
> <https://developers.google.com/google-ads/api/docs/first-call/refresh-token> 
> for 
>the steps on how you can regenerate credentials and refresh tokens. 
>
>  
>
> 2.) On the tail end of this request, to fully automate this Refresh Token 
> renewal, do you think that I may need to generate a Service Account instead 
> of doing it the Web Application oAuth Client technique?
>
>- For this question, we strongly recommend using OAuth2 desktop app or 
>web app flow 
>
> <https://developers.google.com/google-ads/api/docs/oauth/cloud-project#choose_an_application_type>
>  instead 
>of service accounts unless you need a domain-specific feature (for 
> example, 
>impersonation). OAuth2 desktop app and web app flows do require an initial 
>user interaction for granting access to the account, but are much simpler 
>to set up. 
>- For the OAuth2 desktop app flow 
>
> <https://developers.google.com/google-ads/api/docs/oauth/cloud-project#desktop>,
>  
>you can persist a refresh token (which never expires) to obtain a new 
>access token whenever necessary. When using one of our client libraries 
><https://developers.google.com/google-ads/api/docs/oauth/client-library>, 
>you can authorize your app by filling out a configuration file. 
>
>
> Let us know if you have further questions.
>
>
> Regards,
> [image: Google Logo] 
> Darwin 
> Google Ads API Team 
>   
>
> ref:_00D1U1174p._5004Q2d1nfG:ref
>

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
Also find us on our blog:
https://googleadsdeveloper.blogspot.com/
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~

You received this message because you are subscribed to the Google
Groups "AdWords API and Google Ads API Forum" group.
To post to this group, send email to adwords-api@googlegroups.com
To unsubscribe from this group, send email to
adwords-api+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/adwords-api?hl=en
--- 
You received this message because you are subscribed to the Google Groups 
"Google Ads API and AdWords API Forum" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to adwords-api+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/adwords-api/e8e69a2b-2cdf-46c1-91de-621ca02cd5c3n%40googlegroups.com.


Re: Previously working code now has an Invalid Grant error?

2022-07-26 Thread Mike M
I took over this project from another developer (now no longer available to
us) and recoded it, switching from the SOAP API to the REST API on Google
Ads API. I found his config PHP and got the IDs I needed from there and
continued using them. So, about 2 months ago I was using the Client ID,
Client Secret, and Refresh Tokens that he had already generated. Everything
was running perfectly for 2 months until the Refresh Token just expired for
no reason at all. The doc you reference --
https://developers.google.com/identity/protocols/oauth2#expiration -- we
checked each and every item mentioned there on why our Refresh Token may
have expired and found no correlation. I found that the previous developer
generated one with the Desktop app off of Github. I decided to create a new
oAuth Client and set it as a Web Application instead. Then, I used the
oAuth Playground to generate another Refresh ID. I then grabbed this new
Client ID, Client Secret, and Refresh ID, and plugged it into my config PHP
file, and sure enough I was generating access tokens again just fine and my
offline conversions were working fine again.

We're just wondering how come the Refresh Token expired? How come the
documentation didn't explain our particular case on why it expired? And I'm
not certain because I don't have the previous developer to interact with on
this, but will a Refresh Token last for, say, 2 years or more? Or, is there
a limit (undocumented) on when that Refresh Token will finally expire?




On Wed, Jul 27, 2022 at 1:38 AM Google Ads API Forum Advisor
 wrote:

> Hi all,
>
> Thank you for getting back to us. I am Sherwin from Google Ads API and I
> work with Anthony. I hope that you are doing well today.
>
> @all. The invalid_grant
> 
>  usually
> occurs if the refresh token is already expired and the usual reasons are
> listed on this document
> . Add
> to that, a Google Cloud Platform project with an OAuth consent screen
> configured for an external user type and a publishing status of "Testing"
> is issued a refresh token expiring in 7 days. If the reason is already
> identified and confirmed from the list of the said document, then that is
> the time for a new refresh token by following the guide in the Youtube
> video. If the publishing status of the Google Project has been reset to
> "Testing", we highly suggest users to go to the Google API Console and
> navigate to the OAuth consent screen. Then change the publishing status to
> “In production” following these instructions
>  to avoid the refresh
> token expiring in 7 days.
>
> Please let us know if you have other concerns or questions, we will be
> happy to help.
>
> Kind regards,
> [image: Google Logo]
> Sherwin Vincent
> Google Ads API Team
>
>
> ref:_00D1U1174p._5004Q2cWRpu:ref
>

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
Also find us on our blog:
https://googleadsdeveloper.blogspot.com/
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~

You received this message because you are subscribed to the Google
Groups "AdWords API and Google Ads API Forum" group.
To post to this group, send email to adwords-api@googlegroups.com
To unsubscribe from this group, send email to
adwords-api+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/adwords-api?hl=en
--- 
You received this message because you are subscribed to the Google Groups 
"Google Ads API and AdWords API Forum" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to adwords-api+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/adwords-api/CADcrBuzE8w_9UNGxzsncwV2zaKGYP4kOeLC_m9fy8Ctq8pOJsw%40mail.gmail.com.


Re: How To Automate Refresh Tokens using REST API

2022-07-26 Thread Mike M
I also tried to research why my Refresh Token expired. I mean, the whole 
point of a Refresh Token is so that you generate Access Tokens and they are 
the ones to expire, not your Refresh Token. I looked at the bullet items 
from this page from Google's docs and none of those bullet items applied to 
us:

https://developers.google.com/identity/protocols/oauth2#expiration



On Tuesday, July 26, 2022 at 5:42:18 PM UTC-4 Mike M wrote:

> On the tail end of this request, to fully automate this Refresh Token 
> renewal, do you think that I may need to generate a Service Account instead 
> of doing it the Web Application oAuth Client technique?
>
>
> https://developers.google.com/google-ads/api/docs/client-libs/php/oauth-service
>
> We have purchased a separate domain and put it into Google WorkSpace for 
> where we manage our Google Ads API credentials, but the domain where we may 
> the API call is separate from this domain. So, I don't know if that will 
> work. Honestly, I don't know why the Refresh Token suddenly stopped working 
> using the Desktop oAuth Client ID (which I have since switched to the Web 
> Application oAuth Client ID).
>
>
>
> On Tuesday, July 26, 2022 at 5:29:11 PM UTC-4 Mike M wrote:
>
>> I've been using 2 API calls to batch upload google offline click 
>> conversions. One generates the Access Token. The other is the API call to 
>> upload the offline click conversions.
>>
>> All was well for a few weeks until suddenly we started getting 
>> invalid_grant messages when trying to generate the Access Token. No clue 
>> why -- and we received no email or anything from Google on this. It just 
>> stopped working and the invalid_grant error was cryptic and the online help 
>> didn't explain much. 
>>
>> I resolved this issue by following this video to generate a new Refresh 
>> Token in the Google oAuth Playground:
>>
>> https://youtu.be/KFICa7Ngzng
>>
>> So, my question for the Google Adwords API team is -- can we automate 
>> this somehow? I can trap the invalid_grant JSON response and then would 
>> like to do some series of REST API calls to generate a new Refresh Token.
>>
>

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
Also find us on our blog:
https://googleadsdeveloper.blogspot.com/
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~

You received this message because you are subscribed to the Google
Groups "AdWords API and Google Ads API Forum" group.
To post to this group, send email to adwords-api@googlegroups.com
To unsubscribe from this group, send email to
adwords-api+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/adwords-api?hl=en
--- 
You received this message because you are subscribed to the Google Groups 
"Google Ads API and AdWords API Forum" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to adwords-api+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/adwords-api/dcef1a76-79f6-4744-af56-fbc27d1d3067n%40googlegroups.com.


Re: How To Automate Refresh Tokens using REST API

2022-07-26 Thread Mike M
On the tail end of this request, to fully automate this Refresh Token 
renewal, do you think that I may need to generate a Service Account instead 
of doing it the Web Application oAuth Client technique?

https://developers.google.com/google-ads/api/docs/client-libs/php/oauth-service

We have purchased a separate domain and put it into Google WorkSpace for 
where we manage our Google Ads API credentials, but the domain where we may 
the API call is separate from this domain. So, I don't know if that will 
work. Honestly, I don't know why the Refresh Token suddenly stopped working 
using the Desktop oAuth Client ID (which I have since switched to the Web 
Application oAuth Client ID).



On Tuesday, July 26, 2022 at 5:29:11 PM UTC-4 Mike M wrote:

> I've been using 2 API calls to batch upload google offline click 
> conversions. One generates the Access Token. The other is the API call to 
> upload the offline click conversions.
>
> All was well for a few weeks until suddenly we started getting 
> invalid_grant messages when trying to generate the Access Token. No clue 
> why -- and we received no email or anything from Google on this. It just 
> stopped working and the invalid_grant error was cryptic and the online help 
> didn't explain much. 
>
> I resolved this issue by following this video to generate a new Refresh 
> Token in the Google oAuth Playground:
>
> https://youtu.be/KFICa7Ngzng
>
> So, my question for the Google Adwords API team is -- can we automate this 
> somehow? I can trap the invalid_grant JSON response and then would like to 
> do some series of REST API calls to generate a new Refresh Token.
>

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
Also find us on our blog:
https://googleadsdeveloper.blogspot.com/
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~

You received this message because you are subscribed to the Google
Groups "AdWords API and Google Ads API Forum" group.
To post to this group, send email to adwords-api@googlegroups.com
To unsubscribe from this group, send email to
adwords-api+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/adwords-api?hl=en
--- 
You received this message because you are subscribed to the Google Groups 
"Google Ads API and AdWords API Forum" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to adwords-api+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/adwords-api/cbbe4af6-1b37-4a79-a666-c0a879a19e9cn%40googlegroups.com.


How To Automate Refresh Tokens using REST API

2022-07-26 Thread Mike M
I've been using 2 API calls to batch upload google offline click 
conversions. One generates the Access Token. The other is the API call to 
upload the offline click conversions.

All was well for a few weeks until suddenly we started getting 
invalid_grant messages when trying to generate the Access Token. No clue 
why -- and we received no email or anything from Google on this. It just 
stopped working and the invalid_grant error was cryptic and the online help 
didn't explain much. 

I resolved this issue by following this video to generate a new Refresh 
Token in the Google oAuth Playground:

https://youtu.be/KFICa7Ngzng

So, my question for the Google Adwords API team is -- can we automate this 
somehow? I can trap the invalid_grant JSON response and then would like to 
do some series of REST API calls to generate a new Refresh Token.

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
Also find us on our blog:
https://googleadsdeveloper.blogspot.com/
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~

You received this message because you are subscribed to the Google
Groups "AdWords API and Google Ads API Forum" group.
To post to this group, send email to adwords-api@googlegroups.com
To unsubscribe from this group, send email to
adwords-api+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/adwords-api?hl=en
--- 
You received this message because you are subscribed to the Google Groups 
"Google Ads API and AdWords API Forum" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to adwords-api+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/adwords-api/c6b3edc1-c39f-4d4d-8380-761f45d72a63n%40googlegroups.com.


Re: Previously working code now has an Invalid Grant error?

2022-07-26 Thread Mike M
Sam,

For some strange reason, I too also received this over the REST API for 
generating an Access Token from my Refresh Token. This caused the 
invalid_grant error for me. I'm not certain why my Refresh Token just 
stopped working. When it did, I followed this video with Google oAuth 
Playground to generate a new Refresh Token that I could use, and I really 
don't know how long that will last before I need to do it again. We've been 
using this same Refresh Token for at least a month and a half.

Watch this video: https://youtu.be/KFICa7Ngzng


On Friday, July 15, 2022 at 8:08:53 AM UTC-4 sam.g@gmail.com wrote:

> Hi there, I woke up to try my code one morning and now have the error 
> below:
>
> code: 16, 
> details: 'Failed to retrieve auth metadata with error: invalid_grant', 
> metadata: Metadata { internalRepr: Map(0) {}, options: {} }, 
> note: 'Exception occurred in retry method that was not classified as 
> transient'
>
> this was working perfectly the night before and I'm unsure what could have 
> caused it. How can I fix this issue?
>

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
Also find us on our blog:
https://googleadsdeveloper.blogspot.com/
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~

You received this message because you are subscribed to the Google
Groups "AdWords API and Google Ads API Forum" group.
To post to this group, send email to adwords-api@googlegroups.com
To unsubscribe from this group, send email to
adwords-api+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/adwords-api?hl=en
--- 
You received this message because you are subscribed to the Google Groups 
"Google Ads API and AdWords API Forum" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to adwords-api+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/adwords-api/953066ec-59a2-41ea-b1fb-e9a08d492a8fn%40googlegroups.com.


Why Am I Getting EVENT_NOT_FOUND and CLICK_CONVERSION_ALREADY_EXISTS?

2022-07-10 Thread Mike M
I've been storing gclids for legitimate traffic in my database when 
customers come to my website. Then, I use the v11 REST API for Google 
Offline Conversions to post the whole sales cycle from download of our 
product, purchase, and upsell.

Occasionally when sending traffic, I keep getting EVENT_NOT_FOUND and 
sometimes CLICK_CONVERSION_ALREADY_EXISTS. However, these do not make sense 
to me because when I search my table for these entries, I only see one 
instance by event date, conversionAction (like download, purchase, and 
upsell), and gclid. These seem to occur around 30% of the time. Now, 
granted, I remove data out of my database tables that are older than 90 
days. However, I wouldn't think Google would track a gclid longer than 90 
days, anyway.

Really, the only events I should be getting back from this API should be:

SUCCESS - the conversion was posted and no retries should be done
EXPIRED_EVENT - the data may be older than 90 days and so this event is 
effectively dead and no retries should be done
TOO_RECENT_EVENT - schedule it for retry in the next 30 minutes
LATER_THAN_MAXIMUM_DATE - schedule it for retry in the next 30 minutes 
because 6 hours haven't passed yet on it

Indeed, the bulk of my responses have been the above events and my code is 
handling these properly. It's just that the EVENT_NOT_FOUND and 
CLICK_CONVERSION_ALREADY_EXISTS are baffling and I cannot determine why 
they are occurring. And in some cases (but not all) where 
CLICK_CONVERSION_ALREADY_EXISTS has been filed, I look in my last_status 
column in my database and don't appear to have a value there (NULL) because 
this was the first time my code posted this.

Is this a bug with Google Ads?

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
Also find us on our blog:
https://googleadsdeveloper.blogspot.com/
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~

You received this message because you are subscribed to the Google
Groups "AdWords API and Google Ads API Forum" group.
To post to this group, send email to adwords-api@googlegroups.com
To unsubscribe from this group, send email to
adwords-api+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/adwords-api?hl=en
--- 
You received this message because you are subscribed to the Google Groups 
"Google Ads API and AdWords API Forum" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to adwords-api+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/adwords-api/57644af8-ce2d-4a4f-bc63-ccb1210db090n%40googlegroups.com.


Feature Suggestion -- Passing Metadata Into ClickConversion of uploadClickConversion

2022-07-07 Thread Mike M
I have these database table IDs for my conversions to upload. It's a 
positive integer. When I upload a clickConversion via the REST API, it 
tells me the successes in the 'results' section, and the fails in the 
'partialFailureError->details[0]->errors' section, but now I have no way to 
know which status goes to what table record.

I'd like to suggest the feature to allow me to add some metadata like 
meta1, meta2, etc. so that I could get the record ID back (like if I push 
it to uploadClickConversions REST API) in either the array of fails or 
array of successes.

Since I don't have that, the way I'm parsing it is like so:

1. Iterate the 'results' section. 

2. When it's populated, then I know it's a success as the response status.

3. When it's not populated, then use PHP's array_shift() call to pop off an 
entry off the top of the fail pile 
(partialFailureError->details[0]->errors) and that's the fail response 
status.

However, this assumes that's how Google creates the fail pile -- it runs 
click conversions into the system, and when they fail, it starts to 
populate the fail pile, starting with index 0.

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
Also find us on our blog:
https://googleadsdeveloper.blogspot.com/
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~

You received this message because you are subscribed to the Google
Groups "AdWords API and Google Ads API Forum" group.
To post to this group, send email to adwords-api@googlegroups.com
To unsubscribe from this group, send email to
adwords-api+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/adwords-api?hl=en
--- 
You received this message because you are subscribed to the Google Groups 
"Google Ads API and AdWords API Forum" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to adwords-api+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/adwords-api/74b600e1-59d8-4911-8dd1-43f993e2690an%40googlegroups.com.


Re: iRe: The click associated with the given identifier or iOS URL parameter occurred less than 6 hours ago, please retry after 6 hours have passed

2022-07-06 Thread Mike M
Alex, I know that I'm responding to this thread very late. (I don't work 
for Google, btw.) We encountered the same delay issue in our campaigns. To 
rectify the problem, we added a tracking system called Matomo (which has a 
free community edition adn was formerly called Piwik) so that we could 
create event pixels in our customer flow and then track those to see where 
issues were and fix those, as well as do split tests, etc. This gives you 
an instant dashboard to see events live. Eventually, I coded a custom 
replacement to Matomo for our company using PHP and MySQL which suited our 
needs even better than Matomo. However, we use the google offline 
conversions API because we found that using Javascript tracking pixels back 
to Google was not as accurate as using the API, and because then we could 
upload upsells that occur in our call center separate from a customer's ad 
click flow (just as long as we stored their gclid in our database for later 
use in that upsell flow). Yes, there's a 6 hour delay for what Google sees 
and optimizes on, but our campaigns operate fine and we can use the Matomo 
(and now our custom code) for looking at the data differently and live.

On Thursday, February 17, 2022 at 4:50:14 PM UTC-5 Alex Garcia wrote:

> Hi Anash,
>
> Yes, I know how it works, but ideally, it should work in real time, 
> without having to wait 6 hours to post the data.
>
> I have already explained the reasons why this is not ideal (current 
> scenario).
>
> Would you be able to send a feedback request to the engineering team so 
> they implement real time uploading in the near future?
>
> Thanks
>
> On Thursday, February 17, 2022 at 10:44:15 PM UTC+1 adsapi wrote:
>
>> Hi Hustle,
>>
>> It is recommended that you keep a 6 hour window before uploading 
>> conversions. If you try uploading earlier, the some of the conversions may 
>> fail to import and you need to retry them once 6 hours have passed.
>>
>> Cheers
>> Anash
>>
>> ref:_00D1U1174p._5004Q2Wvmdh:ref
>>
>

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
Also find us on our blog:
https://googleadsdeveloper.blogspot.com/
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~

You received this message because you are subscribed to the Google
Groups "AdWords API and Google Ads API Forum" group.
To post to this group, send email to adwords-api@googlegroups.com
To unsubscribe from this group, send email to
adwords-api+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/adwords-api?hl=en
--- 
You received this message because you are subscribed to the Google Groups 
"Google Ads API and AdWords API Forum" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to adwords-api+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/adwords-api/bbb8fe6f-663e-4991-a69e-742f014da15dn%40googlegroups.com.


Re: Get conversion action for uploading offline clic conversion

2022-07-06 Thread Mike M
I had this same problem. I don't know if this will resolve you, but 
basically I needed to understand that a Conversion Action is not the 
physical string label of it. For instance, I had a Conversion Action with a 
label "Upsell 1". I couldn't pass "Upsell 1" as the conversion action at 
least in the REST API. (You might be using gRPC/SOAP, which might be 
different here, by the way.) Instead, I had to find the numerical ID for 
that conversion action labeled "Upsell 1". The trick is to go into Google 
Ads Manager, find the Conversion Action, click to edit it, and then look in 
the URL at the ctID parameter. Click Cancel on that Edit when you write 
down that ID.

Moreover, you have to put that numeric ID into a string that looks like so 
(as far as my PHP code is concerned):

"customers/$sLinkedCustomerID/conversionActions/$nConversionID"

...where $nConversionID is that number from the ctID parameter in the URL 
that you saw.

The docs don't appear to tell you this, do they?

The other thing to denote is the confusion of Customer IDs. Use this rule 
of thumb:

- Used 2 Adwords accounts? One for developer and one for the actual account 
you want to change? If so, then the URL for the API call as well as the 
actual conversion needs the Customer ID to be the Linked Customer ID, while 
the header for the REST API call needs to be the Login Customer ID (ie, the 
developer account used for making the API calls).

---OR---

- Used 1 Adword account for both API call and where you want to make the 
change? If so, then the Linked Customer ID and Login Customer ID should be 
the same value.

Hope this helps.


On Wednesday, July 6, 2022 at 9:22:19 AM UTC-4 SAFTI France wrote:

> Hello, 
> I have an error message trying to upload offline clic conversion : 
>
> Indeed, I am having this issue : 
> ' This customer does not have an import conversion action that matches the 
> conversion action provided., at conversions[0].conversion_action' 
>
> My conversion action is owned by the correct user that I am using for my 
> program.  
>
> I don't know how to face this issue, do you have any idea ? 
>
> Thanks
>

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
Also find us on our blog:
https://googleadsdeveloper.blogspot.com/
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~

You received this message because you are subscribed to the Google
Groups "AdWords API and Google Ads API Forum" group.
To post to this group, send email to adwords-api@googlegroups.com
To unsubscribe from this group, send email to
adwords-api+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/adwords-api?hl=en
--- 
You received this message because you are subscribed to the Google Groups 
"Google Ads API and AdWords API Forum" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to adwords-api+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/adwords-api/3616cc95-24bf-42dc-821e-b33d22d0adf6n%40googlegroups.com.


Re: User doesn't have permission to access customer. Note: If you're accessing a client customer, the manager's customer id must be set in the 'login-customer-id' header. See https://developers.google

2022-07-06 Thread Mike M
Hmmm. As far as I understand it, the Customer ID used in the URL should be 
the Linked Customer ID. Basically, that's the customer ID where you wish to 
add, modify, or remove data. And you have to be granted permission by the 
other Google Adwords account to be able to do that linkage. The Login 
Customer ID, however, is what I use in the REST header to be the Google 
Adwords account of the account used for the API calls (ie, my developer 
account). The only reason I would make them the same ID is when in fact 
they might be, such as someone using one single Google Adwords account to 
not only do the API call but to affect the same account where you placed 
the API call. In my particular case, I'm working with multiple clients, and 
so I have my Login Customer ID, and then multiple Linked Customer IDs.

So, yes, you are correct if you're likely doing the API call from the same 
account where you wish to make this change. But for other readers of this 
post who have multiple clients, I wanted to address this so that they are 
clear as well. The documentation is not very clear on this.

On Wednesday, July 6, 2022 at 12:20:21 PM UTC-4 khan...@gmail.com wrote:

> Hi,
>
> I found the issue. I was passing correctly the *login-customer-id* the 
> issue was in the URL
> https://googleads.googleapis.com/v11/customers/*[CUSTOMER_ID]*
> /customerClientLinks:mutate
>
> Google says *[CUSTOMER_ID]* should be customer id but it should be equal 
> to *login-customer-id == [CUSTOMER_ID]*
>
> So when I pass the same ID to both parameters API works.
>
> On Wed, Jul 6, 2022 at 8:14 PM Google Ads API Forum Advisor 
>  wrote:
>
>> Hi Aman,
>>
>> Thank you for raising your concern. Allow me to provide support.
>>
>> It appears that you are experiencing the USER_PERMISSION_DENIED error. 
>> This error occurs when you're not specifying the customer ID of the Google 
>> Ads Account, where your login user account / email address (that you've 
>> used to generate Oauth2 credential) has direct access, to the 
>> login-customer-id. If your login user account / email address has access to 
>> the manager account, then its customer id must be set in the 
>> login-customer-id header.
>>
>> If the error persists after trying the provided suggestion, please 
>> provide the email address / user account used in the authentication and the 
>> complete request 
>> 
>>  
>> and response 
>> 
>>  
>> logs with request ID 
>> 
>>  
>> and request header 
>> 
>>  
>> generated on your end to further investigate.
>>
>> You can provide it via *Reply privately to author* option. If this 
>> option is not available, then send it instead on this email address 
>> googleadsa...@google.com.
>>
>> Regards,
>> [image: Google Logo] 
>> Ernie John 
>> Google Ads API Team 
>>   
>>
>> ref:_00D1U1174p._5004Q2cT9cV:ref
>>
>

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
Also find us on our blog:
https://googleadsdeveloper.blogspot.com/
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~

You received this message because you are subscribed to the Google
Groups "AdWords API and Google Ads API Forum" group.
To post to this group, send email to adwords-api@googlegroups.com
To unsubscribe from this group, send email to
adwords-api+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/adwords-api?hl=en
--- 
You received this message because you are subscribed to the Google Groups 
"Google Ads API and AdWords API Forum" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to adwords-api+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/adwords-api/6ed8149b-0e7b-4383-aad4-a48b31a26956n%40googlegroups.com.


Storing Dollars and Cents in conversionValue in uploadClickConversions

2022-07-02 Thread Mike M
I'm using the REST API v11 for uploadClickConversions. In building a 
clickConversion object, the documentation says that the conversionValue 
must be a numeric value. Sometimes when we do this as programmers, we have 
to worry about monetary values getting munged when stored in a floating 
point value -- sometimes what we put in such as 0.01 might get pulled back 
out as something unexpected and random like 0.013233 or 0, or 0.02, etc. In 
some eCommerce APIs, companies want developers to multiply the monetary 
value by 100 and store in raw cents in order to get around this issue.

Can we pass values as a string like "1.55" in the JSON and the 
uploadClickConversions API will automatically store that as numeric? Or, do 
we need to pass it literally as its numerical value of 1.55 and hope that 
the API doesn't munge this due to a floating point versus monetary value 
issue? Or, do we need to multiply it by 100 and store it as a whole number?


-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
Also find us on our blog:
https://googleadsdeveloper.blogspot.com/
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~

You received this message because you are subscribed to the Google
Groups "AdWords API and Google Ads API Forum" group.
To post to this group, send email to adwords-api@googlegroups.com
To unsubscribe from this group, send email to
adwords-api+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/adwords-api?hl=en
--- 
You received this message because you are subscribed to the Google Groups 
"Google Ads API and AdWords API Forum" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to adwords-api+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/adwords-api/a3608e16-7dd2-4f28-8fe4-d7507f1e1803n%40googlegroups.com.


Customer Match Job Duration

2022-05-09 Thread &#x27;Mike Trotta' via Google Ads API and AdWords API Forum
Hello,

I'm wondering what the typical Customer Match OfflineUserDataJob duration 
is. 

>From the documentation, I see

> It takes 6 to 48 hours for a list to be populated with members

*Does this mean that each job takes 6-48 hours to run?* It would be helpful 
if the documentation provided more information on the distribution of job 
durations. For example, does it vary during peak hours or high load, or is 
it consistent? Does it vary by the number of operations in the job or the 
number of user data in the operations? Does it depend on the size of the 
existing destination list, or the match rate? I ran the example code a few 
times, and the job completed repeatedly in 10-15 minutes, which is 
significantly less than 6 - 48 hours.

Thanks,

-- 
*Any information contained in or attached to this e-mail is intended solely 
for the use of the intended recipient(s) and may contain certain 
information that is confidential, proprietary and/or legally privileged. If 
you are not the intended recipient, you may not review, copy or distribute 
this message. If you receive this in error, please notify the sender and 
destroy all copies of this message and attachments.**
*

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
Also find us on our blog:
https://googleadsdeveloper.blogspot.com/
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~

You received this message because you are subscribed to the Google
Groups "AdWords API and Google Ads API Forum" group.
To post to this group, send email to adwords-api@googlegroups.com
To unsubscribe from this group, send email to
adwords-api+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/adwords-api?hl=en
--- 
You received this message because you are subscribed to the Google Groups 
"Google Ads API and AdWords API Forum" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to adwords-api+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/adwords-api/d9c66d6f-caa4-4bff-8d8e-eba671e6fde8n%40googlegroups.com.


PHP Update Budget

2022-04-11 Thread Mike Behr
I'm trying to update campaign budget

I can update the status & the name.

How can I update the budget:

$campaign = new Campaign([
'resource_name' => ResourceNames::forCampaign($customerId, 
$campaignId),
'status' => CampaignStatus::PAUSED,
'name' => 'Test ' . date( 'Y-m-d h:i' )
]);
// Constructs an operation that will update the campaign with the 
specified resource name,
// using the FieldMasks utility to derive the update mask. This 
mask tells the Google Ads
// API which attributes of the campaign you want to change.
$campaignOperation = new CampaignOperation();
$campaignOperation->setUpdate($campaign);

$campaignOperation->setUpdateMask(FieldMasks::allSetFieldsOf($campaign));

// Issues a mutate request to update the campaign.
$campaignServiceClient = 
$googleAdsClient->getCampaignServiceClient();
$response = $campaignServiceClient->mutateCampaigns(
$customerId,
[$campaignOperation]
);

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
Also find us on our blog:
https://googleadsdeveloper.blogspot.com/
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~

You received this message because you are subscribed to the Google
Groups "AdWords API and Google Ads API Forum" group.
To post to this group, send email to adwords-api@googlegroups.com
To unsubscribe from this group, send email to
adwords-api+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/adwords-api?hl=en
--- 
You received this message because you are subscribed to the Google Groups 
"Google Ads API and AdWords API Forum" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to adwords-api+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/adwords-api/e009f935-5129-4c88-80dd-15326cb75078n%40googlegroups.com.


Re: Unable to segment campaign report by geo_target_country

2021-08-10 Thread Mike Sullivan
Just adding 'me, too' to this thread. The Ads API is also missing segment 
by region or city or other geo_target_* segments, even though they are 
selectable_with ad_group and campaign resources.  That is a pretty 
significant reporting limitation for some people.

m

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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/5842f747-f25c-4a78-8aaf-5969aceae087n%40googlegroups.com.


Re: Ads API - which fields are of type Money?

2021-06-18 Thread Mike Sullivan
Thanks to Pete and Peter for the ideas, but there are a lot of money 
metrics that do not include the word 'micros' in the names or the 
descriptions. As a really obvious example:
 average_cpc : "The total cost of all clicks divided by the total number of 
clicks received."  

The discovery document also provides no additional clues, just echoing the 
description. 

I also tried 'cost', but there are still the odd exceptions 
like benchmark_average_max_cpc  - "An indication of how other advertisers 
are bidding on similar products."  Obscure, I know, but it exists.

I realize there are only 120 metrics, but things change over time (API v8 
already?) and it would be nice to have an automated method to determine if 
a number is a micro or not...

m

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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/97ef9c44-f841-479f-8deb-6fa8fc04aa27n%40googlegroups.com.


Ads API - which fields are of type Money?

2021-06-10 Thread Mike Sullivan
I followed the blog series on the query builder with great interest (thank 
you):
https://ads-developers.googleblog.com/2021/05/the-query-builder-blog-series-part-8.html

But where do you find which fields are of type Money, or returned in 
micros? For example, metrics.average_cpc is returned from 
the googleAdsFields as dataType DOUBLE.
In the Discovery document (also referenced in the blog), doesn't help. Is 
there a list of Money-type fields available somewhere?


-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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/5ed3263a-b22f-4198-b62f-7b4182d01912n%40googlegroups.com.


Where can I find an a Google Ads API pro to hire?

2021-04-30 Thread Mike Perez
We're moving away from the Adwords API v201809 over to the new Google Ads 
API v6/7. I'm looking for someone who has experience with the new API and 
is well versed in the object model/graph because we're trying to query 
across different sources. Anyone know where I can find someone?

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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/59619465-83c4-4dc0-ab19-779aa4eeec93n%40googlegroups.com.


[Google Ads API v6] no description in googleAdsField Service?

2021-02-25 Thread Mike Sullivan
Is there a source for the 'Field Description' for the various resources? It 
seems to appear in the documentation (sample link below) but not in the 
googleAdsField service.
https://developers.google.com/google-ads/api/fields/v6/segments

Mike

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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/4632ce4c-b752-49e4-9391-1c6285ca4028n%40googlegroups.com.


Google Ads API v4: ThirdPartyAppAnalyticsLinkService missing google play linked apps

2020-07-22 Thread Mike
Hi,

the new ThirdPartyAppAnalyticsLinkService that was introduced on v4 does 
not return rows from google play apps. Please fix it.

Regards,
Mike

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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/d261fa4b-9621-476f-8470-a8aa48724371n%40googlegroups.com.


Google ADS Api: RESOURCE_EXHAUSTED: Resource has been exhausted (e.g. check quota).

2020-07-03 Thread Mike
Hi,

my code uses only .list method and now I get RESOURCE_EXHAUSTED. Same API 
calls used to work for many days. What is happening now?
Can you reset the quota for us?

request_id: 41XDZODsbP_AXqPcGJ1RUQ

Regards,
Mike

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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/8d5756de-7013-49ad-90f8-97c57e8ea534o%40googlegroups.com.


Google Ads API: missing conversion actions from API call

2020-06-05 Thread Mike
Hi,

is there any particular reason why the google ads api does not return all 
conversion actions that we see on UI? I suspect that google ads api does 
not return conversion actions imported from third-party analytics providers.
(I am referring to the response of this query:
SELECT
  conversion_action.id
FROM
  conversion_action

or the response from api call to ConversionActionService
)

Why is that? Can you please fix it now?

Regards,
Mike

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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/13ea767e-2ba8-43e0-92ed-f8042048defeo%40googlegroups.com.


Google Ads API: cannot update app campaign ad group ad descriptions and headline

2020-04-30 Thread Mike
Hi,

when trying to update descriptions and headlines in app campaign through 
Google Ads API I get the following:

Error: Field 'ad.app_ad.descriptions' cannot be modified by 'UPDATE' 
operation.
at AdGroupAdService. 
(C:\projects\dsp-jobs\node_modules\google-ads-api\build\services\service.js:178:23)
at Generator.throw ()
at rejected 
(C:\projects\dsp-jobs\node_modules\google-ads-api\build\services\service.js:6:65)
at 

I can do it through Google Ads UI. Why? is this a bug?

Mike

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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/ded2efbe-ce1a-47a0-84ec-ca567f0148f1%40googlegroups.com.


Google Ads API: import conversions actions

2020-04-29 Thread Mike
Hi,

can I import conversions actions from third-party analytics through Google 
Ads API?

Mike

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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/59879376-e7fd-40f4-9710-60c04a1c1d55%40googlegroups.com.


Re: Google Ads API: unreliable conversions count and cost

2020-04-22 Thread Mike
Hi Bryan,

I am already aware of this. 

using the geographic_view you cannot have group by hour.
using the campaign_view you cannot have group by country.

So based on the above API issues, you cannot track in a reliable way the 
conversions and the cost because you cannot have by hour analysis for the 
past days and with campaign_view you cannot group by country. So these are 
useless if you need to have conversions and cost broken down by country, 
device, hour. 
Also, there is no metric for conversions count (by conv.time) as it is on 
the UI.

Regards,
Mike

On Wednesday, April 22, 2020 at 6:53:19 PM UTC+3, adsapiforumadvisor wrote:
>
> Hi Mike,
>
> Thank you for reaching out to us. For information on how to pull reports 
> for App Campaigns, you can see this documentation 
> <https://developers.google.com/google-ads/api/docs/app-campaigns/reporting> 
> for 
> the setup. You can then pull data using the Campaign Report 
> <https://developers.google.com/google-ads/api/fields/v3/campaign> that 
> includes cost_per_conversion 
> <https://developers.google.com/google-ads/api/fields/v3/campaign#metrics.cost_per_conversion>,
>  
> all_conversions 
> <https://developers.google.com/google-ads/api/fields/v3/campaign#metrics.all_conversions>,
>  
> and conversion_action 
> <https://developers.google.com/google-ads/api/fields/v3/campaign#segments.conversion_action>
>  that 
> will provide information on the number of conversion, conversion actions, 
> and the cost per conversion for your App Campaigns. There are also other 
> fields listed here 
> <https://developers.google.com/google-ads/api/fields/v3/campaign>. For 
> location, you can also use fields listed here 
> <https://developers.google.com/google-ads/api/fields/v3/geographic_view> 
> in Geographic View, as well as device 
> <https://developers.google.com/google-ads/api/fields/v3/geographic_view#segments.device>
>  
> to pull the device data for your App Campaigns. For reporting examples, you 
> can use this example 
> <https://developers.google.com/google-ads/api/docs/samples/get-keyword-stats> 
> as the basis for pulling reporting data. Let me know if you have further 
> questions.
>
> Thank you,
> Bryan, Google Ads API Team  
>
> ref:_00D1U1174p._5001UaRs82: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/50eeda84-cf4d-4503-bcc7-22ee5900fafb%40googlegroups.com.


Google Ads API: unreliable conversions count and cost

2020-04-22 Thread Mike
What is the recommended way of counting the conversions and the cost from 
App Campaigns in a reliable way?
I have used all available reports and still nothing. 
I have a scheduled run and get the conversions as they appear in reports 
(through api call and today date filter) in order to store when these 
happen. I cannot track conversions for the past days because reports do you 
provide cost, country and device platform per hour.

So I cannot store in a reliable way the conversions and their cost.

Mike

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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/e16022e9-22cb-4d28-9bce-b52b0e92763e%40googlegroups.com.


Re: Google Ads API: conversions count changes over time for past days

2020-04-10 Thread Mike
Hi Andrew,

I understand that you cannot implement new features every time someone asks 
for it but based on the fact that anyone cannot retrieve reliable data from 
Google Ads either by API or UI this is a serious issue.
You should escalate it.

Based on what can be proved anytime, the findings are:


   1. No conversions count by conv.time metric in API, so you can count 
   conversions from metrics.conversions as they appear in API
   2. metrics.conversions first store the day conversions in current day 
   and then after some hour Google moves (probably) these conversions to the 
   date they happen. This can lead to serious billing issues when a user would 
   like to take it one step further. 
   3. There is no way to have stable pricing. What you pay for the Google 
   Ads services changes over time which a fundamental issue. Even if a user 
   calculates conversion cost based on click cost at the time the conversion 
   appears in the API, this changes over time because API changes click cost 
   and conversion count.

My main concern is for App Campaigns and all above can be replayed anytime.

Mike


On Friday, April 10, 2020 at 3:37:56 AM UTC+3, adsapiforumadvisor wrote:
>
> Hi Mike,
>
> Thank you, I understand better now.  You are correct that certain fields 
> are not available from particular reports; you can accomplish some 
> limited joins 
> <https://developers.google.com/google-ads/api/docs/query/structure#from> 
> if the resource in your FROM clause has the joining resource as one of its 
> segments.  An alternative is to run two queries and combine the returned 
> data in your application.
>
> Since we don't currently support the exact functionality you're looking 
> for, I will file a feature request to address your use case.  Please keep 
> an eye on Google Ads API announcements for updates.
>
> Thanks,
>
> Andrew, Google Ads API Team
>
> ref:_00D1U1174p._5001UZWp4F: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/ac06ce07-5290-45ba-b435-b4d1cc8914dd%40googlegroups.com.


Re: Google Ads API: conversions count changes over time for past days

2020-04-09 Thread Mike
Hi Andrew,

using the geographic_view you cannot have group by hour.
using the campaign_view you cannot have group by country.

So I cannot achieve what I described.

Any solution?

Mike

On Thursday, April 9, 2020 at 9:52:54 PM UTC+3, adsapiforumadvisor wrote:
>
> Hi Mike,
>
> Could you provide a bit more detail about this issue?  The fields you've 
> described are available in several reports, such as Campaign 
> <https://developers.google.com/google-ads/api/fields/v3/campaign> or 
> Geographic 
> View 
> <https://developers.google.com/google-ads/api/fields/v3/geographic_view>; 
> are you receiving errors when accessing reports?
>
> Thanks,
>
> Andrew, Google Ads API Team
>
> ref:_00D1U1174p._5001UZWp4F: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/e9d113ab-1c1a-4bdb-9458-54b67a64fb32%40googlegroups.com.


Re: Google Ads API: conversions count changes over time for past days

2020-04-09 Thread Mike
Hi Andrew, 

thank you for the detailed explanation. This creates the problem that we 
cannot get afterwards (when data are "finalized") the following:

   - conversions count per campaign, ad group, country, device, 
   conversion_action, day and hour
   - impressions count, clicks count and cost_micros per campaign, ad 
   group, country, device, day and hour

by the Google Ads API available reports.

Regards,
Mike

On Wednesday, April 8, 2020 at 9:52:37 PM UTC+3, adsapiforumadvisor wrote:
>
> Hi Mike,
>
> I appreciate your concern.  It is not unusual for the reported number of 
> conversions and clicks to decrease in the short term.  This is due to the 
> internal filtering processes for spam and invalid data, which take time to 
> complete their analyses.
>
> This effect will be certainly be noticeable if you repeatedly query recent 
> dates.  Your reported conversion and click numbers should stabilize within 
> a few days; we recommend waiting seven days to receive the most accurate 
> totals.
>
> Thank you,
>
> Andrew, Google Ads API Team
>
> ref:_00D1U1174p._5001UZWp4F: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/0ad79199-36ab-4531-8ae7-5f8d13f413ea%40googlegroups.com.


Re: Google Ads API: conversions count changes over time for past days

2020-04-08 Thread Mike
Hello Andrew,

Thank you for the information. It explains *only *the increase of 
conversions count for past days.

*It does not explain the decrease of reported conversions count, the 
decrease of reported clicks count and the decrease of reported cost*. 
Also the metric conversions by conv.time is not available through the API.

Mike

On Wednesday, April 8, 2020 at 5:15:54 PM UTC+3, adsapiforumadvisor wrote:
>
> Hi Mike,
>
> Thank you for reaching out.  There are specific considerations when 
> reading conversion data; please see this resource page 
> <https://support.google.com/google-ads/answer/6270625> for information, 
> particularly the Time of Conversion section.
>
> Please let me know if I can provide any further clarity.
>
> Thanks,
>
> Andrew, Google Ads API Team
>
>
> ref:_00D1U1174p._5001UZWp4F: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/f604fb1a-a19c-404f-a8b4-b36cc99dbdde%40googlegroups.com.


Re: Google Ads API: conversions count changes over time for past days

2020-04-08 Thread Mike
Another interesting thing is that Google changes the daily clicks count and 
cost for 2 days ago!
I am thinking how this thing is working for so many people. Lets suppose I 
chose to pay google 2 hours ago, I would pay more and if I pay now I would 
pay less. And if we are talking about huge numbers, there is serious 
difference in the amounts.

These observations are for Google Ads API and Google Ads UI.

Please explain.

*RUN 2hours ago*
{
"campaign": {
"resource_name": "customers//campaigns/",
"name": "###",
"app_campaign_setting": {
"app_id": ""
}
},
"segments": {
"date": "2020-04-06"
},
"metrics": {
"impressions": 80798,
*"clicks": 653,*
"conversions": 38,
*"cost_micros": 55534325*
}
},

*RERUN NOW*
  {
"campaign": {
  "resource_name": "customers//campaigns/",
  "name": "",
  "app_campaign_setting": {
"app_id": ""
  }
},
"segments": {
  "date": "2020-04-06"
},
"metrics": {
  "impressions": 80798,
*  "clicks": 647,*
  "conversions": 38,
*  "cost_micros": 54974325*
}
  },


On Wednesday, April 8, 2020 at 10:56:30 AM UTC+3, Mike wrote:
>
> Also,
> another interesting finding is that running the following query every 10 
> minutes I found that conversion count for same campaign, country, device, 
> adgroup, date and conversion_action *might decrease* many times.
>
> e.g.
> 2020-04-08 03:49:09.556Z: metrics.conversions:1
> 2020-04-08 03:59:10.079Z : metrics.conversions:2
> 2020-04-08 05:29:10.265Z:   metrics.conversions:1
>
> Can you explain this?
>
> Mike
>
> On Wed, Apr 8, 2020 at 10:03 AM Mike  wrote:
>
>> Hi,
>>
>> I am running the following query for a particular day
>>
>> SELECT
>> campaign.name,
>>   campaign.app_campaign_setting.app_id,
>>   ad_group.id,
>>   ad_group.name,
>>   geographic_view.country_criterion_id,
>>   segments.device,
>>   segments.date,
>>   segments.conversion_action,
>>   metrics.conversions
>> FROM
>> geographic_view
>> WHERE
>> segments.date = '2020-04-06'
>> AND campaign.app_campaign_setting.app_id IS NOT NULL
>>
>> and metrics.conversions value changes every day although the day 
>> 2020-04-06 has passed in Singapore (Account has Singapore timezone).
>>
>> Execution Time (Singapore timezone): '2020 Apr 06 23:50' 19 total 
>> conversions 
>> Execution Time (Singapore timezone): '2020 Apr 07 03:50' 21 total 
>> conversions !! (for segments.date = '2020-04-06') 
>> Execution Time (Singapore timezone): '2020 Apr 07 16:50' 36 total 
>> conversions !! (for segments.date = '2020-04-06')
>>
>> I am seeing the same behavior also in Google Ads UI. Is this normal?
>>
>> I run the above query every 10 minutes with 'DURING TODAY' and I am 
>> seeing that* Google is moving conversions from current day to previous 
>> days*. Is this normal?
>>
>> *When I expect to have final data about conversions count? *
>>
>> This is critical to be addressed. We cannot report different data every 
>> day to our customers.
>>
>> Mike
>>
>>
>> -- 
>> -- 
>> =~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
>> 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 a topic in the 
>> Google Groups "AdWords API and Google Ads API Forum" group.
>> To unsubscribe from this topic, visit 
>> https://groups.google.com/d/topic/adwords-api/8Ok9oq8K3Qw/unsubscribe.
>> To unsubscribe from this group and all its topics, send an email to 
>> adwords-api+unsubscr...@googlegroups.com.
>> To view this discussion on the web visit 
>> https://g

Re: Google Ads API: conversions count changes over time for past days

2020-04-08 Thread Mike Nikitas
Also,
another interesting finding is that running the following query every 10
minutes I found that conversion count for same campaign, country, device,
adgroup, date and conversion_action *might decrease* many times.

e.g.
2020-04-08 03:49:09.556Z: metrics.conversions:1
2020-04-08 03:59:10.079Z : metrics.conversions:2
2020-04-08 05:29:10.265Z:   metrics.conversions:1

Can you explain this?

Mike

On Wed, Apr 8, 2020 at 10:03 AM Mike  wrote:

> Hi,
>
> I am running the following query for a particular day
>
> SELECT
> campaign.name,
>   campaign.app_campaign_setting.app_id,
>   ad_group.id,
>   ad_group.name,
>   geographic_view.country_criterion_id,
>   segments.device,
>   segments.date,
>   segments.conversion_action,
>   metrics.conversions
> FROM
> geographic_view
> WHERE
> segments.date = '2020-04-06'
> AND campaign.app_campaign_setting.app_id IS NOT NULL
>
> and metrics.conversions value changes every day although the day
> 2020-04-06 has passed in Singapore (Account has Singapore timezone).
>
> Execution Time (Singapore timezone): '2020 Apr 06 23:50' 19 total
> conversions
> Execution Time (Singapore timezone): '2020 Apr 07 03:50' 21 total
> conversions !! (for segments.date = '2020-04-06')
> Execution Time (Singapore timezone): '2020 Apr 07 16:50' 36 total
> conversions !! (for segments.date = '2020-04-06')
>
> I am seeing the same behavior also in Google Ads UI. Is this normal?
>
> I run the above query every 10 minutes with 'DURING TODAY' and I am seeing
> that* Google is moving conversions from current day to previous days*. Is
> this normal?
>
> *When I expect to have final data about conversions count? *
>
> This is critical to be addressed. We cannot report different data every
> day to our customers.
>
> Mike
>
>
> --
> --
> =~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
> 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 a topic in the
> Google Groups "AdWords API and Google Ads API Forum" group.
> To unsubscribe from this topic, visit
> https://groups.google.com/d/topic/adwords-api/8Ok9oq8K3Qw/unsubscribe.
> To unsubscribe from this group and all its topics, 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/c7a2480d-e1a8-4d59-91c5-544412056d42%40googlegroups.com
> <https://groups.google.com/d/msgid/adwords-api/c7a2480d-e1a8-4d59-91c5-544412056d42%40googlegroups.com?utm_medium=email&utm_source=footer>
> .
>

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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/CAOU978OuW%3Dvdg-6OT3OmDL7onD3FyGRpTO5KzzveZnKDKamQeQ%40mail.gmail.com.


Google Ads API: conversions count changes over time for past days

2020-04-08 Thread Mike
Hi,

I am running the following query for a particular day

SELECT
campaign.name,
  campaign.app_campaign_setting.app_id,
  ad_group.id,
  ad_group.name,
  geographic_view.country_criterion_id,
  segments.device,
  segments.date,
  segments.conversion_action,
  metrics.conversions
FROM
geographic_view
WHERE
segments.date = '2020-04-06'
AND campaign.app_campaign_setting.app_id IS NOT NULL

and metrics.conversions value changes every day although the day 2020-04-06 
has passed in Singapore (Account has Singapore timezone).

Execution Time (Singapore timezone): '2020 Apr 06 23:50' 19 total 
conversions 
Execution Time (Singapore timezone): '2020 Apr 07 03:50' 21 total 
conversions !! (for segments.date = '2020-04-06') 
Execution Time (Singapore timezone): '2020 Apr 07 16:50' 36 total 
conversions !! (for segments.date = '2020-04-06')

I am seeing the same behavior also in Google Ads UI. Is this normal?

I run the above query every 10 minutes with 'DURING TODAY' and I am seeing 
that* Google is moving conversions from current day to previous days*. Is 
this normal?

*When I expect to have final data about conversions count? *

This is critical to be addressed. We cannot report different data every day 
to our customers.

Mike


-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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/c7a2480d-e1a8-4d59-91c5-544412056d42%40googlegroups.com.


Rate Limits - AdWords API vs Ads API

2020-03-18 Thread Mike Eldridge
Hi,

We have applications already using the AdWords API and are in the midst of 
developing a new application using the Google Ads API beta v3_0.  Do these 
two APIs share the same buckets for rate limiting under the hood or are 
they separate?  I wasn't able to find an answer to this question in the 
existing documentation.

Thank you!

Mike

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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/e744a887-2926-4ecb-aed9-a0192c9c18ad%40googlegroups.com.


Re: invalid error when try to issue LinkID with approved MCC

2020-03-11 Thread Mike Nikitas
Hi Taichi,

yes I have everything you need to support this case. Let me when it suits
you.

According the documentation you must enter as Other Provider id the
customer id of the google ads account from where you issued a developer key
which is related to App Conversions API.

Regards,
Mike


On Tue, Mar 10, 2020 at 1:51 PM Taichi Mochizuki 
wrote:

> Hi Mike!
>
> Thanks for the update.
>
> The basic access developer token is related to app conversion api
>> application?
>>
> Let me know if you have good POC to discuss about this problem.
>
> The basic access developer token is related to app conversion api
>> application?
>>
> In terms of api application, I think it is not related to Google Ads
> Remarketing APi.
> I just wrote "basic access" because it was shown on Google Ads UI after
> application was approved.
>
> Best,
>
> 2020年3月10日(火) 20:38 Mike :
>
>> Hi Taichi,
>>
>> we are trying to do the same for 1+ month but still no luck. I have
>> communicated with every possible Google contact and no answer.
>> The basic access developer token is related to app conversion api
>> application?
>>
>> Regards,
>> Mike
>>
>> On Tuesday, March 10, 2020 at 8:55:19 AM UTC+2, Taichi Mochizuki wrote:
>>>
>>> Hi,
>>>
>>> We plan to implement pLTV measures for the target clients.
>>> I got a developer token to send a conversion ping back from the client
>>> server to Google Ads. (bdU2JuEdOMaQjAtZ0nrpBw: This developer token has
>>> basic access)
>>>
>>> When I tried to publish a LinkID from MCC, I received a screenshot
>>> error. The advertising measurement SDK uses Tenjin.
>>>
>>> I would like to issue a new LinkID without errors. Could you tell me how
>>> to do it?
>>>
>> --
>> --
>> =~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
>> 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/bb996b40-b06f-4c53-96c2-cb471a675ec7%40googlegroups.com
>> <https://groups.google.com/d/msgid/adwords-api/bb996b40-b06f-4c53-96c2-cb471a675ec7%40googlegroups.com?utm_medium=email&utm_source=footer>
>> .
>>
>
>
> --
> Taichi Mochizuki  望月太知 |  Google Japan G.K. |  tmochiz...@google.com |
>  080-2183-4440
> Roppongi Hills Mori Tower 28F, 6-10-1 Roppongi, Minato-ku, Tokyo 106-6128
>
>
>

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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/CAOU978OspwU1jhy9hGAusnz08Ch%2BnoTtMneS%2B7Cy-sJXrovy_w%40mail.gmail.com.


Re: invalid error when try to issue LinkID with approved MCC

2020-03-10 Thread Mike
Hi Taichi,

we are trying to do the same for 1+ month but still no luck. I have 
communicated with every possible Google contact and no answer.
The basic access developer token is related to app conversion api 
application?

Regards,
Mike

On Tuesday, March 10, 2020 at 8:55:19 AM UTC+2, Taichi Mochizuki wrote:
>
> Hi,
>
> We plan to implement pLTV measures for the target clients.
> I got a developer token to send a conversion ping back from the client 
> server to Google Ads. (bdU2JuEdOMaQjAtZ0nrpBw: This developer token has 
> basic access)
>
> When I tried to publish a LinkID from MCC, I received a screenshot error. 
> The advertising measurement SDK uses Tenjin.
>
> I would like to issue a new LinkID without errors. Could you tell me how 
> to do it?
>

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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/bb996b40-b06f-4c53-96c2-cb471a675ec7%40googlegroups.com.


New Sandbox for AdWords and Ads API - Feedback and alpha testers requested

2020-03-10 Thread Mike SOLOMON
Hi!

My company is building an API sandbox for testing AdWords and Ads API 
calls.  The sandbox is a docker container that runs in CI/CD environments 
and can be initialized to arbitrary states to test out various scenarios. 
For example, we use it to test different flows for budgets, bidding, and 
text ads.  Our aim is to expand it to the entire surface area of the 
AdWords and Ads APIs.

We are looking for people that work with the AdWords and Ads API that would 
be interested in alpha testing the sandbox in their unit or integration 
tests from a CI/CD pipeline. If the alpha test goes well, we'll do a public 
beta. Please respond to this message or ping me directly at 
m...@meeshkan.com if you're interested in being part of the alpha!

Thanks,
~Mike

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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/84ceacdb-0893-4a3f-9f33-84325e249899%40googlegroups.com.


Re: How to get Linked Accounts

2020-02-15 Thread Mike
Hi Nikisha,

you should also consider adding the following:


   1. adding linked accounts
   2. share linked accounts
   3. importing conversion actions from linked thrid-party analytics

Regards,
Mike


On Friday, February 14, 2020 at 10:25:53 PM UTC+2, adsapiforumadvisor wrote:
>
> Hello,
>
> Thank you for writing to us. Currently, the API does not support the 
> retrieval of linked accounts in your Google Ads account and it is only 
> available in the Google Ads UI. I have raised a feature request regarding 
> your concern internally within our team. Please keep an eye on our blog 
> post <https://ads-developers.googleblog.com/2020> for more updates.
>
> Regards,
> Nikisha Patel, Google Ads API Team
>
>
> ref:_00D1U1174p._5001UV0noM: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/538dc3c1-8c5f-4f2e-adaf-ed4e6cadebc6%40googlegroups.com.


Temporary IDs in GoogleAdsService.Mutate

2020-02-14 Thread Mike Eldridge
I'm having trouble with temporary IDs in GoogleAdsService.Mutate calls as 
described in the Google Ads documentation here:


https://developers.google.com/google-ads/api/docs/mutating/best-practices

Every time I try to use temporary IDs in resource names when creating 
extension feed items, the Google Ads API throws an exception telling me I 
cannot specify resource_name in a create operation.  Why, then, does the 
Google Ads API documentation say that I can do this?  The documentation 
literally says to specify resource_name using a negative ID:

"You can do this by specifying the new resource's resource_name to use 
a negative ID."

What am I doing wrong?

Thanks,

Mike

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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/82e01c10-7079-4292-8f31-27637280e628%40googlegroups.com.


Re: Cannot create LinkId for Other Provider

2020-02-10 Thread Mike


The link you provided is the home page of the Google Ads public faq. How to 
contact Apps Conversion Tracking API Product Team? Is there an email 
address or a forum dedicated to this particular API?

Also, my question related to the Apps Conversion Tracking API but the error 
I am receiving is from Google Ads UI.

 

Can you elaborate more on this as our development team has put serious 
effort on this integration and is waiting for too many days for Google 
response/solution. We must know if Google APIs are capable of doing the 
advertised integration or not.



On Friday, February 7, 2020 at 10:28:59 PM UTC+2, adsapiforumadvisor wrote:
>
> Hello,
>
> Thank you for writing to us. We only provide assistance to the concerns 
> related to Google Ads API Beta/ AdWords API on this forum. Since your 
> concerns are related to Apps Conversion Tracking API, I would recommend 
> reaching out to the product support team via this 
>  link as they 
> are the best bet to assist you with your concerns. Let us know if you have 
> any Google Ads API Beta/ AdWords API related concerns.
>
> Regards,
> Nikisha Patel, Google Ads API Team
>
>
> ref:_00D1U1174p._5001UV08O1: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/f11e9df8-af24-4616-8f86-39a87df0204e%40googlegroups.com.


Re: Unable to generate Link ID for third party app analytics provider

2020-02-10 Thread Mike
Hi Danish,

I am trying to do exactly the same and now getting the error message: The 
Provider ID you entered is not valid. Have you managed to solve the problem?

Regards,
Mike

On Tuesday, August 27, 2019 at 2:25:23 AM UTC+3, Dinesh Sawant wrote:
>
> Hi,
>
> I am following this API guide - 
> https://developers.google.com/app-conversion-tracking/api/
>
> It says, 
>
>> To create a link ID associated with your unique developer token, select 
>> *Other 
>> provider* from the *app analytics provider*dropdown. In the input box 
>> labeled *Enter your provider's ID* enter the external customer ID 
>> associated with the Google Ads manager account where you applied for your 
>> developer token. Enter the ID without dashes (ex. 1234567890 for an account 
>> ID shown as 123-456-7890 in the Google Ads UI).
>
>
> I followed the steps, but I get following message on Create a new link to 
> your provider screen after filling all the information. I have been trying 
> to generate Link id for over a week now. And still I am getting the same 
> message. Any idea what is going wrong here?
>
> Message on Create a new link to your provider panel:
> An error occurred. Please try again later.
>
>
>

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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/f410098d-908f-48f3-98a0-67a2076a5398%40googlegroups.com.


Re: Cannot create LinkId for Other Provider

2020-02-07 Thread Mike Nikitas
Hi sosa,

this is what I did it. I followed these instructions as I wrote in my post.
No luck.

Regards,
Mike

On Fri, Feb 7, 2020 at 11:54 AM Jesse Sosa  wrote:

> Try following the instructions at  the link below
> https://developers.google.com/app-conversion-tracking/api
> -sosa
>
> On Fri, Feb 7, 2020, 1:43 AM Mike  wrote:
>
>> HI,
>>
>> I managed to create a test google ads account through API but now I am
>> stuck on another step.
>>
>> I created a campaign (under this test account) for capturing mobile app
>> installs and I would like to select 'Other Provider' in App Analytics
>> Provider.
>>
>> Following the instructions from this:
>> https://developers.google.com/app-conversion-tracking/api
>> '*To create a link ID associated with your unique developer token,
>> select Other provider from the app analytics provider dropdown. In the
>> input box labeled Enter your provider's ID enter the external customer ID
>> associated with the Google Ads manager account where you applied for your
>> developer token. Enter the ID without dashes (ex. 1234567890 for an account
>> ID shown as 123-456-7890 in the Google Ads UI).*'
>>
>> when inserting my test manager account (from which I have requested the
>> developer token) id (without dashes) I get error message: '*The Provider
>> ID you entered is not valid*'
>>
>> Can you please advice?
>>
>> 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/0ebd48c8-5edd-42be-96eb-ea05bf5151d7%40googlegroups.com
>> <https://groups.google.com/d/msgid/adwords-api/0ebd48c8-5edd-42be-96eb-ea05bf5151d7%40googlegroups.com?utm_medium=email&utm_source=footer>
>> .
>>
>

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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/CAOU978Mot5EGx2WVQzJKjtVZ6BHL%3DekPPK1qrCMc8UuAAK8mPw%40mail.gmail.com.


Cannot create LinkId for Other Provider

2020-02-07 Thread Mike
HI, 

I managed to create a test google ads account through API but now I am 
stuck on another step.

I created a campaign (under this test account) for capturing mobile app 
installs and I would like to select 'Other Provider' in App Analytics 
Provider.

Following the instructions from this: 
https://developers.google.com/app-conversion-tracking/api
'*To create a link ID associated with your unique developer token, select 
Other provider from the app analytics provider dropdown. In the input box 
labeled Enter your provider's ID enter the external customer ID associated 
with the Google Ads manager account where you applied for your developer 
token. Enter the ID without dashes (ex. 1234567890 for an account ID shown 
as 123-456-7890 in the Google Ads UI).*'

when inserting my test manager account (from which I have requested the 
developer token) id (without dashes) I get error message: '*The Provider ID 
you entered is not valid*'

Can you please advice?

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/0ebd48c8-5edd-42be-96eb-ea05bf5151d7%40googlegroups.com.


Re: Google Ads MCC test accounts NOT creating client accounts

2020-02-05 Thread Mike
I totally agree with you. No way to create test google account in order to 
create/manage test campaigns.
Google API has issues in this that need to be addressed.

Mike

On Thursday, February 6, 2020 at 2:14:52 AM UTC+2, Joe Davis wrote:
>
> When a manager test account is created, I see that it is labeled as 
> "(Closed)" the moment it is created, which seems to prevent the creation of 
> client accounts within the test MCC. When I create a client account within 
> a test MCC, the first page of the set up process asks for an account name, 
> to confirm the type of account, time zone, currency, etc. but then the 
> second page displays a message that says "There is no billing setup or you 
> are not authorized to perform any operations in the billing page. Please 
> contact customer support for more information." Again, this is when trying 
> to create a client account within a test manager account, which is 
> apparently necessary for making API requests that involve creating 
> campaigns since those can be created within client accounts only.
>
> All instructions provided by Google in their AdWords API documentation 
> have been followed multiple times by multiple people and no one can figure 
> this out. I'm guessing Google's link to where test manager accounts are 
> created is outdated, or they are not allowing *anyone* to create test 
> client accounts at this time.
>
> Any suggestions? Thank you.
>

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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/d5cd4ba4-1f0d-4205-b949-03c92b437908%40googlegroups.com.


Re: Create Google Ads Test Account related to a Google Ads Manager Test Account

2020-02-05 Thread Mike Nikitas
No that’s not correct. As I wrote I have already done that and the created 
google ads accounts are not marked as test.

Mike 

> 5 Φεβ 2020, 22:26, ο χρήστης «Google Ads API Forum Advisor Prod 
> » έγραψε:
> 
> 
> Hi Mike,
> 
> Thanks for reaching out. If you have successfully created the test manager 
> account, all the test customer accounts you created afterwards within this 
> account would be test accounts instead of the production accounts. You could 
> verify the status of the test customer account by looking at the upper right 
> corner red box marked as “Test account”. Please let me know if you have any 
> other questions.
> 
> Thanks and regards,
> Xiaoming, Google Ads API Team
> 
> 
> 
>  
> 
> ref:_00D1U1174p._5001UUzqXN: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/05CAB1B1-4020-4FAF-B69A-18430139DF24%40gmail.com.


Re: Create Google Ads Test Account related to a Google Ads Manager Test Account

2020-02-04 Thread Mike
Actually leads to a normal account with note 'Setup in progress' which 
stays forever.

On Wednesday, February 5, 2020 at 9:47:32 AM UTC+2, Mike wrote:
>
> Hi, 
>
> I have the same issue.
>
> my goal is to create a test environment to check Google Ads API Beta 
> and Google App Conversion Tracking and Remarketing API. Following online 
> documentation I created a test manager account and I cannot create a 
> new Google Ads test account. After the successful login of test manager 
> account (I see the red box 'Test Account'), I select 
> Accounts/Management/Create New Account, fill the form and when I click 
> 'Save and Continue' I get the message 'Billing setups can not be used based 
> on current status of the customer.'.
>
> Can you please advice?
>
> I would like to have a test Google Ads account in order to create/manage 
> test campaigns in conjunction with test api call to Google Ads API Beta 
> and  and Google App Conversion Tracking and Remarketing API.
>
> Following these steps from the guide you suggested:
>
>1. Go to the Google Ads manager accounts page and create a test 
>manager account.
>2. Use the Google Ads UI to create a test client account under the 
>test manager account you created above. While logged in to Google Ads as 
>your test manager account, any client accounts you create will 
>    automatically be test accounts.
>
>
> leads to the creation of a normal Google Ads account, not a test one.
>
> Regards,
> Mike
>
> On Tuesday, February 4, 2020 at 10:33:42 PM UTC+2, adsapiforumadvisor 
> wrote:
>>
>> Hi Rich,
>>
>> Thanks for reaching out. As I said, your test customer account is 
>> possibly already created. The test manager account by default is in closed 
>> status. If you follow the steps I mentioned before to click on the down 
>> arrow next to the test manager account number and on the drop-down list 
>> click on the three dots icon and tick cancelled accounts and hidden 
>> accounts. And then you can click on the Accounts tab to check whether you 
>> successfully created the test account. If it doesn’t work, please follow 
>> steps in this guide 
>> <https://developers.google.com/adwords/api/docs/guides/first-api-call#create_test_accounts>
>>  
>> to create the test manager account and test customer account. 
>>
>> Thanks and regards,
>> Xiaoming, Google Ads API Team
>>
>>
>>  
>>
>> ref:_00D1U1174p._5001UUzqXN: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/e8f72c03-aa4a-4165-b6d4-7153cfbbe411%40googlegroups.com.


Re: Create Google Ads Test Account related to a Google Ads Manager Test Account

2020-02-04 Thread Mike
Hi, 

I have the same issue.

my goal is to create a test environment to check Google Ads API Beta 
and Google App Conversion Tracking and Remarketing API. Following online 
documentation I created a test manager account and I cannot create a 
new Google Ads test account. After the successful login of test manager 
account (I see the red box 'Test Account'), I select 
Accounts/Management/Create New Account, fill the form and when I click 
'Save and Continue' I get the message 'Billing setups can not be used based 
on current status of the customer.'.

Can you please advice?

I would like to have a test Google Ads account in order to create/manage 
test campaigns in conjunction with test api call to Google Ads API Beta 
and  and Google App Conversion Tracking and Remarketing API.

Following these steps from the guide you suggested:

   1. Go to the Google Ads manager accounts page and create a test manager 
   account.
   2. Use the Google Ads UI to create a test client account under the test 
   manager account you created above. While logged in to Google Ads as your 
   test manager account, any client accounts you create will automatically be 
   test accounts.


leads to the creation of a normal Google Ads account, not a test one.

Regards,
Mike

On Tuesday, February 4, 2020 at 10:33:42 PM UTC+2, adsapiforumadvisor wrote:
>
> Hi Rich,
>
> Thanks for reaching out. As I said, your test customer account is possibly 
> already created. The test manager account by default is in closed status. 
> If you follow the steps I mentioned before to click on the down arrow next 
> to the test manager account number and on the drop-down list click on the 
> three dots icon and tick cancelled accounts and hidden accounts. And then 
> you can click on the Accounts tab to check whether you successfully created 
> the test account. If it doesn’t work, please follow steps in this guide 
> <https://developers.google.com/adwords/api/docs/guides/first-api-call#create_test_accounts>
>  
> to create the test manager account and test customer account. 
>
> Thanks and regards,
> Xiaoming, Google Ads API Team
>
>
>  
>
> ref:_00D1U1174p._5001UUzqXN: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/1429dd7e-0a5c-4101-8d69-2a83d7d9055b%40googlegroups.com.


Re: Create Google Ads Test Account related to a Google Ads Manager Test Account

2020-02-04 Thread Mike Nikitas
Hi, 

I have the same issue.

my goal is to create a test environment to check Google Ads API Beta 
and Google App Conversion Tracking and Remarketing API. Following online 
documentation I created a test manager account and I cannot create a 
new Google Ads test account. After the successful login of test manager 
account (I see the red box 'Test Account'), I select 
Accounts/Management/Create New Account, fill the form and when I click 
'Save and Continue' I get the message 'Billing setups can not be used based 
on current status of the customer.'.

Can you please advice?

I would like to have a test Google Ads account in order to create/manage 
test campaigns in conjunction with test api call to Google Ads API Beta 
and  and Google App Conversion Tracking and Remarketing API.

When I create a new Google Ads Account after the successful login, a normal 
Google Ads account is created.

Regards,
Mike

On Tuesday, February 4, 2020 at 10:33:42 PM UTC+2, adsapiforumadvisor wrote:
>
> Hi Rich,
>
> Thanks for reaching out. As I said, your test customer account is possibly 
> already created. The test manager account by default is in closed status. 
> If you follow the steps I mentioned before to click on the down arrow next 
> to the test manager account number and on the drop-down list click on the 
> three dots icon and tick cancelled accounts and hidden accounts. And then 
> you can click on the Accounts tab to check whether you successfully created 
> the test account. If it doesn’t work, please follow steps in this guide 
> <https://developers.google.com/adwords/api/docs/guides/first-api-call#create_test_accounts>
>  
> to create the test manager account and test customer account. 
>
> Thanks and regards,
> Xiaoming, Google Ads API Team
>
>
>  
>
> ref:_00D1U1174p._5001UUzqXN: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/c0406715-7da4-427d-b78b-885843da890c%40googlegroups.com.


use google place autocomplete to target specify area

2019-11-19 Thread Mike Ng
How can I use google place autocomplete to create new campaign? from google 
autocomplate the getplace function return placeId and lng and lat but to 
create new campaign in google ads word, I create a new location and I don't 
know how to get location id from autocomplete.
anyone had the problem before?

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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/92cdcebd-551c-4497-a2f7-62e57a355cac%40googlegroups.com.


Failed to refresh access token

2019-10-31 Thread Mike Ng
I follow the "Make your first API Call" and download 
googleads-dotnet-lib-master git project. I filled in 
DeveloperToken, OAuth2ClientId, OAuth2ClientSecret and OAuth2RefreshToken 
but Still I keep getting "Failed to get campaigns. Exception says "Failed 
to refresh access token. See inner exception for details.". Pls 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/f5d5f4a2-b60d-467a-a64c-89ee4f2aa7d4%40googlegroups.com.


Upgraded client recently broken

2019-02-08 Thread Mike Diehl
Hi all,

We recently received notice that the version of the api that we were using 
was reaching end of life, so we upgraded.

After the upgrade, things ran smoothly.

Recently, however, the script(s) have stopped running.

So, I redid the upgrade by installing from cpan as root.

Now, when I run my script, I get this error message:

Can't call method "isa" on an undefined value at 
/usr/local/share/perl5/Google/Ads/Common/ReportUtils.pm line 86.


I've confirmed that Google::Ads::AdWords::Client is version 5.7.0.  I've 
also tried by installing from Google-Ads-AdWords-Client-5.7.0.tar.gz.

So, what have I done wrong, and how do I fix it?

Thanks in advance,

Mike Diehl.

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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.
Visit this group at https://groups.google.com/group/adwords-api.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/adwords-api/c1ac96ae-8d00-49f1-b564-88d21225906f%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


php Dynamic Namespaces to handle new versions of API

2019-01-14 Thread Mike Enos
I have hundreds of php scripts much like 
/examples/Adwords/v201809/BasicOperations/GetCampaignsWithAwql.php

Each time there is an API version update I need to go and manually EVERY 
file to use the new version, and make sure NONE are missed.

Yuck!

For example:
namespace Google\AdsApi\Examples\AdWords\v201809\BasicOperations;

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

use Google\AdsApi\AdWords\AdWordsServices;
use Google\AdsApi\AdWords\AdWordsSession;
use Google\AdsApi\AdWords\AdWordsSessionBuilder;
use Google\AdsApi\AdWords\Query\v201809\ServiceQueryBuilder;
use Google\AdsApi\AdWords\v201809\cm\CampaignService;
use Google\AdsApi\AdWords\v201809\cm\Page;
use Google\AdsApi\Common\OAuth2TokenBuilder;


What would be awesome is if I could have a file like "latestAPIVersion.php" 
which contained simply  "$version = "v201809"
and I could include that file.


It doesn't seem the use or namespace command allows variables ie.. 
namespace Google\AdsApi\Examples\AdWords\$version\BasicOperations;

What is everyone else doing out there to handle this?

Thanks





-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
Also find us on our blog:
https://googleadsdeveloper.blogspot.com/
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~

You received this message because you are subscribed to the Google
Groups "AdWords API and Google Ads API Forum" group.
To post to this group, send email to adwords-api@googlegroups.com
To unsubscribe from this group, send email to
adwords-api+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/adwords-api?hl=en
--- 
You received this message because you are subscribed to the Google Groups 
"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.
Visit this group at https://groups.google.com/group/adwords-api.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/adwords-api/55a4e3e0-d05e-4196-a2fc-e519d55a69f8%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: PHP Adwords API returning wrong (?) AdGroupId

2018-10-12 Thread Mike Hagendoorn
I have fixed this. The problem was caused by the fact that I'm running a 
32-bit version of PHP locally, which causes the ID to overflow. I've since 
installed a 64-bit version and it works flawlessly.



Op dinsdag 9 oktober 2018 12:58:28 UTC+2 schreef Mike Hagendoorn:
>
> Hi,
>
> I'm trying to create ads using the PHP API. The problem I'm having is the 
> following:
>
> I'm using this example code found on GitHub 
> <https://github.com/googleads/googleads-php-lib/blob/master/examples/AdWords/v201809/BasicOperations/GetAdGroups.php>
>  to 
> retrieve my AdGroups. This seems to work fine and returns the 2 AdGroups I 
> have, (I omitted the last 3 chars of the IDs):
>
> Ad group with ID -1627709*** and name 'AdGroup 2018-10-08 09:59:11' was found.
>> Ad group with ID -1780708*** and name 'AdGroup 2018-10-09 08:56:30' was 
>> found.
>> Number of results found: 2
>>
>>
>  However, when I try to create a ad with one of the ID's mentioned above 
> using 
> this example found on GitHub 
> <https://github.com/googleads/googleads-php-lib/blob/master/examples/AdWords/v201809/BasicOperations/AddExpandedTextAds.php>,
>  the 
> code always crashes with this error:
>
> *Fatal error*: Uncaught Google\AdsApi\AdWords\v201809\cm\ApiException: 
>> [EntityNotFound.INVALID_ID @ operations[0].operand.adGroupId; 
>> trigger:'TempAdGroupId: 1780708912'] in 
>
>
> After some tinkering around, I found that when you open your AdWords 
> dashboard and navigate to your AdGroups the following is found in the URL:
>
> &adGroupId=66938767***
>
>
> When I add that ID to my code instead of the one that is returned by the 
> GetAdGroups method, the ad is generated just fine.  
>
> I'm at a loss here; am I doing something wrong or is the example wrong? 
>

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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.
Visit this group at https://groups.google.com/group/adwords-api.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/adwords-api/9fb94d7d-7ccd-430d-a34b-14172786e588%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: PHP Adwords API returning wrong (?) AdGroupId

2018-10-09 Thread Mike Hagendoorn
Hi, 

I have responded to you privately.

Regards,
Mike

Op dinsdag 9 oktober 2018 18:12:35 UTC+2 schreef Teja Makani:
>
> Hello Mike,
>
> Could you please verify that while running the GetAdGroups.php 
> <https://github.com/googleads/googleads-php-lib/blob/master/examples/AdWords/v201809/BasicOperations/GetAdGroups.php>
>  and AddExpandedTextAds.php 
> <https://github.com/googleads/googleads-php-lib/blob/master/examples/AdWords/v201809/BasicOperations/AddExpandedTextAds.php>,
>  
> you are pointing to the same client customer Id? If you are using the same 
> CID and still facing the issue, please share the entire SOAP(request and 
> response) logs for both the operations without redacting any information. 
> You could use reply privately to the author option while sharing the data 
> requested. Also, you could follow the instructions shown at README.md 
> <https://github.com/googleads/googleads-php-lib/blob/master/README.md#logging>
>  to 
> enable logging. Could you please verify whether your PHP compiler is of 
> 32-bit version? If yes, follow the instructions shown here 
> <https://github.com/googleads/googleads-php-lib/blob/master/README.md#basic-usage>
>  to 
> modify the code and try again.
>
> Regards,
> Sai Teja, AdWords API Team.
>
> On Tuesday, October 9, 2018 at 6:58:28 AM UTC-4, Mike Hagendoorn wrote:
>>
>> Hi,
>>
>> I'm trying to create ads using the PHP API. The problem I'm having is the 
>> following:
>>
>> I'm using this example code found on GitHub 
>> <https://github.com/googleads/googleads-php-lib/blob/master/examples/AdWords/v201809/BasicOperations/GetAdGroups.php>
>>  to 
>> retrieve my AdGroups. This seems to work fine and returns the 2 AdGroups I 
>> have, (I omitted the last 3 chars of the IDs):
>>
>> Ad group with ID -1627709*** and name 'AdGroup 2018-10-08 09:59:11' was 
>> found.
>>> Ad group with ID -1780708*** and name 'AdGroup 2018-10-09 08:56:30' was 
>>> found.
>>> Number of results found: 2
>>>
>>>
>>  However, when I try to create a ad with one of the ID's mentioned above 
>> using 
>> this example found on GitHub 
>> <https://github.com/googleads/googleads-php-lib/blob/master/examples/AdWords/v201809/BasicOperations/AddExpandedTextAds.php>,
>>  the 
>> code always crashes with this error:
>>
>> *Fatal error*: Uncaught Google\AdsApi\AdWords\v201809\cm\ApiException: 
>>> [EntityNotFound.INVALID_ID @ operations[0].operand.adGroupId; 
>>> trigger:'TempAdGroupId: 1780708912'] in 
>>
>>
>> After some tinkering around, I found that when you open your AdWords 
>> dashboard and navigate to your AdGroups the following is found in the URL:
>>
>> &adGroupId=66938767***
>>
>>
>> When I add that ID to my code instead of the one that is returned by the 
>> GetAdGroups method, the ad is generated just fine.  
>>
>> I'm at a loss here; am I doing something wrong or is the example wrong? 
>>
>

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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.
Visit this group at https://groups.google.com/group/adwords-api.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/adwords-api/efcfd643-85e0-4b77-a3b1-46b1356e9e61%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


PHP Adwords API returning wrong (?) AdGroupId

2018-10-09 Thread Mike Hagendoorn
Hi,

I'm trying to create ads using the PHP API. The problem I'm having is the 
following:

I'm using this example code found on GitHub 

 to 
retrieve my AdGroups. This seems to work fine and returns the 2 AdGroups I 
have, (I omitted the last 3 chars of the IDs):

Ad group with ID -1627709*** and name 'AdGroup 2018-10-08 09:59:11' was found.
> Ad group with ID -1780708*** and name 'AdGroup 2018-10-09 08:56:30' was found.
> Number of results found: 2
>
>
 However, when I try to create a ad with one of the ID's mentioned above using 
this example found on GitHub 
,
 the 
code always crashes with this error:

*Fatal error*: Uncaught Google\AdsApi\AdWords\v201809\cm\ApiException: 
> [EntityNotFound.INVALID_ID @ operations[0].operand.adGroupId; 
> trigger:'TempAdGroupId: 1780708912'] in 


After some tinkering around, I found that when you open your AdWords 
dashboard and navigate to your AdGroups the following is found in the URL:

&adGroupId=66938767***


When I add that ID to my code instead of the one that is returned by the 
GetAdGroups method, the ad is generated just fine.  

I'm at a loss here; am I doing something wrong or is the example wrong? 

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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.
Visit this group at https://groups.google.com/group/adwords-api.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/adwords-api/e8ad1981-ef88-4b45-b4a7-8465a53c7c27%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: Receiving Error with DoAuth2Authorization trying to follow ConsoleExample.cs

2018-06-22 Thread Mike Schwartz
Hi Dhanya,  I tried with the callback URL as null and it kept returning an 
error that the redirectURI was invalid.  Once I set the redirectURI to 
localhost it started working.  To get the refresh token I used the code 
include as part of the .net zip here 
<https://developers.google.com/adwords/api/docs/clientlibraries> and 
created a separate application to request the refresh token and now I am 
able to send AWQL requests using that refresh token.   Regardless, there 
was something with the DoAuth2Authorization that kept erroring as detailed 
above, but since I found another method I have not investigated further.

Thanks,
Mike

On Wednesday, June 20, 2018 at 2:56:44 PM UTC-4, Dhanya Sundararaju 
(AdWords API Team) wrote:
>
> Hi Mike,
>
> I see that you are using the .NET client library 
> <https://github.com/googleads/googleads-dotnet-lib>. In your example, if 
> you are using a console application, you will need to set the callback url 
> to null. Also, please ensure that you are following the steps as mentioned 
> in the README.md 
> <https://github.com/googleads/googleads-dotnet-lib/blob/master/README.md> 
> file 
> and let me know if you have any further issues.
>
> Regards,
> Dhanya, AdWords API Team
>

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
Also find us on our blog:
https://googleadsdeveloper.blogspot.com/
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~

You received this message because you are subscribed to the Google
Groups "AdWords API and Google Ads API Forum" group.
To post to this group, send email to adwords-api@googlegroups.com
To unsubscribe from this group, send email to
adwords-api+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/adwords-api?hl=en
--- 
You received this message because you are subscribed to the Google Groups 
"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.
Visit this group at https://groups.google.com/group/adwords-api.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/adwords-api/bfc4a778-2799-4c60-90e8-cea1ae713310%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Receiving Error with DoAuth2Authorization trying to follow ConsoleExample.cs

2018-06-20 Thread Mike Schwartz
  " was found.", i + 1, campaign.id, campaign.
name, campaign.status);

i++;

}




}

selector.paging.IncreaseOffset();

}

while (selector.paging.startIndex < page.totalNumEntries);

Console.WriteLine("Number of campaigns found: {0}", page.
totalNumEntries);




}

catch(Exception ex)

{

throw new System.ApplicationException("Failed to retrieve 
campaigns", ex);

}

finally

{

Console.ReadKey();

}



 







}//end main




private static void DoAuth2Authorization(AdWordsUser user)

{

try  

{

// Since we are using a console application, set the 
callback url to null.

//user.Config.OAuth2RedirectUri = null;  // configured 
earlier, commented out and left for reference

   

Google.Api.Ads.Common.Lib.AdsOAuthProviderForApplications 
oAuth2Provider =

(user.OAuthProvider as Google.Api.Ads.Common.Lib.
AdsOAuthProviderForApplications);

// Get the authorization url.




string authorizationUrl = oAuth2Provider.GetAuthorizationUrl
();  //< ERROR OCCURS HERE

Console.WriteLine("Open a fresh web browser and navigate to 
\n\n{0}\n\n. You will be " +

"prompted to login and then authorize this application 
to make calls to the " +

"AdWords API. Once approved, you will be presented with 
an authorization code.",

authorizationUrl);




// Accept the OAuth2 authorization code from the user.

Console.Write("Enter the authorization code :");

string authorizationCode = Console.ReadLine();




// Fetch the access and refresh tokens.

oAuth2Provider.FetchAccessAndRefreshTokens(authorizationCode
);




}

catch (Exception ex)

{

Console.WriteLine(ex);

Console.ReadKey();

}

  




   } // end DoAuth2Authorization










}

}



Thanks in advance for any help you can provide

Mike

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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.
Visit this group at https://groups.google.com/group/adwords-api.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/adwords-api/61316a85-baf8-448f-a347-b280363b5c45%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: Placement targeting and reporting for mail.google.com

2018-06-18 Thread Mike-Indiana
Thank you for clarifying this Peter!

On Monday, June 18, 2018 at 3:38:08 AM UTC-4, Peter Oliquino (AdWords API 
Team) wrote:
>
> Hi Mike,
>
> If you specified the "*mail.google.com <http://mail.google.com>*" as a 
> Placement 
> <https://developers.google.com/adwords/api/docs/reference/v201806/CampaignCriterionService.Placement>
>  to 
> explicitly target then this indeed should be returned by the Placement 
> Performance Report 
> <https://developers.google.com/adwords/api/docs/appendix/reports/placement-performance-report>.
>  
> As for the "*mobileapp::2-com.google.android.gm 
> <http://2-com.google.android.gm>*", the "*2-com.google.android.gm 
> <http://2-com.google.android.gm>*" value appears to be an AppId 
> <https://developers.google.com/adwords/api/docs/reference/v201806/CampaignCriterionService.MobileApplication#appid>
>  and 
> this should be targeted separately as a MobileApplication 
> <https://developers.google.com/adwords/api/docs/reference/v201806/CampaignCriterionService.MobileApplication>
>  criterion 
> and should not be included in the Placement Performance Report as the said 
> report returns only statistics of your Placement criterion.
>
> One reason that other URL stats are present in the URL Performance Report 
> <https://developers.google.com/adwords/api/docs/appendix/reports/url-performance-report>
>  is 
> because this report specializes in returning statistics of all URLs that 
> generated impressions or metrics for your account. Also, since your concern 
> appears to be more product related than specific to the AdWords API, I 
> would recommend that you get in touch with the product experts in the AdWords 
> Community Forum 
> <https://www.en.advertisercommunity.com/t5/Google-AdWords/ct-p/Google_AdWords>
>  for 
> further assistance.
>
> Thanks and regards,
> Peter
> AdWords API Team
>

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
Also find us on our blog:
https://googleadsdeveloper.blogspot.com/
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~

You received this message because you are subscribed to the Google
Groups "AdWords API and Google Ads API Forum" group.
To post to this group, send email to adwords-api@googlegroups.com
To unsubscribe from this group, send email to
adwords-api+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/adwords-api?hl=en
--- 
You received this message because you are subscribed to the Google Groups 
"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.
Visit this group at https://groups.google.com/group/adwords-api.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/adwords-api/b9a28e02-01d1-482c-af51-18c0637379ba%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Placement targeting and reporting for mail.google.com

2018-06-17 Thread Mike-Indiana
Valuetrack parameter {placement} for managed campaigns as well as reporting 
seems consistent. The exception is for mobile app clicks when targeting 
mail.google.com

These are the steps I am using and getting.

1. Add a managed placement mail.google.com
2. The {placement} variable returns mail.google.com, even if it from a 
mobile app click.
3. However, PLACEMENT_PERFORMANCE_REPORT is only reporting stats from 
mail.google.com and does not include stats 
from mobileapp::2-com.google.android.gm
4. URL_PERFORMANCE_REPORT includes the mobile stats

The problem that I am seeing with this, is that mail.google.com seems to be 
the exception. All other placements seem to return the total stats for the 
placement being targeted with PLACEMENT_PERFORMANCE_REPORT. When adding a 
managed placement, a URL_PERFORMANCE_REPORT is not needed to get stats back 
from the managed placement. In addition, live tracking always points to 
mail.google.com since that is the valuetrack value.

If you wouldn't mind, please confirm that what I am seeing is correct, and 
if so, a best solution for live tracking in this situation.

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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.
Visit this group at https://groups.google.com/group/adwords-api.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/adwords-api/549bdf3d-e6d6-46a3-b591-c80a08d166ca%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: Odd api error message after client upgrade

2018-04-06 Thread Mike Diehl
Hi,

Thanks for getting back to me.

Unfortunately, I don't have a line in my (previously working) code that 
resembles the $client->get_oauth_2_handler()->set_access_token('...');  
line you indicated.

But, I was able to comment out the oAuth2AccessToken line in 
~/adwords.properties and the error went away.  I'm presuming these are 
equivalent values, just set with different methods.

So, I think this one is fixed.

Thanks again,

Mike.



On Wednesday, April 4, 2018 at 3:30:56 PM UTC-4, Dhanya Sundararaju 
(AdWords API Team) wrote:
>
> Hi Mike,
>
> Your access token may be getting invalid after expiry time. You can check 
> if thats the case by providing your access token in the Google API 
> Explorer 
> <https://developers.google.com/apis-explorer/#p/oauth2/v2/oauth2.tokeninfo?access_token=ya29.Gl1_BUkOvZK24qkva9SZIQXloMmk8lTuHqtNeFCCgM7aESXlaH6WyfYQwtNAF0jAyckbsX8-k9I13u9bjU2XnB6kiErQiIztsKIpgQO88GFtMaCmkM3Zr5fKXz2v5qQ&_h=3&;>
>  and checking the 'expires_in' field.
>
> Also, if you are setting access token in your script as in below code 
> snippet, could you please retry after commenting out the same?
> $client->get_oauth_2_handler()->set_access_token('...'); 
>
> If you still get the invalid_token error, could you please reply back with 
> complete error message?
>
> Regards,
> Dhanya, AdWords API Team
>

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
Also find us on our blog and Google+:
https://googleadsdeveloper.blogspot.com/
https://plus.google.com/+GoogleAdsDevelopers/posts
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~

You received this message because you are subscribed to the Google
Groups "AdWords 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 Forum" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to adwords-api+unsubscr...@googlegroups.com.
Visit this group at https://groups.google.com/group/adwords-api.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/adwords-api/7632b2f8-d797-4a10-824f-e26a955545ee%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Odd api error message after client upgrade

2018-04-04 Thread Mike Diehl
Hi all,

I just upgraded our AdWords Perl client after receiving an error message 
that my version had been sunsetted.

Now, I'm receiving another error message:

{
 "error": "invalid_token",
 "error_description": "Invalid Value"
}

However, I still get data from the server and the received data looks 
rational.

I just want the error message to go away, or fix whatever problem it 
indicates.

The call that causes the error message is:

Google::Ads::Common::ReportUtils::get_report_handler($report_definition, 
$client);

Note, that I didn't change ANY of our code and it was working without 
errors yesterday.

Any ideas?

Mike.

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
Also find us on our blog and Google+:
https://googleadsdeveloper.blogspot.com/
https://plus.google.com/+GoogleAdsDevelopers/posts
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~

You received this message because you are subscribed to the Google
Groups "AdWords 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 Forum" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to adwords-api+unsubscr...@googlegroups.com.
Visit this group at https://groups.google.com/group/adwords-api.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/adwords-api/46fc147f-a5db-4cc0-aa9c-c967357f8eba%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: Trying to use custom date range in CAMPAIGN_PERFORMANCE_REPORT with Perl

2018-04-03 Thread Mike Diehl
You know, I HONESTLY thought I had done all that you suggested.  I even 
cited the documentation that I followed.

However, when I went back and just followed the instructions you gave me, 
and fixed a type-o, it worked.

Thanks for your time.

Mike.

On Monday, April 2, 2018 at 3:41:27 PM UTC-4, Sreelakshmi Sasidharan 
(AdWords API Team) wrote:
>
> Hi Mike, 
>
> The "dateRangeType" will have to be set as "CUSTOM_DATE" like the code 
> sample 
> <https://developers.google.com/adwords/api/docs/samples/perl/reporting> is 
> setting it to LAST_7_DAYS. The min and max dates needs to be set in the 
> dateRange which will need to be set in the selector. dateRange will have to 
> be set just like you set predicate in the selector. Please see the report 
> definition given below for more clarity. 
>
> __rdxml: 
> https://adwords.google.com/api/adwords/cm/v201802";>
>   
> AccountDescriptiveName
> Date
> HourOfDay
> CampaignId
> CampaignName
> AveragePosition
> Impressions
> Clicks
> Cost
> 
>   CampaignId
>   IN
>   ***
>   ***
> 
> 
>   20180101
>   20180102
> 
>   
>   CampaignPerformanceReport #1522696392597 >
>   CAMPAIGN_PERFORMANCE_REPORT
>   CUSTOM_DATE
>   CSV
> 
>
>
> Please give this a try and let me know if you are still facing issues. 
>
> Thanks,
> Sreelakshmi, AdWords API Team
>

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
Also find us on our blog and Google+:
https://googleadsdeveloper.blogspot.com/
https://plus.google.com/+GoogleAdsDevelopers/posts
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~

You received this message because you are subscribed to the Google
Groups "AdWords 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 Forum" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to adwords-api+unsubscr...@googlegroups.com.
Visit this group at https://groups.google.com/group/adwords-api.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/adwords-api/ce073da2-e88c-4020-b38c-71d2848ae2d9%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Trying to use custom date range in CAMPAIGN_PERFORMANCE_REPORT with Perl

2018-04-02 Thread Mike Diehl
Hi,

I'm trying to create a CAMPAIGN_PERFORMANCE_REPORT using a custom date 
range, and I'm coding in perl and NOT using AWQL.

Essentially, I've "borrowed" a lot of code from the first example at: 
https://developers.google.com/adwords/api/docs/samples/perl/reporting

My program works with a  dateRangeType  => "TODAY".  However, when I try 
dateRangeType   => "CUSTOM_DATE", I get errors.

I create my selector with code that looks like:

 30 my $selector = Google::Ads::AdWords::Reports::Selector->new({
 31 fields => [
 32 "AccountDescriptiveName",
 33 "Date",
 34 "HourOfDay",
 35 "CampaignId",
 36 "CampaignName",
 37 "AveragePosition",
 38 "Impressions",
 39 "Clicks",
 40 "Cost"
 41 ],
 42 date_range => { "min" => "2018-01-01", "max" => "2018-01-02"},
 43 predicates => [$predicate]});

However, when I run my script, I get:

Unknown field date_range in Google::Ads::AdWords::Reports::Selector.
Valid fields are:
fields, predicates, dateRange, ordering, paging
Structure given:
$VAR1 = {
  'predicates' => [
bless( do{\(my $o = 5)}, 
'Google::Ads::AdWords::Reports::Predicate' )
  ],
  'fields' => [
'AccountDescriptiveName',
'Date',
'HourOfDay',
'CampaignId',
'CampaignName',
'AveragePosition',
'Impressions',
'Clicks',
'Cost'
  ],
  'date_range' => {
'min' => '2018-01-01',
'max' => '2018-01-02'
  }
};
 at ./modules/adwords.pm line 30.


So, what am I doing wrong? 

Thanks in advance.

Mike Diehl.

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
Also find us on our blog and Google+:
https://googleadsdeveloper.blogspot.com/
https://plus.google.com/+GoogleAdsDevelopers/posts
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~

You received this message because you are subscribed to the Google
Groups "AdWords 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 Forum" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to adwords-api+unsubscr...@googlegroups.com.
Visit this group at https://groups.google.com/group/adwords-api.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/adwords-api/81f90976-4c75-405b-b439-94825be35436%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: Noob getting set up.

2017-12-21 Thread Mike Diehl
Well, I guess I just needed to wait a bit.  This morning, when I ran my 
script, I got a different error message.  

This error message indicated that I hadn't setup oAuth and referred me to 
instructions at:

https://github.com/googleads/googleads-perl-lib/wiki/Using-OAuth-2.0

I followed those instructions and generated a oAuth2AccessToken:


oAuth2AccessToken=ya29.GlspBZsOHsNIJmku3HDC-DpWN9TYerRKOfYr6cR

Now, I'm back to getting the same error message as I started out with.  I'm 
just going around in circles on this.

Right now, my ~/adwords.properties file has entries that resemble:

developerToken=dDygqc...
clientId=www-xxx-
oAuth2ClientId=124281803015-dur6...
oAuth2ClientSecret=N2dk3_z.
oAuth2AccessToken=ya29.GlspBZsOHsNIJmku3HDC-DpWN9TY...

Any suggestions on how to move forward?

Mike.


On Tuesday, December 19, 2017 at 12:12:47 AM UTC-5, Mike Diehl wrote:
>
> Hi all.
>
> I'm trying to get setup with the AdWords API so that I can run queries 
> against it in Perl.
>
> I'm following the instructions at:
>
> https://github.com/googleads/googleads-perl-lib/wiki
>
> After I downloaded and run the generate_offline_credentials.pl script, I 
> added the credentials to my ~/adwords.properties file.
>
> However, when I run one of the example scripts (get_campaigns.pl) I get:
>
>  xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/";>  
> xmlns="https://adwords.google.com/api/adwords/cm/v201710";>000560a2e74ad5b80ae9de077e05cccfCampaignServiceget1189soap:Client[QuotaCheckError.DEVELOPER_TOKEN_NOT_APPROVED
>  
> @ ; trigger:'<null>']https://adwords.google.com/api/adwords/cm/v201710";>[QuotaCheckError.DEVELOPER_TOKEN_NOT_APPROVED
>  
> @ ; 
> trigger:'<null>']ApiException  
> xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"; 
> xsi:type="QuotaCheckError"><null>QuotaCheckError.DEVELOPER_TOKEN_NOT_APPROVEDQuotaCheckErrorDEVELOPER_TOKEN_NOT_APPROVED
>
> I understand that this means that my credentials aren't approved... but i 
> don't know how to proceed from here.
>
> The company I work for manages the marketing efforts for a number of 
> clients.  I've been tasked with automating the collection of various 
> statistics.
>
> Any help would be appreciated.
>
> Mike.
>

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
Also find us on our blog and Google+:
https://googleadsdeveloper.blogspot.com/
https://plus.google.com/+GoogleAdsDevelopers/posts
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~

You received this message because you are subscribed to the Google
Groups "AdWords 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 Forum" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to adwords-api+unsubscr...@googlegroups.com.
Visit this group at https://groups.google.com/group/adwords-api.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/adwords-api/dc9bf210-8597-4c82-9c18-5d216489163e%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Noob getting set up.

2017-12-18 Thread Mike Diehl
Hi all.

I'm trying to get setup with the AdWords API so that I can run queries 
against it in Perl.

I'm following the instructions at:

https://github.com/googleads/googleads-perl-lib/wiki

After I downloaded and run the generate_offline_credentials.pl script, I 
added the credentials to my ~/adwords.properties file.

However, when I run one of the example scripts (get_campaigns.pl) I get:

http://schemas.xmlsoap.org/soap/envelope/";>https://adwords.google.com/api/adwords/cm/v201710";>000560a2e74ad5b80ae9de077e05cccfCampaignServiceget1189soap:Client[QuotaCheckError.DEVELOPER_TOKEN_NOT_APPROVED
 
@ ; trigger:'<null>']https://adwords.google.com/api/adwords/cm/v201710";>[QuotaCheckError.DEVELOPER_TOKEN_NOT_APPROVED
 
@ ; 
trigger:'<null>']ApiExceptionhttp://www.w3.org/2001/XMLSchema-instance"; 
xsi:type="QuotaCheckError"><null>QuotaCheckError.DEVELOPER_TOKEN_NOT_APPROVEDQuotaCheckErrorDEVELOPER_TOKEN_NOT_APPROVED

I understand that this means that my credentials aren't approved... but i 
don't know how to proceed from here.

The company I work for manages the marketing efforts for a number of 
clients.  I've been tasked with automating the collection of various 
statistics.

Any help would be appreciated.

Mike.

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
Also find us on our blog and Google+:
https://googleadsdeveloper.blogspot.com/
https://plus.google.com/+GoogleAdsDevelopers/posts
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~

You received this message because you are subscribed to the Google
Groups "AdWords 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 Forum" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to adwords-api+unsubscr...@googlegroups.com.
Visit this group at https://groups.google.com/group/adwords-api.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/adwords-api/f3aa7c92-f52d-4093-8d61-fc18e27bda7b%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: Why SSL Error Message?

2017-12-01 Thread Mike Enos
I found the solution at:
https://ourcodeworld.com/articles/read/196/xampp-wampp-php-ssl-certificate-error-unable-to-get-local-issuer-certificate

I had updated PHP. It seems that php 5.6X  has a verify ssl cert. Just a 
few changes to my php.ini and everything is great.
Live is Good!



On Friday, November 17, 2017 at 7:02:23 AM UTC-5, Mike Enos wrote:
>
> Hi,
>
> On my local Windows 10 XAMPP system, I often getting this SSL message error
>
> The script runs fine on my web server, but not locally
> See screenshot at  https://www.screencast.com/t/t4Vdahnc4GF
>
> Any ideas what I'm doing wrong?
> Thanks!!
>
>
> ( ! ) Fatal error: Uncaught exception 'RuntimeException' with message ' 
> in 
> C:\DataH\xampp\htdocs\vendor\guzzlehttp\guzzle\src\Exception\RequestException.php
>  
> on line *52*
> ( ! ) RuntimeException: Error creating resource: [message] fopen(): SSL 
> operation failed with code 1. OpenSSL Error messages: error:14090086:SSL 
> routines:ssl3_get_server_certificate:certificate verify failed [file] 
> C:\DataH\xampp\htdocs\vendor\guzzlehttp\guzzle\src\Handler\StreamHandler.php 
> [line] 324 [message] fopen(): Failed to enable crypto [file] 
> C:\DataH\xampp\htdocs\vendor\guzzlehttp\guzzle\src\Handler\StreamHandler.php 
> [line] 324 [message] fopen(
> https://adwords.google.com/api/adwords/reportdownload/v201708): failed to 
> open stream: operation failed [file] 
> C:\DataH\xampp\htdocs\vendor\guzzlehttp\guzzle\src\Handler\StreamHandler.php 
> [line] 324 in 
> C:\DataH\xampp\htdocs\vendor\guzzlehttp\guzzle\src\Handler\StreamHandler.php 
> on line *252*
> Call Stack
> #TimeMemoryFunctionLocation
> 1 0.4105 211680 {main}( ) ...\cron_Update_mastercampaign.php*:*0
> 2 3.1033 826992 
> Google\AdsApi\Examples\AdWords\v201708\Reporting\RunAWQLQuery( 
> ) ...\cron_Update_mastercampaign.php*:*90
> 3 3.1033 827064 
> Google\AdsApi\Examples\AdWords\v201708\Reporting\DownloadCriteriaReportWithAwql::main(
>  
> ) ...\ProcessAWQLStatement.php*:*127
> 4 3.2134 1617584 
> Google\AdsApi\Examples\AdWords\v201708\Reporting\DownloadCriteriaReportWithAwql::runExample(
>  
> ) ...\ProcessAWQLStatement.php*:*115
> 5 3.3934 2779568 
> Google\AdsApi\AdWords\Reporting\v201708\ReportDownloader->downloadReportWithAwql(
>  
> ) ...\ProcessAWQLStatement.php*:*90
> 6 4.0843 3066528 
> Google\AdsApi\AdWords\Reporting\v201708\ReportDownloader->makeReportRequest( 
> ) ...\ReportDownloader.php*:*127
> 7 4.0844 3067120 GuzzleHttp\Client->request( ) ...\ReportDownloader.php*:*
> 146
> 8 4.0844 3067616 GuzzleHttp\Client->requestAsync( ) ...\Client.php*:*131
> 9 4.0853 3073736 GuzzleHttp\Client->transfer( ) ...\Client.php*:*125
> 10 4.0871 3080656 GuzzleHttp\HandlerStack->__invoke( ) ...\Client.php*:*
> 277
> 11 4.0872 3082016 
> Google\AdsApi\Common\GuzzleLogMessageHandler::Google\AdsApi\Common\{closure}( 
> ) ...\HandlerStack.php*:*67
> 12 4.0872 3082032 GuzzleHttp\Middleware::GuzzleHttp\{closure}( ) 
> ...\GuzzleLogMessageHandler.php*:*41
> 13 4.0873 3082032 GuzzleHttp\RedirectMiddleware->__invoke( ) 
> ...\Middleware.php*:*59
> 14 4.0873 3083144 GuzzleHttp\Middleware::GuzzleHttp\{closure}( ) 
> ...\RedirectMiddleware.php*:*70
> 15 4.0873 3083144 GuzzleHttp\PrepareBodyMiddleware->__invoke( ) 
> ...\Middleware.php*:*30
> 16 4.0884 3089104 GuzzleHttp\Handler\Proxy::GuzzleHttp\Handler\{closure}( 
> ) ...\PrepareBodyMiddleware.php*:*66
> 17 4.0884 3089240 GuzzleHttp\Handler\StreamHandler->__invoke( ) 
> ...\Proxy.php*:*52
> 18 4.0885 3089424 GuzzleHttp\Handler\StreamHandler->createStream( ) 
> ...\StreamHandler.php*:*52
> 19 4.0891 3097456 GuzzleHttp\Handler\StreamHandler->createResource( ) 
> ...\StreamHandler.php*:*336
> ( ! ) GuzzleHttp\Exception\RequestException: Error creating resource: 
> [message] fopen(): SSL operation failed with code 1. OpenSSL Error 
> messages: error:14090086:SSL 
> routines:ssl3_get_server_certificate:certificate verify failed [file] 
> C:\DataH\xampp\htdocs\vendor\guzzlehttp\guzzle\src\Handler\StreamHandler.php 
> [line] 324 [message] fopen(): Failed to enable crypto [file] 
> C:\DataH\xampp\htdocs\vendor\guzzlehttp\guzzle\src\Handler\StreamHandler.php 
> [line] 324 [message] fopen(
> https://adwords.google.com/api/adwords/reportdownload/v201708): failed to 
> open stream: operation failed [file] 
> C:\DataH\xampp\htdocs\vendor\guzzlehttp\guzzle\src\Handler\StreamHandler.php 
> [line] 324 in 
> C:\DataH\xampp\htdocs\vendor\guzzlehttp\guzzle\src\Exception\RequestException.php
>  
> on line *52*
> Call Stack
> #TimeMemoryFunctionLocation
> 1 0.4105 211680 {main}( ) ...\cron_Update_mastercampaign.php*:*0
> 2 3.1033 826992 
> Google\AdsApi\Examples\AdWords\

Why SSL Error Message?

2017-11-17 Thread Mike Enos
Hi,

On my local Windows 10 XAMPP system, I often getting this SSL message error

The script runs fine on my web server, but not locally
See screenshot at  https://www.screencast.com/t/t4Vdahnc4GF

Any ideas what I'm doing wrong?
Thanks!!


( ! ) Fatal error: Uncaught exception 'RuntimeException' with message ' in 
C:\DataH\xampp\htdocs\vendor\guzzlehttp\guzzle\src\Exception\RequestException.php
 
on line *52*
( ! ) RuntimeException: Error creating resource: [message] fopen(): SSL 
operation failed with code 1. OpenSSL Error messages: error:14090086:SSL 
routines:ssl3_get_server_certificate:certificate verify failed [file] 
C:\DataH\xampp\htdocs\vendor\guzzlehttp\guzzle\src\Handler\StreamHandler.php 
[line] 324 [message] fopen(): Failed to enable crypto [file] 
C:\DataH\xampp\htdocs\vendor\guzzlehttp\guzzle\src\Handler\StreamHandler.php 
[line] 324 [message] 
fopen(https://adwords.google.com/api/adwords/reportdownload/v201708): 
failed to open stream: operation failed [file] 
C:\DataH\xampp\htdocs\vendor\guzzlehttp\guzzle\src\Handler\StreamHandler.php 
[line] 324 in 
C:\DataH\xampp\htdocs\vendor\guzzlehttp\guzzle\src\Handler\StreamHandler.php 
on line *252*
Call Stack
#TimeMemoryFunctionLocation
1 0.4105 211680 {main}( ) ...\cron_Update_mastercampaign.php*:*0
2 3.1033 826992 Google\AdsApi\Examples\AdWords\v201708\Reporting\RunAWQLQuery( 
) ...\cron_Update_mastercampaign.php*:*90
3 3.1033 827064 
Google\AdsApi\Examples\AdWords\v201708\Reporting\DownloadCriteriaReportWithAwql::main(
 
) ...\ProcessAWQLStatement.php*:*127
4 3.2134 1617584 
Google\AdsApi\Examples\AdWords\v201708\Reporting\DownloadCriteriaReportWithAwql::runExample(
 
) ...\ProcessAWQLStatement.php*:*115
5 3.3934 2779568 
Google\AdsApi\AdWords\Reporting\v201708\ReportDownloader->downloadReportWithAwql(
 
) ...\ProcessAWQLStatement.php*:*90
6 4.0843 3066528 
Google\AdsApi\AdWords\Reporting\v201708\ReportDownloader->makeReportRequest( 
) ...\ReportDownloader.php*:*127
7 4.0844 3067120 GuzzleHttp\Client->request( ) ...\ReportDownloader.php*:*
146
8 4.0844 3067616 GuzzleHttp\Client->requestAsync( ) ...\Client.php*:*131
9 4.0853 3073736 GuzzleHttp\Client->transfer( ) ...\Client.php*:*125
10 4.0871 3080656 GuzzleHttp\HandlerStack->__invoke( ) ...\Client.php*:*277
11 4.0872 3082016 
Google\AdsApi\Common\GuzzleLogMessageHandler::Google\AdsApi\Common\{closure}( 
) ...\HandlerStack.php*:*67
12 4.0872 3082032 GuzzleHttp\Middleware::GuzzleHttp\{closure}( ) 
...\GuzzleLogMessageHandler.php*:*41
13 4.0873 3082032 GuzzleHttp\RedirectMiddleware->__invoke( ) 
...\Middleware.php*:*59
14 4.0873 3083144 GuzzleHttp\Middleware::GuzzleHttp\{closure}( ) 
...\RedirectMiddleware.php*:*70
15 4.0873 3083144 GuzzleHttp\PrepareBodyMiddleware->__invoke( ) 
...\Middleware.php*:*30
16 4.0884 3089104 GuzzleHttp\Handler\Proxy::GuzzleHttp\Handler\{closure}( ) 
...\PrepareBodyMiddleware.php*:*66
17 4.0884 3089240 GuzzleHttp\Handler\StreamHandler->__invoke( ) 
...\Proxy.php*:*52
18 4.0885 3089424 GuzzleHttp\Handler\StreamHandler->createStream( ) 
...\StreamHandler.php*:*52
19 4.0891 3097456 GuzzleHttp\Handler\StreamHandler->createResource( ) 
...\StreamHandler.php*:*336
( ! ) GuzzleHttp\Exception\RequestException: Error creating resource: 
[message] fopen(): SSL operation failed with code 1. OpenSSL Error 
messages: error:14090086:SSL 
routines:ssl3_get_server_certificate:certificate verify failed [file] 
C:\DataH\xampp\htdocs\vendor\guzzlehttp\guzzle\src\Handler\StreamHandler.php 
[line] 324 [message] fopen(): Failed to enable crypto [file] 
C:\DataH\xampp\htdocs\vendor\guzzlehttp\guzzle\src\Handler\StreamHandler.php 
[line] 324 [message] 
fopen(https://adwords.google.com/api/adwords/reportdownload/v201708): 
failed to open stream: operation failed [file] 
C:\DataH\xampp\htdocs\vendor\guzzlehttp\guzzle\src\Handler\StreamHandler.php 
[line] 324 in 
C:\DataH\xampp\htdocs\vendor\guzzlehttp\guzzle\src\Exception\RequestException.php
 
on line *52*
Call Stack
#TimeMemoryFunctionLocation
1 0.4105 211680 {main}( ) ...\cron_Update_mastercampaign.php*:*0
2 3.1033 826992 Google\AdsApi\Examples\AdWords\v201708\Reporting\RunAWQLQuery( 
) ...\cron_Update_mastercampaign.php*:*90
3 3.1033 827064 
Google\AdsApi\Examples\AdWords\v201708\Reporting\DownloadCriteriaReportWithAwql::main(
 
) ...\ProcessAWQLStatement.php*:*127
4 3.2134 1617584 
Google\AdsApi\Examples\AdWords\v201708\Reporting\DownloadCriteriaReportWithAwql::runExample(
 
) ...\ProcessAWQLStatement.php*:*115
5 3.3934 2779568 
Google\AdsApi\AdWords\Reporting\v201708\ReportDownloader->downloadReportWithAwql(
 
) ...\ProcessAWQLStatement.php*:*90
6 4.0843 3066528 
Google\AdsApi\AdWords\Reporting\v201708\ReportDownloader->makeReportRequest( 
) ...\ReportDownloader.php*:*127
7 4.0844 3067120 GuzzleHttp\Client->request( ) ...\ReportDownloader.php*:*
146
8 4.7725 3197032 GuzzleHttp\Promise\Promise->wait( ) ...\Client.php*:*131
9 4.7812 3210240 GuzzleHttp\Promise\RejectedPromise->wait( ) ...\Promise.php
*:*65


-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~

Re: v201708 Uncaught exception 'InvalidArgumentException' with message 'All of 'clientId', 'clientSecret', and 'refreshToken' must be set when using installed/web application flow.'

2017-09-25 Thread Mike Enos
Hi,

For anyone who is reading this thread... I solved the problem.

The issue is that I am using Windows XAMPP as my development platform.

The instructions at https://github.com/googleads/googleads-php-lib  are a 
bit confusing /wrong for Windows Xampp

You need to go install Composer, and a git client too.

1)  It says to copy and configure adsapi_php to your "Home Directory". You 
might think this is your /public_html folder
On Windows this folder is C:\Users\YOURNAME  NOT your base  xampp/htdocs 
folder

2) Instructions say to type : php composer.phar require 
googleads/googleads-php-lib
Instead, you need to you need to CD to the directory where 
the C:\xampp\googleads-php-lib was created.
and then type:  composer install 

3) If you are upgrading from an older library, older versions of the .ini 
 configuration file used SLIGHTLY different variable names 
The older variables: client_id, client_secret
The newer are clientId,clientSecret
So you should copy over the values, but be careful of the variable name

This messed me up for a couple of days.

Hope that helps you out.




On Sunday, September 24, 2017 at 9:55:02 PM UTC-5, Peter Oliquino wrote:
>
> Hi Mike,
>
> Since the issue is more related to the setup of your PHP client library, 
> you may contact the library owners via this link 
> <https://github.com/googleads/googleads-php-lib/issues> for further 
> assistance.
>
> Best regards,
> Peter
> AdWords API Team
>

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
Also find us on our blog and Google+:
https://googleadsdeveloper.blogspot.com/
https://plus.google.com/+GoogleAdsDevelopers/posts
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~

You received this message because you are subscribed to the Google
Groups "AdWords 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 Forum" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to adwords-api+unsubscr...@googlegroups.com.
Visit this group at https://groups.google.com/group/adwords-api.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/adwords-api/fb44abd1-ec6c-43dc-84fc-09dab9e63fd0%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: v201708 Uncaught exception 'InvalidArgumentException' with message 'All of 'clientId', 'clientSecret', and 'refreshToken' must be set when using installed/web application flow.'

2017-09-22 Thread Mike Enos
Hi Peter,

When I try following this guide 
<https://github.com/googleads/googleads-php-lib#user-content-getting-started>  
I do not get the composer.phar file mentioned in step 3

In Step 1, where they say to run git clone they don't say which 
directory. I did it from c:\DataH\xampp  

Why don't I get the composer.phar file?

Here is a screenshot: 
https://www.screencast.com/t/fod1KMRBL7Gq

Thanks,

..Mike




On Thursday, September 21, 2017 at 2:38:52 AM UTC-5, Peter Oliquino wrote:
>
> Hi Mike,
>
> I could see that you have already specified the OAuth2 credentials 
> correctly in their respective properties in your adsapi_php.ini. However, 
> could you confirm if you have also followed this guide 
> <https://github.com/googleads/googleads-php-lib#user-content-getting-started> 
> when 
> setting up your PHP client library? Also if you are using the installed 
> app/web application flow 
> <https://developers.google.com/adwords/api/docs/guides/authentication#determine_your_app_type>,
>  
> you may comment out all properties related to service accounts to prevent 
> confusion.
>
> If the issue persists, and since this is more specific to the PHP client 
> library rather than the AdWords API itself, I would recommend that you get 
> in touch with the PHP library owners via this link 
> <https://github.com/googleads/googleads-php-lib/issues> for further 
> assistance.
>
> Best regards,
> Peter
> AdWords API Team
>

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
Also find us on our blog and Google+:
https://googleadsdeveloper.blogspot.com/
https://plus.google.com/+GoogleAdsDevelopers/posts
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~

You received this message because you are subscribed to the Google
Groups "AdWords 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 Forum" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to adwords-api+unsubscr...@googlegroups.com.
Visit this group at https://groups.google.com/group/adwords-api.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/adwords-api/7c7f21a6-feb5-49a1-a0e1-736b0de5a418%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


v201708 Uncaught exception 'InvalidArgumentException' with message 'All of 'clientId', 'clientSecret', and 'refreshToken' must be set when using installed/web application flow.'

2017-09-20 Thread Mike Enos
Hi,

I'm trying to get v201708 working and when I try to run GetCampaigns.php I 
get the error message:

PHP Fatal error:  Uncaught exception 'InvalidArgumentException' with 
message 'All of 'clientId', 'clientSecret', and 'refreshToken' must be set 
when using installed/web application flow.' in 
C:\DataH\xampp\htdocs\DBGoogleAdwords\vendor\googleads\googleads-php-lib\src\Google\AdsApi\Common\OAuth2TokenBuilder.php:204

Here is some info:

I am running XAmpp on Windows 10

I went through the process to get the refreshtoken. That went fine 
ALTHOUGH... it did give me a different one than I have been using in the 
older version that gets retired on October 2nd.

I am currently located 
 
in:C:\DataH\xampp\htdocs\DBGoogleAdwords\examples\AdWords\v201708\BasicOperations>

When I type:php GetCampaigns.php

Here is the screen capture:

C:\DataH\xampp\htdocs\DBGoogleAdwords\examples\AdWords\v201708\BasicOperations>php
 
GetCampaigns.php
PHP Fatal error:  Uncaught exception 'InvalidArgumentException' with 
message 'All of 'clientId', 'clientSecret', and 'refreshToken' must be set 
when using installed/web application flow.' in 
C:\DataH\xampp\htdocs\DBGoogleAdwords\vendor\googleads\googleads-php-lib\src\Google\AdsApi\Common\OAuth2TokenBuilder.php:204
Stack trace:
#0 
C:\DataH\xampp\htdocs\DBGoogleAdwords\vendor\googleads\googleads-php-lib\src\Google\AdsApi\Common\OAuth2TokenBuilder.php(158):
 
Google\AdsApi\Common\OAuth2TokenBuilder->validate()
#1 
C:\DataH\xampp\htdocs\DBGoogleAdwords\examples\AdWords\v201708\BasicOperations\GetCampaigns.php(77):
 
Google\AdsApi\Common\OAuth2TokenBuilder->build()
#2 
C:\DataH\xampp\htdocs\DBGoogleAdwords\examples\AdWords\v201708\BasicOperations\GetCampaigns.php(89):
 
Google\AdsApi\Examples\AdWords\v201708\BasicOperations\GetCampaigns::main()
#3 {main}
  thrown in 
C:\DataH\xampp\htdocs\DBGoogleAdwords\vendor\googleads\googleads-php-lib\src\Google\AdsApi\Common\OAuth2TokenBuilder.php
 
on line 204

Fatal error: Uncaught exception 'InvalidArgumentException' with message 
'All of 'clientId', 'clientSecret', and 'refreshToken' must be set when 
using installed/web application flow.' in 
C:\DataH\xampp\htdocs\DBGoogleAdwords\vendor\googleads\googleads-php-lib\src\Google\AdsApi\Common\OAuth2TokenBuilder.php:204
Stack trace:
#0 
C:\DataH\xampp\htdocs\DBGoogleAdwords\vendor\googleads\googleads-php-lib\src\Google\AdsApi\Common\OAuth2TokenBuilder.php(158):
 
Google\AdsApi\Common\OAuth2TokenBuilder->validate()
#1 
C:\DataH\xampp\htdocs\DBGoogleAdwords\examples\AdWords\v201708\BasicOperations\GetCampaigns.php(77):
 
Google\AdsApi\Common\OAuth2TokenBuilder->build()
#2 
C:\DataH\xampp\htdocs\DBGoogleAdwords\examples\AdWords\v201708\BasicOperations\GetCampaigns.php(89):
 
Google\AdsApi\Examples\AdWords\v201708\BasicOperations\GetCampaigns::main()
#3 {main}
  thrown in 
C:\DataH\xampp\htdocs\DBGoogleAdwords\vendor\googleads\googleads-php-lib\src\Google\AdsApi\Common\OAuth2TokenBuilder.php
 
on line 204



My adsapi_php.ini is located in c:\Users\MYNAME\ads_php.ini.  (I know this 
is the correct home path because if I rename the file 
 Uncaught exception 'InvalidArgumentException' with message 'Config file 
not found as specified: 'adsapi_php.ini' or in the home directory: 
'C:\Users\MYNAME\adsapi_php.ini'.'


I DID NOT set jsonKeyFilePath in adsapi_php.ini shown below.


Can someone please give me some help?? I've lost a day on this so far!!

Thanks,

..Mike



Below are the contents of the C:\Users\MYNAME\adsapi_php.ini file


[ADWORDS]
; Required AdWords API properties. Details can be found at:
; 
https://developers.google.com/adwords/api/docs/guides/basic-concepts#soap_and_xml
;MJE 20170918 developerToken = "INSERT_DEVELOPER_TOKEN_HERE"
developerToken = "LHg9XXXxJA"
;MJE 20170918 clientCustomerId = "INSERT_CLIENT_CUSTOMER_ID_HERE"
clientCustomerId = "1XX-XXX-"

; Optional. Set a friendly application name identifier.
; userAgent = "INSERT_USER_AGENT_HERE"
userAgent = "GAXXX Other Client"

; Optional additional AdWords API settings.
; endpoint = "https://adwords.google.com/";
; isPartialFailure = false

; Optional setting for utility usage tracking in the user agent in requests.
; Defaults to true.
; includeUtilitiesInUserAgent = true

[ADWORDS_REPORTING]
; Optional reporting settings.
; isSkipReportHeader = false
; isSkipColumnHeader = false
; isSkipReportSummary = false
; isUseRawEnumValues = false

[OAUTH2]
; Required OAuth2 credentials. Uncomment and fill in the values for the
; appropriate flow based on your use case. See the README for guidance:
; 
https://github.com/googleads/googleads-php-lib/blob/master/README.md#getting-started

; For installed application or web application 

Uncaught exception 'InvalidArgumentException' with message 'All of 'clientId', 'clientSecret', and 'refreshToken' must be set when using installed/web application flow.

2017-09-20 Thread Mike Enos
impersonatedEmail = 
"INSERT_EMAIL_OF_ACCOUNT_TO_IMPERSONATE_HERE"
impersonatedEmail = "this is my real email addressX"

[SOAP]
; Optional SOAP settings. See SoapSettingsBuilder.php for more information.
; compressionLevel = 
; wsdlCache = 

[PROXY]
; Optional proxy settings to be used by SOAP requests.
; host = ""
; port = 
; user = ""
; password = ""

[LOGGING]
; Optional logging settings.
; soapLogFilePath = "path/to/your/soap.log"
; soapLogLevel = "INFO"
; reportDownloaderLogFilePath = "path/to/your/report-downloader.log"
; reportDownloaderLogLevel = "INFO"
; batchJobsUtilLogFilePath = "path/to/your/bjutil.log"
; batchJobsUtilLogLevel = "INFO"



Note!! I did not set jsonKeyFilePath   Am I supposed to change that?

Thanks for pointing in the right direction.

..Mike

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
Also find us on our blog and Google+:
https://googleadsdeveloper.blogspot.com/
https://plus.google.com/+GoogleAdsDevelopers/posts
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~

You received this message because you are subscribed to the Google
Groups "AdWords 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 Forum" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to adwords-api+unsubscr...@googlegroups.com.
Visit this group at https://groups.google.com/group/adwords-api.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/adwords-api/1db4eb1f-65ce-415a-9027-9943af9c1736%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


  1   2   3   >