ในวันที่ พ. 14 ต.ค. 2020 17:58 น. <[email protected]> เขียนว่า:
> [email protected] > <https://groups.google.com/forum/?utm_source=digest&utm_medium=email#!forum/adwords-api/topics> > Google > Groups > <https://groups.google.com/forum/?utm_source=digest&utm_medium=email/#!overview> > <https://groups.google.com/forum/?utm_source=digest&utm_medium=email/#!overview> > Topic digest > View all topics > <https://groups.google.com/forum/?utm_source=digest&utm_medium=email#!forum/adwords-api/topics> > > - [Google Ads API] Invoice.AccountBudgetSummary : missing information > about adjustments <#m_-5401897374087252037_group_thread_0> - 1 Update > - Updating ad group feed matching function Google Ads Api > <#m_-5401897374087252037_group_thread_1> - 1 Update > - GoogleAds V5 - PHP - AddBatchJobOperations socket closed > <#m_-5401897374087252037_group_thread_2> - 1 Update > - API to set Location Options <#m_-5401897374087252037_group_thread_3> > - 1 Update > - Digest for [email protected] - 25 updates in 16 topics > <#m_-5401897374087252037_group_thread_4> - 1 Update > > [Google Ads API] Invoice.AccountBudgetSummary : missing information about > adjustments > <http://groups.google.com/group/adwords-api/t/780b43381e6ba654?utm_source=digest&utm_medium=email> > "Alexandre R." <[email protected]>: Oct 14 02:39AM -0700 > > Hello, > > It seems like > > https://developers.google.com/google-ads/api/reference/rpc/v5/Invoice.AccountBudgetSummary > is missing information about adjustments (amount recredited for incorrect > clics, etc.) *per customer.* > > For example, say a consolidated invoice contains 2 customers : > > - customer A should be billed $100.00, but there are -$1 of adjustments > (for example, incorrect clics) > so $99.00 billed in total for customer A > - customer B should be billed $200.00, but there are -$2 of adjustments > so $198.00 billed in total for customer B > > Then, invoice service ( > https://developers.google.com/google-ads/api/reference/rpc/v5/Invoice ) > will correctly return *subtotal_amount_micros = 300 000 000*, and > *invoice_level_adjustments_micros > = - 3 000 000. *However, invoice service doesn't provide any information > about adjustment for each customer. That is to say, it's impossible to > tell > that customer A has -$1 of adjustments, and customer B has -$2 of > adjustments. The only thing Google Ads API tells us, is that the *total > *amount > of adjustments for all customers is -$3. > > However, when you download a consolidated invoice from Google Ads as CSV > (not via API), you can see adjustments per each customer ... So it's seems > like > > https://developers.google.com/google-ads/api/reference/rpc/v5/Invoice.AccountBudgetSummary > should > have an additional field, say *account_budget_level_adjustments_micros* > > Will this information be available in the future versions of Google Ads > API > ? > > Thanks > Back to top <#m_-5401897374087252037_digest_top> > Updating ad group feed matching function Google Ads Api > <http://groups.google.com/group/adwords-api/t/329e0e3ad8c73c5e?utm_source=digest&utm_medium=email> > rds1 <[email protected]>: Oct 14 02:04AM -0700 > > For anyone finding this thread but no answer (like we did), one solution > is > to not attempt updating the matching function via its components (like the > original poster and we attempted) but to build your own matching function > string and update just that. This worked for our case, mutating a > CustomerFeed. > > PHP example, relevant parts marked green: > > * $matchingString = "$operator($leftOperand,$rightOperand)"; // --> > e.g. IN(FEED_ITEM_ID,{1000001,1000002,1000003})* > > * $matchingFunction = new MatchingFunction();* > * $matchingFunction->setFunctionString((new > StringValue())->setValue($matchingString));* > * ...* > * $updateMask = (new > FieldMask())->setPaths(['matching_function.function_string']);* > * $operation->setUpdateMask($updateMask);* > > Good luck! > Back to top <#m_-5401897374087252037_digest_top> > GoogleAds V5 - PHP - AddBatchJobOperations socket closed > <http://groups.google.com/group/adwords-api/t/62905dfbef1feede?utm_source=digest&utm_medium=email> > Methorz <[email protected]>: Oct 13 11:49PM -0700 > > Hey there, > > we are currently facing several issue when using the new GoogleAds V5 API. > After solving some issues and updating to the latest version of the > libraries some of the issues were already resolved. > > Currently we are stuck with an error while trying to add > adGroupAdOperations via AddBatchJobOperations. The problem seems to happen > rather randomly, since sometimes we are able to add 20 operations, > sometimes 80 operations and sometimes even less, before the error appears. > The ads are always exactly the same ones and in the same order every try. > So it does not seem to be related to a specific ad itself. > > In addition to this we already experimented with different retrySettings / > timeouts increasing them to higher values to ensure it does not hit them. > Average runtime seems to be between 20 and 60 seconds regardless. > > Following values have been adapted for testing purposes: > > $optionalArgs['timeoutMillis'] > $optionalArgs['retrySettings']['initialRetryDelayMillis'] > $optionalArgs['retrySettings']['retryDelayMultiplier'] > $optionalArgs['retrySettings']['maxRetryDelayMillis'] > $optionalArgs['retrySettings']['initialRpcTimeoutMillis'] > $optionalArgs['retrySettings']['rpcTimeoutMultiplier'] > $optionalArgs['retrySettings']['maxRpcTimeoutMillis'] > $optionalArgs['retrySettings']['totalTimeoutMillis'] > > See the following logging output from the logs for request and response. > > -- > [2020-10-14T06:23:12.139997+00:00] google-ads.NOTICE: Request > Method Name: > /google.ads.googleads.v5.services.BatchJobService/AddBatchJobOperations > Host: googleads.googleapis.com > Headers: { > "x-goog-api-client": "gl-php\/7.4.6 gapic\/ gax\/1.5.0 grpc\/1.32.0", > "x-goog-request-params": > "resource_name=customers\/6260240422\/batchJobs\/3534382286", > "developer-token": "REDACTED", > "login-customer-id": "1773353974" > } > Request: > {"resourceName":"customers\/6260240422\/batchJobs\/3534382286","sequenceToken":"fbdac439948b11cfeed25ffbf0fc0006","mutateOperations":[{"adGroupAdOperation":{"create":{"status":"ENABLED","adGroup":"customers\/6260240422\/adGroups\/9038118772","ad":{"id":"-13", > > CONTENT REMOVED} > > Response > ------- > Headers: [] > > Fault > ------- > Status code: 14 > Details: Socket closed > Failure: {} > > -- > This error message is currently always followed by another error stating > "invalid sequence token". Allthough this is most likely just a followup > error based on the previous error. > > -- > [2020-10-14T06:27:26.163674+00:00] google-ads.WARNING: Request made: Host: > "googleads.googleapis.com", Method: > "/google.ads.googleads.v5.services.BatchJobService/AddBatchJobOperations", > CustomerId: 6260240422, RequestId: "L50RXM8AbD9b9E_m_7KzOg", IsFault: 1, > FaultMessage: "["The sequence token was invalid."]" > [2020-10-14T06:27:26.187647+00:00] google-ads.NOTICE: Request > ------- > Method Name: > /google.ads.googleads.v5.services.BatchJobService/AddBatchJobOperations > Host: googleads.googleapis.com > Headers: { > "x-goog-api-client": "gl-php\/7.4.6 gapic\/ gax\/1.5.0 grpc\/1.32.0", > "x-goog-request-params": > "resource_name=customers\/6260240422\/batchJobs\/3534382286", > "developer-token": "REDACTED", > "login-customer-id": "1773353974" > } > Request: > {"resourceName":"customers\/6260240422\/batchJobs\/3534382286","sequenceToken":"fbdac439948b11cfeed25ffbf0fc0006","mutateOperations":[{"adGroupAdOperation":{"create":{"status":"ENABLED","adGroup":"customers\/6260240422\/adGroups\/9038118772","ad":{"id":"-13", > > CONTENT REMOVED} > > Response > ------- > Headers: { > "request-id": "L50RXM8AbD9b9E_m_7KzOg", > "date": "Wed, 14 Oct 2020 06:27:26 GMT", > "alt-svc": "h3-Q050=\":443\"; ma=2592000,h3-29=\":443\"; > ma=2592000,h3-27=\":443\"; ma=2592000,h3-T051=\":443\"; > ma=2592000,h3-T050=\":443\"; ma=2592000,h3-Q046=\":443\"; > ma=2592000,h3-Q043=\":443\"; ma=2592000,quic=\":443\"; ma=2592000; > v=\"46,43\"" > } > > Fault > ------- > Status code: 3 > Details: Request contains an invalid argument. > Failure: > {"errors":[{"errorCode":{"batchJobError":"INVALID_SEQUENCE_TOKEN"},"message":"The > > sequence token was invalid."}]} > -- > > We are using PHP 7.4 with the latest C Implementation for protobuf. > > Versions: > grpc 1.32.0 stable > protobuf 3.13.0.1 stable > > Some further help would be apprecitated. > > Regards > Back to top <#m_-5401897374087252037_digest_top> > API to set Location Options > <http://groups.google.com/group/adwords-api/t/1f6a1bece8f9ba75?utm_source=digest&utm_medium=email> > Che Hsu <[email protected]>: Oct 13 11:04PM -0700 > > Hi, > > I'm look for the API to set campaign location options, similar to the UI > functionality in the screenshot attached. > > Once you set a country for targeting, where in API can I choose one of the > following options: > > - People in, or who show interest in, your targeted locations > (recommended) > - People in or regularly in your targeted locations > - People searching for your targeted locations > > I did a quick search for "location option" or anything location-related in > the online Reference but to no success. Please point me to documentation > or code samples to set this option. > > > Thanks, > Che > Back to top <#m_-5401897374087252037_digest_top> > Digest for [email protected] - 25 updates in 16 topics > <http://groups.google.com/group/adwords-api/t/7f787deddd5c2e3?utm_source=digest&utm_medium=email> > "ภัทร์สวรรณ์ ดีบุญมีณชุมแพ" <[email protected]>: Oct 14 01:02PM > +0700 > > Back to top <#m_-5401897374087252037_digest_top> > You received this digest because you're subscribed to updates for this > group. You can change your settings on the group membership page > <https://groups.google.com/forum/?utm_source=digest&utm_medium=email#!forum/adwords-api/join> > . > To unsubscribe from this group and stop receiving emails from it send an > email to [email protected]. > -- -- =~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~ 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 [email protected] To unsubscribe from this group, send email to [email protected] 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 [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/adwords-api/CANWdYfqCDG-ALgBa2TtLjepO71xxJ7ax-xg1FXrBKg-SZqYhDg%40mail.gmail.com.
