Re: Ending the active account budget issue

2023-02-12 Thread 'Google Ads API Forum Advisor' via Google Ads API and AdWords API Forum
Hi,

Thank you for your reply.

Upon checking the provided information, it appears that your code snippet are 
more on related for PHP client library, I would suggest to reach out to the 
author of this client library via this github issues tracker as they can help 
you to enable your logging and to provide the API logs.

Best regards,

Jinky
Google Ads API Team
ref:_00D1U1174p._5004Q2iPitT: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/ZSweI0RQ094000AKrOB8Z6QGycMxlecfxjxg%40sfdc.net.


Re: Ending the active account budget issue

2023-02-10 Thread Алексей Рябиков
Hi! 

Sorry for delay. 

I've enabled logger in configuration file but it doesnt work in this case 
(and works with all library examples), or my script does not send the 
request. 

Here is my code, that based on example "add budget proposal" and 
https://developers.google.com/google-ads/api/docs/billing/account-budgets?hl=en#end
 
this code from docs.

parseCommandArguments([
ArgumentNames::CUSTOMER_ID => GetOpt::REQUIRED_ARGUMENT,
ArgumentNames::BILLING_SETUP_ID => GetOpt::REQUIRED_ARGUMENT
]);

// Generate a refreshable OAuth2 credential for authentication.
$oAuth2Credential = (new OAuth2TokenBuilder())->fromFile()->build();

// Construct a Google Ads client configured from a properties file 
and the
// OAuth2 credentials above.
$googleAdsClient = (new GoogleAdsClientBuilder())->fromFile()
->withOAuth2Credential($oAuth2Credential)
->build();

try {
self::runExample(
$googleAdsClient,
$options[ArgumentNames::CUSTOMER_ID] ?: self::CUSTOMER_ID,
$options[ArgumentNames::BILLING_SETUP_ID] ?: 
self::BILLING_SETUP_ID
);
} catch (GoogleAdsException $googleAdsException) {
printf(
"Request with ID '%s' has failed.%sGoogle Ads failure 
details:%s",
$googleAdsException->getRequestId(),
PHP_EOL,
PHP_EOL
);
foreach 
($googleAdsException->getGoogleAdsFailure()->getErrors() as $error) {
/** @var GoogleAdsError $error */
printf(
"\t%s: %s%s",
$error->getErrorCode()->getErrorCode(),
$error->getMessage(),
PHP_EOL
);
}
exit(1);
} catch (ApiException $apiException) {
printf(
"ApiException was thrown with message '%s'.%s",
$apiException->getMessage(),
PHP_EOL
);
exit(1);
}
}

/**
 * Runs the example.
 *
 * @param GoogleAdsClient $googleAdsClient the Google Ads API client
 * @param int $customerId the customer ID
 * @param int $billingSetupId the billing setup ID used to add the 
account budget proposal
 */
// [START add_account_budget_proposal]
public static function runExample(
GoogleAdsClient $googleAdsClient,
int $customerId,
int $billingSetupId
) {
// Constructs an account budget proposal.





$accountBudgetProposal = new AccountBudgetProposal([
'billing_setup' => ResourceNames::forBillingSetup($customerId, 
$billingSetupId),
  'proposal_type' => AccountBudgetProposalType::END, 
  'account_budget' => 'customers/3721199407/accountBudgets/6885650342'
]);
$accountBudgetProposalOperation = new AccountBudgetProposalOperation();
$accountBudgetProposalOperation->setCreate($accountBudgetProposal);


}
// [END add_account_budget_proposal]
}

AddAccountBudgetProposal::main();

?>



*I'm sure, that I did something wrong, but idk what could be wrong*

Can you help me please? 

среда, 1 февраля 2023 г. в 18:37:37 UTC+3, Алексей Рябиков: 

> Hi! Thnx for recommendation. I'll and came back with information
>
> вторник, 31 января 2023 г. в 18:39:19 UTC+3, adsapi: 
>
>> Hi,
>>
>> Thank you for reaching out to the Google Ads API support team.
>>
>> With regards to your concern, can you please provide first the complete 
>> *request* 
>> 
>>  and *response* 
>> 
>>  logs 
>> with *request ID* 
>> 
>>  and *request header* 
>> 
>>  generated 
>> on your end so our team can provide guidance accordingly? If you haven't 
>> yet, logging can be enabled by navigating to the Client libraries > Your 
>> client library > Logging documentation, which you can access from this 
>> link 
>> .
>>
>> You may then send the requested logs via the *Reply privately to author* 
>> option. If this option is not available, you may send the details directly 
>> to our googleadsa...@google.com alias instead.
>>
>> Regards,
>> [image: Google Logo] 
>> Carmela 
>> Google Ads API Team 
>>   
>>
>> ref:_00D1U1174p._5004Q2iPitT: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 

Re: Ending the active account budget issue

2023-02-01 Thread Алексей Рябиков
Hi! Thnx for recommendation. I'll and came back with information

вторник, 31 января 2023 г. в 18:39:19 UTC+3, adsapi: 

> Hi,
>
> Thank you for reaching out to the Google Ads API support team.
>
> With regards to your concern, can you please provide first the complete 
> *request* 
> 
>  and *response* 
> 
>  logs 
> with *request ID* 
> 
>  and *request header* 
> 
>  generated 
> on your end so our team can provide guidance accordingly? If you haven't 
> yet, logging can be enabled by navigating to the Client libraries > Your 
> client library > Logging documentation, which you can access from this 
> link 
> .
>
> You may then send the requested logs via the *Reply privately to author* 
> option. If this option is not available, you may send the details directly 
> to our googleadsa...@google.com alias instead.
>
> Regards,
> [image: Google Logo] 
> Carmela 
> Google Ads API Team 
>   
>
> ref:_00D1U1174p._5004Q2iPitT: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/90cca006-fc07-4c38-b46c-5eac6c835c15n%40googlegroups.com.


RE: Ending the active account budget issue

2023-01-31 Thread 'Google Ads API Forum Advisor' via Google Ads API and AdWords API Forum
Hi,

Thank you for reaching out to the Google Ads API support team.

With regards to your concern, can you please provide first the complete request 
and response logs with request ID and request header generated on your end so 
our team can provide guidance accordingly? If you haven't yet, logging can be 
enabled by navigating to the Client libraries > Your client library > Logging 
documentation, which you can access from this link.

You may then send the requested logs via the Reply privately to author option. 
If this option is not available, you may send the details directly to our 
googleadsapi-supp...@google.com alias instead.

Regards,

Carmela
Google Ads API Team
ref:_00D1U1174p._5004Q2iPitT: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/P--Im0RPCWSY00uIER8IJrTIegVTuo0QH-IA%40sfdc.net.