Re: Image upload

2023-06-13 Thread Oleg Disrupt
hi
can you help me?

On Monday, June 12, 2023 at 2:41:36 PM UTC+9 Oleg Disrupt wrote:

> Hi
> Is there any way how to upload market & square market images with 
> recommend size from my regular size image (for example my image size is 
> 1024 * 1024)?
> 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 
"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/487a9f95-c7c9-440a-9f83-210f2ab71824n%40googlegroups.com.


Image upload

2023-06-11 Thread Oleg Disrupt
Hi
Is there any way how to upload market & square market images with recommend 
size from my regular size image (for example my image size is 1024 * 1024)?
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 
"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/fab1919c-843b-426b-b050-9ffb78139db7n%40googlegroups.com.


update campaign target location

2023-06-02 Thread Oleg Disrupt
Hello
I want to remove all locations in campaign and update new locations.
I tried it to use in google-php-sdk examples but some locations still exist
foreach ($locationIds as $locationId) {
// Creates a campaign criterion.
$campaignCriterion = new CampaignCriterion([
'campaign' => $campaignResourceName,
'location' => new LocationInfo([
'geo_target_constant' => ResourceNames::
forGeoTargetConstant($locationId)
])
]);

// Creates a campaign criterion operation.
$campaignCriterionOperation = new CampaignCriterionOperation();
$campaignCriterionOperation->setCreate($campaignCriterion);

$campaignCriterionOperations[] = $campaignCriterionOperation;
}

// Submits the criteria operations and prints their information.
$campaignCriterionServiceClient = $this->googleAdsClient->
getCampaignCriterionServiceClient();
$response = $campaignCriterionServiceClient->mutateCampaignCriteria(
$customerId,
$campaignCriterionOperations
);

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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/7ceb2bcf-17eb-46e7-a3f8-9d73e7c87062n%40googlegroups.com.


location value

2023-05-04 Thread Oleg Disrupt
Hi
How can I get target value for countries?
I only can get US: 2840.
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/9bc1ae8f-99cf-4673-a954-21c38ed5929en%40googlegroups.com.


Re: final urls

2023-05-04 Thread Oleg Disrupt
Google\ApiCore\ApiException: {
"message": "Request contains an invalid argument.",
"code": 3,
"status": "INVALID_ARGUMENT",
"details": [
{
"@type": 
"type.googleapis.com\/google.ads.googleads.v12.errors.GoogleAdsFailure",
"errors": [
{
"errorCode": {
"policyFindingError": 
"POLICY_FINDING"
},
"message": "The resource has been 
disapproved since the policy summary includes policy topics of type 
PROHIBITED.",
"location": {
"fieldPathElements": [
{
"fieldName": 
"operations",
"index": 0
},
{
"fieldName": "create"
},
{
"fieldName": "ad"
}
]
},
"details": {
"policyFindingDetails": {
"policyTopicEntries": [
{
"type": 
"PROHIBITED",
"evidences": [
[]
],
"topic": 
"DESTINATION_NOT_WORKING"
}
]
}
}
}
],
"requestId": "Rvj0yzsh-wAHF3T47zZr5w"
}
]
}

On Thursday, May 4, 2023 at 7:09:00 PM UTC+9 Google Ads API Forum Advisor 
wrote:

> Hi Oleg,
>
>  
>
> Thank you for reaching out to the Google Ads API Team. We've been notified 
> of your concern.
>
>  
>
> Would you be able to provide the complete API *request* and *response* logs 
> with the *request* *ID* generated on your end when you performed your API 
> requests so we can investigate the issue you've observed further on our end?
>
>  
>
> You may send the requested information via the *Reply privately to author* 
> option. 
> Note that you may need to join the Google Group for you to use this option. 
> If this option is not available on your end still, you may send the details 
> directly to our alias `googleadsa...@google.com` instead.
>
>  
>
> Reference links:
>
>- *Sample Request log - *
>
> *https://developers.google.com/google-ads/api/docs/concepts/field-service#request*
>  
>
> 
>  
>- *Sample Response log -  *
>
> *https://developers.google.com/google-ads/api/docs/concepts/field-service#response*
>  
>
> 
>  
>- *Sample Request ID - *
>
> *https://developers.google.com/google-ads/api/docs/concepts/call-structure#request-id*
>  
>
> 
>  
>
>  
>
> Best regards,
>
>  
>
> [image: Google Logo] Google Ads API Team 
>
> ref:_00D1U1174p._5004Q2lA6TX: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/7c0e8b6c-057d-45c7-99ee-2a579aca3c8fn%40googlegroups.com.


final urls

2023-05-03 Thread Oleg Disrupt
Hello
I tried to create the ad (responsivedisplayad) with this url but it doesnt 
work.
https://srchxxx.com/search/top5/?s=test+Treatments&uid=8f2ba2376f402bb90771c61fc491a506

It seems there is issue for parameter length but I can't find any help for 
it.
Can  you help me?

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 
"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/b4819d40-42b0-4b67-9dfd-2eac9a0e24e8n%40googlegroups.com.


Re: How to get the ads value?

2022-10-23 Thread Oleg Disrupt
I found a solution

On Saturday, October 22, 2022 at 8:21:33 AM UTC+9 Oleg Disrupt wrote:

> Hello
> I want to get the ads values such as clicks, impression, ctr, etc from 
> customerid, campaignsid, adgroups id.
> 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/e230180f-7536-481c-a3ae-80522f2a3b02n%40googlegroups.com.


How to get the ads value?

2022-10-21 Thread Oleg Disrupt
Hello
I want to get the ads values such as clicks, impression, ctr, etc from 
customerid, campaignsid, adgroups id.
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/fbb80bc0-db60-4d74-832b-f5478893cd33n%40googlegroups.com.


Get Campaigns in general account (not manager account)

2022-10-21 Thread Oleg Disrupt
Hello
I tried to get the campaigns using google-ads-php sdk.
I tried to get the campaigns by using one account in my manager account so 
I can get the campaigns list successfully
for example
*php examples/BasicOperations/GetCampaigns.php --customerId xx0632*

but I tried to get them with general account (not inside manager account) 
so it shows error

error is

ApiException was thrown with message '{
"message": "The caller does not have permission",
"code": 7,
"status": "PERMISSION_DENIED",
"details": [
{
"@type": 
"type.googleapis.com\/google.ads.googleads.v11.errors.GoogleAdsFailure",
"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": "oPSM3-sbB3ml9QpAmXh5AA"
}
]
}'.

So how can i get the campaigns in general account?
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/0eda7084-c9a0-44c1-a529-34e97d335a2an%40googlegroups.com.


Re: all account list

2021-12-01 Thread Oleg Disrupt
Hi,
Thank you for your help.
I tried to run GetAccountHierarchy.php but I can see this error.

-php examples/AccountManagement/GetAccountHierarchy.php

No manager customer ID is specified. The example will print the hierarchies 
of all accessible customer IDs:
9x
7xx


ApiException was thrown with message '{
"message": "The caller does not have permission",
"code": 7,
"status": "PERMISSION_DENIED",
"details": [
{
"@type": 0,
"data": 
"type.googleapis.com\/google.ads.googleads.v9.errors.GoogleAdsFailure"
},
{
"@type": 0,
"data": [
{
"errorCode": {
"authorizationError": "CUSTOMER_NOT_ENABLED"
},
"message": "The customer can't be used because it isn't 
enabled."
}
]
},
{
"@type": 0,
"data": "B127576K16hj0cC6FRK2lw"
}
]
}'.

can you help me?
On Tuesday, November 16, 2021 at 3:19:29 PM UTC+9 adsapi wrote:

> Hi Oleg,
>
> Thank you for reaching out.
>
> You can utilize the get account hierarchy 
> 
>  
> feature to retrieve all your accounts under a specific MCC / manager 
> account. Then, for reach client account returned, you may then generate the 
> performance report you wish to to extract.
>
> An example can be found in the Parallel Report Download 
> 
>  
> documentation. However, this is currently not available for PHP 
> .
>  
> For the possibility of a similar implementation or workaround, I would 
> recommend that you reach out to the PHP client library owners, via this 
> link , for further 
> guidance.
>
> Best regards,
>
> Reminder: Share your feedback about the Google Ads (AdWords) API! Take the 
> 2021 
> Google Ads API and AdWords API Annual Survey 
> 
>   
> [image: Google Logo] 
> Peter Laurence Napa Oliquino 
> Google Ads API Team 
>   
>
> ref:_00D1U1174p._5004Q2R9EPZ: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/42911b9a-0626-4e96-97c3-dd8193881611n%40googlegroups.com.


all account list

2021-11-15 Thread Oleg Disrupt
Hi
I want to get all account list in accounts->performance using php, google 
ads api.
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.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/adwords-api/7d5b9c70-5abf-4e33-9202-088a72fbfce1n%40googlegroups.com.


setting language parameter in new campaign class

2021-11-15 Thread Oleg Disrupt
Hello,
I want to add the language that I want when i created the new campaign.
for example
$campaign = new Campaign([
'name' => 'campaign1',
'language' => english
]);
I can't see 'language' parameter in campaign class.

Can you help me?
Regards
oleg

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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/df0913fb-4a64-415b-9496-6552764fc194n%40googlegroups.com.


googleadsapi-supp...@google.com

2021-11-15 Thread Oleg Disrupt
 
Hello
I want to get all accounts in my manager account.
I tried to get the account list using below example
php examples/AccountManagement/ListAccessibleCustomers.php
but I can see all manage accounts like top right in my account.
so I want to get all accounts in accounts->performance.

I tried to get my all accounts with below code
php examples/AccountManagement/GetAccountHierarchy.php
it shows manager account list and shows error hierarchy account

PHP Fatal error:  Uncaught BadMethodCallException: Streaming calls are not 
supported while using the REST transport. in E:\xec\Test\google-ads-php\
vendor\google\gax\src\Transport\HttpUnaryTransportTrait.php:148
Stack trace:
#0 E:\xec\Test\google-ads-php\vendor\google\gax\src\Transport\
HttpUnaryTransportTrait.php(64): Google\ApiCore\Transport\RestTransport->
throwUnsupportedException()
#1 E:\xec\Test\google-ads-php\vendor\google\gax\src\GapicClientTrait.php(601): 
Google\ApiCore\Transport\RestTransport->startServerStreamingCall(Object(Google\ApiCore\Call),
 
Array)
#2 E:\xec\Test\google-ads-php\vendor\google\gax\src\Middleware\
CredentialsWrapperMiddleware.php(61): Google\Ads\GoogleAds\V8\
Services\Gapic\GoogleAdsServiceGapicClient->Google\ApiCore\{closure}(Object(Google\ApiCore\Call),
 
Array)
#3 
E:\xec\Test\google-ads-php\vendor\google\gax\src\Middleware\FixedHeaderMiddleware.php(66):
 
Google\ApiCore\Middleware\CredentialsWrapperMiddleware->
__invoke(Object(Google\ApiCore\Call), Array)
#4 E:\xec\Test\google-ads-php\vendor\google\gax\sr in 
E:\xec\Test\google-ads-php\vendor\google\gax\src\Transport\HttpUnaryTransportTrait.php
 
on line 148

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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/ffb04d7f-565a-4bd8-8b31-403be5218ce8n%40googlegroups.com.


budget issue in creation new campaign.

2021-11-14 Thread Oleg Disrupt
Hello
when i try to run this script,  I can see new budget(shared budget) with 
new campaign.
php examples/BasicOperations/AddCampaigns.php --customerId 9641267633
I only want to create new campaign with individual campaign budget (only 
budget number) not user addCampaignBudget 
for example
$campaign = new Campaign([
'name' => 'campaign1',

'campaign_budget' => 10,
...
]);

How can i do that?
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.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/adwords-api/daf52f9a-ca87-4aa5-ac4d-a877ba3b5facn%40googlegroups.com.


get all accounts under my manage account.

2021-11-14 Thread Oleg Disrupt
Hello
I want to get all accounts in my manager account.
I tried to get the account list using below example
php examples/AccountManagement/ListAccessibleCustomers.php
but I can see all manage accounts like top right in my account.
so I want to get all accounts in accounts->performance.

I tried to get my all accounts with below code
php examples/AccountManagement/GetAccountHierarchy.php
it shows manager account list and shows error hierarchy account

PHP Fatal error:  Uncaught BadMethodCallException: Streaming calls are not 
supported while using the REST transport. in 
E:\xec\Test\google-ads-php\vendor\google\gax\src\Transport\HttpUnaryTransportTrait.php:148
Stack trace:
#0 
E:\xec\Test\google-ads-php\vendor\google\gax\src\Transport\HttpUnaryTransportTrait.php(64):
 
Google\ApiCore\Transport\RestTransport->throwUnsupportedException()
#1 
E:\xec\Test\google-ads-php\vendor\google\gax\src\GapicClientTrait.php(601): 
Google\ApiCore\Transport\RestTransport->startServerStreamingCall(Object(Google\ApiCore\Call),
 
Array)
#2 
E:\xec\Test\google-ads-php\vendor\google\gax\src\Middleware\CredentialsWrapperMiddleware.php(61):
 
Google\Ads\GoogleAds\V8\Services\Gapic\GoogleAdsServiceGapicClient->Google\ApiCore\{closure}(Object(Google\ApiCore\Call),
 
Array)
#3 
E:\xec\Test\google-ads-php\vendor\google\gax\src\Middleware\FixedHeaderMiddleware.php(66):
 
Google\ApiCore\Middleware\CredentialsWrapperMiddleware->__invoke(Object(Google\ApiCore\Call),
 
Array)
#4 E:\xec\Test\google-ads-php\vendor\google\gax\sr in 
E:\xec\Test\google-ads-php\vendor\google\gax\src\Transport\HttpUnaryTransportTrait.php
 
on line 148

how can i fix this issue?
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.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/adwords-api/71589a49-2870-4635-a18f-bb4b14186af5n%40googlegroups.com.


Get the file content to attach in gmail header

2021-11-11 Thread Oleg Disrupt
Hello
I want to read the csv file in header in my email.
Message part like this
[1]=>
  object(Google\Service\Gmail\MessagePart)#226 (15) {
...
["filename"]=>
string(64) "test.csv"
...
["headers"]=>
array(4) {
  [0]=>
  ...
  [1]=>
  ...
  [2]=>
  object(Google\Service\Gmail\MessagePartHeader)#229 (5) {
["name"]=>
string(19) "Content-Disposition"
["value"]=>
string(85) "attachment; filename=test.csv"
["internal_gapi_mappings":protected]=>
array(0) {
}
["modelData":protected]=>
array(0) {
}
["processed":protected]=>
array(0) {
}
  }

How can I read the content in test.csv using php, gmail api?
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.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/adwords-api/55002d16-0124-402d-9efc-c18d4ef5f6a3n%40googlegroups.com.


GetMessage issue using gmail api

2021-11-10 Thread Oleg Disrupt
Hello
I try to get the message in my inbox using gmail api so I can see this error
-code
https://newbedev.com/php-gmail-api-get-message-subject-code-example
-error
PHP Fatal error:  Uncaught Google\Service\Exception: {
  "error": {
"code": 403,
"message": "Metadata scope doesn't allow format FULL",
"errors": [
  {
"message": "Metadata scope doesn't allow format FULL",
"domain": "global",
"reason": "forbidden"
  }
],
"status": "PERMISSION_DENIED"
  }
}

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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/bba1a2ea-50dc-4b0f-a1ca-dec2f1ce5e3an%40googlegroups.com.


googleadsapi-supp...@google.com

2021-11-10 Thread Oleg Disrupt
Hello,
I can see below errors when I try to add keyword like this: "+aa+bb+cc"
-code

$keywordText="+a+b+c";
$keywordInfo = new KeywordInfo([
'text' => $keywordText,
'match_type' => KeywordMatchType::BROAD
]);

-error

E:\...\Test\google-ads-php>php examples/BasicOperations/AddKeywords.php 
--customerId 9xxx --adGroupId 1xxx

ApiException was thrown with message '{
"message": "Request contains an invalid argument.",
"code": 3,
"status": "INVALID_ARGUMENT",
"details": [
{
"@type": 0,
"data": 
"type.googleapis.com\/google.ads.googleads.v8.errors.GoogleAdsFailure"
},
{
"@type": 0,
"data": [
{
"errorCode": {
"criterionError": 
"BROAD_MATCH_MODIFIER_KEYWORD_NOT_ALLOWED"
},
"message": "Broad match modifier (BMM) keywords can no 
longer be created. Please see 
https:\/\/ads-developers.googleblog.com\/2021\/06\/broad-match-modifier-upcoming-changes.html.",
"location": {
"fieldPathElements": [
{
"fieldName": "operations",
"index": 0
},
{
"fieldName": "create"
},
{
"fieldName": "keyword"
}
]
}
}
]
},
{
"@type": 0,
"data": "EQp1rV10lmsgffm9l_jPXQ"
}
]
}'.

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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/c7a4f63d-e4ad-4084-95a0-c64abd798209n%40googlegroups.com.


Re: AddKeywords issue

2021-11-09 Thread Oleg Disrupt
E:\xec\Test\google-ads-php>php examples/BasicOperations/AddKeywords.php 
--customerId 9641267633 --adGroupId 129982595255

ApiException was thrown with message '{
"message": "Request contains an invalid argument.",
"code": 3,
"status": "INVALID_ARGUMENT",
"details": [
{
"@type": 0,
"data": 
"type.googleapis.com\/google.ads.googleads.v8.errors.GoogleAdsFailure"
},
{
"@type": 0,
"data": [
{
"errorCode": {
"criterionError": 
"BROAD_MATCH_MODIFIER_KEYWORD_NOT_ALLOWED"
},
"message": "Broad match modifier (BMM) keywords can no 
longer be created. Please see 
https:\/\/ads-developers.googleblog.com\/2021\/06\/broad-match-modifier-upcoming-changes.html.",
"location": {
"fieldPathElements": [
{
"fieldName": "operations",
"index": 0
},
{
"fieldName": "create"
},
{
"fieldName": "keyword"
}
]
}
}
]
},
{
"@type": 0,
"data": "EQp1rV10lmsgffm9l_jPXQ"
}
]
}'.

On Wednesday, November 10, 2021 at 1:35:34 PM UTC+9 adsapi wrote:

> Hi Oleg,
>
> Thank you for reaching out to us.
>
> With regard to your concern, are you getting an error upon submitting your 
> keywords request with special characters? If so, could you provide the full 
> error message, which is usually included in the complete logs (request 
> 
>  and response 
> 
>  with request-id 
> )?
>  
> This will greatly help us identifying the error so we could provide 
> guidance accordingly. Logging can be enabled by navigating to the Client 
> libraries > Your client library (ex. Java) > Logging documentation, which 
> you can access from this link 
> .
>
> Kindly send the requested information via *Reply privately to author* 
> option. If this option is not available, then send it instead on this email 
> address googleadsa...@google.com.
>
> Regards,
>
> Reminder: Share your feedback about the Google Ads (AdWords) API! Take the 
> 2021 
> Google Ads API and AdWords API Annual Survey 
> 
>   
> [image: Google Logo] 
> Teejay Wennie Pimentel 
> Google Ads API Team 
>   
>
> ref:_00D1U1174p._5004Q2R7l4Q: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/84b5f456-b467-44f9-9c28-d41c7ca2c2f8n%40googlegroups.com.


AddKeywords issue

2021-11-09 Thread Oleg Disrupt
Hello
I want to add keyword "+a +b+c" using google api.
It doesn't work well with above keyword because of "+" sign.
It works well for general words.

$keywordText="+a+b+c";
$keywordInfo = new KeywordInfo([
'text' => $keywordText,
'match_type' => KeywordMatchType::BROAD
]);
How can i fix that?
How can I do for keywords with special characters?
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.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/adwords-api/c95c0483-9226-470f-804e-b245a1593848n%40googlegroups.com.


Re: generateKeywordIdeas - sort

2021-11-02 Thread Oleg Disrupt
Hi Matt,
Thank you for your reply and your honestly support.
So I attached screenshot for sort example.
so in below code, I need to add sort argument for special filed(for example 
top of page id(low range) )
$response = $keywordPlanIdeaServiceClient->generateKeywordIdeas(
[
'language' => ResourceNames::forLanguageConstant($languageId
),
'customerId' => $customerId,
'geoTargetConstants' => $geoTargetConstants,
'keywordPlanNetwork' => KeywordPlanNetwork
::GOOGLE_SEARCH_AND_PARTNERS
] + $requestOptionalArgs
);

Thanks
On Tuesday, November 2, 2021 at 9:39:32 PM UTC+9 adsapi wrote:

> Hi Oleg,
>
> Thanks for reaching out. The GenerateKeywordIdeasRequest does not support 
> a sort method. However, if you can provide us with a bit more information 
> on how the results should be sorted, I can create a feature request on your 
> behalf.
>
> Thanks,
> Matt
> Google Ads API Team
>
> [image: Google Logo] 
> Matt 
> Google Ads API Team 
>   
>
> ref:_00D1U1174p._5004Q2QH9vf: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/3d9913af-3aad-4a42-b2c2-0b3ab91edd03n%40googlegroups.com.


generateKeywordIdeas - sort

2021-11-01 Thread Oleg Disrupt
Hello
I want to add sort feature
when call the this function: generateKeywordIdeas
How can I do this one?
Regards
Oleg

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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/8529cfe7-2d22-4ac8-95d3-218ab0c7280fn%40googlegroups.com.


Re: Not understanding why I am hitting RESOURCE_EXHAUSTED

2021-10-25 Thread Oleg Disrupt
I saw the same issues several time but I fixed that.
can i see your snippet code?
Thanks

On Monday, October 25, 2021 at 8:21:04 PM UTC+9 den...@wakeupdata.com wrote:

> Hi
>
> Hopefully someone can help me here. Why am I hitting the resource 
> exhausted limit.
>
> Under API & Services it says I have made a total of 280 requests in the 
> last 24 hours, but I am getting this reply back from the API.
>
> {{ "errors": [ { "errorCode": { "quotaError": "RESOURCE_EXHAUSTED" }, 
> "message": "Too many requests. Retry in 34069 seconds.", "details": { 
> "quotaErrorDetails": { "rateScope": "DEVELOPER", "rateName": "Number of 
> operations for basic access", "retryDelay": "34069s" } } } ], "requestId": 
> "XLg0jS4z6P1ODLX0-P0VuQ" }}
>
> What is going on?
>
> 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.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/adwords-api/0adf89a2-a299-4eaa-945d-f062df8020a2n%40googlegroups.com.


Re: Add Filter in generateKeywordIdeas

2021-10-24 Thread Oleg Disrupt
can you help me? This is urgent.
Any suggestion will help me.
Thanks

On Monday, October 25, 2021 at 11:00:45 AM UTC+9 Oleg Disrupt wrote:

> Hi
> I want to add filter (for example competiton is high) to call
> generateKeywordIdeas.
>
> How can i do 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.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/adwords-api/a77f210e-85c1-4266-baf0-3fa510457065n%40googlegroups.com.


Re: micros to dollar

2021-10-24 Thread Oleg Disrupt
I fixed it

On Saturday, October 23, 2021 at 10:36:23 AM UTC+9 Oleg Disrupt wrote:

> In google ads keywordplanner I tried to search with my keywords and 
> customer id, language us(1000), location : united state
> But as I mentioned above it was different result between my app and google 
> keywordplans
>
> On Saturday, October 23, 2021 at 7:07:45 AM UTC+9 Oleg Disrupt wrote:
>
>> Hi Matt,
>> Thank you for your help.
>> I have one thing to ask you.
>> when i call  
>> generateKeywordIdeas method
>> in this KeywordPlanIdeaServiceGrpcClient, it requires 
>> geoTargetConstants (locations array).
>> I got the all locations from geotarget.csv and created the array.
>> It required max 10 value in array but I can see 60 locations id(Parent 
>> ID) so I created 6 vars in array. like this
>> private const LOC_IDS = array(
>> array(21132,21133,21135,21136,21137,21138,21139,21140,21141),
>> array(21142,21143,21144,21145,21146,21147,21148,21149,21150),
>> array(21151,21152,21153,21154,21155,21156,21157,21158,21159),
>> array(21160,21161,21162,21163,21164,21165,21166,21167,21168),
>> array(21169,21170,21171,21172,21173,21174,21175,21176,21177),
>> array(21178,21179,21180,21182,21183,21184)
>> );
>> I run 
>> generateKeywordIdeas
>>  function with above location ids, it shows a little different with 
>> google keywordideas.
>> for example when I enter the keyword("rare books"), google shows (avg 
>> month search: 6,600,  High bid — $0.41)
>> but my app shows 
>> avg month search :7390, high bid: $6.24(micro value is 6248351)
>> I got the result after tried to sum each it's value from 6 times 
>> searching.
>> foreach ($response->iterateAllElements() as $result) {
>> $avg = (is_null($result->getKeywordIdeaMetrics()) ? 0 
>> : $result->getKeywordIdeaMetrics()->getAvgMonthlySearches());
>> $bid = (is_null($result->getKeywordIdeaMetrics()) ? 0 
>> : $result->getKeywordIdeaMetrics()->getHighTopOfPageBidMicros());
>> $comp = (is_null($result->getKeywordIdeaMetrics()) ? 
>> 0 : $result->getKeywordIdeaMetrics()->getCompetition());
>> 
>> if ($comp > 3 && $bid > 0) {
>> for ($j=0; $j<$cnt; $j++) {
>> if ($res[$j]["keyword"] == $result->getText()) 
>> {
>> $flag = true;
>> break;   
>> }
>> }
>>
>> if ($flag) {
>> $res[$j]["avgmonth"] += $avg;
>> $res[$j]["highbid"] += $bid;
>> $flag = false;
>> } else {
>> ...
>> }
>> }
>> }
>> what is my issue?
>> Thanks
>>
>>
>> On Saturday, October 23, 2021 at 1:55:38 AM UTC+9 adsapi wrote:
>>
>>> Hi Oleg,
>>>
>>> Thanks for reaching out. I assume you are referring to 
>>> either low_top_of_page_bid_micros or high_top_of_page_bid_micros fields in 
>>> the KeywordPlanHistoricalMetrics 
>>> <https://developers.google.com/google-ads/api/reference/rpc/v8/KeywordPlanHistoricalMetrics>.
>>>  
>>> These fields can only return values in terms of micros, not account 
>>> currency. Micros are defined as the account currency multiplied by 
>>> 1,000,000. 
>>>
>>> Regards,
>>> Matt
>>> Google Ads API Team
>>>
>>> [image: Google Logo] 
>>> Matt 
>>> Google Ads API Team 
>>>   
>>>
>>> ref:_00D1U1174p._5004Q2QEIU5: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/17153fa5-0c41-43f2-827e-65da3bb42117n%40googlegroups.com.


Add Filter in generateKeywordIdeas

2021-10-24 Thread Oleg Disrupt
Hi
I want to add filter (for example competiton is high) to call
generateKeywordIdeas.

How can i do 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.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/adwords-api/2e0a29f5-5ad7-4416-b5f6-b3944e321addn%40googlegroups.com.


LocationId array problem in generateKeywordIdeas

2021-10-23 Thread Oleg Disrupt
Hello
I want to get keywordideas in united state.
When I use generateKeywordIdeas function, it requires location id array 
param but there are many location ids in united state.
Max location array request is 10 so I should call request for all locations 
in united state?
How can i use one id to include all locations in united state?
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.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/adwords-api/cfdc9d75-eb05-4be8-bca2-6e7f4771e583n%40googlegroups.com.


Re: micros to dollar

2021-10-22 Thread Oleg Disrupt
In google ads keywordplanner I tried to search with my keywords and 
customer id, language us(1000), location : united state
But as I mentioned above it was different result between my app and google 
keywordplans

On Saturday, October 23, 2021 at 7:07:45 AM UTC+9 Oleg Disrupt wrote:

> Hi Matt,
> Thank you for your help.
> I have one thing to ask you.
> when i call  
> generateKeywordIdeas method
> in this KeywordPlanIdeaServiceGrpcClient, it requires 
> geoTargetConstants (locations array).
> I got the all locations from geotarget.csv and created the array.
> It required max 10 value in array but I can see 60 locations id(Parent ID) 
> so I created 6 vars in array. like this
> private const LOC_IDS = array(
> array(21132,21133,21135,21136,21137,21138,21139,21140,21141),
> array(21142,21143,21144,21145,21146,21147,21148,21149,21150),
> array(21151,21152,21153,21154,21155,21156,21157,21158,21159),
> array(21160,21161,21162,21163,21164,21165,21166,21167,21168),
> array(21169,21170,21171,21172,21173,21174,21175,21176,21177),
> array(21178,21179,21180,21182,21183,21184)
> );
> I run 
> generateKeywordIdeas
>  function with above location ids, it shows a little different with google 
> keywordideas.
> for example when I enter the keyword("rare books"), google shows (avg 
> month search: 6,600,  High bid — $0.41)
> but my app shows 
> avg month search :7390, high bid: $6.24(micro value is 6248351)
> I got the result after tried to sum each it's value from 6 times searching.
> foreach ($response->iterateAllElements() as $result) {
> $avg = (is_null($result->getKeywordIdeaMetrics()) ? 0 
> : $result->getKeywordIdeaMetrics()->getAvgMonthlySearches());
> $bid = (is_null($result->getKeywordIdeaMetrics()) ? 0 
> : $result->getKeywordIdeaMetrics()->getHighTopOfPageBidMicros());
> $comp = (is_null($result->getKeywordIdeaMetrics()) ? 0 
> : $result->getKeywordIdeaMetrics()->getCompetition());
> 
> if ($comp > 3 && $bid > 0) {
> for ($j=0; $j<$cnt; $j++) {
> if ($res[$j]["keyword"] == $result->getText()) 
> {
> $flag = true;
> break;   
> }
> }
>
> if ($flag) {
> $res[$j]["avgmonth"] += $avg;
> $res[$j]["highbid"] += $bid;
> $flag = false;
> } else {
> ...
> }
> }
> }
> what is my issue?
> Thanks
>
>
> On Saturday, October 23, 2021 at 1:55:38 AM UTC+9 adsapi wrote:
>
>> Hi Oleg,
>>
>> Thanks for reaching out. I assume you are referring to 
>> either low_top_of_page_bid_micros or high_top_of_page_bid_micros fields in 
>> the KeywordPlanHistoricalMetrics 
>> <https://developers.google.com/google-ads/api/reference/rpc/v8/KeywordPlanHistoricalMetrics>.
>>  
>> These fields can only return values in terms of micros, not account 
>> currency. Micros are defined as the account currency multiplied by 
>> 1,000,000. 
>>
>> Regards,
>> Matt
>> Google Ads API Team
>>
>> [image: Google Logo] 
>> Matt 
>> Google Ads API Team 
>>   
>>
>> ref:_00D1U1174p._5004Q2QEIU5: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/7dc71fd7-13ab-4e5f-9559-cfa5aaca7c0cn%40googlegroups.com.


Re: micros to dollar

2021-10-22 Thread Oleg Disrupt
Hi Matt,
Thank you for your help.
I have one thing to ask you.
when i call  
generateKeywordIdeas method
in this KeywordPlanIdeaServiceGrpcClient, it requires 
geoTargetConstants (locations array).
I got the all locations from geotarget.csv and created the array.
It required max 10 value in array but I can see 60 locations id(Parent ID) 
so I created 6 vars in array. like this
private const LOC_IDS = array(
array(21132,21133,21135,21136,21137,21138,21139,21140,21141),
array(21142,21143,21144,21145,21146,21147,21148,21149,21150),
array(21151,21152,21153,21154,21155,21156,21157,21158,21159),
array(21160,21161,21162,21163,21164,21165,21166,21167,21168),
array(21169,21170,21171,21172,21173,21174,21175,21176,21177),
array(21178,21179,21180,21182,21183,21184)
);
I run 
generateKeywordIdeas
 function with above location ids, it shows a little different with google 
keywordideas.
for example when I enter the keyword("rare books"), google shows (avg month 
search: 6,600,  High bid — $0.41)
but my app shows 
avg month search :7390, high bid: $6.24(micro value is 6248351)
I got the result after tried to sum each it's value from 6 times searching.
foreach ($response->iterateAllElements() as $result) {
$avg = (is_null($result->getKeywordIdeaMetrics()) ? 0 : 
$result->getKeywordIdeaMetrics()->getAvgMonthlySearches());
$bid = (is_null($result->getKeywordIdeaMetrics()) ? 0 : 
$result->getKeywordIdeaMetrics()->getHighTopOfPageBidMicros());
$comp = (is_null($result->getKeywordIdeaMetrics()) ? 0 
: $result->getKeywordIdeaMetrics()->getCompetition());

if ($comp > 3 && $bid > 0) {
for ($j=0; $j<$cnt; $j++) {
if ($res[$j]["keyword"] == $result->getText()) {
$flag = true;
break;   
}
}

if ($flag) {
$res[$j]["avgmonth"] += $avg;
$res[$j]["highbid"] += $bid;
$flag = false;
} else {
...
}
}
}
what is my issue?
Thanks


On Saturday, October 23, 2021 at 1:55:38 AM UTC+9 adsapi wrote:

> Hi Oleg,
>
> Thanks for reaching out. I assume you are referring to 
> either low_top_of_page_bid_micros or high_top_of_page_bid_micros fields in 
> the KeywordPlanHistoricalMetrics 
> .
>  
> These fields can only return values in terms of micros, not account 
> currency. Micros are defined as the account currency multiplied by 
> 1,000,000. 
>
> Regards,
> Matt
> Google Ads API Team
>
> [image: Google Logo] 
> Matt 
> Google Ads API Team 
>   
>
> ref:_00D1U1174p._5004Q2QEIU5: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/3e0b2936-1df9-4f8e-bf66-138b4c31b342n%40googlegroups.com.


Keyword Plan High Top bid value

2021-10-21 Thread Oleg Disrupt
Hi
foreach ($response->iterateAllElements() as $result) {
$bid = (is_null($result->getKeywordIdeaMetrics()) ? 0 : $result->
getKeywordIdeaMetrics()->getHighTopOfPageBidMicros());
}
In this code, I can get micros(int64  - 1065154) as value.
How can I convert it to $value? for example $1.04
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.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/adwords-api/70dc116f-9153-4db8-bd6a-c70f2c0a21b4n%40googlegroups.com.


micros to dollar

2021-10-21 Thread Oleg Disrupt
Hello
I got the
high_top_of_page_bid_micros using 
getKeywordIdeaMetrics
api function.
It shows big number like 86.
I can see it as $value as shown in google keywordplan.
How can I get this value?
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.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/adwords-api/da9ef601-901c-4317-b6af-e53d18165f49n%40googlegroups.com.


No result in getcampaigns.php

2021-10-18 Thread Oleg Disrupt
Hello
I got to clone https://github.com/googleads/google-ads-php and tried to test
php examples/BasicOperations/GetCampaigns.php --customerId 
but I can't see any result.
I can see the result in my command prompt.
~
[2021-10-19T08:27:22.627915+02:00] google-ads.INFO: Request made: Host: 
"googleads.googleapis.com", Method: 
"/google.ads.googleads.v8.services.GoogleAdsService/SearchStream", 
CustomerId: 5347826121, RequestId: "KodnfDM3vbKobMDF8h_hmQ", IsFault: 0, 
FaultMessage: "None"
~
so it means all work fine?
I can see my campaigns in my google ads account but I can't see any list in 
prompt.
what is my issue?
Any suggestion will be help me.
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/a8a3f855-e395-4c3b-a3bb-a80aa62d7320n%40googlegroups.com.